/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #f5f7fa;
    color: #17202a;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e5e9ef;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 24px;

    position: sticky;
    top: 0;
    z-index: 50;
}

.brand {
    font-weight: 700;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 12px;
}

.badge {
    display: inline-flex;

    min-width: 20px;
    height: 20px;

    padding: 0 6px;

    border-radius: 10px;

    background: #1f6f8b;
    color: #ffffff;

    align-items: center;
    justify-content: center;

    font-size: 10px;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.layout {
    display: flex;
    min-height: calc(100vh - 64px);
}

.sidebar {
    width: 230px;

    background: #ffffff;

    border-right: 1px solid #e5e9ef;

    padding: 18px 12px;

    display: flex;
    flex-direction: column;

    gap: 5px;
}

.sidebar a {
    padding: 11px 12px;

    border-radius: 7px;

    font-size: 13px;
}

.sidebar a:hover {
    background: #eef3f7;
}

.content {
    flex: 1;

    padding: 26px;

    max-width: 1500px;

    margin: auto;

    width: 100%;
}


/* =========================================================
   PAGE HEAD
========================================================= */

.page-head {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 15px;

    margin-bottom: 20px;
}

.page-head h1 {
    margin: 0 0 5px;

    font-size: 23px;
}

.page-head p {
    margin: 0;

    color: #697586;
}


/* =========================================================
   PANELS
========================================================= */

.panel {
    background: #ffffff;

    border: 1px solid #e5e9ef;

    border-radius: 10px;

    padding: 20px;

    margin-bottom: 20px;

    box-shadow:
        0 3px 12px rgba(20, 30, 40, .03);
}

.narrow {
    max-width: 700px;

    margin: 50px auto;
}


/* =========================================================
   CARDS
========================================================= */

.cards {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));

    gap: 14px;

    margin-bottom: 20px;
}

.card {
    background: #ffffff;

    border: 1px solid #e5e9ef;

    border-radius: 10px;

    padding: 18px;

    min-height: 110px;
}

.card span {
    display: block;

    color: #697586;

    font-size: 12px;

    margin-bottom: 12px;
}

.card strong {
    font-size: 27px;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #cfd6df;

    background: #ffffff;

    border-radius: 6px;

    padding: 8px 12px;

    font-family: inherit;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;
}

.btn:hover {
    background: #f3f6f8;
}

.btn.primary {
    background: #176b87;

    color: #ffffff;

    border-color: #176b87;
}

.btn.primary:hover {
    background: #135a72;
}

.btn.danger {
    color: #a32929;
}

.btn.small {
    padding: 5px 8px;

    font-size: 11px;
}

.actions {
    display: flex;

    gap: 5px;

    flex-wrap: wrap;
}

.inline {
    display: inline;
}


/* =========================================================
   FILTERS
========================================================= */

.filters {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr auto auto;

    gap: 8px;
}


/* =========================================================
   FORM ELEMENTS
========================================================= */

input,
select,
textarea {
    width: 100%;

    padding: 9px 10px;

    border: 1px solid #ccd4dd;

    border-radius: 6px;

    background: #ffffff;

    font: inherit;

    font-size: 13px;

    margin-top: 6px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;

    border-color: #176b87;

    box-shadow:
        0 0 0 3px rgba(23, 107, 135, .08);
}

label {
    display: block;

    font-weight: 600;

    font-size: 12px;

    color: #394452;

    margin-bottom: 15px;
}

.grid-2 {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.form-panel {
    max-width: 1000px;
}


/* =========================================================
   TABLE
========================================================= */

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;

    border-collapse: collapse;
}

th,
td {
    text-align: left;

    padding: 11px 10px;

    border-bottom: 1px solid #edf0f3;

    font-size: 12px;

    vertical-align: middle;
}

th {
    font-size: 11px;

    text-transform: uppercase;

    color: #697586;

    font-weight: 700;
}


/* =========================================================
   STATUS
========================================================= */

.status {
    display: inline-block;

    padding: 5px 8px;

    border-radius: 12px;

    font-size: 10px;

    font-weight: 700;
}

.status-en_cours {
    background: #eef3f7;
}

.status-rejete_expediteur,
.status-rejete_tp {
    background: #fff0f0;

    color: #9c2929;
}

.status-ordonnateur {
    background: #fff6e8;

    color: #8a5a00;
}

