:root{--canvas:#07101d;--sidebar:#091425;--surface:#0e192b;--surface-elevated:#142137;--border-subtle:#94a3b81a;--border-strong:#94a3b833;--text-primary:#f7f9fc;--text-secondary:#b8c3d6;--text-muted:#8796ae;--accent:#38bdf8;--accent-strong:#0ea5e9;--positive:#30b98b;--warning:#e0a83c;--danger:#e46272;--space-xs:4px;--space-sm:8px;--space-md:12px;--space-lg:16px;--space-xl:20px;--space-2xl:28px;--radius-panel:20px;--radius-card:14px;--radius-control:11px;--radius-document:24px;--shadow-panel:0 12px 28px -28px #000000b8;--shadow-overlay:0 24px 70px -30px #000000e0;--accent-glow:#38bdf81f}.quote-document-panel .quote-document-header{padding-block:16px}.quote-document-panel .quote-document-header h2{letter-spacing:-.02em;line-height:1.2}.quote-document-panel .quote-editor-card{border-radius:var(--radius-card);min-width:0;padding:var(--space-lg);background:#ffffff05;border:1px solid #ffffff12}.quote-document-panel .quote-editor-parties .quote-document-party{height:100%}.quote-document-panel .quote-editor-parties>.desktop-section+.desktop-section{margin-top:0}.quote-document-panel .quote-document-party .desktop-section-title{margin-bottom:5px}.quote-document-panel .quote-document-party .desktop-section-description{margin:0 0 14px;font-size:12px}.quote-document-panel .quote-document-party .desktop-section-description+div{margin-top:0}.quote-document-disclosure>summary::-webkit-details-marker{display:none}.commercial-template-fields-disclosure>summary::-webkit-details-marker{display:none}.quote-document-disclosure>summary:hover,.commercial-template-fields-disclosure>summary:hover{background:#ffffff06}.quote-document-disclosure-chevron{font-size:17px;line-height:1;transition:transform .15s;display:inline-block}.quote-document-disclosure[open]>summary .quote-document-disclosure-chevron,.commercial-template-fields-disclosure[open]>summary .quote-document-disclosure-chevron{transform:rotate(90deg)}.invoice-document-panel .invoice-document-header{padding-block:16px}.invoice-document-panel .invoice-document-header h2{letter-spacing:-.02em;line-height:1.2}.invoice-document-panel .invoice-editor-card,.invoice-document-panel .invoice-preview-context,.invoice-document-panel .invoice-preview-activity{border-radius:var(--radius-card);min-width:0;padding:var(--space-lg);background:#ffffff05;border:1px solid #ffffff12}.invoice-document-panel .invoice-document-body{padding-top:var(--space-xl)}.quote-document-panel .quote-document-line-items .desktop-section-title,.quote-document-panel .quote-document-notes .desktop-section-title{margin-bottom:0}.quote-document-panel .quote-document-line-amount{letter-spacing:-.01em}.quote-document-panel .quote-document-footer{padding-block:9px}.quote-document-panel .quote-document-footer button:disabled{opacity:.5}@media (width>=768px){.quote-document-panel .quote-document-remove-action{min-width:36px;min-height:36px}}@media (width<=767px){.quote-document-panel .quote-document-header{padding-block:14px}.quote-document-panel .quote-document-body{padding-block:18px}.quote-document-panel .quote-document-line-item{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.quote-document-panel .quote-document-line-description,.quote-document-panel .quote-document-line-price,.quote-document-panel .quote-document-line-amount{grid-column:1/-1}.quote-document-panel .quote-document-remove-action{grid-column:2;justify-self:end}.quote-document-panel.desktop-detail-shell .quote-document-footer{padding:8px 16px calc(8px + env(safe-area-inset-bottom));flex-direction:row;align-items:flex-end;gap:8px}.quote-document-panel.desktop-detail-shell .quote-document-footer>div:last-child{flex:1;min-width:0}.quote-document-panel.desktop-detail-shell .quote-document-footer>div:first-child{align-self:flex-end}}html,body{overscroll-behavior-y:none;min-height:100dvh;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;overflow-x:hidden}.desktop-opportunity-detail .desktop-opportunity-detail-body{align-content:start;align-items:start;gap:var(--space-lg);grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);display:grid}.desktop-opportunity-detail .desktop-opportunity-detail-body>.desktop-section+.desktop-section{margin-top:0}.desktop-opportunity-detail .desktop-opportunity-next-step{align-items:center;gap:var(--space-md);border-radius:var(--radius-card);min-width:0;padding:var(--space-md) var(--space-lg);background:#0ea5e913;border:1px solid #38bdf82e;grid-column:1/-1;display:flex}.desktop-opportunity-detail .desktop-opportunity-next-step-marker{color:#a5e9ff;background:#38bdf824;border-radius:999px;flex:0 0 34px;place-items:center;width:34px;height:34px;font-size:18px;display:grid}.desktop-opportunity-detail .desktop-opportunity-card{border-radius:var(--radius-card);min-width:0;padding:var(--space-lg);background:#ffffff05;border:1px solid #ffffff12}.desktop-opportunity-detail .desktop-opportunity-commercial-details,.desktop-opportunity-detail .desktop-opportunity-notes,.desktop-opportunity-detail .desktop-opportunity-lost-reason{grid-column:1}.desktop-opportunity-detail .desktop-opportunity-follow-up,.desktop-opportunity-detail .desktop-opportunity-related{grid-column:2}.desktop-opportunity-detail .desktop-opportunity-follow-up{grid-row:2}.desktop-opportunity-detail .desktop-opportunity-related{grid-row:3}.desktop-opportunity-detail .desktop-opportunity-summary>div{min-height:58px}.desktop-opportunity-detail .desktop-opportunity-value-grid{grid-template-columns:minmax(0,1fr) minmax(148px,42%)}.desktop-opportunity-detail .desktop-opportunity-last-contacted{opacity:.88}.desktop-opportunity-detail .desktop-opportunity-related-row{transition:background-color .15s}.desktop-opportunity-detail .desktop-detail-back-action{border-color:var(--border-subtle);color:var(--text-secondary);background:0 0;font-weight:600}.desktop-opportunity-detail .desktop-opportunity-follow-up-empty{border-color:#94a3b80b}.desktop-opportunity-detail.desktop-detail-shell .desktop-opportunity-action-bar{padding:8px 16px calc(8px + env(safe-area-inset-bottom))}@media (width<=899px){.desktop-opportunity-detail .desktop-opportunity-detail-body{display:block}.desktop-opportunity-detail .desktop-opportunity-detail-body>*+*,.desktop-opportunity-detail .desktop-opportunity-detail-body>.desktop-section+.desktop-section{margin-top:var(--space-lg)}}@media (width<=639px){.desktop-opportunity-detail .desktop-detail-header{flex-wrap:wrap;padding-bottom:16px}.desktop-opportunity-detail .desktop-detail-header>:first-child,.desktop-opportunity-detail .desktop-detail-navigation-actions{width:100%}.desktop-opportunity-detail .desktop-detail-navigation-actions{justify-content:flex-end;min-height:40px}.desktop-opportunity-detail .desktop-opportunity-detail-body{padding-block:20px}.desktop-opportunity-detail .desktop-opportunity-value-grid{grid-template-columns:minmax(100px,30%) minmax(0,70%)}.desktop-opportunity-detail .desktop-opportunity-summary{grid-template-columns:1fr}.desktop-opportunity-detail .desktop-opportunity-summary>div{border-top:1px solid #ffffff12;border-left:0;min-height:0}.desktop-opportunity-detail .desktop-opportunity-summary>div:first-child{border-top:0}.desktop-opportunity-detail .desktop-opportunity-follow-up-empty{align-items:flex-start}.desktop-opportunity-detail .desktop-opportunity-related-row{gap:10px}.desktop-opportunity-detail.desktop-detail-shell .desktop-opportunity-action-bar{flex-direction:row;align-items:center;gap:8px}.desktop-opportunity-detail.desktop-detail-shell .desktop-opportunity-action-bar .desktop-primary-action{order:initial;flex:1;width:auto}}@media screen and (width>=1024px){.desktop-opportunity-detail .desktop-detail-header{padding:18px 28px}.desktop-opportunity-detail .desktop-opportunity-detail-body{padding:20px 28px}.desktop-opportunity-detail .desktop-opportunity-action-bar{padding:8px 28px}}body{background-color:var(--canvas);background-image:radial-gradient(circle at 15% -10%, #2563eb2e, transparent 34rem), linear-gradient(180deg, var(--canvas) 0%, #09111f 52%, #050b14 100%);color:var(--text-primary)}#root{min-height:100dvh;overflow-x:hidden}.desktop-detail-backdrop{z-index:82;background:var(--canvas);animation:.18s ease-out both desktop-detail-backdrop-in;display:flex;position:fixed;inset:0}.desktop-detail-shell{background:var(--surface);flex-direction:column;width:100%;max-width:none;height:100dvh;display:flex;overflow:hidden}.desktop-detail-shell-enter{animation:.2s cubic-bezier(.22,1,.36,1) both desktop-detail-panel-in}@keyframes desktop-detail-backdrop-in{0%{opacity:0}to{opacity:1}}@keyframes desktop-detail-panel-in{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}.desktop-detail-header{border-bottom:1px solid var(--border-subtle);padding:calc(var(--space-lg) + env(safe-area-inset-top)) var(--space-lg) var(--space-lg);flex:none}.desktop-detail-body{-webkit-overflow-scrolling:touch;min-height:0;padding:var(--space-lg);flex:1;overflow:hidden auto}.desktop-detail-shell .desktop-sticky-action-bar,.desktop-detail-footer{z-index:1;border-top:1px solid var(--border-subtle);padding:var(--space-md) var(--space-lg) calc(var(--space-md) + env(safe-area-inset-bottom));background:#0e192bfa;flex:none;position:relative}.desktop-detail-navigation-actions,.desktop-detail-back-action,.desktop-detail-close-action{min-height:44px}.desktop-primary-action{border-radius:var(--radius-control);background:var(--accent-strong);color:#07111f;min-height:44px;padding:10px 20px;font-size:14px;font-weight:650;transition:background-color .15s}.desktop-primary-action:hover{background:var(--accent)}.desktop-primary-action:disabled{cursor:not-allowed;opacity:.45}.desktop-section+.desktop-section{margin-top:var(--space-2xl)}.desktop-section-title{margin:0 0 var(--space-sm);color:var(--text-primary);letter-spacing:-.01em;font-size:14px;font-weight:650}.desktop-section-description{margin:calc(var(--space-sm) * -.5) 0 var(--space-md);color:var(--text-muted);font-size:13px}.desktop-detail-input,.desktop-detail-value{border:1px solid var(--border-strong);border-radius:var(--radius-control);width:100%;min-height:44px;padding:10px var(--space-md);color:var(--text-primary);background:#0003;outline:none;font-size:16px}.desktop-detail-input:focus-visible,.desktop-focus-ring:focus-visible{outline-offset:2px;outline:2px solid #60a5fae6}.desktop-control{border:1px solid var(--border-strong);border-radius:var(--radius-control);background:#ffffff09;min-height:44px}.desktop-control:hover{background:#fff1}.desktop-status-badge{letter-spacing:0;font-weight:650}.order-detail-panel .order-detail-header{padding-bottom:var(--space-md)}.order-detail-panel .order-detail-body{padding-top:var(--space-md)}.order-detail-section-card{border-radius:var(--radius-card);min-width:0;padding:var(--space-lg);background:#ffffff05;border:1px solid #ffffff12}.order-detail-profitability{background:#030c1847}@media (width<=639px){.desktop-detail-header h2{font-size:1.25rem;line-height:1.35}.desktop-detail-navigation-actions{gap:0}.desktop-detail-back-action,.desktop-detail-close-action{min-width:44px;padding-inline:8px}.desktop-detail-shell .desktop-sticky-action-bar{flex-direction:column;align-items:stretch;gap:10px}.desktop-detail-shell .desktop-sticky-action-bar>div:first-child{align-self:flex-start}.desktop-detail-shell .desktop-sticky-action-bar>div:last-child{width:100%}.desktop-detail-shell .desktop-sticky-action-bar>div:last-child>div:last-child{justify-content:flex-start;width:100%}.desktop-detail-shell .desktop-sticky-action-bar .desktop-primary-action{order:-1;width:100%}.desktop-detail-shell .desktop-sticky-action-bar button{min-height:44px}}@media (width>=640px) and (width<=1023px){.desktop-detail-header,.desktop-detail-body,.desktop-detail-shell .desktop-sticky-action-bar,.desktop-detail-footer{padding-inline:var(--space-2xl)}.desktop-detail-body>*{max-width:960px;margin-inline:auto}}@media (prefers-reduced-motion:reduce){.desktop-detail-backdrop,.desktop-detail-backdrop *{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.desktop-detail-backdrop,.desktop-detail-shell-enter{animation:none!important}}@media (width<=767px){body{background-image:radial-gradient(circle at 18% -8%,#2563eb29,#0000 20rem),radial-gradient(circle at 92% 12%,#0ea5e914,#0000 18rem),linear-gradient(#07111f 0%,#08101d 48%,#050b14 100%)}}@media (width>=1024px){.order-detail-panel .order-detail-header{padding:var(--space-md) var(--space-xl)}.order-detail-panel .order-detail-body{padding:var(--space-lg) var(--space-xl)}.desktop-page{min-width:0}.desktop-page-stack{gap:var(--space-lg);flex-direction:column;min-width:0;display:flex}.desktop-panel{border:1px solid var(--border-subtle);border-radius:var(--radius-panel);background:var(--surface);min-width:0;box-shadow:var(--shadow-panel)}.desktop-panel-elevated{background:var(--surface-elevated)}.desktop-toolbar{justify-content:space-between;align-items:center;gap:var(--space-md);border-bottom:1px solid var(--border-subtle);min-width:0;padding:var(--space-md) var(--space-lg);display:flex}.desktop-table{border:1px solid var(--border-subtle);border-radius:var(--radius-panel);background:var(--surface);min-width:0;overflow:hidden}.desktop-table-row{border-bottom:1px solid var(--border-subtle);min-width:0;transition:background-color .16s,border-color .16s}.desktop-table-row:last-child{border-bottom:0}.desktop-table-row-interactive:hover{background:#ffffff09}.desktop-metric-tile{border:1px solid var(--border-subtle);border-radius:var(--radius-card);min-width:0;padding:var(--space-md);background:#ffffff06}.desktop-empty-state{padding:32px var(--space-lg);text-align:center}.desktop-sticky-action-bar{z-index:10;border-top:1px solid var(--border-strong);padding:var(--space-md) var(--space-xl);background:#0e192bf5;position:sticky;bottom:0}.desktop-detail-backdrop{z-index:82;padding:var(--space-xl);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#02060e6b;display:block;position:fixed;inset:0 0 0 244px}.desktop-detail-shell{border:1px solid var(--border-subtle);border-radius:var(--radius-panel);background:var(--surface);width:100%;height:100%;box-shadow:var(--shadow-overlay);flex-direction:column;display:flex;overflow:hidden}.desktop-detail-header{border-bottom:1px solid var(--border-subtle);padding:var(--space-lg) var(--space-xl)}.desktop-detail-body{min-height:0;padding:var(--space-xl);flex:1;overflow:auto}.desktop-detail-footer{justify-content:space-between;align-items:center;gap:var(--space-md);border-top:1px solid var(--border-subtle);min-height:68px;padding:var(--space-md) var(--space-xl);background:#0e192beb;display:flex}.desktop-primary-action{min-height:40px;padding:8px 20px}.desktop-detail-input,.desktop-detail-value{min-height:40px;padding:9px var(--space-md);font-size:14px}.desktop-secondary-text{color:var(--text-secondary)}.desktop-muted-text,.desktop-panel .text-slate-500,.desktop-table .text-slate-500,.desktop-detail-shell .text-slate-500{color:var(--text-muted)}.desktop-panel .text-slate-600,.desktop-table .text-slate-600,.desktop-detail-shell .text-slate-600{color:#74849d}.desktop-panel .text-slate-400,.desktop-table .text-slate-400,.desktop-detail-shell .text-slate-400{color:var(--text-secondary)}}.settings-page{width:100%;margin-inline:auto;padding-bottom:48px}.settings-content-header{border-bottom:1px solid var(--border-subtle);padding:2px 0 18px}.settings-content-header h2{font-size:clamp(20px,1.6vw,24px)}.settings-content-header p{max-width:62ch;line-height:1.5}.settings-panel{border-color:var(--border-subtle);background:var(--surface);box-shadow:var(--shadow-panel)}.settings-panel h3{letter-spacing:-.015em}.settings-panel .text-slate-500{color:var(--text-muted)}.settings-panel .text-slate-400{color:var(--text-secondary)}.settings-panel input:not([type=radio]):not([type=checkbox]),.settings-panel select,.settings-panel textarea{accent-color:var(--accent-strong)}.settings-panel input[type=radio],.settings-panel input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent-strong);flex:none}.settings-row{min-height:46px}@media (width>=700px){.settings-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;display:grid}.settings-overview-workspace{border-top:0;border-left:1px solid var(--border-subtle);margin-top:0;padding-top:0;padding-left:24px}}.settings-advanced summary{border-radius:var(--radius-control);justify-content:space-between;align-items:center;min-height:44px;margin:-8px -12px 0;padding:0 12px;list-style:none;display:flex}.settings-advanced summary::-webkit-details-marker{display:none}.settings-advanced summary:hover{background:#ffffff0a}.settings-advanced summary:after{content:"⌄";color:var(--text-muted);margin-left:auto;transition:transform .15s}.settings-advanced[open] summary:after{transform:rotate(180deg)}@media (width>=1024px){.settings-navigation{border:1px solid var(--border-subtle);border-radius:var(--radius-panel);background:var(--surface);align-self:start;padding:8px;position:sticky;top:20px}.settings-navigation-item{font-weight:550}.settings-navigation-item[aria-current=page]{background:#3b82f621}}.admin-console{container-type:inline-size}.admin-console-navigation{scrollbar-width:thin}.admin-console :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select){min-height:44px;font-size:14px}.admin-console select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;padding-right:36px}.admin-console :is(input,select,textarea):focus-visible{outline:2px solid var(--focus-ring,#60a5fa);outline-offset:2px}.admin-console button:disabled{opacity:.45;cursor:not-allowed}.admin-console summary{align-content:center;min-height:36px}.admin-entity-items{scrollbar-width:thin;max-height:300px}@container (width>=820px){.admin-entity-layout{grid-template-columns:280px minmax(0,1fr)}.admin-entity-list{border-right:1px solid var(--border-subtle);padding-right:20px;position:sticky;top:20px}.admin-entity-items{max-height:min(640px,70vh)}}.admin-navigation-shell{z-index:20;background:var(--surface,#0d1728);border-radius:12px 12px 0 0;position:sticky;top:0}.admin-console button{min-height:40px}@container (width>=820px){.admin-template-catalog{position:sticky;top:76px}.admin-entity-list{top:76px}}.admin-console [hidden]{display:none!important}.admin-task-navigation{border-bottom:1px solid var(--border-subtle);scrollbar-width:thin;gap:4px;margin-bottom:20px;padding-bottom:8px;display:flex;overflow-x:auto}.admin-task-navigation button{color:var(--text-secondary);white-space:nowrap;border-radius:10px;flex-shrink:0;padding:8px 12px;font-size:13px;font-weight:550}.admin-task-navigation button[aria-pressed=true]{color:#e2e8f0;background:#3b82f61f}.admin-disclosure{border-top:1px solid var(--border-subtle);padding-top:8px}.admin-disclosure>summary{cursor:pointer;color:#cbd5e1;padding:8px 0;font-size:13px;font-weight:550}.admin-disclosure[open]>summary{margin-bottom:8px}.admin-danger>summary{color:#fda4af}.admin-facts{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:20px;display:grid}.admin-facts dt{color:var(--text-secondary);font-size:12px}.admin-facts dd{color:#f1f5f9;margin-top:6px;font-size:16px;font-weight:550}
