/* =========================================================
   WEBPANDA BILLING
   Client invoice list and billing overview UI.
   Standalone invoice CSS lives in webpanda-invoice.css.
   ========================================================= */

/* =========================================================
   WEBPANDA INVOICES PAGE
   ========================================================= */

.webpanda-invoices-page {
    padding: 46px 0 72px;
}

/* =========================================================
   Hero
   ========================================================= */

.webpanda-invoices-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
    padding: 36px 38px;
    background:
        radial-gradient(
            circle at 88% 18%,
            rgba(141, 210, 0, 0.14),
            transparent 32%
        ),
        #111418;
    border-radius: 18px;
}

.webpanda-invoices-hero-copy {
    flex: 1;
}

.webpanda-invoices-hero .webpanda-eyebrow {
    margin-bottom: 10px;
}

.webpanda-invoices-hero h1 {
    margin: 0 0 9px;
    color: #FFFFFF;
    font-family: "Montserrat", sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
}

.webpanda-invoices-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.60);
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    line-height: 1.65;
}

/* =========================================================
   Toolbar
   ========================================================= */

.webpanda-invoices-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

/* Filters */

.webpanda-invoices-filters {
    display: flex;
    align-items: center;
    gap: 7px;
}

.webpanda-invoice-filter {
    padding: 8px 13px;
    background: #FFFFFF;
    color: #737B84;
    border: 1px solid var(--wp-border);
    border-radius: 999px;
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.webpanda-invoice-filter:hover {
    color: #30353A;
    border-color: rgba(141, 210, 0, 0.55);
}

.webpanda-invoice-filter.active {
    background: #111418;
    color: #FFFFFF;
    border-color: #111418;
}

/* =========================================================
   Search
   ========================================================= */

.webpanda-invoices-search {
    position: relative;
    width: 250px;
    flex: 0 0 250px;
}

.webpanda-invoices-search i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #A0A6AC;
    font-size: 12px;
    pointer-events: none;
}

.webpanda-invoices-search input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 39px;
    background: #FFFFFF;
    color: #30353A;
    border: 1px solid var(--wp-border);
    border-radius: 10px;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    outline: 0;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.webpanda-invoices-search input:focus {
    border-color: var(--wp-green);
    box-shadow:
        0 0 0 3px rgba(141, 210, 0, 0.10);
}

.webpanda-invoices-search input::placeholder {
    color: #A0A6AC;
}

/* =========================================================
   Invoice Card
   ========================================================= */

.webpanda-invoices-card {
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--wp-border);
    border-radius: 16px;
    box-shadow:
        0 10px 28px rgba(17, 20, 24, 0.05);
}

/* Heading */

.webpanda-invoices-card-heading {
    padding: 19px 22px;
    border-bottom: 1px solid #EBEDF0;
}

.webpanda-invoices-card-title {
    display: flex;
    align-items: center;
    gap: 11px;
}

.webpanda-invoices-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(141, 210, 0, 0.11);
    color: var(--wp-green);
    border-radius: 9px;
    font-size: 13px;
}

.webpanda-invoices-card-heading h2 {
    margin: 0 0 2px;
    color: #24282E;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
}

#webpandaInvoiceCount {
    display: block;
    color: #91979E;
    font-family: "Montserrat", sans-serif;
    font-size: 9px;
}

/* =========================================================
   DataTables
   ========================================================= */

.webpanda-invoices-card .dataTables_wrapper {
    padding: 0 22px 18px;
}

.webpanda-invoices-page .dataTables_filter {
    display: none !important;
}

.webpanda-invoices-page .dataTables_info {
    padding-top: 16px !important;
    padding-bottom: 10px !important;
    color: #858C94;
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
}

.webpanda-invoices-page .dataTables_length {
    padding-top: 18px;
    color: #858C94;
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
}

.webpanda-invoices-page .dataTables_paginate {
    padding-top: 14px !important;
}

/* =========================================================
   Invoice Table
   ========================================================= */

.webpanda-invoices-table {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
}