.status-tp {
    background: #eef2ff;

    color: #3d4b8f;
}

.status-traite {
    background: #eaf8ef;

    color: #1d7540;
}


/* =========================================================
   DETAILS
========================================================= */

.details {
    display: grid;

    grid-template-columns: 170px 1fr;

    margin: 0;
}

.details dt,
.details dd {
    padding: 10px 0;

    border-bottom: 1px solid #edf0f3;
}

.details dt {
    font-weight: 600;

    color: #697586;
}

.details dd {
    margin: 0;
}


/* =========================================================
   TIMELINE
========================================================= */

.timeline {
    border-left: 2px solid #dfe5eb;

    padding-left: 18px;
}

.timeline-item {
    margin-bottom: 18px;

    position: relative;
}

.timeline-item:before {
    content: '';

    position: absolute;

    left: -25px;

    top: 3px;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #176b87;
}

.timeline-item strong {
    display: block;
}

.timeline-item span {
    font-size: 11px;

    color: #697586;
}

.timeline-item p {
    margin: 5px 0 0;

    color: #46515f;
}


/* =========================================================
   FILES
========================================================= */

.file-list {
    padding-left: 20px;
}

.file-list li {
    margin: 8px 0;
}

.file-list span {
    font-size: 10px;

    color: #697586;
}


/* =========================================================
   ALERT
========================================================= */

.alert {
    padding: 11px 13px;

    border-radius: 7px;

    margin-bottom: 15px;

    font-size: 12px;
}

.alert.success {
    background: #eaf8ef;

    color: #176337;
}

.alert.error {
    background: #fff0f0;

    color: #9c2929;
}


/* =========================================================
   SERVICE CHOICE
========================================================= */

.service-choice {
    display: grid;

    gap: 12px;
}

.service-card {
    padding: 18px;

    border: 1px solid #ccd4dd;

    border-radius: 8px;

    background: #ffffff;

    font-family: inherit;

    font-weight: 600;

    text-align: left;

    cursor: pointer;
}

.service-card.theme-pharma:hover {
    border-color: #6da889;

    background: #f0faf3;
}

.service-card.theme-divers:hover {
    border-color: #679db4;

    background: #f0f8fb;
}


/* =========================================================
   NOTIFICATIONS
========================================================= */

.notification-list {
    display: flex;

    flex-direction: column;
}

.notification-item {
    padding: 14px 0;

    border-bottom: 1px solid #edf0f3;

    display: flex;

    align-items: center;

    gap: 15px;
}

.notification-item strong {
    flex: 1;
}

.notification-item span {
    font-size: 10px;

    color: #697586;
}


/* =========================================================
   =========================================================
   LOGIN DESIGN
   =========================================================
   ========================================================= */

.login-page {
    margin: 0 !important;
    padding: 0 !important;

    width: 100%;
    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            #064f82 0%,
            #096a9f 50%,
            #0b789b 100%
        ) !important;

    font-family: 'Montserrat', sans-serif !important;

    overflow-x: hidden;
}


/* SCREEN */

.login-screen {
    width: 100%;
    min-height: 100vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 45px 25px;
}


/* MAIN CARD */

.login-container {
    width: 100%;

    max-width: 960px;

    min-height: 500px;

    display: grid;

    grid-template-columns: 46% 54%;

    background: #ffffff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .25);
}


/* =========================================================
   LEFT SIDE
========================================================= */

.login-left {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 55px 45px;

    background:
        linear-gradient(
            145deg,
            #07558b 0%,
            #086b9c 55%,
            #0a789d 100%
        );

    overflow: hidden;
}


/* Decorative circles */

.login-left::before {
    content: '';

    position: absolute;

    width: 330px;
    height: 330px;

    border: 1px solid rgba(255,255,255,.10);

    border-radius: 50%;

    top: -150px;
    left: -140px;
}

.login-left::after {
    content: '';

    position: absolute;

    width: 420px;
    height: 420px;

    border: 1px solid rgba(255,255,255,.07);

    border-radius: 50%;

    bottom: -240px;
    right: -210px;
}


/* LEFT CONTENT */

.login-left-content {
    width: 100%;

    max-width: 390px;

    text-align: center;

    position: relative;

    z-index: 2;
}


/* LOGO */

