/* =====================================================
   PAGE FACTURES — DESIGN SOCOPRED
===================================================== */

.invoice-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 34px 0 26px;
}

.page-eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #0c9b84;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.invoice-page-heading h1 {
    margin: 0;
    color: #17312d;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -.7px;
}

.invoice-page-heading p {
    margin: 8px 0 0;
    color: #7f908b;
    font-size: 13px;
    line-height: 1.5;
}


/* =====================================================
   BOUTON PRINCIPAL
===================================================== */

.invoice-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 46px;
    padding: 0 18px;

    border-radius: 12px;
    background: #0c9b84;
    color: #fff;

    text-decoration: none;
    font-size: 12px;
    font-weight: 750;

    box-shadow: 0 8px 22px rgba(12, 155, 132, .16);

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.invoice-primary-button:hover {
    background: #087d6b;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(12, 155, 132, .20);
}

.plus-icon {
    width: 25px;
    height: 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;
    background: rgba(255, 255, 255, .16);

    font-size: 18px;
    line-height: 1;
}


/* =====================================================
   STATISTIQUES
===================================================== */

.invoice-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 300px));
    gap: 18px;
    margin-bottom: 22px;
}

.invoice-stat-card {
    display: flex;
    align-items: center;
    gap: 15px;

    min-height: 78px;
    padding: 17px 20px;

    background: #fff;
    border: 1px solid #e7efec;
    border-radius: 16px;

    box-shadow: 0 5px 18px rgba(27, 58, 51, .035);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.invoice-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 24px rgba(27, 58, 51, .07);
}

.invoice-stat-icon {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 12px;
    background: #e8f7f3;
    color: #0c9b84;

    font-size: 17px;
    font-weight: 800;
}

.invoice-stat-icon.money {
    font-size: 9px;
    letter-spacing: .2px;
}

.invoice-stat-card div:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.invoice-stat-card span {
    color: #8c9b97;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.invoice-stat-card strong {
    color: #263c37;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 750;
}


/* =====================================================
   RECHERCHE
===================================================== */

.invoice-toolbar {
    margin-bottom: 20px;
}

.invoice-search {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 50px;

    background: #fff;
    border: 1px solid #e3ece9;
    border-radius: 13px;

    box-shadow: 0 4px 16px rgba(27, 58, 51, .025);

    overflow: hidden;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.invoice-search:focus-within {
    border-color: #a9d9cf;
    box-shadow: 0 0 0 3px rgba(12, 155, 132, .07);
}

.search-icon {
    padding-left: 17px;
    color: #92a29e;
    font-size: 20px;
}

.invoice-search input {
    flex: 1;

    width: 100%;
    height: 48px;

    padding: 0 13px;

    border: none;
    outline: none;

    background: transparent;
    color: #344944;

    font-family: inherit;
    font-size: 12px;
}

.invoice-search input::placeholder {
    color: #a4b0ad;
}

.invoice-search button {
    height: 37px;
    margin-right: 7px;
    padding: 0 17px;

    border: none;
    border-radius: 9px;

    background: #eaf7f4;
    color: #087d6b;

    font-family: inherit;
    font-size: 10px;
    font-weight: 750;

    cursor: pointer;

    transition: .2s ease;
}

.invoice-search button:hover {
    background: #dff1ec;
}

.clear-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    margin-right: 4px;

    border-radius: 50%;

    color: #8c9b97;
    text-decoration: none;

    font-size: 19px;
}

.clear-search:hover {
    background: #f0f4f3;
    color: #087d6b;
}


/* =====================================================
   LISTE DES FACTURES
===================================================== */

.invoice-list-card {
    background: #fff;
    border: 1px solid #e5edeb;
    border-radius: 17px;

    box-shadow: 0 6px 22px rgba(27, 58, 51, .035);

    overflow: hidden;
}

.invoice-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 22px 23px;

    border-bottom: 1px solid #edf2f0;
}

.invoice-list-header span:first-child {
    color: #0c9b84;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.invoice-list-header h2 {
    margin: 5px 0 0;

    color: #263c37;
    font-size: 17px;
    font-weight: 750;
}

.invoice-result-count {
    padding: 7px 11px;

    border-radius: 20px;
    background: #f0f7f5;

    color: #71827d;
    font-size: 10px;
    font-weight: 650;
}


/* =====================================================
   TABLEAU
===================================================== */

.invoice-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.invoice-table {
    width: 100%;
    min-width: 900px;

    border-collapse: collapse;
}