.webpanda-invoices-table thead th {
    padding: 13px 14px !important;
    background: #FAFBFB !important;
    color: #949AA1 !important;
    border-top: 0 !important;
    border-bottom: 1px solid #E8EAED !important;
    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    vertical-align: middle;
}

.webpanda-invoices-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.webpanda-invoices-table tbody tr:hover {
    background: #FAFCF7;
}

.webpanda-invoices-table tbody td {
    padding: 15px 14px !important;
    color: #626A72;
    border-top: 0 !important;
    border-bottom: 1px solid #ECEEF0 !important;
    vertical-align: middle;
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
}

.webpanda-invoices-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

/* =========================================================
   Invoice Number
   ========================================================= */

.webpanda-invoice-number strong {
    color: #24282E;
    font-size: 11px;
    font-weight: 700;
}

/* =========================================================
   Dates
   ========================================================= */

.webpanda-invoice-date {
    max-width: 180px;
    color: #666E76 !important;
    line-height: 1.55;
}

/* =========================================================
   Total
   ========================================================= */

.webpanda-invoice-total strong {
    color: #3B4147;
    font-size: 11px;
    font-weight: 700;
}

/* =========================================================
   Status
   ========================================================= */

.webpanda-invoice-status {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 0 9px;
    border-radius: 999px;
    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    font-weight: 700;
}

/* Paid */

.webpanda-invoice-status-paid {
    background: rgba(141, 210, 0, 0.13);
    color: #5D8A00;
}

/* Unpaid */

.webpanda-invoice-status-unpaid {
    background: rgba(210, 50, 60, 0.10);
    color: #B53B43;
}

/* Cancelled */

.webpanda-invoice-status-cancelled {
    background: rgba(110, 118, 126, 0.11);
    color: #717981;
}

/* Refunded */

.webpanda-invoice-status-refunded {
    background: rgba(45, 130, 180, 0.10);
    color: #357BA3;
}

/* =========================================================
   View Button
   ========================================================= */

.webpanda-invoice-view-column {
    width: 100px;
}

.webpanda-invoice-view {
    text-align: right;
}

.webpanda-invoice-view-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    color: #454C53 !important;
    border: 1px solid #DDE1E4;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    font-weight: 600;
    text-decoration: none !important;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.webpanda-invoice-view-button i {
    color: var(--wp-green);
    font-size: 8px;
}

.webpanda-invoice-view-button:hover,
.webpanda-invoice-view-button:focus {
    background: rgba(141, 210, 0, 0.07);
    color: #24282E !important;
    border-color: rgba(141, 210, 0, 0.50);
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 991px) {
    .webpanda-invoices-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }
    .webpanda-invoices-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .webpanda-invoices-filters {
        overflow-x: auto;
        padding-bottom: 3px;
    }
    .webpanda-invoice-filter {
        flex: 0 0 auto;
    }
    .webpanda-invoices-search {
        width: 100%;
        flex-basis: auto;
    }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {
    .webpanda-invoices-page {
        padding: 32px 0 52px;
    }
    .webpanda-invoices-hero {
        padding: 28px 24px;
    }
    .webpanda-invoices-hero h1 {
        font-size: 29px;
    }
.webpanda-invoices-secondary-action {
        width: 100%;
    }
    .webpanda-invoices-card {
        overflow-x: auto;
    }
    .webpanda-invoices-card .dataTables_wrapper {
        padding-left: 14px;
        padding-right: 14px;
    }
    .webpanda-invoices-table {
        min-width: 820px;
    }
}

/* =========================================================
   Invoice Hero Summary
   ========================================================= */

.webpanda-invoices-hero-summary {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 0 0 auto;
    padding-left: 32px;
    border-left: 1px solid rgba(255, 255, 255, 0.10);
}

.webpanda-invoices-due-summary span {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.42);
    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.webpanda-invoices-due-summary strong {
    display: block;
    color: #FFFFFF;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 700;
}

