/**
 * Modern Form Controls Styling
 * Optimized and reusable styles for form inputs, buttons, and controls
 */

/* ==================== Form Inputs & Selects ==================== */
.form-control, 
.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.625rem 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.form-control:focus, 
.form-select:focus {
    border-color: #04966a;
    box-shadow: 0 0 0 0.25rem rgba(4, 150, 106, 0.15);
    outline: none;
}

/* Textarea specific styling */
textarea.form-control {
    border-radius: 10px;
    min-height: 100px;
}

/* ==================== Input Groups ==================== */
.input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.input-group-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e9ecef;
    border-right: none;
    transition: all 0.3s ease;
}

.input-group .form-control,
.input-group .form-select {
    border-left: none;
}

.input-group:focus-within .input-group-text {
    background: linear-gradient(135deg, #e7f9f3 0%, #d4f1e8 100%);
    border-color: #04966a;
}

/* ==================== Modern Buttons ==================== */
.btn {
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-primary, 
.btn.primary {
    background: linear-gradient(135deg, #04966a 0%, #037550 100%);
    border: none;
    color: white;
}

.btn-outline-primary {
    border: 2px solid #04966a;
    color: #04966a;
    background: white;
}

.btn-outline-primary:hover {
    background: #04966a;
    color: white;
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    border-radius: 10px;
}

/* ==================== Mobile Friendly Buttons ==================== */
@media (max-width: 768px) {
    .btn-sm-mobile {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .btn-sm-mobile .btn-text {
        display: none;
    }
    
    .btn-sm-mobile i {
        margin: 0 !important;
        font-size: 1.1rem;
    }
    
    .toolbar-modern .d-flex.gap-2 {
        gap: 0.5rem !important;
    }
}

@media (max-width: 576px) {
    .btn-sm-mobile {
        padding: 0.4rem 0.6rem;
        min-width: 42px;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==================== Header Action Buttons ==================== */
.header-action-btn {
    padding: 0.625rem 1.5rem;
    color: white;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.header-action-btn i {
    font-size: 1.2rem;
}

.header-action-btn:hover {
    transform: translateY(-2px);
}

/* Purchase Button */
.header-btn-purchase {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.header-btn-purchase:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: white;
}

/* Sale Button */
.header-btn-sale {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.header-btn-sale:hover {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
    color: white;
}

/* POS Button */
.header-btn-pos {
    background: linear-gradient(135deg, #fad961 0%, #f76b1c 100%);
    box-shadow: 0 4px 15px rgba(247, 107, 28, 0.4);
}

.header-btn-pos:hover {
    box-shadow: 0 6px 20px rgba(247, 107, 28, 0.5);
    color: white;
}

/* Mobile Responsive */

@media (max-width: 992px) {
    .header-action-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .header-action-btn {
        padding: 0.5rem 0.75rem;
    }
    
    .header-action-btn .btn-text {
        display: none;
    }
    
    .header-action-btn i {
        margin: 0 !important;
        font-size: 1.3rem !important;
    }
    
    .header-action-btn {
        gap: 0 !important;
    }
    
    .top-menu .navbar-nav {
        gap: 0.35rem !important;
    }
}

@media (max-width: 576px) {
    .header-action-btn {
        padding: 0.4rem 0.6rem;
        min-width: 40px;
        min-height: 40px;
    }
    
    .header-action-btn i {
        font-size: 1.2rem !important;
    }
}

/* ==================== Modern Switch Toggle ==================== */
.form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.form-switch .form-check-input:checked {
    background-color: #04966a;
    border-color: #04966a;
}

/* ==================== Invoice Details Page ==================== */
.modern-invoice-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: visible;
    position: relative;
}

/* Payment Status Corner Ribbon */
.payment-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.5rem 1.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.payment-ribbon::before,
.payment-ribbon::after {
    content: '';
    position: absolute;
    top: 100%;
    width: 0;
    height: 0;
    border-style: solid;
}

.payment-ribbon::before {
    left: 0;
    border-width: 5px 0 0 10px;
}

.payment-ribbon::after {
    right: 0;
    border-width: 5px 10px 0 0;
}

.ribbon-paid {
    background: linear-gradient(135deg, #04966a 0%, #05b57d 100%);
}

.ribbon-paid::before {
    border-color: transparent transparent transparent #036349;
}

.ribbon-paid::after {
    border-color: transparent #036349 transparent transparent;
}

.ribbon-partial {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
}

.ribbon-partial::before {
    border-color: transparent transparent transparent #cc8800;
}

.ribbon-partial::after {
    border-color: transparent #cc8800 transparent transparent;
}

.ribbon-unpaid {
    background: linear-gradient(135deg, #ff4450 0%, #ff6b75 100%);
}

.ribbon-unpaid::before {
    border-color: transparent transparent transparent #cc1a25;
}

.ribbon-unpaid::after {
    border-color: transparent #cc1a25 transparent transparent;
}

/* Payment Status Badges */
.payment-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.3px;
}

.status-paid {
    background: linear-gradient(135deg, #04966a 0%, #037550 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(4, 150, 106, 0.3);
}

.status-partial {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.status-unpaid {
    background: linear-gradient(135deg, #ff4450 0%, #dc3545 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 68, 80, 0.3);
}

/* Payment Summary Card */
.payment-summary-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* Payment Record Items */
.payment-record-item {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid #04966a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.payment-record-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateX(4px);
}

/* Toolbar Styling */
.toolbar-modern .btn {
    margin: 0.25rem;
}

/* ==================== Mobile Responsive ==================== */
@media (max-width: 768px) {
    .form-control, 
    .form-select, 
    .btn {
        min-height: 46px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ==================== Guided Inquiry Workflow ==================== */
.inquiry-guided-workflow .guided-workflow-card {
    background: linear-gradient(135deg, #f8fffc 0%, #ffffff 55%, #f8fafc 100%);
    border: 1px solid #d1e7dd;
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: 0 4px 18px rgba(4, 150, 106, 0.08);
}

.inquiry-guided-workflow .guided-workflow-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.inquiry-guided-workflow .guided-step-badge {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #047857;
    white-space: nowrap;
}

.inquiry-guided-workflow .guided-progress-track {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.inquiry-guided-workflow .guided-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #04966a, #10b981);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.inquiry-guided-workflow .guided-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.inquiry-guided-workflow .guided-description {
    color: #475569;
    margin-bottom: 0.75rem;
    max-width: 720px;
}

.inquiry-guided-workflow .guided-metric {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #065f46;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.inquiry-guided-workflow .guided-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.inquiry-guided-workflow .guided-primary-btn {
    font-weight: 600;
    border-radius: 10px;
    padding: 0.55rem 1.1rem;
}

.inquiry-guided-workflow .guided-secondary-btn,
.inquiry-guided-workflow .guided-link-btn {
    border-radius: 10px;
}

.inquiry-guided-workflow .guided-step-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.inquiry-guided-workflow .guided-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.inquiry-guided-workflow .guided-step-pill.active {
    background: #ecfdf5;
    color: #047857;
    box-shadow: inset 0 0 0 1px #a7f3d0;
}

.inquiry-guided-workflow .guided-step-pill.done {
    background: #04966a;
    color: #fff;
}

.inquiry-guided-workflow .guided-step-arrow {
    color: #cbd5e1;
    font-size: 14px;
}

.inquiry-guided-workflow .guided-footnote {
    font-size: 12px;
    color: #94a3b8;
}

.inquiry-guided-workflow .guided-workflow-complete {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inquiry-guided-workflow .guided-complete-icon {
    font-size: 2rem;
    color: #04966a;
}

.inquiry-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.inquiry-toolbar-primary,
.inquiry-toolbar-secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.schedule-guided-banner .schedule-guided-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 1rem 1.1rem;
}

.schedule-guided-banner .schedule-guided-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #04966a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.schedule-guided-banner .schedule-guided-content {
    flex: 1 1 220px;
}

.schedule-guided-banner .schedule-guided-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.schedule-guided-banner .schedule-guided-metric {
    font-size: 13px;
    font-weight: 600;
    color: #047857;
}

.schedule-guided-banner .schedule-guided-steps {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
    color: #475569;
    font-size: 14px;
}

.schedule-guided-banner .schedule-guided-steps li {
    margin-bottom: 0.25rem;
}

.schedule-assignment-table .schedule-staff-col {
    min-width: 180px;
    background: #f8fffe;
}

.schedule-assignment-table .form-select,
.schedule-assignment-table textarea.form-control {
    min-width: 160px;
}

/* ==================== Inquiry intake form (guided) ==================== */
.inquiry-intake-banner .inquiry-intake-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 1rem 1.15rem;
}

.inquiry-intake-banner .inquiry-intake-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #04966a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.inquiry-intake-banner .inquiry-intake-step {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #047857;
    margin-bottom: 4px;
}

.inquiry-intake-banner .inquiry-intake-steps {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
    color: #475569;
    font-size: 14px;
}

.inquiry-intake-banner .inquiry-intake-steps li {
    margin-bottom: 0.3rem;
}

.inquiry-section-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.inquiry-section-header {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
}

.inquiry-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #04966a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: middle;
}

.inquiry-section-hint {
    font-size: 13px;
    color: #64748b;
    margin-top: 0.35rem;
    padding-left: 34px;
}

.inquiry-service-add-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.inquiry-service-type-toggle .btn {
    font-size: 0.8125rem;
}

.inquiry-service-search .form-control {
    border-left: none;
}

.inquiry-totals-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
}

.inquiry-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 14px;
    color: #475569;
}

.inquiry-totals-row.inquiry-totals-grand {
    border-top: 2px solid #e2e8f0;
    margin-top: 0.5rem;
    padding-top: 0.65rem;
    font-size: 16px;
    color: #0f172a;
}

.inquiry-totals-footnote {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.inquiry-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Inquiry create — guided layout (aligned with sale invoice) */
.inquiry-create-shell .page-content {
    max-width: 100%;
}

.inquiry-guided-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 992px) {
    .inquiry-guided-header {
        grid-template-columns: minmax(260px, 1fr) minmax(360px, 2fr);
        align-items: stretch;
    }
}

.inquiry-guided-hero {
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 1.15rem 1.35rem;
}

.inquiry-guided-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.inquiry-guided-back:hover {
    color: #04966a;
}

.inquiry-guided-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.inquiry-guided-subtitle {
    font-size: 14px;
    color: #475569;
}

.inquiry-guided-steps {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.inquiry-guided-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    opacity: 0.55;
    min-width: 0;
}

.inquiry-guided-step.is-active,
.inquiry-guided-step.is-done {
    opacity: 1;
}

.inquiry-guided-step-num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
}

.inquiry-guided-step.is-active .inquiry-guided-step-num {
    background: #04966a;
    color: #fff;
}

.inquiry-guided-step.is-done .inquiry-guided-step-num {
    background: #198754;
    color: #fff;
}

.inquiry-guided-step-text {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    line-height: 1.25;
}

.inquiry-guided-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inquiry-guided-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    background: #fff;
}

.inquiry-guided-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
}

.inquiry-guided-card-badge {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    background: #04966a;
    color: #fff;
}

.inquiry-service-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.25rem;
    background: #fff;
}

.inquiry-schedule-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 13px;
}

.inquiry-schedule-hint i {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.inquiry-totals-box--guided {
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
    border-color: #bbf7d0;
    height: 100%;
}

.inquiry-totals-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

.inquiry-guided-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    position: sticky;
    bottom: 0.75rem;
    z-index: 20;
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
}

@media (max-width: 575.98px) {
    .inquiry-guided-step-text {
        font-size: 9px;
    }

    .inquiry-guided-title {
        font-size: 1.2rem;
    }

    .inquiry-guided-footer .btn {
        flex: 1 1 100%;
    }
}

.inquiry-service-table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    white-space: nowrap;
}

.inquiry-service-table .inquiry-service-row td {
    vertical-align: top;
}

@media (max-width: 767.98px) {
    .inquiry-service-table-wrap {
        border: 0;
    }

    .inquiry-service-table thead {
        display: none;
    }

    .inquiry-service-table tbody tr.inquiry-service-row {
        display: block;
        border: 1px solid #dbe3ef;
        border-radius: 12px;
        padding: 10px 12px;
        margin-bottom: 12px;
        background: #fff;
    }

    .inquiry-service-table tbody tr.inquiry-service-row td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
        border: 0 !important;
        padding: 6px 0;
    }

    .inquiry-service-table tbody tr.inquiry-service-row td::before {
        content: attr(data-label);
        flex: 0 0 38%;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        color: #64748b;
        padding-top: 6px;
    }

    .inquiry-service-table tbody tr.inquiry-service-row td > * {
        flex: 1;
        max-width: 62%;
    }

    .inquiry-service-table tbody tr.inquiry-service-row td:last-child::before {
        content: '';
    }

    .inquiry-service-table tfoot {
        display: block;
    }

    .inquiry-service-table tfoot tr {
        display: flex;
        justify-content: flex-end;
        gap: 1rem;
        padding: 0.5rem 0;
    }
}

@media (max-width: 767.98px) {
    .inquiry-guided-workflow .guided-step-pill .guided-pill-label {
        display: none;
    }

    .schedule-assignment-table-wrap {
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 0.25rem;
    }
}

/* ==================== Order Receipt (View Inquiry) ==================== */
.order-receipt-page {
    max-width: 960px;
    margin: 0 auto;
}

.order-receipt-shell .order-receipt-page {
    max-width: 100%;
}

/* Unified guided header (workflow + inquiry summary + actions) */
.receipt-guided-header {
    margin-bottom: 1.25rem;
}

.receipt-guided-card {
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.receipt-guided-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.receipt-guided-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.85rem;
}

.receipt-guided-progress .guided-step-badge {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #047857;
    white-space: nowrap;
}

.receipt-guided-progress .guided-progress-track {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.receipt-guided-progress .guided-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #04966a, #10b981);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.receipt-guided-identity {
    margin-bottom: 0.85rem;
}

.receipt-guided-message {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.85rem;
}

.receipt-guided-message strong {
    display: block;
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.receipt-guided-message p {
    font-size: 14px;
    color: #475569;
    margin: 0 0 0.4rem;
}

.receipt-guided-metric {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #065f46;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    font-size: 12px;
    font-weight: 600;
}

.receipt-guided-message--done {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.receipt-guided-message--done > i {
    font-size: 1.5rem;
    color: #04966a;
    flex-shrink: 0;
    margin-top: 2px;
}

.receipt-guided-message--done strong {
    margin-bottom: 0.1rem;
}

.receipt-guided-message--done span {
    font-size: 14px;
    color: #475569;
}

.receipt-guided-actions {
    margin-bottom: 0.85rem;
}

.receipt-guided-actions .receipt-timeline-btn {
    border-color: #93c5fd;
    color: #1d4ed8;
    background: #eff6ff;
}

.receipt-guided-actions .receipt-timeline-btn:hover {
    border-color: #60a5fa;
    color: #1e40af;
    background: #dbeafe;
}

.receipt-guided-actions .receipt-action-label {
    margin-left: 0.25rem;
}

.receipt-guided-actions .dropdown-toggle::after {
    margin-left: 0.25rem;
    vertical-align: middle;
}

.receipt-guided-steps {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    margin-bottom: 0.85rem;
}

.receipt-guided-steps .guided-step-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-width: 72px;
    background: transparent;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
}

.receipt-guided-steps .guided-step-dot {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.receipt-guided-steps .guided-step-pill.active {
    color: #1d4ed8;
}

.receipt-guided-steps .guided-step-pill.active .guided-step-dot {
    border-color: #93c5fd;
    background: #2563eb;
    color: #fff;
}

.receipt-guided-steps .guided-step-pill.done {
    color: #166534;
}

.receipt-guided-steps .guided-step-pill.done .guided-step-dot {
    border-color: #86efac;
    background: #dcfce7;
    color: #16a34a;
}

.receipt-guided-steps .guided-step-connector {
    flex: 1 1 auto;
    height: 2px;
    background: #cbd5e1;
    border-radius: 999px;
    min-width: 36px;
}

.receipt-guided-steps .guided-step-connector.done {
    background: #86efac;
}

.receipt-guided-payment {
    margin-bottom: 0;
}

.receipt-guided-payment .order-receipt-payment-tile {
    background: rgba(255, 255, 255, 0.9);
}

.receipt-guided-footnote {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 0.75rem;
}

.order-receipt-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 14px;
    font-weight: 600;
    color: #047857;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.order-receipt-back:hover {
    color: #04966a;
    text-decoration: underline;
}

.order-receipt-code {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #047857;
    background: #dcfce7;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.35rem;
}

.order-receipt-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
    line-height: 1.25;
}

.order-receipt-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 14px;
    color: #64748b;
}

.order-receipt-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.order-receipt-meta-item i {
    font-size: 1.1rem;
    color: #94a3b8;
}

.order-receipt-status-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.order-receipt-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.order-receipt-status-pill.paid {
    background: #dcfce7;
    color: #047857;
}

.order-receipt-status-pill.partial {
    background: #fef3c7;
    color: #b45309;
}

.order-receipt-status-pill.unpaid {
    background: #fee2e2;
    color: #b91c1c;
}

.order-receipt-status-pill.neutral {
    background: #f1f5f9;
    color: #475569;
}

.order-receipt-payment-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.order-receipt-payment-tile {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    text-align: center;
}

.order-receipt-payment-tile .label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.order-receipt-payment-tile .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.order-receipt-payment-tile.tile-paid .value {
    color: #04966a;
}

.order-receipt-payment-tile.tile-balance .value.balance-zero {
    color: #04966a;
}

.order-receipt-payment-tile.tile-balance .value.balance-due {
    color: #dc2626;
}

.order-receipt-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: visible;
}

