/* ═══════════════════════════════════════════
   Remco BOQ Upload Page Toggles & Styles v1.0
   ═══════════════════════════════════════════ */
.remco-boq-page {
    background: #f5f5f0;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.remco-boq-page .ast-below-header,
.remco-boq-page .site-header,
.remco-boq-page #ast-desktop-header,
.remco-boq-page #ast-mobile-header,
.remco-boq-page .ast-above-header,
.remco-boq-page .site-footer,
.remco-boq-page .ast-footer-overlay,
.remco-boq-page #astra-footer-markup {
    display: none !important;
}

.boq-wrap {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 24px;
}

.boq-sec {
    padding: 48px 0;
}

/* ── HERO ── */
.boq-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 48px;
    text-align: center;
    background: linear-gradient(145deg, #0f261a 0%, #1a3c2a 40%, #234d36 100%);
    color: #fff;
}

.boq-hero-bg {
    position: absolute;
    inset: 0;
    opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23fff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.boq-hero-inner {
    position: relative;
    z-index: 1;
}

.boq-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212,168,67, .12);
    border: 1px solid rgba(212,168,67, .25);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #d4a843;
    margin-bottom: 16px;
}

.boq-badge svg {
    stroke: #d4a843;
}

.boq-hero-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.35;
    color: #fff;
}

.boq-hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, .75);
    max-width: 720px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.boq-hero-stats {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.boq-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.boq-stat-num {
    font-size: 18px;
    font-weight: 800;
    color: #d4a843;
}

.boq-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
}

.boq-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.boq-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
    text-decoration: none !important;
    border: none;
}

.boq-btn--gold {
    background: #d4a843;
    color: #1a3c2a !important;
    box-shadow: 0 4px 16px rgba(212,168,67, .25);
}

.boq-btn--gold:hover {
    background: #c99a35;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212,168,67, .35);
}

.boq-btn--outline {
    background: transparent;
    color: #fff !important;
    border: 1.5px solid rgba(255, 255, 255, .3);
}

.boq-btn--outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .05);
}

.boq-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* ── SECTION HEADER ── */
.boq-section-header {
    text-align: center;
    margin-bottom: 36px;
}

.boq-section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: #d4a843;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.boq-h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1a3c2a;
    margin: 0 0 10px;
}

.boq-section-desc {
    font-size: 14px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── STEPS ── */
.boq-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.boq-step-card {
    background: #fff;
    border: 1px solid #e8e8e3;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,.02);
}

.boq-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(45,106,79,.08);
    color: #2d6a4f;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.boq-step-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a3c2a;
    margin: 0 0 10px;
}

.boq-step-card p {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ── FORM ── */
.boq-form-sec-wrap {
    background: #f0f0eb;
    border-top: 1px solid #e0e0d8;
    border-bottom: 1px solid #e0e0d8;
}

.boq-form-card {
    background: #fff;
    border: 1px solid #e8e8e3;
    border-radius: 16px;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,.04);
}

.boq-form-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a3c2a;
    text-align: center;
    margin: 0 0 8px;
}

.boq-form-desc {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin: 0 0 32px;
}

.boq-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.boq-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.boq-field--full {
    grid-column: 1 / -1;
}

.boq-field label {
    font-size: 13px;
    font-weight: 700;
    color: #1a3c2a;
}

.boq-req {
    color: #c0392b;
    font-size: 11px;
}

.boq-opt {
    color: #999;
    font-size: 11px;
    font-weight: 400;
}

.boq-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e0e0d8;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    color: #333;
    background: #fff;
    transition: all .2s;
    box-sizing: border-box;
}

.boq-input:focus {
    border-color: #2d6a4f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, .08);
}

.boq-field textarea {
    resize: vertical;
    min-height: 90px;
}

.boq-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 32px;
    cursor: pointer;
}

/* ── Dropzone ── */
.boq-dropzone {
    border: 2.5px dashed #ccc;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    background: #fafaf7;
    cursor: pointer;
    transition: all .25s;
}