/* =========================================================
   Invoice Hero Actions
   ========================================================= */

.webpanda-invoices-hero-actions {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    flex: 0 0 auto;
}

/* Shared button style */

.webpanda-invoices-unpaid-action,
.webpanda-invoices-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 9px;
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

/* View Unpaid */

.webpanda-invoices-unpaid-action {
    background: var(--wp-green);
    color: #111418 !important;
    border: 1px solid var(--wp-green);
}

.webpanda-invoices-unpaid-action:hover,
.webpanda-invoices-unpaid-action:focus {
    background: var(--wp-green-hover);
    color: #111418 !important;
    border-color: var(--wp-green-hover);
    transform: translateY(-1px);
    outline: none;
}

/* View Quotes */

.webpanda-invoices-secondary-action {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.webpanda-invoices-secondary-action:hover,
.webpanda-invoices-secondary-action:focus {
    background: rgba(255, 255, 255, 0.07);
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.30);
}

/* Mobile */

@media (max-width: 767px) {
    .webpanda-invoices-hero-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }
    .webpanda-invoices-unpaid-action,
}


/* =========================================================
   WEBPANDA QUOTES
   clientareaquotes.tpl
   ========================================================= */


/* =========================================================
   Page
   ========================================================= */

.webpanda-quotes-page {
    width: 100%;
    max-width: 1110px;

    margin: 0 auto;
    padding: 28px 0 55px;

    font-family: "Montserrat", sans-serif;
}


/* =========================================================
   Hero
   ========================================================= */

.webpanda-quotes-hero {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 35px;

    min-height: 190px;

    margin-bottom: 22px;
    padding: 34px 38px;

    background:
        radial-gradient(
            circle at 88% 8%,
            rgba(141, 210, 0, 0.14),
            transparent 33%
        ),
        linear-gradient(
            135deg,
            #111418 0%,
            #182017 100%
        );

    border-radius: 18px;
}

.webpanda-quotes-hero-copy {
    min-width: 0;
}

.webpanda-quotes-eyebrow {
    display: block;

    margin-bottom: 10px;

    color: #8DD200;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.14em;
}

.webpanda-quotes-hero h1 {
    margin: 0 0 8px;

    color: #FFFFFF;

    font-size: 29px;
    font-weight: 700;
    line-height: 1.2;
}

.webpanda-quotes-hero p {
    max-width: 650px;

    margin: 0;

    color: rgba(255, 255, 255, 0.57);

    font-size: 9px;
    line-height: 1.65;
}


/* Quote Count */

.webpanda-quotes-hero-side {
    display: flex;

    flex: 0 0 92px;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 92px;
    height: 92px;

    background: rgba(141, 210, 0, 0.10);

    border: 1px solid rgba(141, 210, 0, 0.20);
    border-radius: 20px;

    text-align: center;
}

.webpanda-quotes-hero-side span {
    color: #8DD200;

    font-size: 7px;
    font-weight: 700;

    letter-spacing: 0.06em;
}

.webpanda-quotes-hero-side strong {
    margin: 2px 0;

    color: #FFFFFF;

    font-size: 21px;
    font-weight: 700;
}

.webpanda-quotes-hero-side small {
    color: rgba(255, 255, 255, 0.45);

    font-size: 7px;
}


/* =========================================================
   Main Card
   ========================================================= */

.webpanda-quotes-card {
    overflow: hidden;

    background: #FFFFFF;

    border: 1px solid #E1E4E7;
    border-radius: 15px;

    box-shadow:
        0 10px 28px rgba(17, 20, 24, 0.04);
}

.webpanda-quotes-heading {
    display: grid;

    grid-template-columns:
        38px minmax(0, 1fr) auto;

    align-items: center;

    gap: 12px;

    padding: 18px 20px;

    border-bottom: 1px solid #ECEEEF;
}

.webpanda-quotes-heading-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    background: #EFF7E2;

    color: #68A000;

    border-radius: 9px;

    font-size: 10px;
}

.webpanda-quotes-heading-copy {
    min-width: 0;
}