.order-receipt-card .card-body {
    padding: 1.25rem 1.35rem 1.5rem;
}

.order-receipt-print-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.15rem;
    margin-bottom: 1.15rem;
    border-bottom: 1px solid #f1f5f9;
}

.order-receipt-company img {
    max-height: 56px;
    width: auto;
}

.order-receipt-company .company-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0.35rem 0 0.15rem;
}

.order-receipt-company .company-detail {
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}

.order-receipt-print-id {
    text-align: right;
}

.order-receipt-print-id .doc-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.order-receipt-print-id .doc-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: #04966a;
    margin: 0.15rem 0;
}

.order-receipt-section {
    margin-bottom: 1.25rem;
}

.order-receipt-section:last-child {
    margin-bottom: 0;
}

.order-receipt-details-layout .order-receipt-section.sale-invoice-details-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 0.9rem 1rem;
}

.order-receipt-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.order-receipt-section-title i {
    font-size: 1.2rem;
    color: #04966a;
}

.order-receipt-customer-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.order-receipt-customer-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.order-receipt-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-receipt-contact-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: #475569;
}

.order-receipt-contact-list li i {
    font-size: 1.1rem;
    color: #94a3b8;
    width: 1.25rem;
    text-align: center;
}

.order-receipt-crm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.order-receipt-crm-chip {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
}

.order-receipt-crm-chip .chip-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
    margin-bottom: 0.2rem;
}

.order-receipt-crm-chip .chip-value {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.order-receipt-items-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.order-receipt-items-table thead th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.order-receipt-items-table thead th:first-child {
    border-radius: 10px 0 0 0;
}

.order-receipt-items-table thead th:last-child {
    border-radius: 0 10px 0 0;
}

.order-receipt-items-table tbody td {
    padding: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
    vertical-align: top;
}

.order-receipt-items-table tbody tr:last-child td {
    border-bottom: none;
}

.order-receipt-item-name {
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 0.15rem;
    font-size: 14px;
}

.order-receipt-item-desc {
    font-size: 12px;
    color: #64748b;
}

.order-receipt-tech-badge {
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.2rem 0.45rem;
    margin-right: 0.25rem;
}

.order-receipt-tech-badge--mechanic {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.order-receipt-tech-badge--staff {
    background: #e0e7ff;
    color: #1e3a8a;
    border: 1px solid #c7d2fe;
}

.order-receipt-workshop-link {
    color: #0f766e;
    font-weight: 600;
}

.order-receipt-workshop-link:hover {
    color: #115e59;
    text-decoration: underline !important;
}

.order-receipt-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #94a3b8;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #e2e8f0;
}

.order-receipt-totals {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.15rem;
    max-width: 360px;
    margin-left: auto;
}

.order-receipt-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 14px;
    color: #475569;
}

.order-receipt-totals-row.grand {
    border-top: 2px solid #e2e8f0;
    margin-top: 0.5rem;
    padding-top: 0.65rem;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.order-receipt-totals-row.balance {
    font-weight: 700;
}

.order-receipt-totals-row.balance .amount-due {
    color: #dc2626;
}

.order-receipt-totals-row.balance .amount-clear {
    color: #04966a;
}

.order-receipt-note-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 14px;
    color: #78350f;
}

.order-receipt-note-box strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #92400e;
}

.order-receipt-payments {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.order-receipt-payment-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.order-receipt-payment-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    border-left: 4px solid #04966a;
}

.order-receipt-payment-row .pay-field {
    flex: 1 1 120px;
}

.order-receipt-payment-row .pay-field .pay-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
}

.order-receipt-payment-row .pay-field .pay-value {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.order-receipt-payment-row .pay-field.pay-amount .pay-value {
    color: #04966a;
    font-size: 1rem;
}

.order-receipt-no-payments {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    color: #0369a1;
    font-size: 14px;
}

@media (max-width: 767.98px) {
    .receipt-guided-steps {
        overflow-x: auto;
        padding: 0.6rem 0.65rem;
    }

    .receipt-guided-steps .guided-step-pill {
        min-width: 58px;
    }

    .receipt-guided-steps .guided-step-pill .guided-pill-label {
        display: none;
    }

    .receipt-guided-actions .receipt-action-label.d-none.d-lg-inline,
    .receipt-guided-actions .receipt-action-label.d-none.d-md-inline {
        display: none !important;
    }

    .order-receipt-payment-strip {
        grid-template-columns: 1fr;
    }

    .order-receipt-payment-tile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 0.75rem 1rem;
    }

    .order-receipt-payment-tile .label {
        margin-bottom: 0;
    }

    .order-receipt-print-id {
        text-align: left;
        width: 100%;
    }

    .order-receipt-totals {
        max-width: none;
    }

    .order-receipt-items-wrap {
        border: 0;
    }

    .order-receipt-items-table thead {
        display: none;
    }

    .order-receipt-items-table tbody tr.order-receipt-item-row {
        display: block;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 0.65rem 0.85rem;
        margin-bottom: 0.75rem;
        background: #fff;
    }

    .order-receipt-items-table tbody tr.order-receipt-item-row td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.75rem;
        border: 0 !important;
        padding: 0.4rem 0;
    }

    .order-receipt-items-table tbody tr.order-receipt-item-row td::before {
        content: attr(data-label);
        flex: 0 0 40%;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #94a3b8;
        padding-top: 2px;
    }

    .order-receipt-items-table tbody tr.order-receipt-item-row td:first-child {
        display: none;
    }

    .order-receipt-items-table tbody tr.order-receipt-item-row td.item-cell {
        display: block;
        padding-bottom: 0.5rem;
        margin-bottom: 0.35rem;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .order-receipt-items-table tbody tr.order-receipt-item-row td.item-cell::before {
        display: none;
    }
}

/* ==================== Assign Staff (Schedule) ==================== */
.schedule-assign-page {
    width: 100%;
}

.schedule-guided-header {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 0.9rem;
    align-items: stretch;
}

.schedule-guided-hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 1rem 1.15rem;
}

.schedule-guided-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 0.4rem;
}

.schedule-guided-back:hover {
    color: #2563eb;
}

.schedule-guided-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.schedule-guided-subtitle {
    font-size: 14px;
    color: #475569;
}

