
/* ======================================================
   MAKE - CLIENT WISE FOLDER CARDS
   ====================================================== */


/* ------------------------------------------------------
   1. CLIENT FOLDERS GRID LAYOUT
   ------------------------------------------------------ */

#invoice-table .client-folders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    padding: 8px 2px 18px;
    width: 100%;
}


/* ------------------------------------------------------
   2. CLIENT FOLDER CARD
   ------------------------------------------------------ */

#invoice-table button.client-folder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 9px;

    min-width: 0;
    width: 100%;
    height: auto;
    min-height: 220px;

    margin: 0;
    padding: 22px;

    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;

    border: 1px solid #dce5dd;
    border-radius: 12px;

    background: #fff;
    color: #20382c;

    box-shadow: 0 3px 12px rgba(21, 62, 51, 0.05);

    font: 14px Arial, sans-serif;
    line-height: 1.5;

    cursor: pointer;
}


/* ------------------------------------------------------
   3. CLIENT FOLDER HOVER EFFECT
   ------------------------------------------------------ */

#invoice-table button.client-folder:hover {
    background: #f5f8f3;
    border-color: #b78c42;
    box-shadow: 0 5px 16px rgba(21, 62, 51, 0.1);
}


/* ------------------------------------------------------
   4. CLIENT FOLDER CONTENT
   ------------------------------------------------------ */

#invoice-table .client-folder > span,
#invoice-table .client-folder > strong {
    display: block;
    max-width: 100%;
}


/* ------------------------------------------------------
   5. FOLDER ICON
   ------------------------------------------------------ */

#invoice-table .client-folder .folder-icon {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 3px;
}


/* ------------------------------------------------------
   6. CLIENT NAME
   ------------------------------------------------------ */

#invoice-table .client-folder > strong {
    font-size: 18px;
    line-height: 1.4;
    color: #153e33;
}


/* ------------------------------------------------------
   7. INVOICE COUNT
   ------------------------------------------------------ */

#invoice-table .client-folder > span:nth-child(3) {
    font-size: 13px;
    color: #64776b;

    padding-bottom: 10px;

    border-bottom: 1px solid #e6ece5;

    width: 100%;
    margin-bottom: 2px;
}


/* ------------------------------------------------------
   8. CLIENT FOLDER BALANCE
   ------------------------------------------------------ */

#invoice-table .client-folder > span:last-child {
    font-weight: 700;
    color: #153e33;
}


/* ------------------------------------------------------
   9. SELECTED CLIENT FOLDER HEADING
   ------------------------------------------------------ */

#invoice-table .client-folder-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;

    margin: 8px 0 20px;
    padding: 14px 16px;

    background: #f5f8f3;

    border: 1px solid #e0e7dc;
    border-radius: 10px;
}


/* ------------------------------------------------------
   10. SELECTED CLIENT NAME
   ------------------------------------------------------ */

#invoice-table .client-folder-heading h3 {
    margin: 0;
    font-size: 18px;
    overflow-wrap: anywhere;
}


/* ------------------------------------------------------
   11. SELECTED CLIENT INVOICE COUNT
   ------------------------------------------------------ */

#invoice-table .client-folder-heading > span {
    color: #64776b;
    font-size: 13px;
}


/* ======================================================
   12. RESPONSIVE DESIGN - MOBILE DEVICES
   ====================================================== */

@media (max-width: 600px) {

    /* Single column folder layout */
    #invoice-table .client-folders {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    /* Compact client folder cards */
    #invoice-table button.client-folder {
        min-height: 0;
        padding: 18px;
    }

    /* Mobile folder heading alignment */
    #invoice-table .client-folder-heading {
        align-items: flex-start;
    }
}
