@page { size: A4 portrait; margin: 0; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { width: 100%; max-width: 100%; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body { width: 100%; max-width: 100%; overflow-x: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: #f1f5f9; color: #0f172a; line-height: 1.5; font-size: 14px; }
body.drawer-open { overflow: hidden !important; }
img, svg, video, canvas { max-width: 100%; height: auto; }
button, input, select, textarea { max-width: 100%; min-width: 0; font-family: inherit; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: #64748b; }
.uppercase { text-transform: uppercase; }
.req { color: #dc2626; font-weight: 700; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 14px; }
.full-width-sm { grid-column: 1 / -1; }
.workstation-header { background-color: #0f172a; color: #f8fafc; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid #1e293b; box-shadow: 0 2px 4px rgba(0,0,0,0.12); position: sticky; top: 0; z-index: 100; width: 100%; max-width: 100%; }
.header-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-badge { display: flex; flex-direction: column; min-width: 0; }
.brand-title { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.8px; color: #ffffff; white-space: nowrap; }
.brand-subtitle { font-size: 0.7rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.save-status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 20px; font-size: 0.74rem; font-weight: 600; background-color: #1e293b; border: 1px solid #334155; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.status-dot.saved { background-color: #10b981; box-shadow: 0 0 6px #10b981; }
.status-dot.unsaved { background-color: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.header-center { display: flex; align-items: center; min-width: 0; }
.current-inv-pill { display: flex; align-items: center; gap: 8px; background-color: #1e293b; padding: 5px 14px; border-radius: 6px; font-size: 0.85rem; border: 1px solid #334155; white-space: nowrap; }
.pill-label { color: #94a3b8; font-size: 0.8rem; }
.pill-value { color: #38bdf8; font-weight: 700; }
.pill-sep { color: #475569; }
.pill-date { color: #e2e8f0; font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; font-size: 0.85rem; font-weight: 600; border-radius: 6px; border: 1px solid transparent; cursor: pointer; transition: all 0.15s ease-in-out; text-decoration: none; line-height: 1.2; min-height: 38px; white-space: nowrap; }
.btn:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-sm { padding: 5px 10px; font-size: 0.78rem; min-height: 32px; }
.btn-primary { background-color: #2563eb; color: #ffffff; border-color: #1d4ed8; }
.btn-primary:hover:not(:disabled) { background-color: #1d4ed8; }
.btn-secondary { background-color: #334155; color: #f8fafc; border-color: #475569; }
.btn-secondary:hover:not(:disabled) { background-color: #475569; }
.btn-outline { background-color: transparent; color: #cbd5e1; border-color: #475569; }
.btn-outline:hover:not(:disabled) { background-color: #1e293b; color: #ffffff; border-color: #64748b; }
.btn-accent { background-color: #0284c7; color: #ffffff; border-color: #0369a1; }
.btn-accent:hover:not(:disabled) { background-color: #0369a1; }
.btn-danger { background-color: #ef4444; color: #ffffff; border-color: #dc2626; }
.btn-danger:hover:not(:disabled) { background-color: #dc2626; }
.btn-icon { font-size: 0.95rem; line-height: 1; flex-shrink: 0; }
.btn-table-action { background: none; border: 1px solid #cbd5e1; padding: 4px 8px; border-radius: 4px; font-size: 0.74rem; font-weight: 600; cursor: pointer; color: #334155; transition: all 0.12s ease; min-height: 30px; display: inline-flex; align-items: center; justify-content: center; }
.btn-table-action:hover { background-color: #f1f5f9; border-color: #94a3b8; }
.btn-table-action.delete { color: #dc2626; border-color: #fecaca; }
.btn-table-action.delete:hover { background-color: #fee2e2; border-color: #dc2626; }
.toast-notification { position: fixed; top: 68px; right: 20px; z-index: 1200; background-color: #0f172a; color: #ffffff; padding: 12px 18px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,0.25); display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 500; border-left: 4px solid #10b981; max-width: calc(100vw - 40px); animation: slideInRight 0.2s ease-out; }
.toast-notification.error { border-left-color: #ef4444; }
.toast-notification.warning { border-left-color: #f59e0b; }
.toast-icon { font-size: 1.1rem; line-height: 1; flex-shrink: 0; }
.toast-close { background: none; border: none; color: #94a3b8; font-size: 1.2rem; cursor: pointer; margin-left: 6px; line-height: 1; min-height: 24px; min-width: 24px; }
.toast-close:hover { color: #ffffff; }
.workstation-container { width: min(100%, 1440px); margin: 0 auto; padding: 20px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr); gap: 24px; align-items: start; }
.workspace-panel { display: flex; flex-direction: column; gap: 20px; min-width: 0; width: 100%; }
.work-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); padding: 18px 20px; width: 100%; min-width: 0; }
.card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.card-heading { font-size: 1.05rem; font-weight: 700; color: #0f172a; }
.items-header { border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; margin-bottom: 14px; }
.items-header-title { display: flex; align-items: center; gap: 8px; }
.items-count-badge { font-size: 0.75rem; background-color: #e0f2fe; color: #0369a1; padding: 2px 8px; border-radius: 12px; font-weight: 700; }
.btn-add-item-trigger { min-height: 38px; }
.form-group { display: flex; flex-direction: column; gap: 5px; min-width: 0; width: 100%; }
.form-group label { font-size: 0.78rem; font-weight: 600; color: #475569; }
.label-with-helper { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-helper-tag { font-size: 0.72rem; color: #0284c7; font-weight: 500; }
.form-input { width: 100%; min-width: 0; height: 38px; padding: 7px 11px; font-size: 0.88rem; color: #0f172a; background-color: #ffffff; border: 1px solid #cbd5e1; border-radius: 6px; transition: border-color 0.15s, box-shadow 0.15s; }
.form-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
textarea.form-input { height: auto; min-height: 70px; resize: vertical; max-width: 100%; }
.input-currency-group { display: flex; align-items: center; position: relative; width: 100%; min-width: 0; }
.currency-prefix { position: absolute; left: 10px; color: #64748b; font-weight: 700; font-size: 0.95rem; pointer-events: none; z-index: 1; }
.input-currency-group .form-input { padding-left: 26px; }
.form-grid-fluid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; width: 100%; min-width: 0; }
.customer-search-wrapper { position: relative; width: 100%; min-width: 0; }
.search-input-box { position: relative; display: flex; align-items: center; width: 100%; min-width: 0; }
.btn-clear-search { position: absolute; right: 8px; background: none; border: none; font-size: 1.2rem; color: #94a3b8; cursor: pointer; min-height: 30px; min-width: 30px; display: flex; align-items: center; justify-content: center; }
.search-dropdown-menu { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 6px; box-shadow: 0 6px 16px rgba(0,0,0,0.12); max-height: 220px; overflow-y: auto; z-index: 50; width: 100%; max-width: 100%; }
.search-dropdown-item { padding: 9px 12px; font-size: 0.85rem; cursor: pointer; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; gap: 10px; overflow-wrap: anywhere; word-break: break-word; }
.search-dropdown-item:last-child { border-bottom: none; }
.search-dropdown-item:hover { background-color: #f8fafc; }
.search-item-meta { font-size: 0.75rem; color: #64748b; }
.items-desktop-table { display: block; width: 100%; }
.table-responsive-box { width: 100%; overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 6px; margin-bottom: 14px; background: #ffffff; }
.screen-items-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.screen-items-table th { background-color: #f8fafc; color: #475569; font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.4px; padding: 9px 10px; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.screen-items-table td { padding: 9px 10px; border-bottom: 1px solid #f1f5f9; color: #1e293b; vertical-align: middle; }
.screen-items-table tr:hover td { background-color: #fcfdfe; }
.item-desc-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.item-desc-title { font-weight: 600; color: #0f172a; overflow-wrap: anywhere; word-break: break-word; }
.item-tax-toggle { background: none; border: none; font-size: 0.74rem; color: #0284c7; cursor: pointer; text-align: left; padding: 2px 0; margin-top: 2px; }
.item-tax-toggle:hover { text-decoration: underline; }
.tax-detail-snippet { font-size: 0.72rem; color: #64748b; background-color: #f8fafc; padding: 5px 8px; border-radius: 4px; margin-top: 4px; border: 1px solid #e2e8f0; line-height: 1.4; }
.pricing-badge { display: inline-block; font-size: 0.68rem; padding: 1px 6px; border-radius: 3px; font-weight: 600; line-height: 1.2; margin-top: 2px; white-space: nowrap; }
.pricing-badge.per-unit { background-color: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.pricing-badge.custom-total { background-color: #fefce8; color: #854d0e; border: 1px solid #fef08a; }
.table-actions-cell { display: flex; gap: 4px; justify-content: center; align-items: center; }
.empty-table-cell { padding: 36px 20px; text-align: center; }
.empty-state-box { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-title { font-size: 0.95rem; font-weight: 700; color: #475569; margin-bottom: 4px; }
.empty-subtitle { font-size: 0.82rem; color: #94a3b8; }
.items-mobile-list { display: none; width: 100%; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.mobile-item-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); display: flex; flex-direction: column; gap: 10px; min-width: 0; width: 100%; }
.mobile-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.mobile-card-index { font-weight: 800; font-size: 0.85rem; color: #0284c7; background: #e0f2fe; padding: 2px 7px; border-radius: 4px; flex-shrink: 0; }
.mobile-card-desc { font-weight: 700; font-size: 0.94rem; color: #0f172a; flex: 1; overflow-wrap: anywhere; word-break: break-word; }
.mobile-card-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 0.82rem; background: #f8fafc; padding: 10px 12px; border-radius: 6px; border: 1px solid #f1f5f9; }
.mobile-meta-item { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.mobile-meta-label { color: #64748b; font-size: 0.76rem; }
.mobile-meta-value { font-weight: 600; color: #1e293b; }
.mobile-card-total-row { display: flex; justify-content: space-between; align-items: center; padding-top: 4px; border-top: 1px dashed #cbd5e1; }
.mobile-total-label { font-size: 0.88rem; font-weight: 700; color: #0f172a; }
.mobile-total-value { font-size: 1.15rem; font-weight: 800; color: #1d4ed8; }
.mobile-card-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 2px; }
.btn-mobile-card-act { min-height: 42px; font-size: 0.82rem; font-weight: 600; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
.totals-summary-card { background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 14px 18px; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; width: 100%; min-width: 0; }
.totals-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; gap: 10px; }
.totals-label { color: #64748b; font-weight: 500; }
.totals-value { font-weight: 600; color: #0f172a; }
.grand-total-row { border-top: 2px solid #cbd5e1; padding-top: 8px; margin-top: 4px; font-size: 1.1rem; }
.grand-total-row .totals-label { color: #0f172a; font-weight: 800; }
.grand-total-value { color: #1d4ed8; font-weight: 800; font-size: 1.25rem; }
.preview-panel { display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; position: sticky; top: 76px; }
.preview-toolbar { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; flex-wrap: wrap; }
.preview-badge { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #475569; background: #e2e8f0; padding: 4px 10px; border-radius: 4px; white-space: nowrap; }
.preview-toolbar-actions { display: flex; gap: 8px; }
.btn-icon-preview, .btn-icon-print { background: #ffffff; border: 1px solid #cbd5e1; padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; cursor: pointer; color: #334155; min-height: 32px; display: inline-flex; align-items: center; gap: 4px; }
.btn-icon-preview:hover, .btn-icon-print:hover { background: #f1f5f9; }
.preview-viewport-frame { width: 100%; max-width: 100%; overflow: hidden; position: relative; }
.invoice-preview-stage { width: 100%; display: flex; justify-content: center; align-items: flex-start; overflow: hidden; position: relative; }
.invoice-sheet { width: 794px; min-width: 794px; max-width: 794px; min-height: 1123px; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); padding: 10mm 12mm; color: #000000; display: flex; flex-direction: column; position: relative; transform-origin: top center; flex-shrink: 0; }
.tax-invoice-header { border-bottom: 2px solid #000000; padding-bottom: 8px; margin-bottom: 10px; position: relative; }
.original-badge { position: absolute; top: 0; right: 0; border: 1px solid #000000; padding: 2px 8px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; background: #f8fafc; }
.seller-name { font-size: 1.45rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.seller-address { font-size: 0.82rem; font-weight: 600; margin-bottom: 4px; }
.seller-meta { font-size: 0.78rem; font-weight: 500; display: flex; flex-wrap: wrap; gap: 6px; }
.meta-divider { color: #94a3b8; }
.tax-invoice-title { text-align: center; margin-top: 8px; }
.tax-invoice-title h2 { font-size: 1.05rem; font-weight: 800; letter-spacing: 2px; text-decoration: underline; }
.invoice-info-grid { display: grid; grid-template-columns: 3fr 2fr; border: 1px solid #000000; margin-bottom: 10px; font-size: 0.8rem; }
.bill-to-section { padding: 8px 10px; border-right: 1px solid #000000; }
.invoice-meta-section { padding: 8px 10px; }
.section-heading { font-weight: 700; text-decoration: underline; margin-bottom: 5px; font-size: 0.82rem; }
.info-row { display: flex; margin-bottom: 3px; line-height: 1.3; }
.info-label { width: 105px; font-weight: 600; flex-shrink: 0; }
.info-value { flex: 1; overflow-wrap: anywhere; word-break: break-word; }
.print-table-wrapper { width: 100%; margin-bottom: 10px; }
.tax-invoice-table { width: 100%; border-collapse: collapse; font-size: 0.74rem; table-layout: fixed; }
.tax-invoice-table th, .tax-invoice-table td { border: 1px solid #000000; padding: 4px 5px; text-align: left; vertical-align: middle; overflow-wrap: anywhere; word-break: break-word; }
.tax-invoice-table thead th { background-color: #f1f5f9; font-weight: 700; text-align: center; }
.tax-invoice-table .col-num { width: 28px; text-align: center; }
.tax-invoice-table .col-desc { width: auto; }
.tax-invoice-table .col-hsn { width: 50px; text-align: center; }
.tax-invoice-table .col-uom { width: 40px; text-align: center; }
.tax-invoice-table .col-qty { width: 42px; text-align: right; }
.tax-invoice-table .col-rate { width: 64px; text-align: right; }
.tax-invoice-table .col-taxable { width: 72px; text-align: right; }
.tax-invoice-table .col-gst-pct { width: 44px; text-align: center; }
.tax-invoice-table .col-cgst-r { width: 44px; text-align: center; }
.tax-invoice-table .col-cgst-a { width: 58px; text-align: right; }
.tax-invoice-table .col-sgst-r { width: 44px; text-align: center; }
.tax-invoice-table .col-sgst-a { width: 58px; text-align: right; }
.tax-invoice-table .col-total { width: 72px; text-align: right; font-weight: 700; }
.invoice-footer-section { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.invoice-summary-wrapper { width: 290px; max-width: 100%; }
.summary-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.summary-table td { border: 1px solid #000000; padding: 4px 8px; }
.summary-label { font-weight: 600; text-align: left; }
.summary-value { font-weight: 600; text-align: right; width: 110px; }
.grand-total-row { background-color: #f8fafc; font-size: 0.92rem; }
.grand-total-row .summary-label { font-weight: 800; }
.grand-total-row .summary-value { font-weight: 800; color: #000000; }
.invoice-sign-section { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #000000; padding: 10px; font-size: 0.78rem; }
.declaration-block { display: flex; align-items: flex-end; }
.declaration-text { font-style: italic; font-weight: 500; font-size: 0.76rem; }
.signatory-block { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.company-tag { font-weight: 700; }
.sign-space { height: 42px; }
.sign-tag { font-weight: 600; border-top: 1px solid #000000; display: inline-block; padding-top: 2px; }
.mobile-bottom-bar { display: none; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(2px); z-index: 1000; }
.item-drawer, .history-drawer { position: fixed; top: 0; right: 0; width: min(480px, 100vw); max-width: 100vw; height: 100dvh; min-height: 100dvh; background: #ffffff; box-shadow: -4px 0 24px rgba(0,0,0,0.2); z-index: 1050; display: flex; flex-direction: column; animation: slideDrawer 0.22s ease-out; }
.drawer-header { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid #e2e8f0; background-color: #f8fafc; min-height: 54px; }
.drawer-heading { font-size: 1.1rem; font-weight: 700; color: #0f172a; }
.btn-close-drawer { background: none; border: none; font-size: 1.6rem; color: #64748b; cursor: pointer; line-height: 1; padding: 4px 8px; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.btn-close-drawer:hover { color: #0f172a; }
.drawer-body { flex: 1 1 auto; min-height: 0; padding: 20px; overflow-y: auto; overflow-x: hidden; }
.drawer-footer { flex: 0 0 auto; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #e2e8f0; background-color: #f8fafc; }
.drawer-footer-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), 1fr)); gap: 10px; width: 100%; }
.btn-drawer-action { min-height: 44px; font-size: 0.9rem; width: 100%; }
.calc-preview-card { background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 6px; padding: 12px 14px; width: 100%; }
.calc-preview-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #0369a1; margin-bottom: 8px; border-bottom: 1px dashed #cbd5e1; padding-bottom: 4px; }
.calc-grid { display: flex; flex-direction: column; gap: 5px; }
.calc-item { display: flex; justify-content: space-between; font-size: 0.82rem; }
.calc-lbl { color: #64748b; }
.calc-val { font-weight: 600; color: #0f172a; }
.total-calc-item { border-top: 1px solid #cbd5e1; padding-top: 6px; margin-top: 4px; font-size: 0.92rem; }
.total-calc-item .calc-lbl { font-weight: 700; color: #0f172a; }
.total-calc-item .calc-val { color: #2563eb; font-size: 1.05rem; }
.history-search-bar { padding: 12px 18px; border-bottom: 1px solid #e2e8f0; background: #ffffff; flex: 0 0 auto; }
.history-list-container { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.history-item-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 12px 14px; cursor: pointer; transition: all 0.15s ease; display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.history-item-card:hover { border-color: #38bdf8; background: #f0f9ff; }
.history-item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.history-item-no { font-weight: 700; color: #0284c7; font-size: 0.98rem; }
.history-item-cust { font-size: 0.85rem; color: #334155; font-weight: 500; overflow-wrap: anywhere; word-break: break-word; }
.history-item-date { font-size: 0.74rem; color: #94a3b8; }
.history-item-total { font-weight: 700; font-size: 1.05rem; color: #0f172a; white-space: nowrap; }
.history-empty { padding: 30px 10px; text-align: center; color: #94a3b8; font-size: 0.88rem; }
.fullscreen-invoice-modal { position: fixed; inset: 0; background-color: #0f172a; z-index: 1300; display: flex; flex-direction: column; width: 100vw; height: 100dvh; }
.fullscreen-modal-bar { flex: 0 0 auto; background-color: #1e293b; color: #ffffff; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid #334155; flex-wrap: wrap; }
.fullscreen-modal-title { font-weight: 700; font-size: 0.92rem; color: #f8fafc; }
.fullscreen-zoom-controls { display: flex; gap: 6px; align-items: center; }
.fullscreen-modal-actions { display: flex; gap: 8px; align-items: center; }
.fullscreen-modal-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; padding: 16px; display: block; }
.fullscreen-invoice-stage { display: block; position: relative; margin: 0 auto; }
@keyframes slideDrawer { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideInRight { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 1100px) { .workstation-container { grid-template-columns: 1fr; gap: 24px; padding: 16px; } .preview-panel { position: static; } }
@media (max-width: 768px) { body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); } .workstation-header { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; } .header-branding { justify-content: space-between; } .header-center { width: 100%; justify-content: center; } .header-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; } .header-actions .btn { width: 100%; min-height: 44px; font-size: 0.88rem; } .workstation-container { padding: 12px; } .work-card { padding: 14px; border-radius: 6px; } .form-input { font-size: 16px; min-height: 44px; } .items-desktop-table { display: none; } .items-mobile-list { display: flex; } .btn-add-item-trigger { width: 100%; min-height: 44px; } .items-header { flex-direction: column; align-items: stretch; gap: 10px; } .mobile-bottom-bar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: #0f172a; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; z-index: 900; box-shadow: 0 -2px 10px rgba(0,0,0,0.18); border-top: 1px solid #1e293b; } .btn-mobile-action { min-height: 44px; font-size: 0.82rem; padding: 6px 4px; width: 100%; } .item-drawer, .history-drawer { width: 100vw; max-width: 100vw; } .preview-panel { display: flex; width: 100%; } }
@media (max-width: 480px) { .workstation-container { padding: 10px; gap: 16px; } .work-card { padding: 12px; } .mobile-card-actions { grid-template-columns: 1fr 1fr 1fr; gap: 6px; } .btn-mobile-card-act { min-height: 44px; font-size: 0.8rem; } .drawer-body { padding: 14px; } .drawer-footer { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); } .calc-grid { font-size: 0.78rem; } }
@media print { html, body { width: 100% !important; height: auto !important; min-height: 100% !important; margin: 0 !important; padding: 0 !important; background: #ffffff !important; color: #000000 !important; } .no-print { display: none !important; } .workstation-container, .preview-panel, .preview-viewport-frame, .invoice-preview-stage { display: block !important; position: static !important; width: 100% !important; height: auto !important; min-height: 0 !important; max-width: none !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; transform: none !important; box-shadow: none !important; border: none !important; } #printableInvoice { display: flex !important; flex-direction: column !important; position: relative !important; margin: 0 auto !important; width: 210mm !important; min-width: 210mm !important; max-width: 210mm !important; min-height: 297mm !important; padding: 10mm 12mm !important; border: none !important; box-shadow: none !important; transform: none !important; background: #ffffff !important; box-sizing: border-box !important; } .tax-invoice-header, .invoice-info-grid, .invoice-footer-section, .invoice-sign-section { page-break-inside: avoid !important; break-inside: avoid !important; } .tax-invoice-table thead th { background-color: #f1f5f9 !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; } .tax-invoice-table th, .tax-invoice-table td { border: 1px solid #000000 !important; } .grand-total-row { background-color: #f1f5f9 !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; } }
