@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@400;500;600;700&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

a {
	text-decoration: none;
}

li {
	list-style: none;
}

:root {
	--poppins: 'Poppins', sans-serif;
	--lato: 'Lato', sans-serif;

	--light: #F9F9F9;
	--blue: #3C91E6;
	--light-blue: #CFE8FF;
	--grey: #eee;
	--dark-grey: #AAAAAA;
	--dark: #342E37;
	--red: #DB504A;
	--yellow: #FFCE26;
	--light-yellow: #FFF2C6;
	--orange: #FD7238;
	--light-orange: #FFE0D3;
}

html {
	overflow-x: hidden;
}

body.dark {
	--light: #0C0C1E;
	--grey: #060714;
	--dark: #FBFBFB;
}

body {
	background: var(--grey);
	overflow-x: hidden;
    background: #e3e3e3;
/*    background-color: #e9f8e9;*/
}





/* SIDEBAR */
#sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 280px;
	height: 100%;
	background: var(--light);
	z-index: 2000;
	font-family: var(--lato);
	transition: .3s ease;
	overflow-x: hidden;
	scrollbar-width: none;
}
#sidebar::--webkit-scrollbar {
	display: none;
}
#sidebar.hide {
	width: 60px;
}
#sidebar .brand {
	font-size: 24px;
	font-weight: 700;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1ca850;
	position: sticky;
	top: 4px;
	left: 0;
	background: var(--light);
	z-index: 500;
	padding-bottom: 20px;
	box-sizing: content-box;
}
#sidebar .brand .fa
{
	min-width: 60px;
	display: flex;
	justify-content: center;
}
#sidebar .side-menu {
	width: 100%;
	margin-top: 28px;
}
#sidebar .side-menu li {
	height: 48px;
	background: transparent;
	margin-left: 35px;
	border-radius: 48px 0 0 48px;
	padding: 4px;
}
#sidebar .side-menu li.active {
	background: var(--grey);
	position: relative;
}
#sidebar .side-menu li.active::before {
	content: '';
	position: absolute;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	top: -40px;
	right: 0;
	box-shadow: 20px 20px 0 var(--grey);
	z-index: -1;
}
#sidebar .side-menu li.active::after {
	content: '';
	position: absolute;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	bottom: -40px;
	right: 0;
	box-shadow: 20px -20px 0 var(--grey);
	z-index: -1;
}
#sidebar .side-menu li a {
	width: 100%;
	height: 100%;
	background: var(--light);
	display: flex;
	align-items: center;
	border-radius: 48px;
	font-size: 16px;
	color: var(--dark);
	white-space: nowrap;
	overflow-x: hidden;
}
#sidebar .side-menu.top li.active a {
	color: #1da64f;
	color:  #15803d;
}
#sidebar.hide .side-menu li a {
	width: calc(48px - (4px * 2));
	transition: width .3s ease;
}
#sidebar .side-menu li a.logout {
	color: var(--red);
}
#sidebar .side-menu.top li a:hover {
	color: #1da64f;
}

#sidebar .side-menu li a .bx,
#sidebar .side-menu li a .fa{
	min-width: calc(60px  - ((4px + 6px) * 2));
	display: flex;
	justify-content: center;
}
/* SIDEBAR */





/* CONTENT */
#content {
	position: relative;
	width: calc(100% - 280px);
	left: 280px;
	transition: .3s ease;
}
#sidebar.hide ~ #content {
	width: calc(100% - 60px);
	left: 60px;
}


.navbar{
    position: relative;
    background-color: white;
    border-bottom: 1px solid var(--blue-200);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    z-index: 50;
    padding-block: .6rem;
}

.navbar > .nav-container{
    position: relative;
    margin: 0 auto;
    max-width: 1310px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 1.5rem;
}


.navbar .d-flex.navbar-brand{
    font-size: clamp(20px, 1.5em, 1.3rem);
}

.nav-item .profile-dropdown{
    display: none;
}

@media (min-width: 1400px){
    .navbar > .nav-container{
        padding-inline: 1.8rem;
    }
}

.container .container-fluid{
    padding: 0;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}