.login-logo {
    width: 100%;

    height: 190px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 20px;
}

.login-logo img {
    display: block;

    width: auto;

    height: auto;

    max-width: 330px;

    max-height: 190px;

    object-fit: contain;
}


/* BRAND */

.login-brand-title h1 {
    margin: 0;

    color: #ffffff;

    font-size: 24px;

    line-height: 1.35;

    font-weight: 600;

    letter-spacing: -.3px;
}

.login-brand-title p {
    margin: 9px 0 0;

    color: rgba(255,255,255,.82);

    font-size: 12px;

    font-weight: 400;
}


/* DECORATION */

.login-decoration {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 6px;

    margin: 22px 0;
}

.login-decoration span {
    display: block;

    height: 3px;

    border-radius: 5px;

    background: rgba(255,255,255,.85);
}

.login-decoration span:nth-child(1) {
    width: 35px;
}

.login-decoration span:nth-child(2) {
    width: 8px;
}

.login-decoration span:nth-child(3) {
    width: 8px;
}


/* DESCRIPTION */

.login-brand-description {
    margin: 0 auto;

    max-width: 300px;

    color: rgba(255,255,255,.72);

    font-size: 10px;

    line-height: 1.8;
}


/* =========================================================
   RIGHT SIDE
========================================================= */

.login-right {
    background: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 55px 65px;
}


/* FORM CONTAINER */

.login-form-container {
    width: 100%;

    max-width: 360px;
}


/* HEADER */

.login-header {
    margin-bottom: 30px;
}

.login-welcome {
    display: block;

    margin-bottom: 8px;

    color: #0a7199;

    font-size: 11px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1.2px;
}

.login-header h2 {
    margin: 0;

    color: #172b3a;

    font-size: 29px;

    line-height: 1.2;

    font-weight: 700;
}

.login-header p {
    margin: 10px 0 0;

    color: #7a8793;

    font-size: 11px;

    line-height: 1.7;
}


/* ERROR */

.login-error {
    padding: 11px 13px;

    margin-bottom: 20px;

    border-radius: 7px;

    background: #fff1f1;

    border: 1px solid #f3cccc;

    color: #a32b2b;

    font-size: 11px;

    line-height: 1.5;
}


/* FORM */

.login-form {
    width: 100%;
}


/* INPUT GROUP */

.login-input-group {
    margin-bottom: 19px;
}

.login-input-group label {
    display: block;

    margin: 0 0 7px;

    color: #344654;

    font-size: 11px;

    font-weight: 600;
}


/* INPUT */

.login-input-group input {
    display: block;

    width: 100%;

    height: 46px;

    margin: 0;

    padding: 0 14px;

    border: 1px solid #d8e0e6;

    border-radius: 7px;

    background: #f9fbfc;

    color: #263746;

    font-family: 'Montserrat', sans-serif;

    font-size: 12px;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.login-input-group input::placeholder {
    color: #a7b1ba;
}

.login-input-group input:hover {
    border-color: #b8c6d0;
}

.login-input-group input:focus {
    outline: none;

    background: #ffffff;

    border-color: #0a7199;

    box-shadow:
        0 0 0 3px rgba(10,113,153,.09);
}


/* BUTTON */

.login-button {
    width: 100%;

    height: 46px;

    margin-top: 5px;

    border: 0;

    border-radius: 7px;

    background:
        linear-gradient(
            135deg,
            #07598c,
            #08759d
        );

    color: #ffffff;

    font-family: 'Montserrat', sans-serif;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(7,89,140,.20);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}

.login-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 11px 25px rgba(7,89,140,.27);
}

.login-button:active {
    transform: translateY(0);
}


/* FORM FOOTER */

.login-form-footer {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin-top: 28px;

    color: #9aa5ae;

    font-size: 9px;
}

.footer-separator {
    color: #c5ccd1;
}


/* PAGE FOOTER */

.login-page-footer {
    margin-top: 22px;

    color: rgba(255,255,255,.62);

    font-size: 9px;

    text-align: center;
}


/* =========================================================
   SERVICE THEMES
========================================================= */

.theme-pharma .brand {
    color: #2d8156;
}

.theme-divers .brand {
    color: #1d708a;
}