.schedule-guided-steps {
    list-style: none;
    margin: 0;
    padding: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.schedule-guided-step {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.schedule-guided-step-num {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #475569;
    font-size: 10px;
    font-weight: 700;
}

.schedule-guided-step.is-active .schedule-guided-step-num {
    background: #2563eb;
    color: #fff;
}

.schedule-guided-step.is-done .schedule-guided-step-num {
    background: #198754;
    color: #fff;
}

.schedule-guided-layout {
    display: block;
}

.schedule-guided-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.schedule-guided-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.schedule-guided-card-badge {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.schedule-editor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.schedule-editor-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
    font-size: 12px;
    font-weight: 700;
    color: #1d4ed8;
    background: #dbeafe;
}

.schedule-editor-customer {
    font-weight: 600;
    color: #0f172a;
}

.schedule-guided-footer {
    position: sticky;
    bottom: 0.75rem;
    z-index: 20;
    margin-top: 0.9rem;
    padding: 0.85rem;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.schedule-readonly-input {
    padding-left: 0;
    padding-right: 0;
    color: #0f172a;
}

.schedule-qty-col {
    min-width: 90px;
    width: 90px;
}

.schedule-time-col {
    min-width: 210px;
}

.schedule-assignment-table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #475569;
    background: #f8fafc;
}

.schedule-assignment-fields .form-select {
    font-size: 14px;
}

.schedule-staff-note {
    font-size: 13px;
}

@media (max-width: 991.98px) {
    .schedule-guided-header {
        grid-template-columns: 1fr;
    }

    .schedule-guided-steps {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {
    .schedule-guided-title {
        font-size: 1.2rem;
    }

    .schedule-guided-step {
        font-size: 9px;
    }

    .schedule-assignment-table thead {
        display: none;
    }

    .schedule-assignment-table tbody tr {
        display: block;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 0.55rem 0.6rem;
        margin-bottom: 0.65rem;
        background: #fff;
    }

    .schedule-assignment-table tbody td {
        display: flex;
        align-items: flex-start;
        gap: 0.65rem;
        width: 100%;
        border: 0 !important;
        padding: 0.35rem 0;
    }

    .schedule-assignment-table tbody td::before {
        content: attr(data-label);
        flex: 0 0 38%;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #94a3b8;
        padding-top: 2px;
    }

    .schedule-assignment-table tbody td > * {
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .schedule-guided-footer .btn {
        flex: 1 1 100%;
        width: 100%;
    }
}

.inquiry-jobs-hero-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 60%);
    border: 1px solid #d1e7dd;
    border-radius: 14px;
    padding: 1rem 1.15rem;
}

.inquiry-jobs-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
}

.inquiry-jobs-subtitle {
    font-size: 14px;
    color: #64748b;
}

/* ==================== Service Jobs List ==================== */
.service-jobs-panel {
    border-radius: 12px;
    overflow: hidden;
}

.service-jobs-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.service-jobs-search-wrap {
    position: relative;
    flex: 1 1 180px;
    min-width: 160px;
    max-width: 260px;
}

.service-jobs-search-wrap i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
}

.service-jobs-search-wrap .form-control {
    padding-left: 2.25rem;
    font-size: 14px;
    border-radius: 8px;
}

.service-jobs-filter-select {
    flex: 0 1 170px;
    min-width: 140px;
    font-size: 14px;
    border-radius: 8px;
}

.service-jobs-date-range {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1 1 240px;
    min-width: 200px;
    max-width: 320px;
}

.service-jobs-date-range .form-control {
    font-size: 14px;
    border-radius: 8px;
}

.service-jobs-date-sep {
    color: #94a3b8;
    font-size: 14px;
    flex-shrink: 0;
}

.service-jobs-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}

.service-jobs-inline-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.service-jobs-stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 0.55rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.service-jobs-stat-pill .stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.service-jobs-stat-pill .stat-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.service-jobs-stat-pill.stat-active {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.service-jobs-stat-pill.stat-pending {
    background: #fff7ed;
    border-color: #fed7aa;
}

.service-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.85rem;
}

.service-jobs-bulk-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0.85rem 0 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.service-jobs-select-all {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

.service-job-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.service-job-card.is-selected {
    border-color: #93c5fd;
    box-shadow: 0 0 0 1px #bfdbfe;
}

.service-job-card-select {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 2;
    margin: 0;
    cursor: pointer;
}

.service-job-card-select .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    cursor: pointer;
}

.service-job-card:has(.service-job-card-select) .service-job-card-head {
    padding-left: 1.5rem;
}

.service-job-card:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.service-job-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.service-job-card-ids {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.service-job-inquiry-code {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    word-break: break-all;
}

.service-job-inquiry-code:hover {
    text-decoration: underline;
}

.service-job-code {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.service-job-status-pill {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    line-height: 1.2;
}

.service-job-status-pill.pending {
    background: #fef2f2;
    color: #b91c1c;
}

.service-job-status-pill.accepted {
    background: #eff6ff;
    color: #1d4ed8;
}

.service-job-status-pill.processing {
    background: #eef2ff;
    color: #4338ca;
}

.service-job-status-pill.completed {
    background: #ecfdf5;
    color: #15803d;
}

.service-job-status-pill.rejected,
.service-job-status-pill.cancelled {
    background: #f1f5f9;
    color: #64748b;
}

.service-job-service-name {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-job-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 0.75rem;
    padding: 0.7rem 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.service-job-meta-item--full {
    grid-column: 1 / -1;
}

.service-job-schedule {
    grid-column: 1 / -1;
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    background: #fff;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
}

.service-job-schedule-slot {
    flex: 1;
    min-width: 0;
}

.service-job-schedule-slot .label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.service-job-schedule-slot .value-date {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.service-job-schedule-slot .value-time {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-top: 0.1rem;
}

.service-job-schedule-divider {
    width: 1px;
    background: #e2e8f0;
    flex-shrink: 0;
    align-self: stretch;
}

.service-job-meta-item .label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.service-job-meta-item .value {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    word-break: break-word;
}

.service-job-meta-item .value a {
    color: #2563eb;
    text-decoration: none;
}

.service-job-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.service-job-action-btn {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    white-space: nowrap;
}

.service-jobs-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #64748b;
}

.service-jobs-empty-icon {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.service-jobs-empty strong {
    display: block;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.service-jobs-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .service-jobs-grid {
        grid-template-columns: 1fr;
    }

    .service-job-meta-grid {
        grid-template-columns: 1fr;
    }

    .service-job-schedule {
        flex-direction: column;
        gap: 0.5rem;
    }

    .service-job-schedule-divider {
        width: 100%;
        height: 1px;
    }

    .service-job-card-actions {
        flex-direction: column;
    }

    .service-job-action-btn {
        width: 100%;
    }

    .service-jobs-toolbar-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }

    .service-jobs-search-wrap,
    .service-jobs-filter-select,
    .service-jobs-date-range {
        flex: 1 1 100%;
        max-width: none;
    }
}

.technicians-guided-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
}

.technicians-guided-card p {
    margin: 0;
    font-size: 14px;
    color: #475569;
}

/* ==================== Service Technicians List ==================== */
.technicians-panel {
    border-radius: 12px;
    overflow: hidden;
}

.technician-login-panel-inner {
    margin-top: 0.25rem;
    padding: 1rem 1.1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.technician-linked-account-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    color: #166534;
}

.technician-linked-account-banner i {
    font-size: 1.35rem;
    line-height: 1;
    margin-top: 0.1rem;
}

.technicians-inline-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.technicians-stat-pill {
    flex: 1 1 140px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    min-width: 0;
}

.technicians-stat-pill .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    min-width: 1.5rem;
}

.technicians-stat-pill .stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    line-height: 1.25;
}

.technicians-stat-pill.stat-available .stat-value {
    color: #15803d;
}

.technicians-stat-pill.stat-busy .stat-value,
.technicians-stat-pill.stat-unavailable .stat-value {
    color: #64748b;
}

.technicians-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.technicians-search-wrap {
    position: relative;
    flex: 1 1 240px;
    min-width: 180px;
}

.technicians-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
}

.technicians-search-wrap .form-control {
    padding-left: 2.35rem;
    border-radius: 10px;
    border-color: #e2e8f0;
    height: 42px;
}

.technicians-search-wrap .form-control:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.technicians-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-left: auto;
}

.technicians-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.technicians-chip:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.technicians-chip.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.technicians-reset {
    border-radius: 8px;
}

.technicians-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.technician-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.1rem 1.15rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.technician-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.technician-card.is-available {
    border-top: 3px solid #22c55e;
}

.technician-card.is-busy,
.technician-card.is-unavailable {
    border-top: 3px solid #94a3b8;
}

.technician-card-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: start;
}

.technician-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.technician-card.is-busy .technician-avatar,
.technician-card.is-unavailable .technician-avatar {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.technician-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.technician-name a {
    color: #0f172a;
    text-decoration: none;
}

.technician-name a:hover {
    color: #2563eb;
}

.technician-role {
    margin: 0.15rem 0 0;
    font-size: 13px;
    color: #64748b;
}

.technician-status-pill {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

.technician-status-pill.available {
    background: #dcfce7;
    color: #15803d;
}

.technician-status-pill.busy,
.technician-status-pill.unavailable {
    background: #f1f5f9;
    color: #64748b;
}

.technician-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.technician-meta li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    color: #475569;
}

.technician-meta li i {
    color: #94a3b8;
    font-size: 1rem;
    width: 1rem;
    text-align: center;
}

.technician-jobs-row--single {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.technician-modal-stats--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.technician-jobs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
    border-radius: 10px;
}

.technician-job-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.1rem;
}

.technician-job-stat .job-count {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.technician-job-stat .job-label {
    font-size: 11px;
    color: #64748b;
    line-height: 1.25;
}

.technician-linked {
    font-size: 12px;
    color: #64748b;
    padding: 0.45rem 0.6rem;
    background: #f1f5f9;
    border-radius: 8px;
}

.technician-linked i {
    color: #64748b;
}

.technician-name-btn {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    text-align: left;
}

.technician-name-btn:hover {
    color: #2563eb;
}

.technician-details-modal .modal-body {
    background: #f8fafc;
}

.technician-modal-summary {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.technician-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    margin-top: 0.85rem;
}

.technician-modal-grid .label,
.technician-modal-linked .label,
.technician-modal-stat .label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.technician-modal-grid .value,
.technician-modal-linked .value {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.technician-modal-linked {
    margin-top: 0.85rem;
    padding: 0.7rem 0.8rem;
    background: #f1f5f9;
    border-radius: 8px;
}

.technician-modal-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.technician-modal-stat {
    text-align: center;
    padding: 0.65rem 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

.technician-modal-stat .count {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.technician-modal-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
}

.technician-modal-section:last-child {
    margin-bottom: 0;
}

.technician-modal-section-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: #0f172a;
}

@media (max-width: 640px) {
    .technician-modal-grid,
    .technician-modal-stats {
        grid-template-columns: 1fr;
    }
}

.technician-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.technician-card-actions-row {
    display: flex;
    gap: 0.4rem;
}

.technician-card-actions-row .technician-action-btn {
    flex: 1 1 0;
}

.technician-card-actions .technician-action-form {
    margin: 0;
    width: 100%;
}

.technician-card-actions .technician-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    min-height: 34px;
    padding: 0.35rem 0.65rem;
    line-height: 1.2;
}

.technicians-empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1rem;
    padding: 1rem 1.15rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.technicians-empty-icon {
    font-size: 1.75rem;
    color: #94a3b8;
    line-height: 1;
    flex-shrink: 0;
}

.technicians-empty-text {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 14px;
    color: #64748b;
}

.technicians-empty-text strong {
    color: #0f172a;
    font-size: 15px;
}

.technicians-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 640px) {
    .technicians-inline-stats {
        flex-direction: column;
    }

    .technicians-stat-pill {
        flex: 1 1 auto;
    }

    .technicians-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .technicians-filter-chips {
        margin-left: 0;
    }

    .technicians-search-wrap {
        flex: 1 1 100%;
    }

    .technician-card-head {
        grid-template-columns: auto 1fr;
    }

    .technician-status-pill {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

/* ==================== PDF Export Mode ==================== */
body.pdf-export-mode {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #111827;
    font-size: 11px;
    line-height: 1.35;
}

body.pdf-export-mode .hidden-print,
body.pdf-export-mode .toolbar-modern,
body.pdf-export-mode .inquiry-guided-workflow,
body.pdf-export-mode .inquiry-toolbar,
body.pdf-export-mode .schedule-guided-banner,
body.pdf-export-mode .receipt-guided-header,
body.pdf-export-mode .order-receipt-payments {
    display: none !important;
}

body.pdf-export-mode .order-receipt-card {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
}

body.pdf-export-mode .order-receipt-card .card-body {
    padding: 0 !important;
}

body.pdf-export-mode #printReceipt {
    width: 100% !important;
}

body.pdf-export-mode .sale-invoice-details-layout {
    display: block !important;
    margin-bottom: 0.35rem;
}

body.pdf-export-mode .sale-invoice-details-sidebar {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

body.pdf-export-mode .sale-invoice-details-main {
    display: block !important;
}

body.pdf-export-mode .sale-invoice-details-sidebar > .order-receipt-section:only-child {
    grid-column: 1 / -1;
}

body.pdf-export-mode .order-receipt-print-header {
    margin-bottom: 0.55rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #d1d5db;
    gap: 0.75rem;
}

body.pdf-export-mode .order-receipt-company img {
    max-height: 34px;
}

body.pdf-export-mode .order-receipt-company .company-name {
    font-size: 14px;
    margin: 0.2rem 0 0.05rem;
}

body.pdf-export-mode .order-receipt-company .company-detail {
    font-size: 10px;
    color: #4b5563;
    line-height: 1.25;
}

body.pdf-export-mode .order-receipt-print-id .doc-label {
    font-size: 9px;
    letter-spacing: 0.08em;
}

body.pdf-export-mode .order-receipt-print-id .doc-number {
    font-size: 15px;
    margin: 0.05rem 0;
    color: #111827;
}

body.pdf-export-mode .order-receipt-section {
    margin-bottom: 0.35rem;
    break-inside: avoid;
}

body.pdf-export-mode .order-receipt-details-layout .order-receipt-section.sale-invoice-details-card {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.28rem 0.35rem;
    background: #fff;
}

body.pdf-export-mode .order-receipt-section-title {
    font-size: 11px;
    margin-bottom: 0.35rem;
    gap: 0.25rem;
}

body.pdf-export-mode .order-receipt-section-title i,
body.pdf-export-mode .order-receipt-contact-list li i {
    display: none !important;
}

body.pdf-export-mode .order-receipt-customer-card {
    background: #fff;
    border: 0;
    border-radius: 0;
    padding: 0;
}

body.pdf-export-mode .order-receipt-customer-name {
    font-size: 12px;
    margin-bottom: 0.25rem;
}

body.pdf-export-mode .order-receipt-contact-list {
    gap: 0.2rem;
}

body.pdf-export-mode .order-receipt-contact-list li {
    font-size: 10px;
    gap: 0.25rem;
}

body.pdf-export-mode .order-receipt-crm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
}

body.pdf-export-mode .order-receipt-crm-chip {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.3rem 0.35rem;
}

body.pdf-export-mode .order-receipt-crm-chip .chip-label {
    font-size: 8px;
    margin-bottom: 0.1rem;
}

body.pdf-export-mode .order-receipt-crm-chip .chip-value {
    font-size: 10px;
}

body.pdf-export-mode .order-receipt-items-wrap {
    overflow: visible !important;
}

body.pdf-export-mode .order-receipt-items-table {
    table-layout: fixed;
}

body.pdf-export-mode .sale-invoice-details-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
    margin-bottom: 0.45rem;
}