.boq-dropzone:hover, .boq-dropzone.dragover {
    border-color: #2d6a4f;
    background: rgba(45,106,79,.03);
}

.boq-dropzone-icon {
    color: #ccc;
    margin-bottom: 12px;
    transition: color .2s;
}

.boq-dropzone:hover .boq-dropzone-icon, .boq-dropzone.dragover .boq-dropzone-icon {
    color: #2d6a4f;
}

.boq-dropzone-icon svg {
    stroke: currentColor;
}

.boq-dropzone-text {
    font-size: 14px;
    font-weight: 700;
    color: #1a3c2a;
    margin: 0 0 4px;
}

.boq-dropzone-sub {
    font-size: 11px;
    color: #777;
    margin: 0;
}

/* File Preview */
.boq-file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(212,168,67,.04);
    border: 1px solid rgba(212,168,67,.15);
    border-radius: 8px;
    margin-top: 8px;
}

.boq-file-preview-icon {
    color: #d4a843;
}

.boq-file-preview-icon svg {
    stroke: currentColor;
}

.boq-file-preview-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.boq-file-preview-details strong {
    font-size: 13px;
    color: #1a3c2a;
    word-break: break-all;
}

.boq-file-preview-details span {
    font-size: 11px;
    color: #777;
}

.boq-file-remove {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(192,57,43,.06);
    color: #c0392b;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
}

.boq-file-remove:hover {
    background: #c0392b;
    color: #fff;
}

/* Upload Progress */
.boq-progress-wrap {
    margin-top: 18px;
    background: #fafaf7;
    border: 1px solid #e0e0d8;
    border-radius: 8px;
    padding: 12px;
}

.boq-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #1a3c2a;
    margin-bottom: 6px;
}

.boq-progress-bar-bg {
    height: 6px;
    background: #e5e5e0;
    border-radius: 3px;
    overflow: hidden;
}

.boq-progress-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #2d6a4f, #d4a843);
    border-radius: 3px;
    transition: width .2s;
}

/* Submit */
.boq-submit-wrap {
    text-align: center;
    margin-top: 24px;
    border-top: 1px solid #f0f0eb;
    padding-top: 20px;
}

.boq-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: #25d366;
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 4px 16px rgba(37,211,102,.25);
}

.boq-submit-btn:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,211,102,.35);
}

.boq-submit-btn svg {
    width: 20px;
    height: 20px;
}

.boq-submit-note {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
}

/* Toast styling (copied from RFQ to match) */
.rfq-toast {
    position: fixed;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%) translateY(100px);
    padding: 12px 24px;
    border-radius: 10px;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 600;
    z-index: 9999;
    transition: transform .3s;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.rfq-toast.show {
    transform: translateX(50%) translateY(0);
}

.rfq-toast--error {
    background: #c0392b;
    color: #fff;
}

.rfq-toast--success {
    background: #2d6a4f;
    color: #fff;
}

/* ── BENEFITS ── */
.boq-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 12px;
}

.boq-benefit-card {
    background: #fff;
    border: 1px solid #e8e8e3;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,.02);
}

.boq-benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(212,168,67,.08);
    color: #d4a843;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.boq-benefit-icon svg {
    stroke: currentColor;
}

.boq-benefit-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a3c2a;
    margin: 0 0 10px;
}

.boq-benefit-card p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.65;
}

