*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{color:#171717;background:#f7f7f8;font-family:Arial,Helvetica,sans-serif}.home{place-items:center;min-height:100vh;padding:2rem;display:grid}.home__content{width:min(100%,48rem)}.home__eyebrow{margin-bottom:.5rem;font-weight:600}h1{margin:0;font-size:clamp(2.5rem,7vw,5rem);line-height:1}.home__content>p:last-child{margin-top:1.5rem;font-size:1.125rem;line-height:1.6}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}.erp-shell{background:#f4f6f8;grid-template-columns:15rem minmax(0,1fr);min-height:100vh;display:grid}.erp-sidebar{color:#f9fafb;background:#111827;border-right:1px solid #e2e6ea;height:100vh;padding:1.5rem 1rem;position:sticky;top:0}.erp-brand{align-items:center;gap:.75rem;padding:0 .5rem 1.75rem;display:flex}.erp-brand__mark{color:#111827;background:#f9fafb;border-radius:.65rem;place-items:center;width:2.25rem;height:2.25rem;font-weight:800;display:grid}.erp-brand>div{gap:.05rem;display:grid}.erp-brand span:last-child{color:#9ca3af;letter-spacing:.08em;font-size:.75rem}.erp-nav{gap:.35rem;display:grid}.erp-nav__section{color:#6b7280;letter-spacing:.08em;text-transform:uppercase;padding:.75rem;font-size:.7rem;font-weight:700}.erp-nav__item{color:#d1d5db;border-radius:.55rem;padding:.75rem;font-size:.9rem}.erp-nav__item--active{color:#fff;background:#1f2937;font-weight:600}.erp-nav__item--disabled{opacity:.42}.erp-main{min-width:0}.erp-topbar{background:#fff;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;gap:1rem;min-height:4.25rem;padding:.8rem 2rem;display:flex}.erp-topbar>div:first-child{gap:.15rem;display:grid}.erp-user{color:#374151;text-overflow:ellipsis;white-space:nowrap;max-width:18rem;font-size:.875rem;overflow:hidden}.erp-content{width:min(100%,92rem);margin:0 auto;padding:2rem}.invoice-editor{gap:1.25rem;display:grid}.invoice-page-header{justify-content:space-between;align-items:flex-start;gap:1.5rem;display:flex}.page-eyebrow{color:#64748b;letter-spacing:.08em;text-transform:uppercase;margin:0 0 .4rem;font-size:.75rem;font-weight:700}.invoice-title-row{align-items:center;gap:.75rem;display:flex}.invoice-title-row h1{margin:0;font-size:clamp(1.75rem,3vw,2.4rem);line-height:1.15}.page-subtitle{color:#64748b;margin:.55rem 0 0;line-height:1.5}.invoice-actions{flex-wrap:wrap;gap:.65rem;display:flex}.button{border:1px solid #0000;border-radius:.55rem;min-height:2.6rem;padding:.65rem 1rem;font-weight:650}.button--primary{color:#fff;background:#111827}.button--primary:hover:not(:disabled){background:#1f2937}.button--secondary{color:#1f2937;background:#fff;border-color:#cbd5e1}.button--quiet{color:#334155;background:#f8fafc;border-color:#dbe1e8;min-height:2.25rem;padding:.45rem .75rem;font-size:.85rem}.button:disabled{opacity:.55}.status-badge{border-radius:999px;align-items:center;min-height:1.75rem;padding:.25rem .65rem;font-size:.75rem;font-weight:700;display:inline-flex}.status-badge--draft{color:#9a3412;background:#fff7ed}.status-badge--confirmed{color:#1d4ed8;background:#eff6ff}.status-badge--issued{color:#047857;background:#ecfdf5}.status-badge--voided{color:#b91c1c;background:#fef2f2}.notice{border:1px solid;border-radius:.65rem;padding:.85rem 1rem;font-size:.9rem;line-height:1.45}.notice--info{color:#1e40af;background:#eff6ff;border-color:#bfdbfe}.notice--warning{color:#9a3412;background:#fff7ed;border-color:#fed7aa}.notice--error{color:#991b1b;background:#fef2f2;border-color:#fecaca}.notice--success{color:#166534;background:#f0fdf4;border-color:#bbf7d0}.erp-card{background:#fff;border:1px solid #e1e6eb;border-radius:.85rem;padding:1.25rem;box-shadow:0 1px 2px #0f172a08}.section-heading{margin-bottom:1rem}.section-heading--inline{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.section-heading h2{color:#111827;margin:0;font-size:1.05rem}.section-heading p{color:#64748b;margin:.25rem 0 0;font-size:.85rem;line-height:1.45}.invoice-meta-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1rem;display:grid}.invoice-meta-grid>div{background:#f8fafc;border-radius:.6rem;gap:.3rem;padding:.85rem;display:grid}.invoice-meta-grid span{color:#64748b;font-size:.75rem}.invoice-meta-grid strong{color:#1f2937;font-size:.9rem}.field{gap:.4rem;display:grid}.field>span{color:#475569;font-size:.75rem;font-weight:600}.field input,.field select,.field textarea,.table-input{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:.5rem;outline:none;width:100%}.field input,.field select,.table-input{min-height:2.4rem;padding:.45rem .6rem}.field textarea{resize:vertical;padding:.65rem;line-height:1.45}.field input:focus,.field select:focus,.field textarea:focus,.table-input:focus{border-color:#64748b;box-shadow:0 0 0 3px #64748b1f}.field input:disabled,.field select:disabled,.field textarea:disabled,.table-input:disabled{color:#64748b;background:#f8fafc}.table-scroll{overflow-x:auto}.erp-table{border-collapse:collapse;width:100%;font-size:.85rem}.erp-table th{color:#64748b;text-align:left;text-transform:uppercase;white-space:nowrap;border-bottom:1px solid #dce2e8;padding:.65rem;font-size:.7rem;font-weight:700}.erp-table td{vertical-align:middle;border-bottom:1px solid #edf0f3;padding:.7rem .65rem}.erp-table tbody tr:last-child td{border-bottom:0}.table-input{min-width:6.5rem}.money-cell{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}.invoice-bottom-grid{grid-template-columns:minmax(0,1.45fr) minmax(18rem,.55fr);align-items:start;gap:1.25rem;display:grid}.payment-terms{gap:.75rem;display:grid}.payment-term{border-bottom:1px solid #edf0f3;grid-template-columns:1.4fr 1fr .65fr .8fr auto;align-items:end;gap:.65rem;padding-bottom:.75rem;display:grid}.icon-button{color:#b91c1c;background:#fff;border:1px solid #fecaca;border-radius:.5rem;place-items:center;width:2.4rem;height:2.4rem;font-size:1.3rem;display:grid}.empty-state{color:#64748b;background:#f8fafc;border-radius:.55rem;margin:0;padding:1rem;font-size:.85rem}.payment-total{border-top:1px solid #e5e7eb;justify-content:space-between;gap:1rem;margin-top:1rem;padding-top:.9rem;display:flex}.payment-total span{color:#64748b}.totals-card{position:sticky;top:5.5rem}.totals-list{gap:.7rem;margin:0;display:grid}.totals-list>div{justify-content:space-between;gap:1rem;display:flex}.totals-list dt{color:#64748b}.totals-list dd{font-variant-numeric:tabular-nums;margin:0;font-weight:650}.totals-list__grand{border-top:1px solid #dce2e8;margin-top:.25rem;padding-top:.8rem;font-size:1.05rem}.totals-list__grand dt,.totals-list__grand dd{color:#111827;font-weight:800}.tax-summary{border-top:1px solid #e5e7eb;gap:.55rem;margin-top:1.25rem;padding-top:1rem;display:grid}.tax-summary h3{color:#475569;margin:0 0 .25rem;font-size:.8rem}.tax-summary>div{color:#64748b;justify-content:space-between;gap:1rem;font-size:.8rem;display:flex}.tax-summary strong{color:#334155}@media (max-width:72rem){.invoice-bottom-grid{grid-template-columns:1fr}.totals-card{position:static}.payment-term{grid-template-columns:1fr 1fr}.payment-term .icon-button{align-self:end}}@media (max-width:52rem){.erp-shell{grid-template-columns:1fr}.erp-sidebar{height:auto;display:none;position:static}.erp-topbar{padding:.8rem 1rem}.erp-content{padding:1.25rem 1rem}.invoice-page-header{display:grid}.invoice-actions{width:100%}.invoice-actions .button{flex:1}.invoice-meta-grid{grid-template-columns:1fr}}@media (max-width:36rem){.payment-term{grid-template-columns:1fr}.invoice-title-row{flex-direction:column;align-items:flex-start}}.login-page{background:#f9fafb;place-content:center;gap:1rem;min-height:100vh;padding:2rem 1rem;display:grid}.login-card{background:#fff;border:1px solid #e5e7eb;border-radius:1rem;gap:1rem;width:min(100vw - 2rem,28rem);padding:2rem;display:grid;box-shadow:0 1px 3px #0f172a14}.login-heading{text-align:center;padding-bottom:.75rem}.login-heading h1{color:#111827;margin:0;font-size:1.5rem;font-weight:600}.login-heading p{color:#6b7280;margin:.4rem 0 0;font-size:.875rem;line-height:1.5}.login-fields{gap:1rem;display:grid}.login-password-field{position:relative}.login-password-field input{width:100%;padding-right:3rem}.login-password-toggle{color:#9ca3af;cursor:pointer;background:0 0;border:0;place-items:center;width:2rem;height:2rem;padding:0;display:grid;position:absolute;top:50%;right:.8rem;transform:translateY(-50%)}.login-password-toggle:hover:not(:disabled){color:#4b5563}.login-password-toggle:focus-visible{outline-offset:2px;border-radius:.4rem;outline:2px solid #94a3b8}.login-password-toggle:disabled{cursor:not-allowed;opacity:.5}.tenant-selection{background:#eff6ff;border:1px solid #dbeafe;border-radius:.75rem;gap:1rem;padding:1rem;display:grid}.tenant-selection>div{gap:.25rem;display:grid}.tenant-selection>div>strong{color:#111827;font-size:.875rem}.tenant-selection>div>p{color:#6b7280;margin:0;font-size:.75rem;line-height:1.45}.login-submit{width:100%;margin-top:.25rem}.login-back{width:100%}.login-security-note{color:#94a3b8;text-align:center;margin:0;font-size:.75rem}@media (max-width:36rem){.login-card{padding:1.5rem}}.dashboard{gap:1.5rem;display:grid}.dashboard-header{justify-content:space-between;align-items:flex-start;gap:1.5rem;display:flex}.dashboard-header h1{color:#111827;margin:0;font-size:1.75rem;line-height:1.2}.dashboard-header>div>p:last-child{color:#64748b;max-width:42rem;margin:.45rem 0 0;font-size:.9rem;line-height:1.5}.dashboard-eyebrow{color:#64748b;letter-spacing:.08em;text-transform:uppercase;margin:0 0 .35rem;font-size:.72rem;font-weight:700}.dashboard-status{border:1px solid;border-radius:999px;flex:none;padding:.45rem .7rem;font-size:.75rem;font-weight:700}.dashboard-status--ready{color:#166534;background:#f0fdf4;border-color:#bbf7d0}.dashboard-status--pending{color:#9a3412;background:#fff7ed;border-color:#fed7aa}.dashboard-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;display:grid}.dashboard-stat{gap:.35rem;display:grid}.dashboard-stat>span{color:#64748b;font-size:.8rem;font-weight:600}.dashboard-stat>strong{color:#111827;font-size:1.8rem;line-height:1.15}.dashboard-stat>small{color:#94a3b8;font-size:.72rem}.dashboard-grid{grid-template-columns:minmax(0,1.35fr) minmax(18rem,.65fr);align-items:start;gap:1rem;display:grid}.dashboard-checklist{gap:.2rem;display:grid}.dashboard-check{border-bottom:1px solid #eef2f6;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.7rem;padding:.7rem 0;display:grid}.dashboard-check:last-child{border-bottom:0}.dashboard-check__indicator{background:#cbd5e1;border-radius:999px;width:.6rem;height:.6rem}.dashboard-check__indicator--complete{background:#22c55e}.dashboard-check>span:nth-child(2){color:#334155;font-size:.85rem}.dashboard-check>strong{color:#64748b;font-size:.75rem}.dashboard-detail-list{gap:0;margin:0;display:grid}.dashboard-detail-list>div{border-bottom:1px solid #eef2f6;justify-content:space-between;align-items:center;gap:1rem;padding:.7rem 0;display:flex}.dashboard-detail-list>div:last-child{border-bottom:0}.dashboard-detail-list dt{color:#64748b;font-size:.82rem}.dashboard-detail-list dd{color:#1f2937;margin:0;font-size:.9rem;font-weight:700}.dashboard-notice{margin-top:1rem}@media (max-width:70rem){.dashboard-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}}@media (max-width:44rem){.dashboard-header{display:grid}.dashboard-stat-grid{grid-template-columns:1fr}}.erp-shell{transition:grid-template-columns .18s}.erp-sidebar{overflow-x:hidden}.erp-sidebar__header{justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:1.25rem;display:flex}.erp-sidebar__header .erp-brand{min-width:0;padding-bottom:0}.erp-brand__text{gap:.05rem;min-width:0;display:grid}.erp-sidebar__toggle{color:#94a3b8;cursor:pointer;background:0 0;border:0;border-radius:.5rem;flex:none;place-items:center;width:2rem;height:2rem;display:grid}.erp-nav__item{white-space:nowrap;align-items:center;gap:.7rem;display:flex}.erp-nav__icon{flex:0 0 1.25rem;place-items:center;width:1.25rem;display:grid}.erp-shell--collapsed .erp-sidebar__header{justify-items:center;display:grid}.erp-shell--collapsed .erp-brand__text,.erp-shell--collapsed .erp-nav__label,.erp-shell--collapsed .erp-nav__section{display:none}.erp-shell--collapsed .erp-brand{justify-content:center;padding:0}.erp-shell--collapsed .erp-nav__item{justify-content:center;padding-left:0;padding-right:0}.erp-shell--collapsed .erp-sidebar__toggle{margin-top:.25rem}.erp-shell{background:#f1f5f9;grid-template-columns:13.25rem minmax(0,1fr)}.erp-shell--collapsed{grid-template-columns:4rem minmax(0,1fr)}.erp-sidebar{color:#fff;background:#0e7490;border-right:0;padding:1rem .7rem;box-shadow:1px 0 #0f172a0d}.erp-sidebar__header{min-height:2.65rem;margin-bottom:1rem}.erp-brand{gap:.65rem;padding:.1rem .35rem .9rem}.erp-brand__mark{color:#0e7490;background:#fff;border-radius:.5rem;width:2rem;height:2rem;box-shadow:0 1px 3px #0f172a29}.erp-brand__text strong{color:#fff;font-size:.9rem;line-height:1.1}.erp-brand__text span{color:#eaf1f7b8;letter-spacing:.08em;font-size:.67rem}.erp-sidebar__toggle{color:#eaf2ff;border-radius:.4rem;width:1.8rem;height:1.8rem}.erp-sidebar__toggle:hover{color:#fff;background:#06b6d42e}.erp-nav{gap:.18rem}.erp-nav__section{color:#eaf1f794;letter-spacing:.09em;padding:.8rem .7rem .35rem;font-size:.64rem}.erp-nav__item{color:#eaf2ff;border-radius:.45rem;gap:.7rem;min-height:2.45rem;padding:.6rem .7rem;font-size:.82rem;text-decoration:none;transition:background .12s,color .12s}.erp-nav__item:hover:not(.erp-nav__item--disabled){color:#fff;background:#06b6d42e}.erp-nav__item--active{color:#fff;background:#06b6d433;font-weight:650;position:relative}.erp-nav__item--active:before{content:"";background:#06b6d4;border-radius:999px;width:.2rem;position:absolute;top:.45rem;bottom:.45rem;left:-.55rem}.erp-nav__item--disabled{color:#eaf1f76b;opacity:1}.erp-nav__icon{flex-basis:1.15rem;width:1.15rem}.erp-shell--collapsed .erp-sidebar{padding-left:.55rem;padding-right:.55rem}.erp-shell--collapsed .erp-sidebar__header{gap:.25rem}.erp-shell--collapsed .erp-brand__mark{width:2rem;height:2rem}.erp-shell--collapsed .erp-nav__item{border-radius:.45rem;min-height:2.45rem}.erp-topbar{background:#fff;border-bottom:1px solid #e2e8f0;min-height:3.7rem;padding:.65rem 1.6rem}.erp-topbar>div:first-child{gap:.05rem}.erp-topbar>div:first-child strong{color:#0f172a;font-size:.88rem}.erp-topbar span{color:#64748b;font-size:.72rem}.erp-user{color:#334155;font-size:.8rem}.erp-content{width:min(100%,96rem);padding:1.6rem}@media (max-width:60rem){.erp-shell{grid-template-columns:4rem minmax(0,1fr)}.erp-sidebar{padding-left:.55rem;padding-right:.55rem}.erp-brand__text,.erp-nav__label,.erp-nav__section{display:none}.erp-brand,.erp-nav__item{justify-content:center}}.customer-page{gap:1.25rem;display:grid}.customer-page__header{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.customer-page__header h1{color:#111827;margin:0;font-size:clamp(1.65rem,3vw,2.15rem);line-height:1.15}.customer-page__header>div>p:last-child{color:#64748b;max-width:44rem;margin:.5rem 0 0;line-height:1.55}.customer-page__eyebrow{color:#0e7490;letter-spacing:.08em;text-transform:uppercase;margin:0 0 .35rem;font-size:.75rem;font-weight:750}.customer-filter-form{grid-template-columns:minmax(16rem,1.6fr) minmax(10rem,.6fr) auto;align-items:end;gap:.85rem;display:grid}.customer-filter-actions{flex-wrap:wrap;gap:.55rem;display:flex}.customer-list-card{min-width:0}.customer-table__identity,.customer-table__name,.customer-table__contact{gap:.2rem;display:grid}.customer-table__identity strong{color:#475569;letter-spacing:.04em;text-transform:uppercase;font-size:.7rem;font-weight:750}.customer-table__identity span,.customer-table__name strong{color:#0f172a}.customer-table__name span,.customer-table__contact span,.customer-table__muted{color:#64748b;font-size:.8rem}.status-badge--active{color:#047857;background:#ecfdf5}.status-badge--inactive{color:#64748b;background:#f1f5f9}.customer-pagination{border-top:1px solid #edf0f3;justify-content:space-between;align-items:center;gap:1rem;margin-top:1rem;padding-top:1rem;display:flex}.customer-pagination__end{color:#94a3b8;font-size:.8rem}@media (max-width:52rem){.customer-filter-form{grid-template-columns:1fr}.customer-filter-actions .button{flex:1}}@media (max-width:36rem){.customer-page__header{flex-direction:column}.customer-pagination{flex-direction:column;align-items:stretch}.customer-pagination .button{text-align:center}}.customer-mutation-actions{flex-wrap:wrap;gap:.45rem;display:flex}.customer-action-error{margin-top:.5rem}.customer-dialog-backdrop{z-index:100;background:#0f172a7a;place-items:center;padding:1.25rem;display:grid;position:fixed;inset:0}.customer-dialog{background:#fff;border:1px solid #dbe1e8;border-radius:.9rem;width:min(46rem,100%);max-height:calc(100vh - 2.5rem);padding:1.4rem;overflow-y:auto;box-shadow:0 24px 70px #0f172a33}.customer-dialog__header{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.25rem;display:flex}.customer-dialog__header h2{color:#111827;margin:0;font-size:1.25rem}.customer-form{gap:1rem;display:grid}.customer-form__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.customer-form__wide{grid-column:1/-1}.customer-dialog__footer{justify-content:flex-end;gap:.65rem;padding-top:.25rem;display:flex}@media (max-width:42rem){.customer-dialog-backdrop{align-items:end;padding:0}.customer-dialog{border-bottom:0;border-left:0;border-right:0;border-radius:.9rem .9rem 0 0;width:100%;max-height:92vh}.customer-form__grid{grid-template-columns:1fr}.customer-form__wide{grid-column:auto}.customer-dialog__footer{flex-direction:column-reverse}.customer-dialog__footer .button{width:100%}}.item-page{gap:1.25rem;display:grid}.item-page__header{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.item-page__header h1{color:#111827;margin:0;font-size:clamp(1.65rem,3vw,2.15rem);line-height:1.15}.item-page__header>div>p:last-child{color:#64748b;max-width:48rem;margin:.5rem 0 0;line-height:1.55}.item-page__eyebrow{color:#0e7490;letter-spacing:.08em;text-transform:uppercase;margin:0 0 .35rem;font-size:.75rem;font-weight:750}.item-filter-form{grid-template-columns:minmax(15rem,1.5fr) minmax(9rem,.55fr) minmax(9rem,.55fr) auto;align-items:end;gap:.85rem;display:grid}.item-filter-actions,.item-mutation-actions,.item-form__actions{flex-wrap:wrap;gap:.55rem;display:flex}.item-list-card{min-width:0}.item-table__code{color:#334155;font-variant-numeric:tabular-nums;white-space:nowrap}.item-table__name{gap:.2rem;min-width:12rem;display:grid}.item-table__name strong{color:#0f172a}.item-table__name span{color:#64748b;text-overflow:ellipsis;white-space:nowrap;max-width:30rem;font-size:.8rem;overflow:hidden}.item-price{white-space:nowrap;gap:.15rem;display:grid}.item-price strong{color:#0f172a;font-variant-numeric:tabular-nums}.item-price span,.item-field-help{color:#64748b;font-size:.75rem;line-height:1.4}.item-pagination{border-top:1px solid #edf0f3;justify-content:space-between;align-items:center;gap:1rem;margin-top:1rem;padding-top:1rem;display:flex}.item-pagination__end{color:#94a3b8;font-size:.8rem}.item-action-error{margin-top:.5rem}.item-dialog-backdrop{z-index:100;background:#0f172a7a;place-items:center;padding:1.25rem;display:grid;position:fixed;inset:0}.item-dialog{background:#fff;border:1px solid #dbe1e8;border-radius:.9rem;width:min(46rem,100%);max-height:calc(100vh - 2.5rem);padding:1.4rem;overflow-y:auto;box-shadow:0 24px 70px #0f172a33}.item-dialog__header{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.25rem;display:flex}.item-dialog__header h2{color:#111827;margin:0;font-size:1.25rem}.item-form{gap:1rem;display:grid}.item-form__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.item-form__wide{grid-column:1/-1}.item-form__actions{justify-content:flex-end;padding-top:.25rem}@media (max-width:64rem){.item-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:52rem){.item-filter-form,.item-form__grid{grid-template-columns:1fr}.item-form__wide{grid-column:auto}.item-filter-actions .button{flex:1}}@media (max-width:36rem){.item-page__header,.item-dialog__header,.item-pagination{flex-direction:column;align-items:stretch}.item-page__header>.item-mutation-actions,.item-page__header>.item-mutation-actions .button,.item-pagination .button{width:100%}.item-form__actions{flex-direction:column-reverse}.item-form__actions .button{width:100%}}
