:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#111827;background:#f3f4f6}*{box-sizing:border-box}body{margin:0;min-height:100vh;overflow-x:hidden}a{color:inherit;text-decoration:none}.app-shell{display:flex;align-items:stretch;width:100%;max-width:none;min-height:100vh}.sidebar{position:sticky;top:0;z-index:40;flex:0 0 230px;width:230px;height:100vh;overflow-y:auto;padding:24px;color:#fff;background:#111827}.sidebar-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.sidebar-logo{font-size:1.4rem;font-weight:800}.app-button.sidebar-close,.app-button.navbar-menu,.sidebar-backdrop{display:none}.sidebar-nav{display:grid;gap:8px}.sidebar-nav a{padding:12px 14px;border-radius:12px;color:#d1d5db;font-weight:600}.sidebar-nav a.active,.sidebar-nav a:hover{color:#fff;background:#ffffff1a}.app-main{display:flex;flex-direction:column;flex:1 1 auto;width:100%;min-width:0;max-width:none;min-height:100vh;align-self:stretch}.navbar{position:sticky;top:0;z-index:30;width:100%;max-width:none;height:72px;padding:0 32px;border-bottom:1px solid #e5e7eb;background:#fff;display:flex;align-items:center;justify-content:space-between}.navbar-brand{display:grid;min-width:0}.navbar-brand span{color:#64748b;font-size:.78rem}.app-content{display:block;flex:1 1 auto;align-self:stretch;min-width:0;padding:32px}.app-content>section,.dashboard-page{display:block;width:100%;min-width:0;max-width:none;margin-inline:0}.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(100%,420px);padding:32px;border-radius:24px;background:#fff;box-shadow:0 20px 60px #0f172a14}@media(max-width:900px){.app-shell{display:block}.sidebar{position:fixed;inset:0 auto 0 0;flex-basis:auto;width:min(310px,86vw);height:100dvh;transform:translate(-105%);box-shadow:20px 0 50px #0f172a40;transition:transform .2s ease}.sidebar.is-open{transform:translate(0)}.app-button.sidebar-close,.app-button.navbar-menu{display:inline-flex}.sidebar-close{color:#fff;border-color:#ffffff2e;background:#ffffff14;font-size:1.25rem}.sidebar-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:35;display:block;border:0;opacity:0;background:#0f172a80;pointer-events:none;transition:opacity .2s ease}.sidebar-backdrop.is-visible{opacity:1;pointer-events:auto}body.sidebar-open{overflow:hidden}.navbar{padding:0 20px;gap:12px}.app-content{padding:24px}}.auth-form{display:grid;gap:16px;margin-top:24px}.auth-form label{display:grid;gap:8px;color:#374151;font-size:.9rem;font-weight:700}.form-error{margin:0;padding:12px;border-radius:12px;color:#991b1b;background:#fee2e2;font-size:.9rem;font-weight:700}.auth-footer-text{margin-top:20px;color:#6b7280;font-size:.9rem}.auth-footer-text a{color:#2563eb;font-weight:800}.navbar-user{display:flex;align-items:center;gap:16px}.navbar-user div{display:grid;text-align:right}.navbar-user span{color:#6b7280;font-size:.8rem;text-transform:uppercase}.content-card{margin-bottom:24px;padding:24px;border:1px solid #e5e7eb;border-radius:20px;background:#fff;box-shadow:0 10px 30px #0f172a0a}.content-card h2{margin-top:0}.internal-invoice-warning{padding:12px 16px;border:1px solid #f59e0b;border-radius:12px;color:#92400e;background:#fffbeb;font-weight:800;text-transform:uppercase}.invoice-totals{margin-left:auto;width:min(100%,360px)}.invoice-totals div{display:flex;justify-content:space-between;padding:8px 0}.invoice-totals dt,.invoice-totals dd{margin:0}.app-button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 18px;border:1px solid transparent;border-radius:11px;font:inherit;font-size:.9rem;font-weight:750;line-height:1;text-align:center;white-space:nowrap;cursor:pointer;transition:transform .14s ease,box-shadow .14s ease,background .14s ease,border-color .14s ease}.app-button:hover:not(:disabled){transform:translateY(-1px)}.app-button:focus-visible{outline:3px solid rgba(37,99,235,.25);outline-offset:2px}.app-button:disabled,.app-button[aria-disabled=true]{opacity:.55;cursor:not-allowed;pointer-events:none}.app-button--primary{color:#fff;background:#2563eb;box-shadow:0 6px 16px #2563eb33}.app-button--primary:hover:not(:disabled){background:#1d4ed8;box-shadow:0 9px 20px #2563eb47}.app-button--secondary{color:#1e40af;border-color:#bfdbfe;background:#eff6ff}.app-button--secondary:hover:not(:disabled){border-color:#93c5fd;background:#dbeafe}.app-button--danger{color:#b91c1c;border-color:#fecaca;background:#fef2f2}.app-button--danger:hover:not(:disabled){border-color:#fca5a5;background:#fee2e2}.app-button--success{color:#fff;background:#16a34a;box-shadow:0 6px 16px #16a34a33}.app-button--success:hover:not(:disabled){background:#15803d;box-shadow:0 9px 20px #16a34a40}.app-button--ghost{color:#475569;border-color:#e2e8f0;background:#fff}.app-button--ghost:hover:not(:disabled){background:#f8fafc}.app-button--small{min-height:34px;padding:0 12px;border-radius:9px;font-size:.8rem}.app-button--large{min-height:50px;padding:0 24px;font-size:1rem}.app-button--block{width:100%}.app-button__spinner{width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:button-spin .7s linear infinite}@keyframes button-spin{to{transform:rotate(360deg)}}.app-input{width:100%;min-width:0;min-height:46px;padding:10px 14px;border:1px solid #cbd5e1;border-radius:11px;color:#0f172a;background:#fff;font:inherit;line-height:1.35;outline:none;transition:border-color .14s ease,box-shadow .14s ease,background .14s ease}.app-input::placeholder{color:#94a3b8}.app-input:hover:not(:disabled){border-color:#94a3b8}.app-input:focus-visible{border-color:#2563eb;box-shadow:0 0 0 4px #2563eb1f}.app-input:disabled{color:#64748b;background:#f1f5f9;cursor:not-allowed}textarea.app-input{min-height:96px;resize:vertical}select.app-input{padding-right:38px;cursor:pointer}.app-input--error{border-color:#dc2626}.app-input--error:focus-visible{border-color:#dc2626;box-shadow:0 0 0 4px #dc26261c}.app-input--choice{width:18px;min-width:18px;height:18px;min-height:18px;padding:0;border-radius:4px;accent-color:#2563eb}.app-input--color{width:52px;min-width:52px;padding:4px;cursor:pointer}.invoice-form{display:grid;gap:20px}.invoice-form-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 28px;border-radius:18px;color:#fff;background:linear-gradient(135deg,#0f1f3d,#183968);box-shadow:0 16px 35px #0f1f3d2e}.invoice-form-banner div{display:grid;gap:5px}.invoice-form-banner span{color:#93c5fd;font-size:.76rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.invoice-form-banner strong{font-size:1.35rem}.invoice-form-banner p{margin:0;padding:8px 12px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:#ffffff14;font-size:.8rem;font-weight:750}.invoice-form-section{padding:24px 28px;border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 8px 25px #0f172a09}.invoice-section-heading{display:flex;align-items:flex-start;gap:14px;margin-bottom:22px}.invoice-section-heading>span{width:30px;height:30px;display:grid;flex:0 0 auto;place-items:center;border-radius:9px;color:#1d4ed8;background:#dbeafe;font-weight:850}.invoice-section-heading h2{margin:0;font-size:1.05rem}.invoice-section-heading p{margin:5px 0 0;color:#64748b;font-size:.86rem}.invoice-source-toggle{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.invoice-source-toggle label{display:flex;align-items:center;gap:10px;padding:16px;border:1px solid #e2e8f0;border-radius:12px;color:#475569;background:#f8fafc;font-weight:750;cursor:pointer}.invoice-source-toggle label.active{border-color:#60a5fa;color:#1d4ed8;background:#eff6ff;box-shadow:0 0 0 3px #60a5fa1f}.invoice-fields-grid,.invoice-product-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.invoice-product-picker{grid-template-columns:minmax(0,1fr) 140px auto;align-items:end}.invoice-form-section label{display:grid;gap:8px;color:#334155;font-size:.82rem;font-weight:750}.invoice-selected-items{display:grid;gap:8px;margin-top:18px}.invoice-selected-items>div{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.invoice-selected-items p,.invoice-selected-items span{color:#64748b;font-size:.85rem}.invoice-form-footer{position:sticky;bottom:16px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;border:1px solid #dbeafe;border-radius:16px;background:#fffffff5;box-shadow:0 16px 40px #0f172a1f;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.invoice-form-footer>div{display:grid;gap:4px}.invoice-form-footer span{color:#64748b;font-size:.8rem}.invoice-preview{overflow:hidden;border-top:5px solid #2563eb}.invoice-preview .internal-invoice-warning{border:0;color:#92400e;background:#fffbeb;text-align:center}.invoice-workspace{display:grid;grid-template-columns:minmax(520px,1fr) minmax(430px,.87fr);gap:26px;align-items:start}.invoice-preview-sticky{position:sticky;top:20px}.invoice-preview-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.invoice-preview-heading h2{margin:0;font-size:1rem}.invoice-preview-heading span{color:#718096;font-size:.8rem}.invoice-paper{min-height:700px;display:flex;flex-direction:column;padding:36px 37px;border:1px solid #dfe7f1;border-radius:15px;color:#10233f;background:#fff;box-shadow:0 16px 45px #10233f12}.invoice-paper-header{display:flex;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:3px solid #1769e0}.invoice-paper-header>div:first-child{display:grid;align-content:start;gap:5px}.invoice-paper-header>div:first-child strong{color:#102f61;font-size:1.25rem;font-weight:850}.invoice-paper-header>div:first-child span{max-width:250px;color:#718096;font-size:.7rem}.invoice-paper-header>div:last-child{display:grid;justify-items:end;gap:3px;font-size:.74rem}.invoice-paper-header>div:last-child strong{color:#102f61}.invoice-paper-header em{padding:3px 8px;border-radius:20px;color:#138a62;background:#e6f7f0;font-size:.62rem;font-style:normal;font-weight:750}.invoice-paper-client{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin:22px 0;padding:14px 16px;border-radius:9px;background:#f7faff}.invoice-paper-client div{min-width:0;display:grid;gap:4px}.invoice-paper-client b{color:#102f61;font-size:.66rem}.invoice-paper-client span,.invoice-paper-client small{overflow:hidden;text-overflow:ellipsis;color:#52657e;font-size:.68rem;white-space:nowrap}.invoice-paper-table-wrap{overflow-x:auto}.invoice-paper-table{width:100%;border-collapse:collapse;font-size:.68rem}.invoice-paper-table th{padding:9px 8px;color:#fff;background:#102f61;text-align:left}.invoice-paper-table th:not(:first-child),.invoice-paper-table td:not(:first-child){text-align:right}.invoice-paper-table td{padding:11px 8px;border-bottom:1px solid #dfe7f1}.invoice-paper-table td:first-child{display:grid;gap:3px}.invoice-paper-table td span{color:#718096;font-size:.62rem}.invoice-paper-empty{display:table-cell!important;padding:34px!important;color:#94a3b8;text-align:center!important}.invoice-paper-notes{display:grid;gap:5px;margin-top:21px;padding:10px 13px;border-left:3px solid #bfd5f6;color:#5c6f88;background:#f8fbff;font-size:.68rem}.invoice-paper-notes b{color:#102f61}.invoice-paper-totals{width:220px;display:grid;gap:3px;margin:20px 0 0 auto}.invoice-paper-totals div{display:flex;justify-content:space-between;padding:5px 0;color:#5c6f88;font-size:.7rem}.invoice-paper-totals .grand{margin-top:5px;padding-top:10px;border-top:2px solid #102f61;color:#102f61;font-size:1rem;font-weight:850}.invoice-paper-footer{display:flex;justify-content:space-between;gap:16px;margin-top:auto;padding-top:12px;border-top:1px solid #dfe7f1;color:#99a7b7;font-size:.58rem}.invoice-paper-footer strong{color:#b45309;text-align:right}@media(max-width:720px){.invoice-form-banner,.invoice-form-footer{align-items:stretch;flex-direction:column}.invoice-source-toggle,.invoice-fields-grid,.invoice-product-picker{grid-template-columns:1fr}.invoice-form-section{padding:20px}.invoice-form-footer .app-button{width:100%}.invoice-paper{padding:23px 18px}.invoice-paper-client{grid-template-columns:1fr}}@media(max-width:1100px){.invoice-workspace{grid-template-columns:1fr}.invoice-preview-sticky{position:static}.invoice-paper{max-width:700px;margin:auto}}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px}.page-header h1{margin:0;font-size:2rem}.page-header p{margin:8px 0 0;color:#6b7280}.entity-form{display:grid;gap:20px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.entity-form label{display:grid;gap:8px;color:#374151;font-size:.9rem;font-weight:700}.entity-form label span{color:#dc2626;font-size:.78rem}.form-full{grid-column:1 / -1}.form-checkbox{display:flex!important;grid-column:1 / -1;grid-template-columns:auto 1fr;align-items:center}.table-card{overflow-x:auto;border:1px solid #e5e7eb;border-radius:20px;background:#fff}.entity-table{width:100%;border-collapse:collapse}.entity-table th,.entity-table td{padding:16px;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:top}.entity-table th{color:#6b7280;background:#f9fafb;font-size:.8rem;text-transform:uppercase}.entity-table td span{display:block;margin-top:4px;color:#6b7280;font-size:.85rem}.status-badge{display:inline-flex!important;width:fit-content;margin:0!important;padding:6px 10px;border-radius:999px;color:#6b7280!important;background:#f3f4f6;font-size:.75rem!important;font-weight:800}.status-badge.active{color:#047857!important;background:#d1fae5}.text-danger{color:#dc2626;font-weight:800}.state-card{padding:32px;border:1px solid #e5e7eb;border-radius:20px;background:#fff;text-align:center}.state-card-error{border-color:#fecaca;color:#991b1b;background:#fef2f2}@media(max-width:768px){.page-header{flex-direction:column}.form-grid{grid-template-columns:1fr}}.color-pill{display:inline-flex!important;width:fit-content;align-items:center;gap:8px;margin:0!important;color:#374151!important;font-weight:700}.color-pill i{display:inline-block;width:18px;height:18px;border:1px solid #e5e7eb;border-radius:999px}.category-badge{display:inline-flex!important;width:fit-content;align-items:center;gap:8px;margin:0!important;padding:6px 10px;border-radius:999px;color:#374151!important;background:#f3f4f6;font-size:.8rem!important;font-weight:800}.category-badge i{display:inline-block;width:12px;height:12px;border-radius:999px}.sales-grid{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:24px;align-items:start}.sale-product-selector{display:grid;grid-template-columns:1fr 120px auto;gap:12px;align-items:end}.sale-summary{margin-top:24px;padding:20px;border-radius:18px;background:#f9fafb;display:flex;align-items:center;justify-content:space-between;gap:16px}.sale-summary div{display:grid;gap:4px}.sale-summary span{color:#6b7280;font-size:.85rem;font-weight:700;text-transform:uppercase}.sale-summary strong{font-size:1.8rem}@media(max-width:1100px){.sales-grid,.sale-product-selector{grid-template-columns:1fr}.sale-summary{align-items:stretch;flex-direction:column}}.dashboard-stat-card{padding:24px;border:1px solid #e5e7eb;border-radius:20px;background:#fff;box-shadow:0 10px 30px #0f172a0a}.dashboard-stat-card span{display:block;margin-bottom:12px;color:#6b7280;font-size:.8rem;font-weight:800;text-transform:uppercase}.dashboard-stat-card strong{display:block;color:#111827;font-size:2rem;line-height:1}.dashboard-stat-card p{margin:10px 0 0;color:#6b7280;font-size:.9rem}.dashboard-panels-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:24px;align-items:start}@media(max-width:1100px){.dashboard-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-panels-grid{grid-template-columns:1fr}}@media(max-width:640px){.dashboard-stats-grid{grid-template-columns:1fr}}.user-profile-card{display:flex;align-items:center;justify-content:space-between;gap:16px}.user-profile-card div{display:grid;gap:4px}.user-profile-card span{color:#6b7280;font-size:.9rem}.user-profile-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0 0}.user-profile-details div{padding:16px;border-radius:14px;background:#f9fafb}.user-profile-details dt{color:#6b7280;font-size:.75rem;font-weight:800;text-transform:uppercase}.user-profile-details dd{margin:6px 0 0;color:#111827;font-weight:700;word-break:break-word}@media(max-width:768px){.user-profile-card{align-items:flex-start;flex-direction:column}.user-profile-details{grid-template-columns:1fr}}.status-badge.warning{color:#92400e!important;background:#fef3c7}.auth-actions{display:flex;gap:12px;margin-top:20px}.auth-actions a{display:inline-flex;min-height:40px;align-items:center;justify-content:center;padding:0 14px;border:1px solid #d1d5db;border-radius:10px;color:#111827;background:#fff;font-weight:800;cursor:pointer}.form-success{margin-top:16px;padding:12px;border-radius:12px;color:#166534;background:#dcfce7;font-size:.9rem;font-weight:700}.company-profile-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}.company-profile-details div{padding:16px;border-radius:14px;background:#f9fafb}.company-profile-details dt{color:#6b7280;font-size:.75rem;font-weight:800;text-transform:uppercase}.company-profile-details dd{margin:6px 0 0;color:#111827;font-weight:700;word-break:break-word}@media(max-width:768px){.company-profile-details{grid-template-columns:1fr}}.dashboard-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-bottom:24px}.form-actions{display:flex;flex-wrap:wrap;gap:12px}.table-actions{display:flex;flex-wrap:wrap;gap:8px}.toast-container{position:fixed;right:24px;bottom:24px;z-index:9999;display:grid;width:min(420px,calc(100vw - 32px));gap:12px}.toast-card{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px;border:1px solid #e5e7eb;border-radius:16px;background:#fff;box-shadow:0 18px 50px #0f172a2e;animation:toastIn .2s ease-out}.toast-card strong{display:block;margin-bottom:4px;color:#111827;font-size:.9rem}.toast-card p{margin:0;color:#4b5563;font-size:.9rem;line-height:1.4}.toast-card .app-button{min-width:34px;padding:0;font-size:1.4rem}.toast-card-success{border-left:5px solid #16a34a}.toast-card-error{border-left:5px solid #dc2626}.toast-card-warning{border-left:5px solid #d97706}.toast-card-info{border-left:5px solid #2563eb}@keyframes toastIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:640px){.toast-container{right:16px;bottom:16px}}.confirm-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9998;display:grid;place-items:center;padding:24px;background:#0f172a8c;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.confirm-dialog{width:min(440px,100%);padding:24px;border-radius:20px;background:#fff;box-shadow:0 24px 80px #0f172a59;animation:confirmDialogIn .18s ease-out}.confirm-dialog-header h2{margin:0;color:#111827;font-size:1.25rem}.confirm-dialog-header p{margin:10px 0 0;color:#4b5563;line-height:1.5}.confirm-dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}@keyframes confirmDialogIn{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:640px){.confirm-dialog-actions{align-items:stretch;flex-direction:column-reverse}.confirm-dialog-actions button{width:100%}}@media(max-width:1200px){.app-content{padding:28px}.content-card{padding:22px}.dashboard-stat-card{padding:20px}}@media(max-width:900px){.page-header{align-items:stretch}.page-header>:last-child:not(:first-child){flex-shrink:0}.dashboard-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-panels-grid,.sales-grid,.invoice-workspace{grid-template-columns:minmax(0,1fr)}.invoice-preview-sticky{position:static}.table-card,.invoice-paper-table-wrap{overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}.entity-table{min-width:680px}.report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.navbar{height:64px;padding-inline:14px}.navbar-user{margin-left:auto;gap:8px}.navbar-user>div{display:none}.navbar-brand span{display:none}.app-content,.auth-page{padding:16px}.auth-card{padding:24px 20px;border-radius:18px}.auth-actions,.form-actions{align-items:stretch;flex-direction:column}.auth-actions .app-button,.auth-actions a,.form-actions .app-button{width:100%}.content-card,.state-card{padding:18px 16px;border-radius:16px}.page-header{gap:16px;margin-bottom:18px}.page-header h1{font-size:clamp(1.45rem,7vw,1.75rem)}.page-header p{font-size:.9rem;line-height:1.45}.page-header>.app-button,.page-header>a{width:100%}.form-grid,.report-filters,.dashboard-stats-grid,.company-profile-details,.user-profile-details{grid-template-columns:minmax(0,1fr)}.dashboard-stats-grid{gap:14px}.dashboard-stat-card{padding:18px;border-radius:16px}.dashboard-stat-card strong{font-size:1.65rem}.sale-product-selector,.invoice-product-picker,.invoice-fields-grid,.invoice-source-toggle{grid-template-columns:minmax(0,1fr)}.sale-summary{align-items:stretch;flex-direction:column}.sale-summary .app-button{width:100%}.invoice-form-banner{padding:20px}.invoice-form-banner strong{font-size:1.15rem}.invoice-form-banner p{align-self:flex-start}.invoice-form-section{padding:18px 16px;border-radius:15px}.invoice-section-heading{gap:10px;margin-bottom:18px}.invoice-form-footer{bottom:8px;padding:15px}.invoice-selected-items>div{align-items:flex-start;gap:10px}.invoice-paper{min-height:600px;padding:20px 14px;border-radius:10px}.invoice-paper-header{align-items:flex-start;flex-direction:column;gap:12px}.invoice-paper-header>div:last-child{width:100%;justify-items:start}.invoice-paper-client{grid-template-columns:minmax(0,1fr);margin-block:16px}.invoice-paper-client span,.invoice-paper-client small{white-space:normal;overflow-wrap:anywhere}.invoice-paper-table{min-width:500px}.invoice-paper-totals{width:100%}.invoice-paper-footer{align-items:flex-start;flex-direction:column}.invoice-paper-footer strong{text-align:left}.invoice-preview-heading{align-items:flex-start;flex-direction:column;gap:4px}.internal-invoice-warning{font-size:.76rem;line-height:1.4}.table-card{margin-inline:-4px;border-radius:14px}.entity-table th,.entity-table td{padding:12px}.table-actions{min-width:150px}.toast-container{right:12px;bottom:12px;width:calc(100vw - 24px)}.confirm-backdrop{align-items:end;padding:12px}.confirm-dialog{padding:20px;border-radius:18px}}@media(max-width:420px){.navbar-brand strong{font-size:.92rem}.navbar-menu{padding-inline:10px}.app-content{padding:12px}.content-card{padding:16px 14px}.app-button{white-space:normal}.invoice-form-banner,.invoice-form-section{padding-inline:14px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1b1b1f;background:#fbf8fe}body{background:#fbf8fe}#root{min-height:100vh}body:before{position:fixed;z-index:-1;top:0;right:0;bottom:0;left:0;content:"";background:radial-gradient(circle at 77% 6%,rgba(177,226,231,.34),transparent 22rem),radial-gradient(circle at 42% 34%,rgba(207,229,244,.32),transparent 28rem),linear-gradient(120deg,#ffffffb3,#f0edf240)}body:after{position:fixed;z-index:-1;top:0;right:0;bottom:0;left:230px;content:"";pointer-events:none;opacity:.55;background-image:url("data:image/svg+xml,%3Csvg width='960' height='600' viewBox='0 0 960 600' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%2300346F' stroke-opacity='.2' stroke-width='1'%3E%3Cpath d='M0 122H112l32 32h165l38 38h194l34-34h245'/%3E%3Cpath d='M58 280h120l26-26h144l48 48h225l42-42h297'/%3E%3Cpath d='M0 439h90l48-48h210l32 32h139l61-61h380'/%3E%3Cpath d='M526 0v83l31 31h114l42 42h247'/%3E%3Cpath d='M704 600v-84l34-34h122l41-41h59'/%3E%3C/g%3E%3Cg fill='%23D9FBFC' stroke='%23005B9A' stroke-opacity='.32'%3E%3Ccircle cx='144' cy='154' r='3'/%3E%3Ccircle cx='387' cy='192' r='3'/%3E%3Ccircle cx='615' cy='158' r='3'/%3E%3Ccircle cx='178' cy='254' r='3'/%3E%3Ccircle cx='663' cy='260' r='3'/%3E%3Ccircle cx='90' cy='439' r='3'/%3E%3Ccircle cx='580' cy='362' r='3'/%3E%3Ccircle cx='738' cy='482' r='3'/%3E%3C/g%3E%3C/svg%3E");background-repeat:repeat-y;background-position:center 74px;background-size:min(960px,100%) auto}.app-shell,.auth-page{position:relative;isolation:isolate;background-color:transparent}.app-shell:before,.auth-page:before{position:absolute;z-index:-1;top:0;right:0;bottom:0;left:0;content:"";pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg width='960' height='600' viewBox='0 0 960 600' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%2300346F' stroke-opacity='.14' stroke-width='1'%3E%3Cpath d='M0 122H112l32 32h165l38 38h194l34-34h245'/%3E%3Cpath d='M58 280h120l26-26h144l48 48h225l42-42h297'/%3E%3Cpath d='M0 439h90l48-48h210l32 32h139l61-61h380'/%3E%3Cpath d='M526 0v83l31 31h114l42 42h247'/%3E%3Cpath d='M704 600v-84l34-34h122l41-41h59'/%3E%3C/g%3E%3Cg fill='%23D9FBFC' stroke='%23005B9A' stroke-opacity='.24'%3E%3Ccircle cx='144' cy='154' r='3'/%3E%3Ccircle cx='387' cy='192' r='3'/%3E%3Ccircle cx='615' cy='158' r='3'/%3E%3Ccircle cx='178' cy='254' r='3'/%3E%3Ccircle cx='663' cy='260' r='3'/%3E%3Ccircle cx='90' cy='439' r='3'/%3E%3Ccircle cx='580' cy='362' r='3'/%3E%3Ccircle cx='738' cy='482' r='3'/%3E%3C/g%3E%3C/svg%3E");background-repeat:repeat-y;background-position:center 74px;background-size:min(960px,100%) auto}.sidebar{display:flex;flex-direction:column;padding:22px 10px 18px;color:#293349;background:#f0edf2eb;border:0;box-shadow:inset -1px 0 #00346f0a}.sidebar-header{margin:0 10px 34px}.sidebar-logo{display:flex;align-items:center;gap:10px;color:#082a59}.sidebar-logo-mark{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;color:#fff;background:linear-gradient(135deg,#00346f,#004a99);box-shadow:0 8px 18px #00346f2e;font-family:Manrope,Inter,sans-serif;font-weight:850}.sidebar-logo b{display:block;font-family:Manrope,Inter,sans-serif;font-size:1rem;letter-spacing:-.04em}.sidebar-logo small{display:block;margin-top:2px;color:#697180;font-size:.53rem;font-weight:800;letter-spacing:.1em}.sidebar-nav{gap:5px}.sidebar-nav a{display:flex;align-items:center;gap:13px;padding:11px 13px;border-radius:5px;color:#3d4657;font-size:.88rem;font-weight:650}.sidebar-nav a i{width:16px;color:#4d5a71;font-size:1rem;font-style:normal;text-align:center}.sidebar-nav a.active,.sidebar-nav a:hover{color:#fff;background:linear-gradient(135deg,#00346f,#004a99);box-shadow:0 8px 18px #00346f2e}.sidebar-nav a.active i,.sidebar-nav a:hover i{color:#fff}.sidebar-footer{margin:auto 12px 2px;padding-top:18px;color:#7c8290;border-top:1px solid rgba(28,38,55,.06);font-size:.68rem;line-height:1.55}.navbar{height:72px;padding:0 30px;border:0;background:#fbf8fead;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:inset 0 -1px #00346f0f}.navbar-search{display:flex;width:min(405px,42vw);align-items:center;gap:10px;padding:0 14px;border-radius:12px;color:#546075;background:#eae7edc7}.navbar-search span{font-size:1.2rem}.navbar-search input{width:100%;height:38px;border:0;outline:0;color:#263247;background:transparent;font:inherit;font-size:.83rem}.navbar-search input::placeholder{color:#687386}.navbar-user{gap:16px}.navbar-user div{padding-left:16px;border-left:1px solid rgba(0,52,111,.08)}.navbar-user strong{color:#17233a;font-size:.84rem}.navbar-user span{color:#6a7382;font-size:.62rem;letter-spacing:.06em}.navbar-utility{display:grid;width:28px;height:28px;place-items:center;color:#30405a!important;font-size:1.05rem!important;letter-spacing:0!important}.navbar-logout{min-width:36px;padding:0 8px;color:#526078;background:transparent}.navbar-logout>span:last-child{font-size:.75rem}.app-content{width:100%;max-width:none;padding:38px 30px 48px}.page-header{margin-bottom:30px}.page-header h1{color:#0b1e4c;font-family:Manrope,Inter,sans-serif;font-size:clamp(1.75rem,3vw,2.25rem);font-weight:800;letter-spacing:-.045em}.page-header p{max-width:650px;color:#4f5868;font-size:.96rem}.content-card,.state-card{border:0;border-radius:20px;background:#ffffffd1;box-shadow:0 18px 42px #1b1b1f0b}.content-card{padding:28px}.content-card h2{color:#15213a;font-family:Manrope,Inter,sans-serif;font-size:1.08rem;letter-spacing:-.02em}.app-button{border:0;border-radius:6px;font-weight:750}.app-button--primary{background:linear-gradient(135deg,#00346f,#004a99);box-shadow:0 10px 20px #00346f33}.app-button--primary:hover:not(:disabled){background:linear-gradient(135deg,#002957,#003d80);box-shadow:0 12px 24px #00346f42}.app-button--secondary{color:#21314c;background:#eae7ed}.app-button--secondary:hover:not(:disabled),.app-button--ghost:hover:not(:disabled){background:#e2e7ef}.app-button--ghost{border:0;color:#344159;background:transparent}.app-button--danger{border:0;color:#8b2828;background:#f9e6e4}.app-button:focus-visible{outline-color:#00346f66}.app-input{border:0;border-radius:7px;color:#1b2637;background:#f0edf2}.app-input:hover:not(:disabled){border-color:transparent;background:#eae7ed}.app-input:focus-visible{border-color:#00346f61;background:#fff;box-shadow:0 0 0 2px #00346f3d}.entity-form label{color:#485163;font-size:.82rem}.table-card{border:0;border-radius:18px;background:#ffffffd1;box-shadow:0 18px 42px #1b1b1f09}.entity-table th,.entity-table td{border:0}.entity-table th{padding:15px 16px;color:#33445e;background:#f0edf2;font-size:.68rem;letter-spacing:.08em}.entity-table td{padding:17px 16px;color:#273143;font-size:.88rem}.entity-table tbody tr{transition:background .15s ease}.entity-table tbody tr:hover{background:#eae7ed94}.entity-table td span{color:#6d7583}.status-badge{color:#536074!important;background:#eae7ed;font-weight:750}.status-badge.active{color:#1d6b4a!important;background:#d8f3e5;box-shadow:0 5px 13px #1f995d21}.status-badge.warning{color:#825d1a!important;background:#f8edce}.status-badge.danger{color:#9a3535!important;background:#f9e1df}.dashboard-stats-grid{gap:18px}.dashboard-stat-card{position:relative;overflow:hidden;padding:24px;border:0;border-radius:18px;background:#ffffffc7;box-shadow:0 18px 42px #1b1b1f0a}.dashboard-stat-card:before{position:absolute;width:86px;height:86px;top:-34px;right:-25px;content:"";border-radius:50%;background:radial-gradient(circle,rgba(121,222,235,.25),transparent 68%)}.dashboard-stat-card span{color:#516071;font-size:.68rem;letter-spacing:.08em}.dashboard-stat-card strong{color:#071d4c;font-family:Manrope,Inter,sans-serif;font-size:1.85rem;letter-spacing:-.04em}.dashboard-stat-card p{color:#718093;font-size:.82rem}.sale-summary,.user-profile-details div,.company-profile-details div{background:#f0edf2}.transaction-confirm-button{min-width:196px;min-height:56px;padding:0 24px;border-radius:9px;color:#fff;background:linear-gradient(135deg,#002c60,#004a99 48%,#0871c9);box-shadow:0 12px 24px #00346f42,inset 0 1px #ffffff3d,inset 0 -1px #0018423d;letter-spacing:.01em;transition:transform .15s ease,box-shadow .15s ease,filter .15s ease}.transaction-confirm-button>span:not(.app-button__spinner){display:inline-flex;align-items:center;gap:11px}.transaction-confirm-button:hover:not(:disabled){transform:translateY(-2px) scale(1.015);background:linear-gradient(135deg,#00346f,#0058b8 48%,#1590e5);box-shadow:0 18px 31px #00346f52,inset 0 1px #ffffff4d,inset 0 -1px #0018422e;filter:saturate(1.08)}.transaction-confirm-button:active:not(:disabled){transform:translateY(1px) scale(.99);box-shadow:0 5px 12px #00346f3d,inset 0 2px 5px #00184247;filter:saturate(.94) brightness(.96)}.transaction-confirm-button:focus-visible{outline:3px solid rgba(8,144,229,.35);outline-offset:3px}.transaction-confirm-button:disabled{box-shadow:none}.transaction-confirm-button__icon{display:inline-grid;width:22px;height:22px;place-items:center;border-radius:50%;color:#00356f;background:linear-gradient(135deg,#f4ffff,#b6f5f4);box-shadow:0 2px 7px #001e4933;font-size:.76rem;font-weight:900}.invoice-form-section{border:0;background:#ffffffd6;box-shadow:0 18px 42px #1b1b1f0a}.invoice-form-footer{border-color:#00346f1a;background:#fbf8fed6;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}.auth-card,.confirm-dialog,.toast-card{border:0;background:#ffffffeb;box-shadow:0 24px 64px #1b1b1f1f}@media(max-width:900px){.sidebar{background:#f0edf2}.navbar-search{width:min(360px,52vw)}body:after{inset-left:0;opacity:.38}.app-shell:before,.auth-page:before{opacity:.65}}@media(max-width:640px){.navbar{padding-inline:14px}.navbar-search,.navbar-utility{display:none}.navbar-logout>span:last-child{display:none}.app-content{padding:28px 16px 36px}.content-card{padding:20px 18px}body:after{opacity:.2;background-position:center 64px}.app-shell:before,.auth-page:before{opacity:.4}}