body.pdf-export-mode .sale-invoice-details-summary-tile {
    gap: 0.35rem;
    padding: 0.35rem 0.4rem;
    border-radius: 6px;
}

body.pdf-export-mode .sale-invoice-details-summary-icon {
    width: 22px;
    height: 22px;
    font-size: 0.82rem;
    border-radius: 6px;
}

body.pdf-export-mode .sale-invoice-details-summary-value {
    font-size: 9.5px;
}

body.pdf-export-mode .sale-invoice-details-summary-label {
    font-size: 7.5px;
    line-height: 1.15;
}

body.pdf-export-mode .order-receipt-items-table thead {
    display: table-header-group;
}

body.pdf-export-mode .order-receipt-items-table tbody tr.order-receipt-item-row {
    display: table-row !important;
}

body.pdf-export-mode .order-receipt-items-table thead th {
    background: #f3f4f6 !important;
    color: #111827;
    font-size: 9px;
    padding: 0.25rem 0.3rem;
    border-bottom: 1px solid #d1d5db;
}

body.pdf-export-mode .order-receipt-items-table tbody td {
    display: table-cell !important;
    font-size: 9.5px;
    padding: 0.22rem 0.3rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    white-space: normal;
    word-break: break-word;
    line-height: 1.18;
}

body.pdf-export-mode .order-receipt-items-table tbody td::before {
    content: none !important;
    display: none !important;
}

body.pdf-export-mode .order-receipt-items-table .d-none.d-md-table-cell {
    display: table-cell !important;
}

body.pdf-export-mode .order-receipt-items-table .d-md-none {
    display: none !important;
}

body.pdf-export-mode .order-receipt-tech-badge {
    font-size: 8px;
    padding: 0.1rem 0.3rem;
    border-radius: 999px;
    margin-right: 0.15rem;
    margin-bottom: 0.1rem;
}

body.pdf-export-mode .order-receipt-workshop-link {
    display: none !important;
}

body.pdf-export-mode .order-receipt-workshop-table {
    table-layout: auto;
}

body.pdf-export-mode .order-receipt-workshop-table thead th {
    font-size: 8px;
    padding: 0.18rem 0.2rem;
}

body.pdf-export-mode .order-receipt-workshop-table tbody td {
    font-size: 8.2px;
    padding: 0.18rem 0.2rem;
}

body.pdf-export-mode .order-receipt-workshop-table .order-receipt-workshop-link {
    display: inline !important;
    font-size: 8px;
}

body.pdf-export-mode .order-receipt-workshop-table .badge {
    font-size: 7px;
    padding: 0.1rem 0.22rem;
}

body.pdf-export-mode .order-receipt-totals {
    max-width: 250px;
    padding: 0.28rem 0.35rem;
    border-radius: 6px;
    border-color: #d1d5db;
    margin-top: 0.1rem;
    margin-left: auto;
}

body.pdf-export-mode .order-receipt-totals-row {
    font-size: 10px;
    padding: 0.12rem 0;
}

body.pdf-export-mode .order-receipt-totals-row.grand {
    margin-top: 0.2rem;
    padding-top: 0.25rem;
    font-size: 11px;
}

body.pdf-export-mode .order-receipt-note-box {
    border-radius: 6px;
    padding: 0.35rem 0.45rem;
    font-size: 10px;
    border-color: #d1d5db;
    color: #1f2937;
    background: #f9fafb !important;
}

/* ==================== Print Styles ==================== */
@media print {
    .hidden-print,
    .toolbar-modern,
    .inquiry-guided-workflow,
    .inquiry-toolbar,
    .schedule-guided-banner,
    .receipt-guided-header,
    .order-receipt-payments {
        display: none !important;
    }

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

    html,
    body {
        background: #fff !important;
    }

    body {
        margin: 0 !important;
        padding: 0 !important;
        color: #111827;
        font-size: 11px;
        line-height: 1.35;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .page-wrapper,
    .page-content,
    .container-fluid,
    .row,
    .col-12 {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    #printReceipt {
        width: 100% !important;
    }

    .order-receipt-card {
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin: 0 !important;
        break-inside: avoid;
    }

    .order-receipt-card .card-body {
        padding: 0 !important;
    }

    .order-receipt-page,
    .order-receipt-shell .order-receipt-page {
        max-width: none;
        padding: 0 !important;
    }

    .order-receipt-print-header {
        margin-bottom: 0.55rem;
        padding-bottom: 0.45rem;
        border-bottom: 1px solid #d1d5db;
        gap: 0.75rem;
        break-inside: avoid;
    }

    .order-receipt-company img {
        max-height: 34px;
    }

    .order-receipt-company .company-name {
        font-size: 14px;
        margin: 0.2rem 0 0.05rem;
    }

    .order-receipt-company .company-detail {
        font-size: 10px;
        color: #4b5563;
        line-height: 1.25;
    }

    .order-receipt-print-id .doc-label {
        font-size: 9px;
        letter-spacing: 0.08em;
    }

    .order-receipt-print-id .doc-number {
        font-size: 15px;
        margin: 0.05rem 0;
        color: #111827;
    }

    .sale-invoice-details-layout {
        display: block !important;
        margin-bottom: 0.35rem;
    }

    .sale-invoice-details-sidebar {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem;
        margin-bottom: 0.35rem;
    }

    .sale-invoice-details-sidebar > .order-receipt-section:only-child {
        grid-column: 1 / -1;
    }

    .sale-invoice-details-main {
        display: block !important;
    }

    .order-receipt-section {
        margin-bottom: 0.35rem;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .order-receipt-details-layout .order-receipt-section.sale-invoice-details-card {
        border: 1px solid #d1d5db;
        border-radius: 6px;
        padding: 0.28rem 0.35rem;
        background: #fff;
    }

    .order-receipt-section-title {
        font-size: 11px;
        margin-bottom: 0.35rem;
        gap: 0.25rem;
    }

    .order-receipt-section-title i,
    .order-receipt-contact-list li i {
        display: none !important;
    }

    .order-receipt-customer-card {
        background: #fff;
        border: 0;
        border-radius: 0;
        padding: 0;
    }

    .order-receipt-customer-name {
        font-size: 12px;
        margin-bottom: 0.25rem;
    }

    .order-receipt-contact-list {
        gap: 0.2rem;
    }

    .order-receipt-contact-list li {
        font-size: 10px;
        gap: 0.25rem;
    }

    .order-receipt-crm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.3rem;
    }

    .order-receipt-crm-chip {
        border: 1px solid #e5e7eb;
        border-radius: 4px;
        padding: 0.3rem 0.35rem;
    }

    .order-receipt-crm-chip .chip-label {
        font-size: 8px;
        margin-bottom: 0.1rem;
    }

    .order-receipt-crm-chip .chip-value {
        font-size: 10px;
    }

    .order-receipt-items-wrap {
        overflow: visible !important;
    }

    .order-receipt-items-table {
        table-layout: fixed;
    }

    .sale-invoice-details-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.3rem;
        margin-bottom: 0.45rem;
    }

    .sale-invoice-details-summary-tile {
        gap: 0.35rem;
        padding: 0.35rem 0.4rem;
        border-radius: 6px;
    }

    .sale-invoice-details-summary-icon {
        width: 22px;
        height: 22px;
        font-size: 0.82rem;
        border-radius: 6px;
    }

    .sale-invoice-details-summary-value {
        font-size: 9.5px;
    }

    .sale-invoice-details-summary-label {
        font-size: 7.5px;
        line-height: 1.15;
    }

    .order-receipt-items-table thead {
        display: table-header-group;
    }

    .order-receipt-items-table tbody tr.order-receipt-item-row {
        display: table-row !important;
        border: 0 !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
    }

    .order-receipt-items-table tr {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .order-receipt-items-table thead th {
        background: #f3f4f6 !important;
        color: #111827;
        font-size: 9px;
        padding: 0.25rem 0.3rem;
        border-bottom: 1px solid #d1d5db;
    }

    .order-receipt-items-table tbody td {
        display: table-cell !important;
        font-size: 9.5px;
        padding: 0.22rem 0.3rem;
        border-bottom: 1px solid #e5e7eb;
        vertical-align: top;
        white-space: normal;
        word-break: break-word;
        line-height: 1.18;
    }

    .order-receipt-items-table tbody td::before {
        content: none !important;
        display: none !important;
    }

    .order-receipt-items-table tbody tr.order-receipt-item-row td:first-child {
        display: table-cell !important;
    }

    .order-receipt-items-table tbody tr.order-receipt-item-row td.item-cell {
        display: table-cell !important;
        border-bottom: 1px solid #e5e7eb !important;
        margin: 0 !important;
        padding: 0.22rem 0.3rem !important;
    }

    .order-receipt-items-table .d-none.d-md-table-cell {
        display: table-cell !important;
    }

    .order-receipt-items-table .d-md-none {
        display: none !important;
    }

    .order-receipt-item-name {
        font-size: 10px;
        margin-bottom: 0.08rem;
    }

    .order-receipt-item-desc {
        font-size: 8.5px;
        color: #4b5563;
    }

    .order-receipt-tech-badge {
        font-size: 8px;
        padding: 0.1rem 0.3rem;
        border-radius: 999px;
        margin-right: 0.15rem;
        margin-bottom: 0.1rem;
    }

    .order-receipt-workshop-link {
        display: none !important;
    }

    .order-receipt-workshop-table {
        table-layout: auto;
    }

    .order-receipt-workshop-table thead th {
        font-size: 8px;
        padding: 0.18rem 0.2rem;
    }

    .order-receipt-workshop-table tbody td {
        font-size: 8.2px;
        padding: 0.18rem 0.2rem;
    }

    .order-receipt-workshop-table .order-receipt-workshop-link {
        display: inline !important;
        font-size: 8px;
    }

    .order-receipt-workshop-table .badge {
        font-size: 7px;
        padding: 0.1rem 0.22rem;
    }

    .order-receipt-empty {
        padding: 0.45rem;
        border-radius: 4px;
        font-size: 10px;
    }

    .order-receipt-empty i {
        display: none !important;
    }

    .order-receipt-totals {
        max-width: 250px;
        padding: 0.28rem 0.35rem;
        border-radius: 6px;
        border-color: #d1d5db;
        margin-top: 0.1rem;
        margin-left: auto;
        break-inside: avoid;
    }

    .order-receipt-totals-row {
        font-size: 10px;
        padding: 0.12rem 0;
    }

    .order-receipt-totals-row.grand {
        margin-top: 0.2rem;
        padding-top: 0.25rem;
        font-size: 11px;
    }

    .order-receipt-note-box {
        border-radius: 6px;
        padding: 0.35rem 0.45rem;
        font-size: 10px;
        border-color: #d1d5db;
        color: #1f2937;
        background: #f9fafb !important;
    }

    .order-receipt-note-box strong {
        margin-bottom: 0.1rem;
        font-size: 10px;
        color: #111827;
    }
}

/* Inquiry flow timeline — simple UX */
.flow-page {
    max-width: 720px;
    margin: 0 auto;
}

.flow-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.flow-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.flow-back:hover {
    color: #2563eb;
}

.flow-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.flow-hero-subtitle {
    font-size: 14px;
    color: #475569;
    margin: 0 0 0.5rem;
}

.flow-hero-subtitle a {
    color: inherit;
    text-decoration: none;
}

.flow-hero-status {
    font-size: 14px;
    font-weight: 600;
    color: #1d4ed8;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.flow-hero-status.is-complete {
    color: #15803d;
}

.flow-hero-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
}

