/* ==========================================================================
   GIVORA - MODALS & CHECKOUT STYLING
   ========================================================================== */

/* Modal Backdrop Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(36, 14, 19, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(79, 8, 21, 0.25);
    border: 1px solid var(--border-light);
    transform: scale(0.95) translateY(15px);
    transition: var(--transition-base);
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
}

.close-modal-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.close-modal-btn:hover {
    background: var(--brand-primary);
    color: #FFF;
    border-color: var(--brand-primary);
}

.modal-body {
    padding: 1.75rem;
    overflow-y: auto;
    flex-grow: 1;
}

/* --- CART MODAL & ITEMS --- */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.empty-cart-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.empty-cart-state i {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.empty-cart-state p {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    gap: 0.75rem;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.cart-item-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.cart-qty-pill {
    display: inline-flex;
    align-items: center;
    background: #FFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.15rem;
}

.cart-qty-pill button {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-primary);
    border-radius: 4px;
}

.cart-qty-pill button:hover {
    background: var(--brand-primary);
    color: #FFF;
}

.cart-qty-pill span {
    min-width: 20px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
}

.cart-item-total {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--brand-primary);
    min-width: 80px;
    text-align: right;
}

.btn-delete {
    background: transparent;
    border: none;
    color: #DC2626;
    cursor: pointer;
    padding: 0.35rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.btn-delete:hover {
    background: #FEE2E2;
}

.cart-summary-box {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.75rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    margin-bottom: 0.65rem;
    color: var(--text-secondary);
}

.summary-row.total-row {
    margin-bottom: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.summary-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0.75rem 0;
}

/* --- CHECKOUT FORM --- */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.form-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.form-group label .required {
    color: #DC2626;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-primary);
    background: #FFF;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(122, 16, 36, 0.1);
}

.form-hint-note {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Campus Min Order Alert */
.campus-min-order-alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.campus-min-order-alert.warning-mode {
    background: #FFFBEB;
    border: 1px solid #FCD34D;
    color: #92400E;
}

.campus-min-order-alert.success-mode {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

.min-order-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0.5rem 0;
}

.min-order-progress-fill {
    height: 100%;
    background: var(--brand-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.min-order-status-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
}

.shortage-badge {
    color: #DC2626;
}

.shortage-badge.success {
    color: #059669;
}

/* Payment Option Cards */
.payment-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.payment-option-card {
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: #FFF;
    transition: var(--transition-fast);
    position: relative;
}

.payment-option-card input[type="radio"] {
    display: none;
}

.payment-card-content {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.payment-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.qris-icon {
    background: #FEF3C7;
    color: #D97706;
}

.cash-icon {
    background: #D1FAE5;
    color: #059669;
}

.payment-info strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.payment-info small {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.payment-check {
    color: transparent;
    font-size: 1.1rem;
}

.payment-option-card.active {
    border-color: var(--brand-primary);
    background: var(--brand-primary-subtle);
}

.payment-option-card.active .payment-check {
    color: var(--brand-primary);
}

.payment-preorder-notice {
    display: flex;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card-subtle);
    border-left: 3px solid var(--accent-gold);
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* --- QRIS DYNAMIC CARD & DROPZONE --- */
.qris-checkout-card {
    background: var(--bg-surface-alt);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-top: 0.5rem;
}

.qris-amount-highlight {
    background: #FFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.amount-val-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.35rem 0 0.5rem 0;
}

.amount-val-row h3 {
    font-size: 1.5rem;
    color: var(--brand-primary);
}

.btn-copy-amount {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-copy-amount:hover {
    background: var(--brand-primary);
    color: #FFF;
}

.amount-instruction {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
    line-height: 1.4;
}

.qris-preview-holder {
    background: #FFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 1.25rem;
}

.qris-card-header-badge {
    margin-bottom: 1rem;
}

.badge-qris-title {
    display: block;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--brand-primary);
    letter-spacing: 0.5px;
}

.badge-qris-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.qris-image-wrap {
    max-width: 240px;
    margin: 0 auto 1rem auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.qris-actual-img {
    width: 100%;
    display: block;
}

.qris-merchant-info-mini h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.merchant-nmid {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

.merchant-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.merchant-pills-wrap span {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
}

.btn-qris-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-decoration: underline;
}

/* Proof Upload Dropzone */
.proof-upload-section {
    background: #FFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.proof-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.proof-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.proof-badge-required {
    background: #FEE2E2;
    color: #DC2626;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
}

.proof-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.proof-dropzone-box {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    background: var(--bg-card-subtle);
    transition: var(--transition-fast);
}

.proof-dropzone-box:hover,
.proof-dropzone-box.dragover {
    border-color: var(--brand-primary);
    background: var(--brand-primary-subtle);
}

.proof-upload-icon {
    font-size: 2rem;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

.proof-upload-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.proof-upload-info small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.btn-select-file {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.45rem 1rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.dropzone-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.dropzone-preview img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.preview-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.preview-filename {
    font-weight: 700;
    font-size: 0.85rem;
}

.preview-badge {
    color: #059669;
    font-size: 0.78rem;
    font-weight: 600;
}

.btn-remove-proof {
    background: transparent;
    border: none;
    color: #DC2626;
    font-size: 0.78rem;
    cursor: pointer;
    font-weight: 600;
    text-align: left;
    padding: 0;
}

.proof-ref-box {
    margin-top: 0.85rem;
}

.proof-ref-box label {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    display: block;
}

.cash-helper-box {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

/* Admin WhatsApp Card */
.admin-options-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.admin-option-card {
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: #FFF;
}

.admin-option-card input[type="radio"] {
    display: none;
}

.admin-card-content {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--brand-primary-subtle);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.admin-info strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.admin-info small {
    font-size: 0.8rem;
    color: #059669;
    font-weight: 600;
}

.admin-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: #059669;
    font-weight: 700;
    margin-left: 0.5rem;
}

.admin-badge-pulse {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.admin-check {
    color: var(--brand-primary);
    font-size: 1.1rem;
}

.sync-status-badge {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.modal-actions {
    margin-top: 1.25rem;
}

/* --- DIGITAL RECEIPT & SUCCESS MODAL --- */
.success-modal-box {
    max-width: 540px;
}

.success-header {
    background: #ECFDF5;
    color: #065F46;
}

.success-body {
    text-align: center;
}

.success-icon-wrapper {
    width: 64px;
    height: 64px;
    background: #10B981;
    color: #FFF;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.25rem auto;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
}

.success-headline h2 {
    font-size: 1.45rem;
    margin-bottom: 0.35rem;
}

.success-headline p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.receipt-card {
    background: #FFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: left;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    position: relative;
}

.receipt-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.receipt-brand strong {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--brand-primary);
    display: block;
}

.receipt-brand small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.receipt-badge-status {
    background: #D1FAE5;
    color: #065F46;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
}

.receipt-divider-dash {
    border-top: 1px dashed var(--border-light);
    margin: 0.85rem 0;
}

.receipt-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    font-size: 0.82rem;
}

.receipt-meta-item span {
    display: block;
    color: var(--text-muted);
}

.receipt-meta-item strong {
    color: var(--text-primary);
}

.receipt-items-section {
    margin: 0.75rem 0;
}

.receipt-section-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.receipt-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.receipt-item-line {
    display: flex;
    justify-content: space-between;
}

.receipt-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-primary);
}

/* Order Live Tracker */
.receipt-status-tracker-box {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
}

.tracker-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.badge-order-status {
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-status-masuk { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }
.badge-status-kirim { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.badge-status-selesai { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }

.status-select-mini {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.status-select-mini:focus {
    box-shadow: 0 0 0 2px var(--brand-primary);
}

.tracker-stepper-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.step-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    z-index: 2;
}

.step-point .dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-surface-alt);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.step-point.active .dot {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #FFF;
}

.step-point.completed .dot {
    background: #10B981;
    border-color: #10B981;
    color: #FFF;
}

.step-name {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.step-line {
    flex-grow: 1;
    height: 2px;
    background: var(--border-light);
    margin: 0 4px;
    transform: translateY(-8px);
}

.step-line.active {
    background: #10B981;
}

.receipt-proof-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    background: var(--bg-card-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.proof-info-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-preview-receipt-proof {
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.receipt-sheet-sync-pill {
    font-size: 0.75rem;
    color: #059669;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

/* --- TOAST NOTIFICATION --- */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--brand-primary-dark);
    color: #FFF;
    padding: 0.85rem 1.35rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 300;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast-container.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

/* --- ORDERS SPREADSHEET TABLE MODAL --- */
.orders-modal-box {
    max-width: 960px;
}

.orders-modal-actions-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.table-responsive-box {
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.orders-table th {
    background: var(--bg-surface-alt);
    padding: 0.75rem 1rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
}

.orders-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.orders-table tr:hover {
    background: var(--bg-card-subtle);
}

/* --- ADMIN STOCK INVENTORY EDITOR --- */
.stock-edit-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.btn-stock-step {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 0.28rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.btn-stock-step:hover {
    background: var(--brand-primary);
    color: #FFF;
    border-color: var(--brand-primary);
}

.btn-stock-step:active {
    transform: scale(0.95);
}

.stock-main-input {
    width: 72px;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.35rem 0.4rem;
    border: 2px solid var(--brand-primary);
    border-radius: var(--radius-sm);
    background: #FFF;
    color: var(--brand-primary);
    outline: none;
}

.stock-main-input:focus {
    box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.2);
}

.stock-mini-input {
    width: 60px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.3rem 0.35rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    background: #FFF;
    color: var(--text-primary);
    outline: none;
}

.btn-stock-admin-pill {
    background: #EFF6FF !important;
    color: #1D4ED8 !important;
    border: 1.5px solid #93C5FD !important;
    font-weight: 700;
}

.btn-stock-admin-pill:hover {
    background: #DBEAFE !important;
    color: #1E40AF !important;
}

@media (max-width: 600px) {
    .modal-overlay {
        padding: 0.75rem;
    }
    .payment-options-grid {
        grid-template-columns: 1fr;
    }
    .stock-edit-cell {
        gap: 0.15rem;
    }
    .stock-main-input {
        width: 55px;
        font-size: 0.85rem;
    }
}
