.company-title {
    font-size: 1.25rem;
    color: #1F2937;
}

.annual-card-header {
    flex-wrap: wrap;
    gap: 12px;
}

.btn-verified {
    border: 1px solid #059669;
    color: #059669;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 16px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    white-space: nowrap;
}

/* --- Category Tabs --- */
.annual-custom-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .annual-custom-tabs .tab-btn {
        cursor: pointer;
        white-space: nowrap;
    }

.product-icon {
    width: 36px;
    height: 36px;
    background-color: #ECFDF5;
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

.product-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 0;
    white-space: nowrap;
}

.product-subtitle {
    font-size: 0.75rem;
    color: #9CA3AF;
}

.text-value {
    font-size: 0.85rem;
    color: #4B5563;
    font-weight: 600;
    padding-left: 10px;
}

.annual-total-cell {
    white-space: nowrap;
}

/* --- Bottom Sections --- */
.insights-card {
    background: linear-gradient(90deg,#eef9f06b, #d8f0dc 100%);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #059669;
    height: 100%;
}

.insights-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4B5563;
    margin-bottom: 8px;
}

.insights-text {
    font-size: 0.8rem;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 0;
}

.total-value-card {
    background-color: #065F46;
    border-radius: 8px;
    padding: 20px;
    color: white;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.total-value-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #D1FAE5;
    margin-bottom: 8px;
}

.total-value-amount {
    font-size: 1.5rem;
    font-weight: 700;
}

.total-value-unit {
    font-size: 0.8rem;
    font-weight: 400;
    color: #A7F3D0;
}

.total-value-card-bgimg {
    position: relative;
    overflow: hidden;
}

    .total-value-card-bgimg .total-card-bg {
        position: absolute;
        right: 8px;
        bottom: 8px;
        width: 90px;
        height: 90px;
        object-fit: contain;
        pointer-events: none;
        z-index: 0;
    }

    .total-value-card-bgimg .total-value-title,
    .total-value-card-bgimg .total-value-amount,
    .total-value-card-bgimg .total-value-unit {
        position: relative;
        z-index: 1;
    }

/* Category summary cards (small KPI cards) */
.category-summary-card {
    min-height: 120px;
}

.category-summary-title {
    font-size: 0.8rem;
}

.category-summary-amount {
    font-size: 1.4rem;
}