.flow-hero-cta {
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    white-space: nowrap;
}

.flow-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.flow-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.flow-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 4.5rem;
    flex: 1;
}

.flow-progress-dot {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #94a3b8;
}

.flow-progress-step.done .flow-progress-dot {
    background: #dcfce7;
    border-color: #86efac;
    color: #15803d;
}

.flow-progress-step.current .flow-progress-dot {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.flow-progress-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    line-height: 1.2;
}

.flow-progress-step.current .flow-progress-label {
    color: #1d4ed8;
}

.flow-progress-step.done .flow-progress-label {
    color: #15803d;
}

.flow-progress-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    min-width: 0.5rem;
    margin-bottom: 1.4rem;
}

.flow-progress-line.done {
    background: #86efac;
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flow-step {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.flow-step--active {
    border-color: #93c5fd;
    box-shadow: 0 0 0 1px #bfdbfe;
}

.flow-step--pending {
    opacity: 0.72;
}

.flow-step-summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
    user-select: none;
}

.flow-step-summary::-webkit-details-marker {
    display: none;
}

.flow-step-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    background: #f1f5f9;
    color: #64748b;
}

.flow-step--done .flow-step-icon {
    background: #dcfce7;
    color: #15803d;
}

.flow-step--active .flow-step-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.flow-step-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.flow-step-text strong {
    font-size: 14px;
    color: #0f172a;
}

.flow-step-text span {
    font-size: 13px;
    color: #64748b;
}

.flow-step-date {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
}

.flow-step-body {
    padding: 0 1rem 1rem 3.6rem;
    border-top: 1px solid #f1f5f9;
    margin-top: -0.15rem;
    padding-top: 0.75rem;
}

.flow-step-list {
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}

.flow-step-list li {
    font-size: 13px;
    color: #334155;
    padding: 0.35rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

.flow-step-list li:last-child {
    border-bottom: none;
}

.flow-step-action {
    font-weight: 600;
}

.flow-payments {
    margin-top: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.flow-payments-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.flow-payments-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.flow-payments-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    font-size: 14px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}

.flow-payments-list li:last-child {
    border-bottom: none;
}

.flow-payments-list strong {
    color: #0f172a;
}

@media (max-width: 767px) {
    .flow-hero-side {
        width: 100%;
        align-items: stretch;
    }

    .flow-hero-cta {
        width: 100%;
        justify-content: center;
    }

    .flow-hero-links {
        justify-content: stretch;
    }

    .flow-hero-links .btn {
        flex: 1;
    }

    .flow-progress-label {
        font-size: 10px;
    }

    .flow-step-summary {
        flex-wrap: wrap;
    }

    .flow-step-date {
        width: 100%;
        padding-left: 2.75rem;
    }

    .flow-step-body {
        padding-left: 1rem;
    }
}

/* Garage — guided vehicle create */
.vehicle-create-shell .page-content.vehicle-create-content {
    padding: 1rem 1rem 0.75rem;
    width: 100%;
    max-width: 100%;
}

.vehicle-guided-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.vehicle-guided-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

@media (min-width: 992px) {
    .vehicle-guided-header {
        grid-template-columns: minmax(260px, 1fr) minmax(320px, 2fr);
        align-items: stretch;
    }
}

.vehicle-guided-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.15rem 1.35rem;
}

.vehicle-guided-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.vehicle-guided-back:hover {
    color: #2563eb;
}

.vehicle-guided-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.vehicle-guided-subtitle {
    font-size: 14px;
    color: #475569;
}

.vehicle-guided-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.vehicle-guided-steps {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0 0 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.vehicle-guided-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.vehicle-guided-step.is-active,
.vehicle-guided-step.is-done {
    opacity: 1;
}

.vehicle-guided-step-num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
}

.vehicle-guided-step.is-active .vehicle-guided-step-num {
    background: #2563eb;
    color: #fff;
}

.vehicle-guided-step.is-done .vehicle-guided-step-num {
    background: #16a34a;
    color: #fff;
}

.vehicle-guided-step-text {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    line-height: 1.2;
}

.vehicle-guided-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 1rem;
    box-shadow: none;
}

.vehicle-guided-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.15rem;
}

.vehicle-guided-card-badge {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    background: #2563eb;
    color: #fff;
}

.vehicle-guided-optional {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 1rem;
    background: #fff;
}

.vehicle-guided-optional-summary {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    cursor: pointer;
    list-style: none;
}

.vehicle-guided-optional-summary::-webkit-details-marker {
    display: none;
}

.vehicle-guided-optional[open] .vehicle-guided-chevron {
    transform: rotate(180deg);
}

.vehicle-guided-chevron {
    margin-left: auto;
    font-size: 1.25rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.vehicle-guided-optional-body {
    padding: 0 1.15rem 1.15rem;
    border-top: 1px solid #f1f5f9;
    margin-top: 0;
    padding-top: 1rem;
}

.vehicle-guided-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0.25rem 0 1.5rem;
}

.vehicle-guided-layout .vehicle-guided-card,
.vehicle-guided-layout .vehicle-guided-optional {
    width: 100%;
    margin-bottom: 0;
}

.vehicle-guided-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    width: 100%;
    padding: 0.25rem 0 1rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.25rem;
}

@media (min-width: 992px) {
    .vehicle-guided-footer {
        position: sticky;
        bottom: 0;
        z-index: 5;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #fff 28%);
        padding-top: 0.85rem;
        margin-top: 0.5rem;
    }
}

.vehicle-guided-form .input-group .select2-container {
    flex: 1 1 auto;
    width: 1% !important;
}

@media (max-width: 575.98px) {
    .vehicle-guided-step-text {
        font-size: 10px;
    }

    .vehicle-guided-actions .btn {
        flex: 1 1 100%;
    }

    .vehicle-guided-title {
        font-size: 1.25rem;
    }
}

/* Vehicle detail (show) */
.vehicle-detail-shell .page-content {
    max-width: none;
}

.vehicle-detail-hero {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.vehicle-detail-hero-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.vehicle-detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.vehicle-detail-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

.vehicle-detail-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.vehicle-detail-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.vehicle-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem 1.5rem;
}

.vehicle-detail-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vehicle-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.vehicle-detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    word-break: break-word;
}

.vehicle-detail-notes {
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.vehicle-detail-notes p {
    color: #475569;
    font-size: 0.9rem;
}

.vehicle-detail-customer {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.vehicle-detail-customer-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.vehicle-detail-customer-name {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
}

.vehicle-detail-customer-meta {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.2rem;
}

.vehicle-detail-customer-meta i {
    margin-right: 0.25rem;
}

.vehicle-detail-meta-list .vehicle-detail-value {
    font-weight: 500;
    font-size: 0.875rem;
}

.vehicle-detail-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #94a3b8;
}

.vehicle-detail-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

/* Sale invoice create — guided layout */
.sale-invoice-create-shell .page-content {
    max-width: 100%;
}

.sale-invoice-guided-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 992px) {
    .sale-invoice-guided-header {
        grid-template-columns: minmax(260px, 1fr) minmax(360px, 2fr);
        align-items: stretch;
    }
}

.sale-invoice-guided-hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 1.15rem 1.35rem;
}

.sale-invoice-guided-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.sale-invoice-guided-back:hover {
    color: #2563eb;
}

.sale-invoice-guided-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.sale-invoice-guided-subtitle {
    font-size: 14px;
    color: #475569;
}

.sale-invoice-guided-steps {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.sale-invoice-guided-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    opacity: 0.55;
    min-width: 0;
}

.sale-invoice-guided-step.is-active,
.sale-invoice-guided-step.is-done {
    opacity: 1;
}

.sale-invoice-guided-step-num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
}

.sale-invoice-guided-step.is-active .sale-invoice-guided-step-num {
    background: #008a5e;
    color: #fff;
}

.sale-invoice-guided-step.is-done .sale-invoice-guided-step-num {
    background: #198754;
    color: #fff;
}

.sale-invoice-guided-step-text {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    line-height: 1.25;
}

.sale-invoice-guided-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sale-invoice-guided-form .input-group .select2-container {
    flex: 1 1 auto;
    width: 1% !important;
    min-width: 0;
}

.sale-invoice-guided-form .input-group .select2-container .select2-selection {
    min-height: calc(1.5em + 0.75rem + 4px);
}

.sale-invoice-guided-form .input-group > .input-group-text {
    flex-shrink: 0;
}

.inquiry-guided-form .input-group .select2-container {
    flex: 1 1 auto;
    width: 1% !important;
    min-width: 0;
}

.inquiry-guided-form .input-group .select2-container .select2-selection {
    min-height: calc(1.5em + 0.75rem + 4px);
}

.inquiry-guided-form .input-group > .input-group-text {
    flex-shrink: 0;
}

/* Keep all inquiry form controls uniform like customer select */
.inquiry-guided-form .select2-container--bootstrap-5 .select2-selection {
    min-height: calc(1.5em + 0.75rem + 4px);
    border-width: 2px;
    border-color: #e9ecef;
    border-radius: 10px;
}

.inquiry-guided-form .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: calc(1.5em + 0.75rem);
    padding-left: 1rem;
    padding-right: 2rem;
}

.inquiry-guided-form .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: calc(1.5em + 0.75rem + 4px);
}

.inquiry-guided-form .select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: #04966a;
    box-shadow: 0 0 0 0.25rem rgba(4, 150, 106, 0.15);
}

/* Sale invoice — payment section */
.sale-payment-row + .sale-payment-row {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}

.sale-payment-row .sale-payment-currency {
    font-weight: 600;
    min-width: 2.5rem;
    justify-content: center;
}