/* NAVBAR */
#content nav {
	height: 56px;
	background: var(--light);
	padding: 0 24px;
	display: flex;
	align-items: center;
	grid-gap: 24px;
	font-family: var(--lato);
	position: sticky;
	top: 0;
	left: 0;
	z-index: 1000;
}
#content nav::before {
	content: '';
	position: absolute;
	width: 40px;
	height: 40px;
	bottom: -40px;
	left: 0;
	border-radius: 50%;
	box-shadow: -20px -20px 0 var(--light);
}
#content nav a {
	color: var(--dark);
}
#content nav .bx.bx-menu,
#content nav .fa.bx-menu{
	cursor: pointer;
	color: var(--dark);
}
#content nav .nav-link {
	font-size: 16px;
	transition: .3s ease;
}
#content nav .nav-link:hover {
	color: #1ca74f;
}
#content nav form {
	max-width: 400px;
	width: 100%;
	margin-right: auto;
}
#content nav form .form-input {
	display: flex;
	align-items: center;
	height: 36px;
}
#content nav form .form-input input {
	flex-grow: 1;
	padding: 0 16px;
	height: 100%;
	border: none;
	background: var(--grey);
	border-radius: 36px 0 0 36px;
	outline: none;
	width: 100%;
	color: var(--dark);
}
#content nav form .form-input button {
	width: 36px;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	/*background: var(--blue);*/
	background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
	color: var(--light);
	font-size: 18px;
	border: none;
	outline: none;
	border-radius: 0 36px 36px 0;
	cursor: pointer;
}
#content nav .notification {
	font-size: 20px;
	position: relative;
}
#content nav .notification .num {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid var(--light);
	background: var(--red);
	color: var(--light);
	font-weight: 700;
	font-size: 12px;
	display: flex;
	justify-content: center;
	align-items: center;
}
#content nav .profile img {
	width: 36px;
	height: 36px;
	object-fit: cover;
	border-radius: 50%;
}
#content nav .switch-mode {
	display: block;
	min-width: 50px;
	height: 25px;
	border-radius: 25px;
	background: var(--grey);
	cursor: pointer;
	position: relative;
}
#content nav .switch-mode::before {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	bottom: 2px;
	width: calc(25px - 4px);
	background: var(--blue);
	border-radius: 50%;
	transition: all .3s ease;
}
#content nav #switch-mode:checked + .switch-mode::before {
	left: calc(100% - (25px - 4px) - 2px);
}
/* NAVBAR */





/* MAIN */
#content main {
	width: 100%;
	padding: 36px 12px;
	font-family: var(--poppins);
	max-height: calc(100vh - 56px);
	overflow-y: auto;
}
#content main .head-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	grid-gap: 16px;
	flex-wrap: wrap;
}
#content main .head-title .left h1 {
	font-size: 36px;
	font-weight: 600;
	margin-bottom: 10px;
	color: var(--dark);
}
#content main .head-title .left .breadcrumb {
	display: flex;
	align-items: center;
	grid-gap: 16px;
}
#content main .head-title .left .breadcrumb li {
	color: var(--dark);
}
#content main .head-title .left .breadcrumb li a {
	color: var(--dark-grey);
	pointer-events: none;
}
#content main .head-title .left .breadcrumb li a.active {
	color: #178941;
	pointer-events: unset;
}

#content main .head-title .btn-download {
	height: 40px;
	padding: 1rem 16px;
    border-radius: 5px;
	background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
	color: var(--light);
	display: flex;
	justify-content: center;
	align-items: center;
	grid-gap: 10px;
	font-weight: 500;
	transition: all .3s ease;
}

#content main .head-title .btn-download:hover{
    opacity: .7;
}


#content main .box-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	grid-gap: 24px;
	margin-top: 36px;
	padding-left: 0;
}
#content main .box-info li {
	padding: 24px;
	background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
	border-radius: 20px;
	display: flex;
	align-items: center;
	grid-gap: 24px;
	margin-bottom: 20px;
}
#content main .box-info li .bx,
#content main .box-info li .fa{
	width: 80px;
	height: 80px;
	border-radius: 10px;
	font-size: 36px;
	display: flex;
	justify-content: center;
	align-items: center;
}

#content main .box-info li:nth-child(1) .fa {
	background: var(--light-blue);
	color: var(--blue);
}

#content main .box-info li:nth-child(2) .fa{
	background: var(--light-yellow);
	color: var(--yellow);
}

#content main .box-info li:nth-child(3) .fa
 {
	background: var(--light-orange);
	color: var(--orange);
}
#content main .box-info li .text h3 {
	font-size: 24px;
	font-weight: 600;
	color: #FFF;
}
#content main .box-info li .text p {
	color: #FFF;
}

.page-item.active .page-link {
	background-color: var(--success-color);
    border-color: var(--success-color);
}

.form-control:focus {
   border-color: var(--success-color) !important;
	box-shadow: none;
}

.form-select:focus {
   border-color: var(--success-color) !important;
	box-shadow: none;
}

.table>:not(caption)>*>* {
    padding: .5rem .5rem;
    background-color: #23212114;
    border-bottom-width: 1px;
    box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
}

#content main .table-data {
	display: flex;
	flex-wrap: wrap;
	grid-gap: 24px;
	margin-top: 24px;
	width: 100%;
	color: var(--dark);
}
#content main .table-data > div {
	border-radius: 20px;
	background: var(--light);
	padding: 24px;
	overflow-x: auto;
}
#content main .table-data .head {
	display: flex;
	align-items: center;
	grid-gap: 16px;
	margin-bottom: 24px;
}
#content main .table-data .head h3 {
	margin-right: auto;
	font-size: 24px;
	font-weight: 600;
}
#content main .table-data .head .bx,
 #content main .table-data .head .fa {
	cursor: pointer;
}

