/* =====================================================
   PAGE PROFORMAS
===================================================== */

.proforma-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    padding: 38px 0 25px;
}

.proforma-page-heading .page-eyebrow {
    color: #0c9b84;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.proforma-page-heading h1 {
    margin-top: 8px;
    color: #17312d;
    font-size: 32px;
    letter-spacing: -1px;
}

.proforma-page-heading p {
    margin-top: 7px;
    color: #82918e;
    font-size: 12px;
}


/* =====================================================
   BOUTON PRINCIPAL
===================================================== */

.proforma-primary-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 13px 17px;

    border-radius: 11px;

    background: #0c9b84;
    color: #fff;

    text-decoration: none;

    font-size: 11px;
    font-weight: 750;

    box-shadow: 0 10px 25px rgba(12,155,132,.18);

    transition: .2s ease;
}

.proforma-primary-button:hover {
    background: #087d6b;
    transform: translateY(-2px);
}

.proforma-primary-button .plus-icon {
    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: rgba(255,255,255,.15);

    font-size: 17px;
}


/* =====================================================
   STATISTIQUES
===================================================== */

.proforma-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 280px));

    gap: 15px;

    margin-bottom: 20px;
}

.proforma-stat-card {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 17px 19px;

    background: #fff;

    border: 1px solid #e8efed;
    border-radius: 14px;

    transition: .2s ease;
}

.proforma-stat-card:hover {
    border-color: #d5e8e3;
    transform: translateY(-1px);
}

.proforma-stat-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 11px;

    background: #e8f8f4;
    color: #0c9b84;

    font-size: 15px;
    font-weight: 800;
}

.proforma-stat-icon.money {
    font-size: 7px;
    letter-spacing: .2px;
}

.proforma-stat-card div:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.proforma-stat-card span {
    color: #99a7a4;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1px;
}

.proforma-stat-card strong {
    color: #263c37;
    font-size: 17px;
}


/* =====================================================
   RECHERCHE
===================================================== */

.proforma-toolbar {
    margin-bottom: 17px;
}

.proforma-search {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 48px;

    background: #fff;

    border: 1px solid #e8efed;
    border-radius: 12px;

    overflow: hidden;

    transition: .2s ease;
}

.proforma-search:focus-within {
    border-color: #b9ded5;
    box-shadow: 0 0 0 3px rgba(12,155,132,.06);
}

.proforma-search .search-icon {
    padding-left: 16px;
    color: #9aa7a4;
    font-size: 18px;
}

.proforma-search input {
    flex: 1;

    height: 46px;

    padding: 0 12px;

    border: none;
    outline: none;

    background: transparent;

    color: #344944;

    font-family: inherit;
    font-size: 11px;
}

.proforma-search input::placeholder {
    color: #aab5b2;
}

.proforma-search button {
    height: 36px;

    margin-right: 6px;

    padding: 0 15px;

    border: none;
    border-radius: 8px;

    background: #edf8f5;
    color: #087d6b;

    font-family: inherit;

    font-size: 9px;
    font-weight: 750;

    cursor: pointer;

    transition: .2s ease;
}

.proforma-search button:hover {
    background: #dff3ee;
}

.proforma-clear-search {
    color: #9aa7a4;

    text-decoration: none;

    font-size: 17px;

    padding: 0 5px;
}


/* =====================================================
   LISTE
===================================================== */

.proforma-list-card {
    background: #fff;

    border: 1px solid #e8efed;
    border-radius: 16px;

    overflow: hidden;
}

.proforma-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 21px;

    border-bottom: 1px solid #edf2f0;
}

.proforma-list-header > div {
    display: flex;
    flex-direction: column;
}

.proforma-list-header span:first-child {
    color: #9aa7a4;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1.1px;
}

.proforma-list-header h2 {
    margin-top: 5px;

    color: #263c37;

    font-size: 15px;
}

