/* Supervisor Modules Container */
.sup-module-container {
    animation: fadeIn 0.3s ease-out;
}

.rep-switcher-card {
    background: var(--surface);
    border: 1.5px solid var(--primary-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 1rem;
}

.rep-switcher-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.rep-switcher-select {
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1.5px solid var(--primary-border);
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary-hover);
    cursor: pointer;
    outline: none;
}

.supervisor-badge-note {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    color: #1e40af;
    padding: 0.6rem 0.85rem;
    border-radius: 4px;
    font-size: 0.775rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Enhanced Supervisor Representative Header & Switcher Card */
.sup-rep-header-card {
    background: var(--surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.4rem;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    flex-wrap: wrap;
    transition: all 0.2s ease;
}

.sup-rep-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 280px;
}

.sup-rep-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

.sup-rep-meta {
    display: flex;
    flex-direction: column;
}

.sup-rep-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
}

.sup-rep-desc {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0 0;
}

.sup-rep-header-control {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 270px;
}

.sup-rep-label {
    font-size: 0.775rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sup-rep-select-wrap {
    position: relative;
}

.sup-rep-select {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    background: var(--surface-subtle);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.sup-rep-select:hover,
.sup-rep-select:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

/* PDF Printable Report Modal Layout */
.pdf-report-sheet {
    background: white;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    color: var(--text-main);
}

.pdf-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.pdf-report-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.pdf-report-sub {
    font-size: 0.825rem;
    color: var(--text-muted);
}

.pdf-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pdf-kpi-box {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.85rem;
    text-align: center;
}

.pdf-kpi-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.pdf-kpi-lbl {
    font-size: 0.725rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

/* ==========================================================================
   SUPERVISOR & SYSTEM HIGH-END BUTTON DESIGN SYSTEM
   ========================================================================== */

/* Universal CRM Button Base */
.btn-crm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-family: inherit;
    font-size: 0.825rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 7px;
    padding: 0.48rem 0.95rem;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-crm:hover:not(:disabled):not(.disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-crm:active:not(:disabled):not(.disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-crm:disabled,
.btn-crm.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 1. Primary Button (Emerald Brand Gradient) */
.btn-crm-primary,
.sup-module-container .btn-primary,
.sup-module-container .btn-save {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff !important;
    border: 1px solid #047857;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.25);
}

.btn-crm-primary:hover:not(:disabled),
.sup-module-container .btn-primary:hover:not(:disabled),
.sup-module-container .btn-save:hover:not(:disabled) {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    border-color: #065f46;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

/* 2. Outline Primary Button (Subtle Mint -> Deep Emerald) */
.btn-crm-outline-primary,
.sup-module-container .btn-outline-primary {
    background: #ecfdf5;
    color: #047857 !important;
    border: 1.5px solid #a7f3d0;
    font-weight: 600;
}

.btn-crm-outline-primary:hover:not(:disabled),
.sup-module-container .btn-outline-primary:hover:not(:disabled) {
    background: #059669;
    color: #ffffff !important;
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* 3. Secondary / Neutral Outline Button (Sleek Slate) */
.btn-crm-outline-secondary,
.sup-module-container .btn-outline-secondary {
    background: #f8fafc;
    color: #334155 !important;
    border: 1.5px solid #cbd5e1;
    font-weight: 600;
}

.btn-crm-outline-secondary:hover:not(:disabled),
.sup-module-container .btn-outline-secondary:hover:not(:disabled) {
    background: #e2e8f0;
    color: #0f172a !important;
    border-color: #94a3b8;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* 4. Warning / Amber Outline Button (Warm Amber) */
.btn-crm-outline-warning,
.sup-module-container .btn-outline-warning {
    background: #fffbeb;
    color: #b45309 !important;
    border: 1.5px solid #fde68a;
    font-weight: 600;
}

.btn-crm-outline-warning:hover:not(:disabled),
.sup-module-container .btn-outline-warning:hover:not(:disabled) {
    background: #f59e0b;
    color: #ffffff !important;
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

/* 5. PDF & Printable Report Button (Sky Brand Gradient) */
.btn-crm-pdf {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    border: 1px solid #0284c7;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.btn-crm-pdf:hover:not(:disabled) {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    border-color: #075985;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

/* 6. Active Filter Reset Capsule Button */
.btn-crm-clear,
#supClearOrderFilterBtn,
#supClearRepFilterBtn {
    background: #ffffff;
    color: #475569;
    border: 1.5px solid #cbd5e1;
    border-radius: 20px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-crm-clear:hover,
#supClearOrderFilterBtn:hover,
#supClearRepFilterBtn:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.15);
}

/* 7. Modern Pagination Buttons */
.sup-module-container #supOrdersPrevBtn,
.sup-module-container #supOrdersNextBtn {
    background: #ffffff;
    color: #334155;
    border: 1.5px solid #cbd5e1;
    border-radius: 7px;
    padding: 0.45rem 0.95rem;
    font-size: 0.825rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.sup-module-container #supOrdersPrevBtn:hover:not(:disabled),
.sup-module-container #supOrdersNextBtn:hover:not(:disabled) {
    background: #ecfdf5;
    border-color: #059669;
    color: #047857;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(5, 150, 105, 0.15);
}

.sup-module-container #supOrdersPrevBtn:disabled,
.sup-module-container #supOrdersNextBtn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    transform: none;
    box-shadow: none;
}

.sup-module-container .page-btn {
    min-width: 34px;
    height: 34px;
    border-radius: 7px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-weight: 600;
    font-size: 0.825rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.sup-module-container .page-btn:hover:not(.active):not(:disabled) {
    background: #ecfdf5;
    border-color: #059669;
    color: #047857;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(5, 150, 105, 0.15);
}

.sup-module-container .page-btn.active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-color: #047857 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(5, 150, 105, 0.35);
    font-weight: 700;
    cursor: default;
    transform: none !important;
}

/* 8. Sleek Circular Modal Close Button */
.btn-close-modal {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
    outline: none;
    padding: 0;
}

.btn-close-modal:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);
}

/* 9. Kanban Card Action Buttons */
.card-actions .card-btn-action {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.card-actions .card-btn-action:hover {
    background: #ecfdf5;
    border-color: #059669;
    color: #047857;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(5, 150, 105, 0.15);
}

/* 10. Table Action Buttons Compact Style */
.btn-table-action {
    padding: 0.38rem 0.75rem;
    font-size: 0.775rem;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* 11. Official Executive PDF Sheet & Printable Report */
.official-pdf-sheet {
    background: #ffffff;
    max-width: 850px;
    margin: 0 auto;
    padding: 2.5rem 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

/* Print Specific Rules for Native Browser PDF Export */
@media print {
    /* Hide all surrounding CRM layout elements */
    body * {
        visibility: hidden !important;
    }

    #supPrintableDocument,
    #supPrintableDocument * {
        visibility: visible !important;
    }

    #supPrintableDocument {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 15mm 20mm !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        color: #000000 !important;
    }

    .app-sidebar,
    .header-nav,
    .modal-header,
    .btn-crm,
    .btn-close-modal,
    .module-header,
    .toolbar-card {
        display: none !important;
    }

    @page {
        size: A4 portrait;
        margin: 8mm;
    }

    /* Prevent breaking table rows and cards across pages */
    .official-pdf-sheet table tr {
        page-break-inside: avoid;
    }
    .official-pdf-sheet .pdf-report-header,
    .official-pdf-sheet .pdf-kpi-boxes {
        page-break-inside: avoid;
    }
}

/* 12. Supervisor Executive KPI Cards (Anti-Overflow & Vertical Rhythm) */
.sup-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

@media (max-width: 1250px) {
    .sup-kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

.sup-kpi-card {
    background: var(--surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.95rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    min-width: 0;
    transition: all 0.2s ease;
}

.sup-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: #a7f3d0;
}

.sup-kpi-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.35rem;
}

.sup-kpi-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.sup-kpi-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 0.3rem;
    white-space: nowrap;
}

.sup-kpi-sub {
    font-size: 0.73rem;
    color: var(--text-muted);
    white-space: nowrap;
    line-height: 1.3;
}

/* ==========================================================================
   MODAL MODERNO E EXECUTIVO DE DETALHES DO PEDIDO (SUPERVISOR)
   ========================================================================== */
.sup-order-modal-dialog {
    max-width: 650px !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    pointer-events: auto !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
    border: none !important;
    overflow: hidden !important;
    animation: supModalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes supModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sup-order-modal-header {
    padding: 1.5rem 1.75rem 1.25rem 1.75rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.sup-order-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sup-order-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 16px -4px rgba(5, 150, 105, 0.35);
}

.sup-order-header-subtitle {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #059669;
    margin-bottom: 0.25rem;
}

.sup-order-header-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sup-order-modal-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.sup-order-status-wrapper {
    display: inline-flex;
    align-items: center;
}

.sup-order-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.sup-order-modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg);
}

.sup-order-modal-body {
    padding: 1.5rem 1.75rem 1.75rem 1.75rem;
    background: #ffffff;
    overflow-y: auto !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    pointer-events: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Cards financeiros de destaque */
.sup-order-financial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.sup-financial-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sup-financial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.08);
}

.sup-financial-card.highlight {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1.5px solid #a7f3d0;
    box-shadow: 0 4px 12px -2px rgba(5, 150, 105, 0.12);
}

.sup-financial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.sup-financial-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sup-financial-card.highlight .sup-financial-label {
    color: #047857;
}

.sup-financial-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sup-financial-icon.primary {
    background: #d1fae5;
    color: #059669;
}

.sup-financial-icon.neutral {
    background: #e2e8f0;
    color: #475569;
}

.sup-financial-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.sup-financial-value.highlight {
    color: #059669;
}

.sup-financial-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sup-financial-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.sup-financial-tag.success {
    background: #059669;
    color: #ffffff;
}

.sup-financial-tag.neutral {
    background: #e2e8f0;
    color: #475569;
}

.sup-financial-subtext {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* Grid de detalhes operacionais */
.sup-order-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.sup-detail-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: all 0.2s ease;
}

.sup-detail-item:hover {
    border-color: #cbd5e1;
    background: #fafafa;
}

.sup-detail-item.full-width {
    grid-column: span 2;
}

.sup-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sup-detail-content {
    flex: 1;
    min-width: 0;
}

.sup-detail-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.2rem;
}

.sup-detail-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    word-break: break-word;
}

.sup-detail-dates-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.25rem;
    font-size: 0.85rem;
    color: #334155;
    margin-top: 0.2rem;
}

.sup-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.sup-date-badge strong {
    color: #0f172a;
}

/* Seção de observações operacionais */
.sup-order-obs-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #059669;
    border-radius: 12px;
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
}

.sup-obs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.sup-obs-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.775rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sup-obs-title-wrap svg {
    color: #059669;
}

.sup-obs-pill {
    font-size: 0.675rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}

.sup-obs-content {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #1e293b;
    font-weight: 500;
    max-height: 140px;
    overflow-y: auto;
    white-space: pre-wrap;
    background: #ffffff;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Rodapé do modal */
.sup-order-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1.15rem;
    border-top: 1px solid #f1f5f9;
}

.sup-btn-modal-close {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sup-btn-modal-close:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.sup-btn-modal-pdf {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.sup-btn-modal-pdf:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.sup-btn-modal-pdf:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .sup-order-financial-grid,
    .sup-order-details-grid {
        grid-template-columns: 1fr;
    }
    .sup-detail-item.full-width {
        grid-column: span 1;
    }
    .sup-order-modal-header {
        flex-direction: column;
        align-items: stretch;
    }
    .sup-order-modal-close {
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
    }
}