.category-summary-meta {
    font-size: 0.7rem;
    opacity: 0.85;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

/* Wrapper for border radius */
.table-wrapper {
    border: 1px solid #E5E7EB;
    border-radius: 9px;
    overflow: hidden;
}

/* Scrollable Table Container */
.annual-table-responsive {
    max-height: 450px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.annual-spic-table {
    width: 100%;
    min-width: 1500px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

    .annual-spic-table thead th {
        position: sticky;
        top: 0;
        background-color: #f8fafc;
        z-index: 2;
        padding: 12px 16px;
        font-size: 13px;
        font-weight: 600;
        color: #64748b;
        text-align: left;
        white-space: nowrap;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 1px 0 #e5e7eb;
    }

    .annual-spic-table tbody td {
        padding: 8px 16px;
        vertical-align: middle;
        border-bottom: 1px solid #f1f5f9;
    }

    .annual-spic-table tfoot td {
        position: sticky;
        bottom: 0;
        background-color: #f8fafc;
        font-weight: 700;
        padding: 12px 16px;
        color: #334155;
        white-space: nowrap;
        border-top: 1px solid #e5e7eb;
        z-index: 2;
        box-shadow: 0 -1px 0 #e5e7eb;
    }

/* Product cell */
.product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Inputs */
.table-input {
    width: 100%;
    min-width: 110px;
    height: 38px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    background-color: #f4f6f8;
    font-size: 14px;
    color: #334155;
    transition: all 0.2s ease-in-out;
}

    .table-input:focus {
        outline: none;
        background-color: #fff;
        border-color: #10b981;
        box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
    }

/* Custom Scrollbar */
.annual-table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.annual-table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
}

.annual-table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

    .annual-table-responsive::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* ═══════════════════════════════════════════
   RESPONSIVE OVERRIDES
   ═══════════════════════════════════════════ */

/* --- Tablet (≤ 991px) --- */
@media (max-width: 991.98px) {
    .company-title {
        font-size: 1.1rem;
    }

    .annual-spic-table {
        min-width: 1200px;
    }

    .total-value-amount {
        font-size: 1.3rem;
    }

    .category-summary-amount {
        font-size: 1.2rem;
    }

    .insights-card {
        padding: 16px;
    }

    .total-value-card {
        padding: 16px;
    }

    .annual-spic-table thead th,
    .annual-spic-table tbody td,
    .annual-spic-table tfoot td {
        padding: 10px 12px;
    }

    .table-input {
        min-width: 100px;
    }
}

/* --- Small Tablet / Large Phone (≤ 767px) ---
   Below tablet, hide the SECOND repeated set of columns.
   The table still scrolls horizontally for the first set + total. */
@media (max-width: 767.98px) {
    .annual-second-repeat {
        display: none !important;
    }

    .annual-spic-table {
        min-width: 720px;
    }

    .annual-table-responsive {
        max-height: 400px;
    }

    .company-title {
        font-size: 1rem;
    }

    .annual-custom-tabs {
        gap: 6px;
    }

        .annual-custom-tabs .tab-btn {
            font-size: 0.78rem;
            padding: 6px 12px;
        }

    .btn-verified {
        font-size: 0.72rem;
        padding: 4px 12px;
    }

    .annual-card-header {
        gap: 8px;
    }

    .insights-card {
        padding: 14px;
    }

    .total-value-card {
        padding: 14px;
    }

    .total-value-amount {
        font-size: 1.2rem;
    }

    .category-summary-card {
        min-height: 110px;
    }
}

/* --- Mobile (≤ 575px) --- */
@media (max-width: 575.98px) {
    .company-title {
        font-size: 0.95rem;
    }

    .annual-spic-table {
        min-width: 600px;
    }

        .annual-spic-table thead th,
        .annual-spic-table tbody td,
        .annual-spic-table tfoot td {
            padding: 8px 10px;
            font-size: 0.75rem;
        }

    .product-title {
        font-size: 0.78rem;
    }

    .table-input {
        min-width: 80px;
        height: 34px;
        padding: 5px 8px;
        font-size: 0.78rem;
    }

    .annual-table-responsive {
        max-height: 360px;
    }

    .annual-custom-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

        .annual-custom-tabs::-webkit-scrollbar {
            height: 4px;
        }

        .annual-custom-tabs::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }

        .annual-custom-tabs .tab-btn {
            flex-shrink: 0;
            font-size: 0.72rem;
            padding: 6px 10px;
        }

    .btn-verified {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .insights-title {
        font-size: 0.78rem;
    }

    .insights-text {
        font-size: 0.72rem;
    }

    .total-value-card,
    .insights-card {
        padding: 14px;
    }

    .total-value-amount {
        font-size: 1.1rem;
    }

    .total-value-unit {
        font-size: 0.7rem;
    }

    .category-summary-title {
        font-size: 0.72rem;
    }

    .category-summary-amount {
        font-size: 1rem;
    }

    .category-summary-meta {
        font-size: 0.65rem;
    }

    .total-value-card-bgimg .total-card-bg {
        width: 70px;
        height: 70px;
    }

    .category-summary-card {
        min-height: 100px;
    }
}

/* --- Extra Small Phone (≤ 380px) --- */
@media (max-width: 380px) {
    .annual-spic-table {
        min-width: 520px;
    }

        .annual-spic-table thead th,
        .annual-spic-table tbody td,
        .annual-spic-table tfoot td {
            padding: 6px 8px;
            font-size: 0.7rem;
        }

    .table-input {
        min-width: 65px;
        height: 32px;
        font-size: 0.72rem;
        padding: 4px 6px;
    }

    .product-title {
        font-size: 0.72rem;
    }

    .annual-custom-tabs .tab-btn {
        font-size: 0.68rem;
        padding: 5px 8px;
    }
}
