.sales-page { padding: 20px; background: #f4f6f9; min-height: calc(100vh - 70px); } .sales-hero, .card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; } .sales-hero span { font-size: 11px; letter-spacing: 0.14em; color: #667085; } .sales-hero h2 { margin: 3px 0; } .sales-hero p, .card-header small, td small { display: block; color: #667085; } .sales-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; } .sales-metrics article { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; } .sales-metrics strong { display: block; font-size: 20px; margin: 5px 0; } .sales-metrics span { font-size: 12px; color: #667085; } .sales-tabs { display: flex; gap: 8px; background: #fff; border: 1px solid #e5e7eb; padding: 7px; border-radius: 12px; margin-bottom: 15px; overflow: auto; } .sales-tabs button, .sales-tabs a { border: 0; background: transparent; color: #475467; padding: 10px 14px; border-radius: 8px; white-space: nowrap; text-decoration: none; } .sales-tabs .active { background: #0d6efd; color: #fff; } .sales-tabs b { background: #f79009; color: #fff; border-radius: 10px; padding: 1px 6px; margin-left: 5px; } .sales-page .card { border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 5px 18px rgba(16, 24, 40, 0.04); } .sales-page .card-header { background: #fff; padding: 15px; } .sales-page th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #667085; background: #f8fafc; } .actions { min-width: 260px; } .actions .btn { margin: 2px; } .status { display: inline-block; padding: 4px 8px; border-radius: 14px; font-size: 11px; font-weight: 700; background: #eef2f6; } .status-posted, .status-completed { background: #dcfae6; color: #067647; } .status-submitted, .status-received { background: #fef0c7; color: #b54708; } .status-draft { background: #e0f2fe; color: #026aa2; } .empty { padding: 40px !important; text-align: center; color: #667085; } .modal-dialog-scrollable .modal-content { max-height: 92vh; } .invoice-head, .line-builder { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; margin-bottom: 15px; } .line-builder h6 { margin-bottom: 12px; } .barcode-choices { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .barcode-choices label { border: 1px solid #d0d5dd; border-radius: 8px; padding: 6px 10px; } .invoice-total { display: flex; justify-content: flex-end; gap: 30px; border-top: 2px solid #e5e7eb; padding: 14px; font-size: 18px; } .payment-balance { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 9px; padding: 12px; margin-top: 12px; } .payment-balance div { display: flex; justify-content: space-between; } .file-picker { display: flex; gap: 8px; flex-wrap: wrap; } .file-picker > label, .file-thumb { width: 84px; height: 84px; border: 1px dashed #98a2b3; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-direction: column; position: relative; overflow: visible; } .file-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; } .file-thumb button { position: absolute; right: -7px; top: -7px; border: 0; border-radius: 50%; background: #dc3545; color: #fff; width: 23px; height: 23px; z-index: 2; } #pdfModal iframe { width: 100%; height: min(82vh, 900px); border: 0; } .detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; } .detail-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; } .detail-card.wide { grid-column: 1/-1; } .return-row { border: 1px solid #e5e7eb; border-radius: 9px; padding: 10px; margin-bottom: 8px; } .money-field { text-align: right; } @media (max-width: 767px) { .sales-page { padding: 12px; } .sales-hero { align-items: flex-start; } .sales-metrics { grid-template-columns: repeat(2, 1fr); } .sales-tabs button, .sales-tabs a { padding: 9px; } .modal-dialog { margin: 0; max-width: none; height: 100%; } .modal-content { min-height: 100%; border-radius: 0; } .detail-grid { grid-template-columns: 1fr; } .actions { min-width: 220px; } .sales-page td, .sales-page th { white-space: nowrap; } }