.sale-payment-online {
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

.sale-payment-online[data-state="success"] {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.sale-payment-online[data-state="processing"] {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.sale-payment-online__idle,
.sale-payment-online__processing,
.sale-payment-online__success {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.sale-payment-online__success {
    font-weight: 500;
}

.sale-payment-online__success .bx-check-circle {
    color: #16a34a;
    font-size: 1.1rem;
}

/* Sale invoice — payment history */
.sale-payment-history {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    overflow: hidden;
}

.sale-payment-history__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.sale-payment-history__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.sale-payment-history__subtitle {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.sale-payment-history__total-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.sale-payment-history__summary-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.sale-payment-history__total-pill--net {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.sale-payment-history__total-pill--net .sale-payment-history__total-label,
.sale-payment-history__total-pill--net .sale-payment-history__total-value {
    color: #065f46;
}

.sale-payment-history__total-pill--refunded {
    background: #fff7ed;
    border-color: #fed7aa;
}

.sale-payment-history__total-pill--refunded .sale-payment-history__total-label {
    color: #c2410c;
}

.sale-payment-history__total-pill--refunded .sale-payment-history__total-value {
    color: #9a3412;
}

.sale-payment-history__total-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #047857;
}

.sale-payment-history__total-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #065f46;
}

.sale-payment-history__list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem;
}

.sale-payment-history-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #10b981;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.sale-payment-history-item__content-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.85rem 0.9rem;
}

.sale-payment-history-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.sale-payment-history-item--online {
    border-left-color: #2563eb;
}

.sale-payment-history-item__body {
    flex: 1;
    min-width: 0;
}

.sale-payment-history-item__primary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.65rem;
}

.sale-payment-history-item__amount-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
}

.sale-payment-history-item__currency {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
}

.sale-payment-history-item__amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.sale-payment-history-item__type {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.sale-payment-history-item--online .sale-payment-history-item__type {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.sale-payment-history-item__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem 0.85rem;
}

.sale-payment-history-item__field {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.sale-payment-history-item__field--wide {
    grid-column: 1 / -1;
}

.sale-payment-history-item__label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.sale-payment-history-item__value {
    font-size: 0.84rem;
    font-weight: 500;
    color: #334155;
    word-break: break-word;
}

.sale-payment-history-item__ref {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    color: #1e40af;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.2rem 0.45rem;
    display: inline-block;
    max-width: 100%;
}

.sale-payment-history-item__actions {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
}

.sale-payment-history-item__delete {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #dc2626;
    border: 1px solid #fecaca;
    background: #fff;
}

.sale-payment-history-item__delete:hover,
.sale-payment-history-item__delete:focus {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
}

.sale-payment-history-item__locked {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 1.1rem;
}

.sale-payment-history-item__refund {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #b45309;
    border: 1px solid #fde68a;
    background: #fff;
}

.sale-payment-history-item__refund:hover,
.sale-payment-history-item__refund:focus {
    color: #fff;
    background: #d97706;
    border-color: #d97706;
}

.sale-payment-history-item--refunded {
    border-left-color: #f59e0b;
    background: #fff;
}

.sale-payment-history-item--refunded:hover {
    border-color: #fdba74;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

.sale-payment-history-item__refund-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    padding: 0.65rem 0.9rem;
    background: linear-gradient(90deg, #fff7ed 0%, #fffbeb 100%);
    border-bottom: 1px solid #fed7aa;
}

.sale-payment-history-item__refund-banner-main {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.sale-payment-history-item__refund-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 1rem;
    flex-shrink: 0;
}

.sale-payment-history-item__refund-banner-title {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #9a3412;
    line-height: 1.2;
}

.sale-payment-history-item__refund-banner-status {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #c2410c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sale-payment-history-item__refund-banner-type {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.sale-payment-history-item__amount-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.sale-payment-history-item__breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.sale-payment-history-item__breakdown-row--net {
    margin-top: 0.15rem;
    padding-top: 0.55rem;
    border-top: 1px dashed #cbd5e1;
}

.sale-payment-history-item__breakdown-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
}

.sale-payment-history-item__breakdown-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}

.sale-payment-history-item__breakdown-value--original {
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-color: rgba(148, 163, 184, 0.7);
    font-weight: 600;
}

.sale-payment-history-item__breakdown-value--refunded {
    color: #c2410c;
}

.sale-payment-history-item__breakdown-value--net {
    font-size: 1rem;
    color: #0f172a;
}

.sale-payment-history-item__audit-note {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.75rem !important;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 0.76rem;
    line-height: 1.45;
    color: #64748b;
}

.sale-payment-history-item__audit-note .bx {
    flex-shrink: 0;
    margin-top: 0.05rem;
    color: #94a3b8;
}

.gateway-report-row--removed {
    opacity: 0.72;
    background-color: #f8fafc;
}

.gateway-report-row--removed td {
    text-decoration: line-through;
    text-decoration-color: rgba(100, 116, 139, 0.45);
}

.gateway-report-row--refunded {
    background-color: #fffbeb;
}

.gateway-report-status--removed {
    text-decoration: none !important;
}

.sale-payment-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #fff;
}

.sale-payment-history-empty__icon {
    font-size: 1.75rem;
    color: #94a3b8;
}

.sale-payment-history--embedded .sale-payment-history {
    margin-bottom: 0 !important;
    border: none;
    background: transparent;
}

.sale-payment-history--embedded .sale-payment-history__header {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
}

.sale-payment-history--embedded .sale-payment-history__list {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

@media (max-width: 575px) {
    .sale-payment-history__header {
        align-items: flex-start;
    }

    .sale-payment-history__summary-pills {
        width: 100%;
        justify-content: flex-start;
    }

    .sale-payment-history-item__content-row {
        flex-direction: column;
    }

    .sale-payment-history-item__actions {
        align-self: flex-end;
    }

    .sale-payment-history-item__details {
        grid-template-columns: 1fr;
    }
}

.sale-invoice-guided-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.sale-invoice-guided-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
}

.sale-invoice-guided-card-badge {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    background: #008a5e;
    color: #fff;
}

.sale-invoice-item-toolbar {
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 100%);
    border: 1px solid #e2e8f0;
}

.sale-invoice-items-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.25rem;
    background: #fff;
}

.sale-invoice-load-btn {
    border-radius: 10px !important;
}

.sale-invoice-totals-panel {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    height: 100%;
}

.sale-invoice-totals-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

.sale-invoice-totals-table tr:last-child td {
    border-top: 2px solid #dbeafe;
    padding-top: 0.75rem;
}

.sale-invoice-totals-table tr:last-child .grand_total {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.sale-invoice-guided-footer {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-start;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    position: sticky;
    bottom: 0.75rem;
    z-index: 20;
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
}

.sale-invoice-guided-footer__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-left: auto;
    flex-shrink: 0;
}

.guided-form-kbd-hints {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    margin-right: auto;
    padding: 0.35rem 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 11px;
    line-height: 1.2;
    color: #64748b;
    white-space: nowrap;
}

.guided-form-kbd-hints__label {
    flex: 0 0 auto;
    padding-right: 0.55rem;
    margin-right: 0.1rem;
    border-right: 1px solid #e2e8f0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    white-space: nowrap;
}

.guided-form-kbd-hints__list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}

.guided-form-kbd-hints__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.5rem;
    white-space: nowrap;
}

.guided-form-kbd-hints__item + .guided-form-kbd-hints__item {
    position: relative;
}

.guided-form-kbd-hints__item + .guided-form-kbd-hints__item::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 14px;
    margin-right: 0.4rem;
    background: #e2e8f0;
}

.guided-form-kbd-hints__keys {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.guided-form-kbd-hints__plus {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
}

.guided-form-kbd-hints__action {
    font-size: 11px;
    font-weight: 500;
    color: #475569;
}

.sale-invoice-guided-footer .guided-form-kbd-hints kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    padding: 0.12rem 0.38rem;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 1px 0 #cbd5e1;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: #334155;
}

@media (max-width: 575.98px) {
    .sale-invoice-guided-step-text {
        font-size: 9px;
    }

    .sale-invoice-guided-title {
        font-size: 1.2rem;
    }

    .sale-invoice-guided-footer {
        flex-wrap: wrap;
    }

    .sale-invoice-guided-footer .btn {
        flex: 1 1 100%;
    }
}

/* Appointment create/edit — guided layout */
.appointment-create-shell .page-content {
    max-width: 100%;
}

.appointment-guided-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 992px) {
    .appointment-guided-header {
        grid-template-columns: minmax(260px, 1fr) minmax(360px, 2fr);
        align-items: stretch;
    }
}

.appointment-guided-hero {
    background: linear-gradient(135deg, #eef2ff 0%, #fff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 14px;
    padding: 1.15rem 1.35rem;
}

.appointment-guided-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.appointment-guided-back:hover {
    color: #4f46e5;
}

.appointment-guided-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.appointment-guided-subtitle {
    font-size: 14px;
    color: #475569;
}

.appointment-guided-badges .badge {
    font-weight: 600;
}

.appointment-guided-steps {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.appointment-guided-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    opacity: 0.55;
    min-width: 0;
    transition: opacity 0.2s ease;
}

.appointment-guided-step.is-active,
.appointment-guided-step.is-done {
    opacity: 1;
}

.appointment-guided-step-num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
}

.appointment-guided-step.is-active .appointment-guided-step-num {
    background: #4f46e5;
    color: #fff;
}

.appointment-guided-step.is-done .appointment-guided-step-num {
    background: #198754;
    color: #fff;
}

.appointment-guided-step-text {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    line-height: 1.25;
}

.appointment-guided-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.appointment-guided-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.appointment-guided-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
}

.appointment-guided-card-badge {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    background: #4f46e5;
    color: #fff;
}

.appointment-item-toolbar {
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #e2e8f0;
}

.appointment-items-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.25rem;
    background: #fff;
}

.appointment-totals-panel {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    height: 100%;
}

.appointment-totals-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

.appointment-totals-table tr:last-child td {
    border-top: 2px solid #c7d2fe;
    padding-top: 0.75rem;
}

.appointment-totals-table tr:last-child #appointmentGrandTotal {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.appointment-guided-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    position: sticky;
    bottom: 0.75rem;
    z-index: 20;
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
}

.appointment-guided-form .input-group .select2-container {
    flex: 1 1 auto;
    width: 1% !important;
}

@media (max-width: 575.98px) {
    .appointment-guided-step-text {
        font-size: 9px;
    }

    .appointment-guided-title {
        font-size: 1.2rem;
    }

    .appointment-guided-footer .btn {
        flex: 1 1 100%;
    }
}

/* Sale invoice details — read-only view */
.sale-invoice-details-shell .page-content {
    max-width: 100%;
    width: 100%;
}

.sale-invoice-details-header {
    margin-bottom: 1rem;
}

.sale-invoice-details-hero {
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 55%, #f8fafc 100%);
    border: 1px solid #d1e7dd;
    border-radius: 14px;
    padding: 1.15rem 1.35rem;
}

.sale-invoice-details-hero-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.sale-invoice-details-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.sale-invoice-details-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 13px;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
}

.sale-invoice-details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: flex-end;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.sale-invoice-details-actions-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.sale-invoice-details-actions-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.sale-invoice-details-actions-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.receipt-status-links {
    gap: 0.6rem;
}

.receipt-status-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.15rem 0;
}

.receipt-status-link:hover {
    color: #04966a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.receipt-status-link > i {
    color: #04966a;
    font-size: 1rem;
}

.receipt-status-link__text {
    font-weight: 600;
}

.sale-invoice-details-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .sale-invoice-details-summary {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sale-invoice-details-summary-tile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.sale-invoice-details-summary-tile--primary {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
}

.sale-invoice-details-summary-tile--success {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}

.sale-invoice-details-summary-tile--danger {
    border-color: #fecaca;
    background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
}

.sale-invoice-details-summary-tile--muted {
    border-color: #e2e8f0;
}

.sale-invoice-details-summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    color: #04966a;
    flex-shrink: 0;
}

.sale-invoice-details-summary-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.sale-invoice-details-summary-label {
    font-size: 12px;
    color: #64748b;
}

.sale-invoice-details-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 992px) {
    .sale-invoice-details-layout {
        grid-template-columns: minmax(260px, 320px) 1fr;
        align-items: start;
    }
}

.sale-invoice-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sale-invoice-details-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.sale-invoice-details-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.sale-invoice-details-card-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
}

.sale-invoice-details-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    flex: 1;
}

.sale-invoice-details-item-count {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}

.sale-invoice-details-card-body {
    padding: 1rem 1.1rem;
}

.sale-invoice-details-party-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.65rem;
}