.webpanda-quotes-heading h2 {
    margin: 0 0 3px;

    color: #30353A;

    font-size: 13px;
    font-weight: 700;
}

.webpanda-quotes-heading p {
    margin: 0;

    color: #92999F;

    font-size: 8px;
}

.webpanda-quotes-count {
    padding: 6px 9px;

    background: #F1F4F5;

    color: #7B8389;

    border-radius: 999px;

    font-size: 7px;
    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   Body / DataTables Controls
   Match invoice list layout
   ========================================================= */

.webpanda-quotes-body {
    padding: 18px 20px 20px;
}

.webpanda-quotes-table-container {
    width: 100%;
}

.webpanda-quotes-table-container
.dataTables_wrapper {
    width: 100%;
}


/* Quotes don't need a separate search box */

.webpanda-quotes-table-container
.dataTables_filter {
    display: none !important;
}


/* Showing X to Y of Z entries */

.webpanda-quotes-table-container
.dataTables_info {
    float: none !important;

    padding: 0 0 18px !important;

    color: #92999F;

    font-size: 8px;
}


/* =========================================================
   Quotes Table
   ========================================================= */

.webpanda-quotes-table {
    width: 100% !important;

    margin: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    border-collapse: collapse !important;

    overflow: visible;
}


/* Column widths */

.webpanda-quotes-table th:nth-child(1),
.webpanda-quotes-table td:nth-child(1) {
    width: 10%;
}

.webpanda-quotes-table th:nth-child(2),
.webpanda-quotes-table td:nth-child(2) {
    width: 28%;
}

.webpanda-quotes-table th:nth-child(3),
.webpanda-quotes-table td:nth-child(3) {
    width: 19%;
}

.webpanda-quotes-table th:nth-child(4),
.webpanda-quotes-table td:nth-child(4) {
    width: 19%;
}

.webpanda-quotes-table th:nth-child(5),
.webpanda-quotes-table td:nth-child(5) {
    width: 12%;
}

.webpanda-quotes-table th:nth-child(6),
.webpanda-quotes-table td:nth-child(6) {
    width: 12%;
}


/* Header */

.webpanda-quotes-table thead th {
    padding: 13px 12px !important;

    background: #F7F8F9;

    color: #92999F;

    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #E1E4E7 !important;

    font-size: 8px;
    font-weight: 500;

    text-transform: uppercase;
    letter-spacing: 0;

    vertical-align: middle;
}


/* Rows */

.webpanda-quotes-table tbody td {
    padding: 19px 12px !important;

    background: #FFFFFF;

    color: #626B72;

    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #ECEEEF !important;

    font-size: 9px;
    line-height: 1.45;

    vertical-align: middle;
}

.webpanda-quotes-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.webpanda-quote-row {
    cursor: pointer;

    transition: background 0.15s ease;
}

.webpanda-quote-row:hover td {
    background: #FBFDF8;
}


/* Quote Number */

.webpanda-quote-number {
    color: #30353A;

    font-size: 9px;
    font-weight: 700;

    white-space: nowrap;
}


/* Subject */

.webpanda-quote-subject strong {
    display: block;

    color: #30353A;

    font-size: 9px;
    font-weight: 600;
    line-height: 1.45;
}


/* Dates */

.webpanda-quote-date {
    color: #6D757C;

    font-size: 9px;
    line-height: 1.45;
}


/* =========================================================
   Quote Status
   ========================================================= */

.webpanda-quote-status {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 25px;

    padding: 0 9px;

    background: #F1F4F5;

    color: #697178;

    border-radius: 999px;

    font-size: 7px;
    font-weight: 700;

    white-space: nowrap;
}


/* Accepted */

.webpanda-quote-status-accepted {
    background: #EFF8E1;

    color: #578500;
}


/* Delivered */

.webpanda-quote-status-delivered {
    background: #EEF5F9;

    color: #4C728C;
}


/* Draft */

.webpanda-quote-status-draft {
    background: #F2F3F4;

    color: #71787E;
}


/* Lost / Dead / Expired type states */

.webpanda-quote-status-lost,
.webpanda-quote-status-dead,
.webpanda-quote-status-expired {
    background: #FFF1F2;

    color: #B94C56;
}


/* =========================================================
   Download
   ========================================================= */

.webpanda-quote-download-form {
    display: inline-block;

    margin: 0;
}

.webpanda-quote-download {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 34px;

    padding: 0 11px;

    background: #FFFFFF;

    color: #5F676D;

    border: 1px solid #D9DEE2;
    border-radius: 8px;

    font-family: "Montserrat", sans-serif;
    font-size: 7px;
    font-weight: 700;

    cursor: pointer;
}

.webpanda-quote-download i {
    color: #76A812;
}

.webpanda-quote-download:hover,
.webpanda-quote-download:focus {
    background: #F8FCEE;

    color: #4D7700;

    border-color: #CFE4A9;

    outline: none;
}


/* =========================================================
   Pagination
   ========================================================= */

.webpanda-quotes-table-container
.dataTables_paginate {
    padding-top: 14px !important;
}


/* =========================================================
   Loading
   ========================================================= */

.webpanda-quotes-loading {
    padding: 30px 20px;

    color: #8A9298;

    font-size: 8px;
}

.webpanda-quotes-loading i {
    margin-right: 6px;

    color: #76C800;
}


/* =========================================================
   Empty State
   ========================================================= */

.webpanda-quotes-empty {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 300px;

    padding: 40px 24px;

    text-align: center;
}

.webpanda-quotes-empty-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin-bottom: 14px;

    background: #EFF7E2;

    color: #68A000;

    border-radius: 13px;

    font-size: 16px;
}