/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 900px) {

    .sidebar {
        width: 190px;
    }

    .filters {
        grid-template-columns:
            1fr 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }


    /* LOGIN */

    .login-container {
        max-width: 760px;

        grid-template-columns:
            44% 56%;
    }

    .login-left {
        padding: 40px 25px;
    }

    .login-right {
        padding: 45px 40px;
    }

    .login-logo {
        height: 160px;
    }

    .login-logo img {
        max-width: 270px;

        max-height: 160px;
    }

    .login-brand-title h1 {
        font-size: 20px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 680px) {

    .topbar {
        padding: 0 12px;
    }

    .top-actions span {
        display: none;
    }

    .layout {
        display: block;
    }

    .sidebar {
        width: 100%;

        flex-direction: row;

        overflow-x: auto;

        border-right: 0;

        border-bottom: 1px solid #e5e9ef;
    }

    .content {
        padding: 15px;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .page-head {
        flex-direction: column;
    }

    .details {
        grid-template-columns: 1fr;
    }

    .details dt {
        border: 0;

        padding-bottom: 3px;
    }

    .details dd {
        padding-top: 0;
    }


    /* ==============================================
       LOGIN MOBILE
    ============================================== */

    .login-screen {
        min-height: 100vh;

        padding: 20px 14px;
    }

    .login-container {
        width: 100%;

        max-width: 430px;

        display: flex;

        flex-direction: column;

        min-height: auto;

        border-radius: 15px;
    }

    .login-left {
        min-height: 300px;

        padding: 35px 25px;
    }

    .login-left-content {
        max-width: 330px;
    }

    .login-logo {
        height: 125px;

        margin-bottom: 12px;
    }

    .login-logo img {
        max-width: 245px;

        max-height: 125px;
    }

    .login-brand-title h1 {
        font-size: 19px;
    }

    .login-brand-title p {
        font-size: 10px;
    }

    .login-brand-description {
        font-size: 9px;

        max-width: 270px;
    }


    .login-right {
        padding: 35px 28px 30px;

        display: block;
    }

    .login-form-container {
        max-width: none;
    }

    .login-header {
        margin-bottom: 25px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .login-input-group {
        margin-bottom: 16px;
    }

    .login-button {
        margin-top: 4px;
    }

    .login-page-footer {
        margin-top: 15px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media screen and (max-width: 390px) {

    .login-screen {
        padding: 12px;
    }

    .login-left {
        min-height: 270px;

        padding: 28px 18px;
    }

    .login-logo {
        height: 105px;
    }

    .login-logo img {
        max-width: 210px;

        max-height: 105px;
    }

    .login-brand-title h1 {
        font-size: 17px;
    }

    .login-right {
        padding: 30px 20px 25px;
    }

    .login-header h2 {
        font-size: 22px;
    }

}
/* =========================================================
   SIDEBAR SERVICE THEMES
   Pharmaceutiques = Vert clair
   Diverses et Fonctionnelles = Bleu clair
========================================================= */

/* Base sidebar */
.sidebar {
    background: #ffffff;
    border-right: 1px solid #e3e8ec;
    padding: 16px 12px;
    transition: background-color .2s ease, border-color .2s ease;
}

/* All sidebar links */
.sidebar a {
    display: block;
    color: #45525d;
    font-weight: 500;
    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}

/* -----------------------------------------
   PHARMACEUTIQUES — VERT
----------------------------------------- */

body.theme-pharma .sidebar {
    background: #f2faf5;
    border-right-color: #cfe6d7;
}

body.theme-pharma .sidebar a {
    color: #315f46;
    border-left: 3px solid transparent;
}

body.theme-pharma .sidebar a:hover {
    background: #dff2e6;
    color: #23663d;
    border-left-color: #58a878;
}

body.theme-pharma .sidebar a.active,
body.theme-pharma .sidebar a[aria-current="page"] {
    background: #cfead8;
    color: #1f653a;
    border-left-color: #3d9a61;
    font-weight: 700;
}

/* Brand/topbar follows the service */
body.theme-pharma .topbar {
    border-bottom-color: #cfe6d7;
}

body.theme-pharma .brand {
    color: #2d8156;
}

body.theme-pharma .badge {
    background: #4f9f70;
}

body.theme-pharma .btn.primary {
    background: #3d9560;
    border-color: #3d9560;
}

body.theme-pharma .btn.primary:hover {
    background: #327d50;
}

body.theme-pharma input:focus,
body.theme-pharma select:focus,
body.theme-pharma textarea:focus {
    border-color: #4f9f70;
    box-shadow: 0 0 0 3px rgba(79, 159, 112, .10);
}


/* -----------------------------------------
   DIVERS ET FONCTIONNELLE — BLEU
----------------------------------------- */

body.theme-divers .sidebar {
    background: #f1f8fb;
    border-right-color: #cfe2eb;
}

body.theme-divers .sidebar a {
    color: #315a6c;
    border-left: 3px solid transparent;
}

body.theme-divers .sidebar a:hover {
    background: #dceff6;
    color: #1f6783;
    border-left-color: #4c9ab9;
}

body.theme-divers .sidebar a.active,
body.theme-divers .sidebar a[aria-current="page"] {
    background: #cfe7f1;
    color: #1f6681;
    border-left-color: #3b8eae;
    font-weight: 700;
}

/* Brand/topbar follows the service */
body.theme-divers .topbar {
    border-bottom-color: #cfe2eb;
}

body.theme-divers .brand {
    color: #1d708a;
}

body.theme-divers .badge {
    background: #3d8daa;
}

body.theme-divers .btn.primary {
    background: #287e9d;
    border-color: #287e9d;
}

body.theme-divers .btn.primary:hover {
    background: #216b87;
}

body.theme-divers input:focus,
body.theme-divers select:focus,
body.theme-divers textarea:focus {
    border-color: #3d8daa;
    box-shadow: 0 0 0 3px rgba(61, 141, 170, .10);
}


/* -----------------------------------------
   SIDEBAR ON MOBILE
----------------------------------------- */

@media screen and (max-width: 680px) {

    body.theme-pharma .sidebar {
        border-right: 0;
        border-bottom-color: #cfe6d7;
    }

    body.theme-divers .sidebar {
        border-right: 0;
        border-bottom-color: #cfe2eb;
    }

    .sidebar a {
        white-space: nowrap;
        border-left: 0 !important;
        border-bottom: 3px solid transparent;
    }

    body.theme-pharma .sidebar a:hover,
    body.theme-pharma .sidebar a.active,
    body.theme-pharma .sidebar a[aria-current="page"] {
        border-left-color: transparent;
        border-bottom-color: #3d9a61;
    }

    body.theme-divers .sidebar a:hover,
    body.theme-divers .sidebar a.active,
    body.theme-divers .sidebar a[aria-current="page"] {
        border-left-color: transparent;
        border-bottom-color: #3b8eae;
    }
}

/* =========================================================
   STATISTIQUES - GRAPHIQUES STYLE MODERNE
========================================================= */

.statistics-chart-panel {
    position: relative;
    overflow: hidden;
}

.statistics-chart-panel h2 {
    margin-bottom: 20px;
}


/* Conteneur du graphique */

.statistics-chart-box {
    position: relative;
    width: 100%;
    height: 390px;
    margin-top: 20px;
    padding: 10px 5px 5px;
}


/* Canvas */

.statistics-chart-box canvas {
    width: 100% !important;
    height: 100% !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .statistics-chart-box {
        height: 340px;
    }

}


@media (max-width: 600px) {

    .statistics-chart-box {
        height: 300px;
        padding: 5px 0;
    }

}

/* =========================================================
   STATISTIQUES - GRAPHIQUES
========================================================= */

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.statistics-chart-panel {
    position: relative;
    overflow: hidden;
}

.statistics-chart-panel h2 {
    margin-bottom: 10px;
}

.statistics-chart-box {
    position: relative;
    width: 100%;
    height: 390px;
    margin-top: 15px;
}

.statistics-chart-box canvas {
    width: 100% !important;
    height: 100% !important;
}


@media (max-width: 900px) {

    .statistics-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .statistics-chart-box {
        height: 300px;
    }

}


/* =========================================================
   FINAL SERVICE SIDEBAR DESIGN
   PHARMACEUTIQUES = VERT
   DIVERS ET FONCTIONNELLES = BLEU
========================================================= */

/* =========================
   SIDEBAR BASE
========================= */

.sidebar {
    width: 230px !important;
    padding: 18px 12px !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;

    background: #ffffff !important;
    border-right: 1px solid #e3e8ec !important;
}


/* =========================
   SIDEBAR BUTTONS
========================= */

.sidebar a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    width: 100% !important;
    min-height: 46px !important;

    padding: 11px 14px !important;
    margin: 0 !important;

    border: 1px solid #e2e7eb !important;
    border-radius: 9px !important;

    background: #ffffff !important;

    color: #45525d !important;

    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;

    text-decoration: none !important;

    box-sizing: border-box !important;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease !important;
}


/* =========================
   PHARMACEUTIQUES
   VERT
========================= */

body.theme-pharma .sidebar {
    background: #f2faf5 !important;
    border-right-color: #cfe6d7 !important;
}


body.theme-pharma .sidebar a {
    background: #ffffff !important;

    color: #315f46 !important;

    border-color: #d5e9dc !important;
}


/* Hover */

body.theme-pharma .sidebar a:hover {
    background: #dff2e6 !important;

    color: #23663d !important;

    border-color: #82bd99 !important;

    transform: translateX(2px) !important;

    box-shadow:
        0 4px 12px rgba(61, 154, 97, 0.15) !important;
}


/* Active */

body.theme-pharma .sidebar a.active,
body.theme-pharma .sidebar a[aria-current="page"] {
    background: #3d9560 !important;

    color: #ffffff !important;

    border-color: #3d9560 !important;

    font-weight: 700 !important;

    box-shadow:
        0 4px 12px rgba(61, 149, 96, 0.22) !important;
}


/* =========================
   DIVERS
   BLEU
========================= */

body.theme-divers .sidebar {
    background: #f1f8fb !important;

    border-right-color: #cfe2eb !important;
}


body.theme-divers .sidebar a {
    background: #ffffff !important;

    color: #315a6c !important;

    border-color: #d6e8f0 !important;
}


/* Hover */

body.theme-divers .sidebar a:hover {
    background: #dceff6 !important;

    color: #1f6783 !important;

    border-color: #80b8ce !important;

    transform: translateX(2px) !important;

    box-shadow:
        0 4px 12px rgba(40, 126, 157, 0.15) !important;
}


/* Active */

body.theme-divers .sidebar a.active,
body.theme-divers .sidebar a[aria-current="page"] {
    background: #287e9d !important;

    color: #ffffff !important;

    border-color: #287e9d !important;

    font-weight: 700 !important;

    box-shadow:
        0 4px 12px rgba(40, 126, 157, 0.22) !important;
}


/* =========================
   BRAND
========================= */

body.theme-pharma .brand {
    color: #2d8156 !important;
}


body.theme-divers .brand {
    color: #1d708a !important;
}


/* =========================
   NOTIFICATION BADGE
========================= */

body.theme-pharma .badge {
    background: #4f9f70 !important;
}


body.theme-divers .badge {
    background: #3d8daa !important;
}


/* =========================
   PRIMARY BUTTONS
========================= */

body.theme-pharma .btn.primary {
    background: #3d9560 !important;

    border-color: #3d9560 !important;

    color: #ffffff !important;
}


body.theme-pharma .btn.primary:hover {
    background: #327d50 !important;

    border-color: #327d50 !important;
}


body.theme-divers .btn.primary {
    background: #287e9d !important;

    border-color: #287e9d !important;

    color: #ffffff !important;
}


body.theme-divers .btn.primary:hover {
    background: #216b87 !important;

    border-color: #216b87 !important;
}


/* =========================
   INPUT FOCUS
========================= */

body.theme-pharma input:focus,
body.theme-pharma select:focus,
body.theme-pharma textarea:focus {
    border-color: #4f9f70 !important;

    box-shadow:
        0 0 0 3px rgba(79, 159, 112, 0.10) !important;
}


body.theme-divers input:focus,
body.theme-divers select:focus,
body.theme-divers textarea:focus {
    border-color: #3d8daa !important;

    box-shadow:
        0 0 0 3px rgba(61, 141, 170, 0.10) !important;
}


/* =========================
   CARDS
========================= */

body.theme-pharma .card {
    border-top: 3px solid #3d9560 !important;
}


body.theme-divers .card {
    border-top: 3px solid #287e9d !important;
}


/* =========================
   PAGE TITLE
========================= */

body.theme-pharma .page-head h1 {
    color: #205f3b !important;
}


body.theme-divers .page-head h1 {
    color: #124d7c !important;
}


/* =========================
   TABLE HEADER
========================= */

body.theme-pharma th {
    color: #247047 !important;
}


body.theme-divers th {
    color: #12558a !important;
}


/* =========================
   TIMELINE
========================= */

body.theme-pharma .timeline-item:before {
    background: #3d9560 !important;
}


body.theme-divers .timeline-item:before {
    background: #287e9d !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 680px) {

    .sidebar {
        width: 100% !important;

        display: flex !important;

        flex-direction: row !important;

        align-items: stretch !important;

        gap: 8px !important;

        padding: 10px !important;

        overflow-x: auto !important;

        overflow-y: hidden !important;

        border-right: 0 !important;
    }


    .sidebar a {
        width: auto !important;

        min-width: 125px !important;

        max-width: none !important;

        min-height: 44px !important;

        flex: 0 0 auto !important;

        justify-content: center !important;

        text-align: center !important;

        white-space: nowrap !important;

        padding: 10px 15px !important;

        margin: 0 !important;

        border: 1px solid #e2e7eb !important;

        border-radius: 9px !important;

        transform: none !important;
    }


    .sidebar a:hover {
        transform: none !important;
    }


    /* MOBILE PHARMA */

    body.theme-pharma .sidebar {
        background: #f2faf5 !important;

        border-bottom: 1px solid #cfe6d7 !important;
    }


    body.theme-pharma .sidebar a {
        background: #ffffff !important;

        color: #315f46 !important;
    }


    body.theme-pharma .sidebar a:hover {
        background: #dff2e6 !important;

        color: #23663d !important;

        border-color: #82bd99 !important;
    }


    body.theme-pharma .sidebar a.active,
    body.theme-pharma .sidebar a[aria-current="page"] {
        background: #3d9560 !important;

        color: #ffffff !important;

        border-color: #3d9560 !important;
    }


    /* MOBILE DIVERS */

    body.theme-divers .sidebar {
        background: #f1f8fb !important;

        border-bottom: 1px solid #cfe2eb !important;
    }


    body.theme-divers .sidebar a {
        background: #ffffff !important;

        color: #315a6c !important;
    }


    body.theme-divers .sidebar a:hover {
        background: #dceff6 !important;

        color: #1f6783 !important;

        border-color: #80b8ce !important;
    }


    body.theme-divers .sidebar a.active,
    body.theme-divers .sidebar a[aria-current="page"] {
        background: #287e9d !important;

        color: #ffffff !important;

        border-color: #287e9d !important;
    }
}

/* =========================================================
   LOGIN - TYPOGRAPHIE INVERSEE
========================================================= */

/* BIENVENUE = GRAND */
.login-welcome {
    display: block !important;

    font-size: 26px !important;
    line-height: 1.2 !important;

    font-weight: 700 !important;

    letter-spacing: 2px !important;

    margin-bottom: 8px !important;
}


/* CONNEXION = PLUS PETIT */
.login-header h2 {
    font-size: 18px !important;

    line-height: 1.2 !important;

    font-weight: 700 !important;

    margin: 0 !important;
}


/* TEXTE SOUS CONNEXION */
.login-header p {
    font-size: 11px !important;

    line-height: 1.6 !important;

    margin-top: 9px !important;
}


/* LABELS = PLUS PETITS */
.login-input-group label {
    font-size: 10px !important;

    line-height: 1.4 !important;

    font-weight: 600 !important;

    margin-bottom: 7px !important;
}


/* CHAMPS */
.login-input-group input {
    height: 46px !important;

    padding: 0 14px !important;

    font-size: 11px !important;

    border-radius: 7px !important;
}


/* PLACEHOLDER */
.login-input-group input::placeholder {
    font-size: 10px !important;
}


/* ESPACEMENT */
.login-input-group {
    margin-bottom: 18px !important;
}


/* BOUTON */
.login-button {
    height: 46px !important;

    font-size: 11px !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {

    .login-welcome {
        font-size: 14px !important;
        letter-spacing: 1.7px !important;
    }

    .login-header h2 {
        font-size: 23px !important;
    }

    .login-header p {
        font-size: 10px !important;
    }

    .login-input-group label {
        font-size: 10px !important;
    }

    .login-input-group input {
        height: 46px !important;
        font-size: 11px !important;
    }

    .login-button {
        height: 46px !important;
        font-size: 11px !important;
    }
}