/* ═══ RESPONSIVE ═══ */
@media(max-width:1024px) {
    .boq-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:768px) {
    .boq-hero-title {
        font-size: 26px;
    }
    .boq-hero-stats {
        gap: 20px;
    }
    .boq-form-card {
        padding: 24px;
    }
    .boq-form-grid {
        grid-template-columns: 1fr;
    }
    .boq-benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width:480px) {
    .boq-wrap {
        padding: 0 16px;
    }
    .boq-hero {
        padding: 40px 0 32px;
    }
    .boq-hero-title {
        font-size: 20px;
    }
    .boq-steps-grid {
        grid-template-columns: 1fr;
    }
    .boq-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .boq-btn {
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════
   REEMCO SMART AI BOQ ENGINE STYLES (v2.5)
   ═══════════════════════════════════════════ */
.boq-form-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Tabs */
.boq-tabs {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}
.boq-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.boq-tab:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.boq-tab.active {
    background: #1a3c2a;
    border-color: #1a3c2a;
    color: #d4a843;
    box-shadow: 0 2px 6px rgba(26, 60, 42, 0.2);
}
.boq-tab-content {
    display: none;
}
.boq-tab-content.active {
    display: block;
}

/* Client details grid */
.boq-client-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
@media (max-width: 900px) {
    .boq-client-grid { grid-template-columns: 1fr; }
}

/* Formats Badges */
.boq-formats-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}
.fmt-badge {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Voice Button */
.boq-voice-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.boq-voice-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}
.boq-voice-btn.recording {
    background: #fee2e2;
    border-color: #ef4444;
    color: #b91c1c;
}

/* Pipeline Stages */
.boq-pipeline-stages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.pipeline-step {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
}
.pipeline-step .pipe-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}
.pipeline-step.active {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #065f46;
    font-weight: 700;
}
.pipeline-step.active .pipe-num {
    background: #10b981;
    color: #fff;
}
@media (max-width: 600px) {
    .boq-pipeline-stages { grid-template-columns: repeat(2, 1fr); }
}

/* Results Area */
.boq-results-area {
    margin-top: 36px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.boq-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}
.res-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}
.res-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #dcfce7;
    color: #15803d;
    display: flex;
    align-items: center;
    justify-content: center;
}
.res-h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #1a3c2a;
}
.res-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
}
.res-rfq-badge {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: #334155;
}
.res-rfq-badge strong {
    color: #0b3c5d;
    font-family: monospace;
    font-size: 15px;
}

/* Financial Metrics */
.boq-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin: 24px 0;
}
.boq-metric-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: right;
}
.boq-metric-card.highlight {
    background: linear-gradient(135deg, #1a3c2a 0%, #0f261a 100%);
    border-color: #1a3c2a;
    color: #fff;
}
.boq-metric-card .m-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}
.boq-metric-card.highlight .m-label {
    color: rgba(255,255,255,0.8);
}
.boq-metric-card .m-val {
    font-size: 20px;
    font-weight: 800;
    color: #0b3c5d;
    margin-top: 6px;
}
.boq-metric-card.highlight .m-val {
    color: #d4a843;
    font-size: 22px;
}

/* SBC Box */
.boq-sbc-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.sbc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #92400e;
    font-size: 14px;
    margin-bottom: 8px;
}
.sbc-content p {
    margin: 0;
    font-size: 13px;
    color: #78350f;
    line-height: 1.65;
}

/* Parsed Table */
.boq-table-responsive {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
}
.boq-parsed-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 13px;
}
.boq-parsed-table th {
    background: #f8fafc;
    padding: 12px 14px;
    font-weight: 700;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.boq-parsed-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.boq-row-item:hover td {
    background: #fafafa;
}
.boq-item-spec {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}
.boq-input-mini {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #0b3c5d;
    text-align: center;
}
.boq-qty-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.boq-unit-lbl {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}
.boq-matched-prod {
    display: flex;
    align-items: center;
    gap: 10px;
}
.boq-prod-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.boq-prod-meta {
    display: flex;
    flex-direction: column;
}
.boq-prod-title {
    font-size: 12px;
    font-weight: 700;
    color: #0b3c5d;
    text-decoration: none;
    line-height: 1.3;
}
.boq-prod-title:hover {
    color: #d4a843;
}
.boq-prod-sku {
    font-size: 10px;
    color: #64748b;
}
.badge-saso {
    background: #dcfce7;
    color: #15803d;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}
.boq-badge-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.status-matched { background: #dcfce7; color: #166534; }
.status-custom { background: #f1f5f9; color: #475569; }
.boq-del-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}
.boq-del-btn:hover {
    color: #ef4444;
}

/* Add Row Bar */
.boq-add-row-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.boq-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    color: #334155;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.boq-add-btn:hover {
    background: #f1f5f9;
    border-color: #475569;
}
.boq-row-tip {
    font-size: 12px;
    color: #64748b;
}

/* Executive Actions */
.boq-final-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 24px;
}
.boq-act-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}
.boq-act-odoo {
    background: #714B67;
    color: #fff;
}
.boq-act-odoo:hover {
    background: #5d3d54;
}
.boq-act-cart {
    background: #1a3c2a;
    color: #d4a843;
}
.boq-act-cart:hover {
    background: #122a1d;
}
.boq-act-voucher {
    background: #0284c7;
    color: #fff;
}
.boq-act-voucher:hover {
    background: #0369a1;
}
.boq-act-wa {
    background: #25D366;
    color: #fff;
}
.boq-act-wa:hover {
    background: #1eb956;
}