.proforma-result-count {
    color: #94a29f;
    font-size: 9px;
}


/* =====================================================
   TABLEAU
===================================================== */

.proforma-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.proforma-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 850px;
}

.proforma-table th {
    padding: 13px 18px;

    background: #f8faf9;

    color: #98a6a3;

    font-size: 7px;
    font-weight: 800;

    text-align: left;

    letter-spacing: .8px;

    border-bottom: 1px solid #edf2f0;
}

.proforma-table td {
    padding: 15px 18px;

    border-bottom: 1px solid #f0f3f2;

    vertical-align: middle;
}

.proforma-table tbody tr {
    transition: background .15s ease;
}

.proforma-table tbody tr:hover {
    background: #fbfdfc;
}

.proforma-table tbody tr:last-child td {
    border-bottom: none;
}


/* =====================================================
   NUMÉRO PROFORMA
===================================================== */

.proforma-number {
    display: flex;
    align-items: center;
    gap: 10px;
}

.proforma-mini-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 9px;

    background: #e9f8f4;
    color: #0c9b84;

    font-size: 12px;
}

.proforma-number > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.proforma-number strong,
.proforma-client strong {
    color: #344944;
    font-size: 10px;
}

.proforma-number span,
.proforma-client span {
    color: #a0adaa;
    font-size: 8px;
}


/* =====================================================
   CLIENT
===================================================== */

.proforma-client {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


/* =====================================================
   DATE
===================================================== */

.proforma-date {
    color: #697b77;
    font-size: 9px;
}


/* =====================================================
   MONTANT
===================================================== */

.proforma-amount {
    color: #087d6b;
    font-size: 10px;
    font-weight: 700;
}


/* =====================================================
   STATUT
===================================================== */

.proforma-status {
    display: inline-flex;

    padding: 6px 9px;

    border-radius: 20px;

    background: #e9f8f4;
    color: #087d6b;

    font-size: 8px;
    font-weight: 700;
}

.proforma-status.status-annulee,
.proforma-status.status-annulée {
    background: #fff0ef;
    color: #bd5951;
}

.proforma-status.status-brouillon {
    background: #f3f5f5;
    color: #7d8b88;
}


/* =====================================================
   ACTIONS
===================================================== */

.proforma-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.proforma-actions a {
    padding: 7px 9px;

    border: 1px solid #e5ecea;
    border-radius: 7px;

    background: #fff;

    color: #61736f;

    text-decoration: none;

    font-size: 8px;
    font-weight: 650;

    transition: .2s ease;
}

.proforma-actions a:hover {
    border-color: #bfe2d9;

    background: #edf8f5;

    color: #087d6b;

    transform: translateY(-1px);
}


/* =====================================================
   AUCUNE PROFORMA
===================================================== */

.proforma-empty {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 350px;

    padding: 30px;

    text-align: center;
}

.proforma-empty-icon {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    border-radius: 18px;

    background: #edf7f5;
    color: #79a59d;

    font-size: 22px;
}

.proforma-empty h3 {
    color: #52645f;
    font-size: 13px;
}

.proforma-empty p {
    margin-top: 6px;

    color: #9ca9a6;
    font-size: 10px;
}

.proforma-empty-button {
    margin-top: 17px;

    padding: 10px 14px;

    border-radius: 9px;

    background: #0c9b84;
    color: #fff;

    text-decoration: none;

    font-size: 9px;
    font-weight: 700;

    transition: .2s ease;
}

.proforma-empty-button:hover {
    background: #087d6b;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 700px) {

    .proforma-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .proforma-page-heading h1 {
        font-size: 27px;
    }

    .proforma-primary-button {
        width: 100%;
        justify-content: center;
    }

    .proforma-stats {
        grid-template-columns: 1fr;
    }

    .proforma-search button {
        display: none;
    }

    .proforma-list-header {
        align-items: flex-start;
        gap: 10px;
        flex-direction: column;
    }

}

.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;
}