.sale-invoice-details-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 14px;
    color: #475569;
    margin-bottom: 0.45rem;
}

.sale-invoice-details-meta-row i {
    color: #04966a;
    margin-top: 2px;
    flex-shrink: 0;
}

.sale-invoice-details-table-wrap {
    max-height: none;
}

.sale-invoice-details-table thead th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.sale-invoice-details-table tbody td {
    font-size: 14px;
    vertical-align: top;
    border-bottom: 1px solid #f1f5f9;
}

.sale-invoice-details-table .col-num {
    width: 40px;
}

.sale-invoice-details-item-name {
    font-weight: 600;
    color: #0f172a;
}

.sale-invoice-details-item-meta {
    font-size: 12px;
    color: #64748b;
    margin-top: 0.15rem;
}

.sale-invoice-details-totals-row--muted {
    color: #94a3b8;
    font-size: 13px;
}

.sale-invoice-details-mobile-items {
    padding: 0.5rem;
}

.sale-invoice-details-mobile-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #fafbfc;
}

.sale-invoice-details-mobile-item-head {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sale-invoice-details-mobile-item-num {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sale-invoice-details-mobile-item-total {
    font-weight: 700;
    color: #04966a;
    white-space: nowrap;
}

.sale-invoice-details-mobile-item-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
    font-size: 13px;
}

@media (min-width: 480px) {
    .sale-invoice-details-mobile-item-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sale-invoice-details-mobile-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
}

.sale-invoice-details-totals {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.1rem;
}

.sale-invoice-details-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.45rem 0;
    font-size: 14px;
    color: #475569;
    border-bottom: 1px dashed #f1f5f9;
}

.sale-invoice-details-totals-row:last-child {
    border-bottom: none;
}

.sale-invoice-details-totals-row--grand {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    padding-top: 0.65rem;
    margin-top: 0.25rem;
    border-top: 2px solid #e2e8f0;
    border-bottom: none;
}

.sale-invoice-details-totals-row--balance {
    font-weight: 700;
    font-size: 1rem;
}

.sale-invoice-details-section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.sale-invoice-details-payment-field {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

@media (max-width: 575px) {
    .sale-invoice-details-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sale-invoice-details-actions-btns .btn {
        flex: 1 1 auto;
    }
}

/* ── Cheque transfer / deposit modal ── */
.cheque-transfer-modal .modal-content {
    border-radius: 0.85rem;
    overflow: hidden;
}

.cheque-transfer-modal__header {
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    color: #0f172a !important;
}

.cheque-transfer-modal__header .modal-title {
    color: #0f172a !important;
    font-weight: 700;
}

.cheque-transfer-modal__header-text {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.cheque-transfer-modal__badge {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    background: #ecfdf5;
    color: #15803d;
}

.cheque-transfer-modal--withdraw .cheque-transfer-modal__badge {
    background: #fffbeb;
    color: #b45309;
}

.cheque-transfer-modal__subtitle {
    font-size: 0.8125rem;
    color: #64748b !important;
    margin-top: 0.15rem;
}

.cheque-transfer-modal__body {
    background: #f8fafc;
    padding: 1rem 1.15rem 1.15rem;
}

.cheque-transfer-modal__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem 1rem;
    align-items: end;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    margin-bottom: 0.85rem;
}

.cheque-transfer-modal__summary-item--amount {
    text-align: right;
}

.cheque-transfer-modal__summary-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.cheque-transfer-modal__summary-value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
}

.cheque-transfer-modal__summary-value--amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: #15803d;
}

.cheque-transfer-modal--withdraw .cheque-transfer-modal__summary-value--amount {
    color: #b45309;
}

.cheque-transfer-modal__section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
}

.cheque-transfer-modal__section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.cheque-transfer-modal__footer {
    border-top: 1px solid #e2e8f0;
    background: #fff;
    padding: 0.85rem 1.15rem;
}

@media (max-width: 575.98px) {
    .cheque-transfer-modal__summary {
        grid-template-columns: 1fr;
    }

    .cheque-transfer-modal__summary-item--amount {
        text-align: left;
    }
}

/* ── Guided quick-create modals (category, brand, etc.) ── */
.guided-quick-modal .modal-content {
    border-radius: 0.85rem;
    overflow: hidden;
}

/*
 * Form wraps modal-body + footer, which breaks Bootstrap's
 * .modal-dialog-scrollable (expects body as direct child of content).
 * Keep header/footer fixed and scroll only the body.
 */
.guided-quick-modal .modal-dialog-scrollable {
    max-height: calc(100vh - 1.75rem);
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.guided-quick-modal .modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 1.75rem);
    display: flex;
    flex-direction: column;
}

.guided-quick-modal .guided-quick-modal__form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.guided-quick-modal .modal-dialog-scrollable .modal-body,
.guided-quick-modal .modal-dialog-scrollable .guided-quick-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.guided-quick-modal .modal-dialog-scrollable .modal-header,
.guided-quick-modal .modal-dialog-scrollable .modal-footer,
.guided-quick-modal .modal-dialog-scrollable .guided-quick-modal__footer {
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .guided-quick-modal .modal-dialog-scrollable {
        max-height: calc(100vh - 0.5rem);
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
    }

    .guided-quick-modal .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 0.5rem);
    }
}

.guided-quick-modal__header {
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    color: #0f172a !important;
}

.guided-quick-modal__header .modal-title {
    color: #0f172a !important;
    font-weight: 700;
    font-size: 1.0625rem;
    line-height: 1.35;
}

.guided-quick-modal__header .btn-close {
    opacity: 0.55;
}

.guided-quick-modal__header .btn-close:hover {
    opacity: 0.85;
}

.guided-quick-modal__header-text {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.guided-quick-modal__badge {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.guided-quick-modal__badge--category {
    background: #eff6ff;
    color: #2563eb;
}

.guided-quick-modal__badge--brand {
    background: #f0fdf4;
    color: #15803d;
}

.guided-quick-modal__badge--tax {
    background: #fef3c7;
    color: #b45309;
}

.guided-quick-modal__badge--unit {
    background: #f5f3ff;
    color: #7c3aed;
}

.guided-quick-modal__badge--serial {
    background: #ecfeff;
    color: #0e7490;
}

.guided-quick-modal__badge--batch {
    background: #fff7ed;
    color: #c2410c;
}

.guided-quick-modal__badge--stone {
    background: #fdf4ff;
    color: #a21caf;
}

.guided-quick-modal__badge--schedule {
    background: #ecfdf3;
    color: #047857;
}

.guided-quick-modal__badge--schedule-complete {
    background: #eef2ff;
    color: #4338ca;
}

.guided-quick-modal__badge--item {
    background: #e0f2fe;
    color: #0369a1;
}

.guided-quick-modal__badge--party {
    background: #eff6ff;
    color: #1d4ed8;
}

.guided-quick-modal__badge--cash {
    background: #ecfdf3;
    color: #047857;
}

.guided-quick-modal__badge--bank {
    background: #e0e7ff;
    color: #4338ca;
}

.guided-quick-modal__badge--email {
    background: #ecfdf3;
    color: #047857;
}

.guided-quick-modal__badge--sms {
    background: #eff6ff;
    color: #1d4ed8;
}

.guided-quick-modal__badge--whatsapp {
    background: #ecfdf3;
    color: #15803d;
}

.guided-quick-modal__subtitle {
    font-size: 0.8125rem;
    color: #64748b !important;
    margin-top: 0.15rem;
    line-height: 1.4;
}

.guided-quick-modal__body {
    background: #f8fafc;
    padding: 1rem 1.15rem 1.15rem;
}

.guided-quick-modal__section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.05rem;
}

.guided-quick-modal__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.guided-quick-modal__field .form-label {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 0.8125rem;
    color: #334155;
}

.guided-quick-modal__field .form-control,
.guided-quick-modal__field .form-select {
    border-radius: 10px;
    border-width: 2px;
    border-color: #e9ecef;
}

.guided-quick-modal__field textarea.form-control {
    min-height: 88px;
}

.guided-quick-modal__table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}

.guided-quick-modal__table-wrap .table thead th {
    background: #f8fafc;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    white-space: nowrap;
    vertical-align: middle;
}

.guided-quick-modal__hint {
    font-size: 0.8125rem;
    font-style: italic;
    color: #64748b;
    line-height: 1.45;
}

.guided-quick-modal__alert {
    border-radius: 0.65rem;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
}

.guided-quick-modal__footer {
    border-top: 1px solid #e2e8f0;
    background: #fff;
    padding: 0.85rem 1.15rem;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.guided-quick-modal__footer .guided-form-kbd-hints {
    margin-right: auto;
}

.guided-quick-modal__footer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.guided-quick-modal__footer .guided-form-kbd-hints kbd {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-bottom-width: 2px;
    border-radius: 4px;
    color: #334155;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.35rem;
    min-width: 1.35rem;
    text-align: center;
}

@media (max-width: 575.98px) {
    .guided-quick-modal__footer {
        flex-direction: column-reverse;
    }

    .guided-quick-modal__footer .btn {
        width: 100%;
        margin: 0;
    }

    .guided-quick-modal__footer-actions {
        width: 100%;
        flex-direction: column-reverse;
    }

    .guided-quick-modal__footer-actions .btn {
        width: 100%;
    }
}

/* Profile edit — tab sidebar layout */
.profile-layout {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

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

.profile-layout__nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-layout__nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    color: #334155;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.profile-layout__nav-item i {
    font-size: 1.1rem;
    color: #64748b;
}

.profile-layout__nav-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.profile-layout__nav-item.is-active {
    background: linear-gradient(135deg, #008a5e 0%, #047857 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 138, 94, 0.28);
}

.profile-layout__nav-item.is-active i {
    color: #fff;
}

.profile-layout__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 991.98px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-layout__nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .profile-layout__nav-item {
        flex: 1 1 auto;
        justify-content: center;
    }
}

.profile-guided-hero.sale-invoice-guided-hero {
    background: linear-gradient(135deg, #0f766e 0%, #047857 45%, #065f46 100%);
    border: 0;
    color: #fff;
}

.profile-guided-hero .sale-invoice-guided-title,
.profile-guided-hero .sale-invoice-guided-subtitle {
    color: #fff;
}

.profile-guided-hero .sale-invoice-guided-back {
    color: rgba(255, 255, 255, 0.9);
}

.profile-guided-hero .sale-invoice-guided-back:hover {
    color: #fff;
}

.profile-layout__identity .card-body {
    padding-top: 1.25rem !important;
}

.profile-layout__avatar-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.profile-layout__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-layout .password_tab {
    display: none;
}

/* Party payment guided form */
.party-payment-hero--customer.sale-invoice-guided-hero {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 45%, #134e4a 100%);
    border: 0;
    color: #fff;
}

.party-payment-hero--supplier.sale-invoice-guided-hero {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 45%, #1e3a8a 100%);
    border: 0;
    color: #fff;
}

.party-payment-hero--customer .sale-invoice-guided-title,
.party-payment-hero--supplier .sale-invoice-guided-title,
.party-payment-hero--customer .sale-invoice-guided-subtitle,
.party-payment-hero--supplier .sale-invoice-guided-subtitle {
    color: #fff;
}

.party-payment-hero--customer .sale-invoice-guided-back,
.party-payment-hero--supplier .sale-invoice-guided-back {
    color: rgba(255, 255, 255, 0.9);
}

.party-payment-hero--customer .sale-invoice-guided-back:hover,
.party-payment-hero--supplier .sale-invoice-guided-back:hover {
    color: #fff;
}

.party-payment-balance-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.party-payment-balance-field__hint {
    font-size: 0.8125rem;
    font-weight: 600;
}

.party-payment-due-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.party-payment-due-table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    background: #f8fafc;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.party-payment-due-table tbody td,
.party-payment-due-table tfoot th {
    font-size: 0.875rem;
}

.party-payment-due-table tr.party-payment-due-total th {
    background: #f8fafc;
    font-weight: 700;
}

.party-payment-due-table .balance-minus-adjusted {
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .party-payment-due-table thead {
        display: none;
    }

    .party-payment-due-table tbody tr:not(.party-payment-due-empty) {
        display: block;
        border-bottom: 1px solid #f1f5f9;
        padding: 0.75rem 1rem;
    }

    .party-payment-due-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: 0;
        padding: 0.25rem 0 !important;
    }

    .party-payment-due-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.7rem;
        color: #64748b;
        text-transform: uppercase;
        margin-right: 0.5rem;
    }
}

