body {
background-color: #F4F5F7;
font-family: 'Inter', 'Noto Sans Khmer', sans-serif;
color: #1E293B;
}

.font-khmer {
font-family: 'Noto Sans Khmer', sans-serif;
}

.gold-gradient {
background: linear-gradient(135deg, #D4AF37 0%, #C59B27 100%);
}

.source-badge {
font-size: 0.65rem;
line-height: 0.85rem;
display: inline-block;
padding: 0.15rem 0.4rem;
border-radius: 0.25rem;
font-weight: 500;
}

/* Hide spin buttons on numeric inputs */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type=number] {
-moz-appearance: textfield;
}

@media print {
body {
background-color: #ffffff !important;
color: #000000 !important;
font-size: 10px !important;
}
.no-print {
display: none !important;
}
.page-break {
page-break-before: always;
}
.container {
max-width: 100% !important;
width: 100% !important;
padding: 0 !important;
margin: 0 !important;
}
.shadow-lg, .shadow-md, .shadow-sm {
box-shadow: none !important;
}
.border {
border-color: #cbd5e1 !important;
}
table {
width: 100% !important;
font-size: 9px !important;
}
th, td {
padding: 4px 6px !important;
}
@page {
size: A4 landscape;
margin: 0.8cm;
}
}

/* Container */
.budget-accordion {
    margin: 20px 0;
    background: transparent;
}

/* 🚨 CRITICAL: Force hide the default browser arrow */
.budget-accordion summary {
    list-style: none !important; 
}
.budget-accordion summary::-webkit-details-marker {
    display: none !important; 
}

/* SVG Chevron Animation */
.summary-arrow {
    transition: transform 0.3s ease;
    transform: rotate(180deg); /* Points UP when closed to match your image */
}

/* Points DOWN when open */
.budget-accordion[open] .summary-arrow {
    transform: rotate(0deg); 
}

/* The hidden content box */
.accordion-content {
    padding: 24px;
    background: #ffffff;
    border: 2px solid #1c2331; /* Dark border connecting to the tab */
    border-top: none;
    border-radius: 0 0 12px 12px;
}

/* Product Image Styling within the Table */
.table-product-img {
    display: block;
    max-width: 120px;       /* Keeps the image small and compact */
    height: auto;
    margin-top: 12px;      /* Adds space between the spec text and the image */
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background: #ffffff;
    padding: 2px;
}

/* Container spacing to align with the left column */
.customer-select-wrapper {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Matches the "CORPORATE ADDRESS" / "SALES:" label styling */
.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8; 
    font-weight: 600;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Matches the dark inputs on the right side */
.dark-input-select {
    width: 100%;
    background-color: transparent;
    color: #cbd5e1;
    border: 1px solid #334155;
    padding: 0.65rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
    
    /* Custom sleek dropdown arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.dark-input-select:focus {
    border-color: #facc15; /* Brand yellow glow on focus */
}

/* Styles the expanded dropdown list items */
.dark-input-select option {
    background-color: #1e293b; /* Dark background so options are readable */
    color: #f8fafc;
    padding: 0.5rem;
}

.save-cust-btn {
    background-color: #334155;
    color: #cbd5e1;
    border: 1px solid #475569;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.save-cust-btn:hover {
    background-color: #facc15; /* Brand yellow */
    color: #1e293b; /* Dark text on hover */
    border-color: #facc15;
}

/* Horizontal table scroll with a fade cue on small screens */
.table-scroll {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.table-scroll-note {
    display: none;
}

@media (max-width: 639px) {
    .table-scroll {
        background-image:
            linear-gradient(90deg, rgba(30, 41, 59, 0.16), rgba(30, 41, 59, 0)),
            linear-gradient(270deg, rgba(30, 41, 59, 0.22), rgba(30, 41, 59, 0));
        background-repeat: no-repeat;
        background-position: left center, right center;
        background-size: 14px 100%, 18px 100%;
    }

    .table-scroll-note {
        display: flex;
    }

    [id$="-card-container"] {
        overflow-x: auto;
        max-width: 100%;
    }
}