.webpanda-quotes-empty > span {
    margin-bottom: 7px;

    color: #68A000;

    font-size: 7px;
    font-weight: 700;

    letter-spacing: 0.10em;
}

.webpanda-quotes-empty h2 {
    margin: 0 0 7px;

    color: #30353A;

    font-size: 17px;
    font-weight: 700;
}

.webpanda-quotes-empty p {
    margin: 0;

    color: #92999F;

    font-size: 8px;
}

.webpanda-quotes-return {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 38px;

    margin-top: 18px;
    padding: 0 13px;

    background: #FFFFFF;

    color: #5F676D !important;

    border: 1px solid #D9DEE2;
    border-radius: 8px;

    font-size: 8px;
    font-weight: 700;

    text-decoration: none !important;
}

.webpanda-quotes-return:hover {
    background: #F8FCEE;

    color: #4D7700 !important;

    border-color: #CFE4A9;
}

.webpanda-quotes-return i {
    color: #76C800;
}


/* =========================================================
   QUOTES — Tablet
   ========================================================= */

@media (max-width: 991px) {

    .webpanda-quotes-table-container {
        overflow-x: auto;
    }

    .webpanda-quotes-table {
        min-width: 850px;
    }

}


/* =========================================================
   QUOTES — Mobile
   ========================================================= */

@media (max-width: 767px) {

    .webpanda-quotes-page {
        padding-top: 18px;
    }

    .webpanda-quotes-hero {
        align-items: flex-start;
        flex-direction: column;

        min-height: 0;

        padding: 27px 23px;
    }

    .webpanda-quotes-hero h1 {
        font-size: 24px;
    }

    .webpanda-quotes-hero-side {
        display: none;
    }

    .webpanda-quotes-heading {
        grid-template-columns:
            38px minmax(0, 1fr);
    }

    .webpanda-quotes-count {
        grid-column: 1 / -1;

        width: fit-content;

        margin-left: 50px;
    }

    .webpanda-quotes-body {
        padding: 16px;
    }

    .webpanda-quotes-table-container
    .dataTables_filter {
        float: none !important;

        width: 100%;

        text-align: left !important;
    }

    .webpanda-quotes-table-container
    .dataTables_filter input {
        width: 100%;
    }

}