.invoice-table th {
    padding: 14px 18px;

    background: #f7faf9;

    color: #84938f;

    font-size: 9px;
    font-weight: 800;

    text-align: left;
    letter-spacing: .8px;

    border-bottom: 1px solid #e8efed;
    white-space: nowrap;
}

.invoice-table td {
    padding: 17px 18px;

    color: #475a55;

    font-size: 11px;

    border-bottom: 1px solid #f0f3f2;

    vertical-align: middle;
}

.invoice-table tbody tr {
    transition: background .15s ease;
}

.invoice-table tbody tr:last-child td {
    border-bottom: none;
}

.invoice-table tbody tr:hover {
    background: #fbfdfc;
}


/* =====================================================
   NUMÉRO DE FACTURE
===================================================== */

.invoice-number {
    display: flex;
    align-items: center;
    gap: 11px;
}

.invoice-mini-icon {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;
    background: #e9f8f4;
    color: #0c9b84;

    font-size: 13px;
}

.invoice-number div:last-child,
.invoice-client {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.invoice-number strong,
.invoice-client strong {
    color: #344944;

    font-size: 11px;
    font-weight: 750;
}

.invoice-number span,
.invoice-client span {
    color: #9aa8a4;
    font-size: 9px;
}


/* =====================================================
   DATE / MONTANT
===================================================== */

.invoice-date {
    color: #667873;
    font-size: 10px;
    white-space: nowrap;
}

.invoice-amount {
    color: #087d6b;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}


/* =====================================================
   STATUT
===================================================== */

.invoice-status {
    display: inline-flex;
    align-items: center;

    padding: 7px 11px;

    border-radius: 20px;

    background: #e8f7f3;
    color: #087d6b;

    font-size: 9px;
    font-weight: 750;

    white-space: nowrap;
}

.status-annulee,
.status-annulée {
    background: #fff0ef;
    color: #bd5951;
}

.status-brouillon {
    background: #f3f5f5;
    color: #7d8b88;
}

.status-generee {
    background: #e8f7f3;
    color: #087d6b;
}


/* =====================================================
   ACTIONS
===================================================== */

.invoice-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.invoice-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 31px;
    padding: 0 10px;

    border: 1px solid #e2eae8;
    border-radius: 8px;

    background: #fff;

    color: #61736f;

    text-decoration: none;

    font-size: 9px;
    font-weight: 700;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.invoice-actions a:hover {
    border-color: #bfe2d9;
    background: #edf8f5;
    color: #087d6b;
    transform: translateY(-1px);
}


/* =====================================================
   AUCUNE FACTURE
===================================================== */

.invoice-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 360px;
    padding: 35px;

    text-align: center;
}

.invoice-empty-icon {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;

    border-radius: 19px;
    background: #edf7f5;
    color: #79a59d;

    font-size: 24px;
}

.invoice-empty h3 {
    color: #52645f;
    font-size: 15px;
    font-weight: 750;
}

.invoice-empty p {
    margin-top: 7px;
    color: #9ca9a6;
    font-size: 11px;
}

.invoice-empty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 18px;
    min-height: 38px;
    padding: 0 15px;

    border-radius: 10px;

    background: #0c9b84;
    color: #fff;

    text-decoration: none;

    font-size: 10px;
    font-weight: 750;

    transition: .2s ease;
}

.invoice-empty-button:hover {
    background: #087d6b;
    transform: translateY(-1px);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .invoice-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .invoice-primary-button {
        width: auto;
    }

    .invoice-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 700px) {

    .invoice-page-heading {
        padding-top: 25px;
    }

    .invoice-page-heading h1 {
        font-size: 26px;
    }

    .invoice-page-heading p {
        font-size: 12px;
    }

    .invoice-primary-button {
        width: 100%;
    }

    .invoice-stats {
        grid-template-columns: 1fr;
    }

    .invoice-search button {
        display: none;
    }

    .invoice-list-header {
        padding: 18px;
    }

    .invoice-table th,
    .invoice-table td {
        padding-left: 14px;
        padding-right: 14px;
    }
}

.sidebar-logo {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    overflow: hidden;

    background: transparent;

    border: none;

    box-shadow: none;
}

.sidebar-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    background: transparent;

    border: none;

    box-shadow: none;

    /* Permet au blanc de l'image de se fondre
       avec le fond clair de la sidebar */
    mix-blend-mode: multiply;
}