/* Odoo Confirmation Banner */
.boq-odoo-confirmed-banner {
    margin-top: 24px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.boq-odoo-confirmed-banner .odoo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.boq-odoo-confirmed-banner h4 {
    margin: 0;
    color: #14532d;
    font-size: 15px;
    font-weight: 800;
}
.boq-odoo-confirmed-banner p {
    margin: 4px 0 0;
    color: #166534;
    font-size: 13px;
}

/* Modal */
.boq-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.boq-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}
.boq-modal-dialog {
    position: relative;
    z-index: 10;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 920px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.boq-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.boq-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0b3c5d;
}
.boq-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.boq-modal-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a3c2a;
    color: #d4a843;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}
.boq-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}
.boq-modal-body {
    padding: 24px;
    overflow-y: auto;
}

/* Printable Voucher Sheet */
.voucher-print-sheet {
    font-family: 'Cairo', sans-serif;
    color: #1e293b;
}
.voucher-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #1a3c2a;
    padding-bottom: 16px;
    margin-bottom: 20px;
}
.voucher-brand h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #1a3c2a;
}
.voucher-brand p {
    margin: 3px 0 0;
    font-size: 12px;
    color: #64748b;
}
.voucher-qr-box {
    text-align: left;
}
.qr-code-label {
    font-size: 11px;
    font-weight: 700;
    color: #15803d;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
.qr-rfq-no {
    font-family: monospace;
    font-size: 16px;
    font-weight: 800;
    color: #0b3c5d;
    margin-top: 4px;
}
.qr-date {
    font-size: 11px;
    color: #64748b;
}
.voucher-customer-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 20px;
    font-size: 13px;
}
.v-cust-col span {
    color: #64748b;
}
.voucher-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 13px;
}
.voucher-items-table th {
    background: #1a3c2a;
    color: #fff;
    padding: 8px 10px;
    font-weight: 700;
}
.voucher-items-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
}
.voucher-totals-box {
    width: 320px;
    margin-right: auto;
    margin-bottom: 20px;
    font-size: 13px;
}
.v-tot-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}
.v-tot-grand {
    font-size: 16px;
    font-weight: 800;
    color: #1a3c2a;
    border-top: 2px solid #1a3c2a;
    border-bottom: 2px solid #1a3c2a;
    margin-top: 4px;
}
.voucher-footer-terms {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    font-size: 11px;
    color: #64748b;
    line-height: 1.6;
}
.voucher-footer-terms p { margin: 2px 0; }

@media print {
    body * { visibility: hidden !important; }
    .boq-modal-dialog, .boq-modal-dialog * { visibility: visible !important; }
    .boq-modal { position: absolute; left: 0; top: 0; width: 100%; padding: 0; }
    .boq-modal-dialog { max-width: 100%; box-shadow: none; border-radius: 0; }
    .boq-modal-header { display: none; }
}