/* --------------------------------------------------------------------------
   Company settings — settings hub (company/edit)
   -------------------------------------------------------------------------- */

.company-settings-shell .page-content {
    max-width: 100%;
}

.company-settings-hero {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 55%, #f0fdf4 100%);
}

.company-settings-hero__title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.company-settings-hero__subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    max-width: 52rem;
}

.company-settings-layout {
    align-items: flex-start;
}

.company-settings-nav {
    position: sticky;
    top: 5.5rem;
}

.company-settings-nav__title {
    margin: 0 0 0.75rem;
    padding: 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.company-settings-nav__list {
    gap: 0.35rem;
}

.company-settings-nav__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 0.7rem 0.85rem !important;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155 !important;
    background: transparent !important;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.company-settings-nav__item i {
    font-size: 1.1rem;
    color: #64748b;
}

.company-settings-nav__item:hover,
.company-settings-nav__item:focus {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.company-settings-nav__item.is-active {
    background: #198754 !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(25, 135, 84, 0.22);
}

.company-settings-nav__item.is-active i {
    color: #fff;
}

.company-settings-panels .company-settings-panel {
    display: none;
}

.company-settings-panels .company-settings-panel.is-visible {
    display: block;
}

.company-settings-panel .sale-invoice-guided-card-badge {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1rem;
}

.company-settings-panel__footer {
    margin-top: 0.25rem;
}

.company-settings-storage-mode {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    cursor: pointer;
    height: 100%;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.company-settings-storage-mode.is-selected,
.company-settings-storage-mode:has(input:checked) {
    border-color: #108759;
    background: #f0fdf7;
}

.company-settings-storage-mode input {
    margin-right: 0.5rem;
}

.company-settings-storage-mode__title {
    display: block;
    font-weight: 600;
    color: #0f172a;
}

.company-settings-storage-mode__hint {
    display: block;
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.company-settings-storage-intro .badge {
    font-weight: 600;
}

.company-settings-toggle-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.company-settings-toggle {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem 1rem;
    margin: 0;
    padding: 1rem 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.company-settings-toggle:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.company-settings-toggle:has(.form-check-input:checked) {
    border-color: #86efac;
    background: #f0fdf4;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12);
}

.company-settings-toggle__icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.15rem;
}

.company-settings-toggle:has(.form-check-input:checked) .company-settings-toggle__icon {
    background: #dcfce7;
    color: #15803d;
}

.company-settings-toggle__content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.company-settings-toggle__label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}

.company-settings-toggle__label-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.company-settings-toggle__badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
    line-height: 1.2;
}

.company-settings-toggle__badge.is-included {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.company-settings-toggle__badge.is-addon {
    color: #9a3412;
    background: #ffedd5;
    border: 1px solid #fed7aa;
}

.company-settings-toggle.is-subscription-managed {
    opacity: 0.98;
}

.company-settings-toggle__hint {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
}

.company-settings-toggle__switch {
    padding-left: 0;
    min-height: auto;
}

.company-settings-toggle__switch .form-check-input {
    width: 2.5rem;
    height: 1.35rem;
    margin: 0;
    cursor: pointer;
}

.company-settings-toggle__switch .form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

/* Service Desk module group (parent + sub-toggles) */
.company-settings-module-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.company-settings-module-group__parent {
    border-width: 2px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.company-settings-module-group__parent:has(#service_desk_master:checked) {
    border-color: #86efac;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.company-settings-module-group__children {
    margin-top: 0.85rem;
    margin-left: 0.5rem;
    padding-left: 1rem;
    border-left: 3px solid #bbf7d0;
    transition: opacity 0.2s ease, max-height 0.25s ease;
}

.company-settings-module-group__children.is-collapsed {
    display: none;
}

.company-settings-module-group__children-hint {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
}

.company-settings-toggle-grid--nested {
    gap: 0.65rem;
}

.company-settings-toggle--child {
    background: #fafbfc;
}

.company-settings-toggle--child:has(.form-check-input:checked) {
    background: #ffffff;
}

.company-settings-modules-section-title {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

@media (max-width: 991.98px) {
    .company-settings-nav {
        position: static;
    }

    .company-settings-nav__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-settings-toggle {
        grid-template-columns: auto 1fr;
    }

    .company-settings-toggle__switch {
        grid-column: 1 / -1;
        justify-self: end;
    }
}

@media (max-width: 575.98px) {
    .company-settings-nav__list {
        grid-template-columns: 1fr;
    }

    .company-settings-hero {
        padding: 1rem;
    }
}

/* --------------------------------------------------------------------------
   App settings — settings hub (app/settings)
   -------------------------------------------------------------------------- */

.app-settings-shell .page-content {
    max-width: 100%;
}

.app-settings-hero {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    border: 1px solid #dbeafe;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
}

.app-settings-hero__title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.app-settings-hero__subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.app-settings-layout {
    align-items: flex-start;
}

.app-settings-nav {
    position: sticky;
    top: 5.5rem;
}

.app-settings-nav__title {
    margin: 0 0 0.75rem;
    padding: 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.app-settings-nav__list {
    gap: 0.35rem;
}

.app-settings-nav__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 0.7rem 0.85rem !important;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155 !important;
    background: transparent !important;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.app-settings-nav__item i {
    font-size: 1.1rem;
    color: #64748b;
}

.app-settings-nav__item:hover,
.app-settings-nav__item:focus {
    background: #eff6ff !important;
    color: #0f172a !important;
}

.app-settings-nav__item.is-active {
    background: #2563eb !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
}

.app-settings-nav__item.is-active i {
    color: #fff;
}

.app-settings-panels .app-settings-panel {
    display: none;
}

.app-settings-panels .app-settings-panel.is-visible {
    display: block;
}

.app-settings-panel .sale-invoice-guided-card-badge {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1rem;
}

.app-settings-sms-layout {
    display: grid;
    gap: 1rem;
}

.app-settings-gateway-control {
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    padding: 1rem;
}

.app-settings-gateway-control__head {
    margin-bottom: 0.75rem;
}

.app-settings-gateway-control__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.app-settings-gateway-option {
    position: relative;
    margin: 0;
}

.app-settings-gateway-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.app-settings-gateway-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.app-settings-gateway-option input[type="radio"]:checked + span {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
}

.app-settings-gateway-option span:hover {
    border-color: #93c5fd;
}

.app-settings-provider-card {
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 1rem;
    background: #fff;
}

.app-settings-provider-card--twilio {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.app-settings-provider-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.app-settings-provider-card__title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-settings-provider-card__icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 10px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.app-settings-channel-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 0.95rem;
}

.app-settings-channel-card__title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.app-settings-channel-card__hint {
    font-size: 0.8rem;
    color: #64748b;
}

@media (max-width: 991.98px) {
    .app-settings-nav {
        position: static;
    }

    .app-settings-nav__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .app-settings-nav__list {
        grid-template-columns: 1fr;
    }

    .app-settings-hero {
        padding: 1rem;
    }

    .app-settings-provider-card {
        padding: 0.85rem;
    }

    .app-settings-gateway-control__options {
        display: grid;
        grid-template-columns: 1fr;
    }

    .app-settings-gateway-option span {
        width: 100%;
    }

    .app-settings-provider-card__header {
        align-items: flex-start;
    }
}

/* --------------------------------------------------------------------------
   File manager — /files-manager
   -------------------------------------------------------------------------- */

.file-manager-shell .page-content {
    padding: 1.25rem 1.5rem 2rem;
}

.file-manager-hero {
    margin-bottom: 1.25rem;
    padding: 1.15rem 1.35rem;
    border-radius: 14px;
    border: 1px solid #b8e6d4;
    background: linear-gradient(135deg, #f0fdf7 0%, #fff 100%);
}

.file-manager-hero__main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.file-manager-hero__title {
    margin: 0 0 0.25rem;
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.file-manager-hero__subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
    max-width: 42rem;
}

.file-manager-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.file-manager-hero__email {
    font-size: 0.8125rem;
    color: #64748b;
}

.file-manager-status-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
}

.file-manager-status-tag.is-local {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}

.file-manager-status-tag.is-drive {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.file-manager-status-tag.is-success {
    background: #ecfdf3;
    border-color: #a7f3d0;
    color: #047857;
}

.file-manager-status-tag.is-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.file-manager-status-tag.is-muted {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

.file-manager-shell__banner {
    margin-bottom: 1rem;
}

.file-manager-guided-layout {
    gap: 1rem;
}

.file-manager-shell .sale-invoice-guided-card-badge {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1rem;
}

.file-manager-upload-form__input {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.file-manager-files-count {
    flex-shrink: 0;
    align-self: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #f0fdf7;
    border: 1px solid #b8e6d4;
    color: #047857;
    font-size: 0.75rem;
    font-weight: 600;
}

.file-manager-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2.5rem 1.5rem;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
}

.file-manager-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: #e8f7f1;
    color: #008a5e;
    font-size: 1.5rem;
}

.file-manager-empty__text {
    max-width: 36rem;
    color: #64748b;
    font-size: 0.9rem;
}

.file-manager-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.file-manager-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    white-space: nowrap;
}

.file-manager-table tbody td {
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.file-manager-table tbody tr:last-child td {
    border-bottom: 0;
}

.file-manager-file-name {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.file-manager-file-name__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: #f0fdf7;
    color: #008a5e;
    flex-shrink: 0;
}

.file-manager-directory {
    font-size: 0.8125rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.15rem 0.45rem;
}

.file-manager-disk-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.file-manager-disk-tag.is-local {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.file-manager-disk-tag.is-drive {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.file-manager-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
}

.file-manager-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-manager-mobile-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
}

.file-manager-mobile-card__header {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.file-manager-mobile-card__title {
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

.file-manager-mobile-card__meta {
    display: grid;
    gap: 0.65rem;
    margin: 0 0 0.85rem;
}

.file-manager-mobile-card__meta > div {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.5rem;
    align-items: start;
}

.file-manager-mobile-card__meta dt {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
}

.file-manager-mobile-card__meta dd {
    margin: 0;
    font-size: 0.875rem;
    color: #0f172a;
}

.file-manager-mobile-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.file-manager-pagination .pagination {
    margin-bottom: 0;
}

.file-manager-footer {
    margin-top: 1rem;
}

@media (max-width: 991.98px) {
    .file-manager-shell .page-content {
        padding: 1rem;
    }

    .file-manager-hero__main {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .file-manager-mobile-card__meta > div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .file-manager-mobile-card__actions {
        grid-template-columns: 1fr;
    }
}

/* ==================== Unified Import entity picker ==================== */
.import-entity-option {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.import-entity-option:hover {
    border-color: #b8e6d4;
    background: #f8fffc;
}

.import-entity-option.is-active {
    border-color: #008a5e;
    background: #f0fdf7;
    box-shadow: 0 0 0 3px rgba(0, 138, 94, 0.12);
}

.import-entity-option__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 12px;
    background: #eef2f7;
    color: #475569;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.import-entity-option.is-active .import-entity-option__icon {
    background: #008a5e;
    color: #fff;
}

.import-entity-option__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.import-entity-option__title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
}

.import-entity-option__hint {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.35;
}

/* ==================== Unified Export download panel ==================== */
.utilities-export-panel {
    padding: 1.15rem 1.25rem;
    border-radius: 12px;
    border: 1px solid #b8e6d4;
    background: linear-gradient(135deg, #f0fdf7 0%, #fff 100%);
}

.utilities-export-panel__intro {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.utilities-export-panel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: #008a5e;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.utilities-export-panel__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.utilities-export-panel__hint {
    font-size: 0.86rem;
    color: #475569;
    line-height: 1.4;
}

.utilities-export-tile {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    min-height: 4.25rem;
}

.utilities-export-tile--accent {
    border-color: #b8e6d4;
    background: linear-gradient(135deg, #e8f7f1 0%, #fff 100%);
}

.utilities-export-tile__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.utilities-export-tile__value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

@media (max-width: 575.98px) {
    .utilities-export-panel {
        padding: 1rem;
    }

    .utilities-export-panel__intro {
        gap: 0.75rem;
    }
}