#content main .table-data .order {
	flex-grow: 1;
	flex-basis: 500px;
}
#content main .table-data .order table {
	width: 100%;
	border-collapse: collapse;
}
#content main .table-data .order table th {
	padding-bottom: 12px;
	font-size: 13px;
	text-align: left;
	border-bottom: 1px solid var(--grey);
}
#content main .table-data .order table td {
	padding: 16px 0;
}
#content main .table-data .order table tr td:first-child {
	display: flex;
	align-items: center;
	grid-gap: 12px;
	padding-left: 6px;
}
#content main .table-data .order table td img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}
#content main .table-data .order table tbody tr:hover {
	background: var(--grey);
}
#content main .table-data .order table tr td .status {
	font-size: 10px;
	padding: 6px 16px;
	color: var(--light);
	border-radius: 20px;
	font-weight: 700;
}
#content main .table-data .order table tr td .status.completed {
	background: var(--blue);
}
#content main .table-data .order table tr td .status.process {
	background: var(--yellow);
}
#content main .table-data .order table tr td .status.pending {
	background: var(--orange);
}


#content main .table-data .todo {
	flex-grow: 1;
	flex-basis: 300px;
}
#content main .table-data .todo .todo-list {
	width: 100%;
}
#content main .table-data .todo .todo-list li {
	width: 100%;
	margin-bottom: 16px;
	background: var(--grey);
	border-radius: 10px;
	padding: 14px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
#content main .table-data .todo .todo-list li .bx,
 #content main .table-data .todo .todo-list li .fa{
	cursor: pointer;
}
#content main .table-data .todo .todo-list li.completed {
	border-left: 10px solid var(--blue);
}
#content main .table-data .todo .todo-list li.not-completed {
	border-left: 10px solid var(--orange);
}
#content main .table-data .todo .todo-list li:last-child {
	margin-bottom: 0;
}
/* MAIN */
/* CONTENT */

#content main #action{
    display:flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}


/* Sidebare */
#sidebar .side-menu{
    padding-left: 0;
}

@media screen and (max-width: 768px) {
	#sidebar {
		width: 200px;
	}

	#content {
		width: calc(100% - 60px);
		left: 200px;
	}

	#content nav .nav-link {
		display: none;
	}
}


body .btn.btn-primary{
    background: #168640;
    border: none;
	box-shadow: none !important;
}

body .btn.btn-primary:hover{
    background: #0b5a28;
}

@media screen and (max-width: 576px) {
	#content nav form .form-input input {
		display: none;
	}

	#content nav form .form-input button {
		width: auto;
		height: auto;
		background: transparent;
		border-radius: none;
		color: var(--dark);
	}

	#content nav form.show .form-input input {
		display: block;
		width: 100%;
	}
	#content nav form.show .form-input button {
		width: 36px;
		height: 100%;
		border-radius: 0 36px 36px 0;
		color: var(--light);
		background: var(--red);
	}

	#content nav form.show ~ .notification,
	#content nav form.show ~ .profile {
		display: none;
	}

	#content main .box-info {
		grid-template-columns: 1fr;
	}

	#content main .table-data .head {
		min-width: 420px;
	}
	#content main .table-data .order table {
		min-width: 420px;
	}
	#content main .table-data .todo .todo-list {
		min-width: 420px;
	}
}

/* RAPPEL MISE A JOUR PIN */
.rappelle_mise_a_jour_pin {
    background-color: #ffd240;
    padding: 1rem 1.5rem;
	width: 100%;
    /* margin: 1rem 0; */
    /* border-radius: 8px; */

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.rappelle_mise_a_jour_pin > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
	max-width: 1310px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.rappelle_mise_a_jour_pin .texte {
    flex: 1;
    min-width: 250px;
}

.rappelle_mise_a_jour_pin .texte .head_rappelle {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #333;
}

.rappelle_mise_a_jour_pin .texte .body_rappelle {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.rappelle_mise_a_jour_pin .action_rappelle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rappelle_mise_a_jour_pin .action_rappelle .bouton_maj {
    background-color: #000;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rappelle_mise_a_jour_pin .action_rappelle .bouton_maj:hover {
    background-color: #333;
}


@media screen and (max-width: 576px) {
    .rappelle_mise_a_jour_pin > div {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .rappelle_mise_a_jour_pin .texte {
        min-width: auto;
    }

    .rappelle_mise_a_jour_pin .action_rappelle {
        justify-content: center;
    }
}



/*========================================================*/

.tab-content card-header{
    padding: .5rem !important;
}

.card.card-soft .card-header{
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    color: #FFFFFF;
}


#formTransfertAgent .btn.btn-secondary{
    background-color: red;
}

@media (max-width: 1005px) {
    #formTransfertAgent .d-flex {
        flex-direction: column;
        gap: .5rem;
    }

    .card.profile-card .card-body {
        padding-inline: .6rem;
    }
}