/* Orbit visual refresh. Screen-only: printed documents retain their original layout. */
@media screen {
 :root{--navy:#332839;--green:#714b67;--line:#e6e5eb;color:#363244;background:#f6f6f9}
 body{background:#f6f6f9}
 .sidebar{background:linear-gradient(165deg,#3c2e40,#2b2633 80%);color:#c8c1d0;padding:26px 16px 20px;border-right:1px solid #ffffff0b}
 .brand{padding:0 12px 27px;gap:11px}.brand img{width:39px;height:39px}.brand strong{font-size:26px;font-weight:650}.brand small{font-size:10px;letter-spacing:2px;color:#b4a8bd}
 .nav{gap:6px}.nav button{padding:12px 14px;font-weight:500;border-radius:10px;color:#d3ccda;transition:background .15s ease,color .15s ease}
 .nav button:hover{background:#ffffff0b}.nav button.active{background:#ffffff14;color:#fff;box-shadow:inset 3px 0 #81d4c8}
 .nav svg{background:none;padding:0;width:19px;height:19px;opacity:.85}.nav button.active svg{opacity:1;color:#a6e7df}
 .sidebar-foot{border-top-color:#ffffff13;color:#e2dbe7;font-size:12px;padding-top:18px}.sidebar-foot span{font-size:11px;color:#a99cb4}
 .main{background:#f6f6f9}.topbar{min-height:88px;box-shadow:none;border-bottom:1px solid #e9e7ee;padding-left:30px;padding-right:30px}
 .company-name{color:#3f3448;font-weight:650;font-size:16px;letter-spacing:-.2px}.company-name small{font-size:11px;color:#8a8294;font-weight:400;letter-spacing:0}
 .overview-clock{color:#75667d;font-size:11px;letter-spacing:.1px;margin-top:6px}.top-actions{gap:9px}.top-actions .btn{padding:10px 13px;border-radius:9px;font-size:12px;white-space:nowrap;min-height:38px}
 .topbar-button span{display:flex;align-items:center}.topbar-button svg{width:15px;height:15px}.avatar{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:1px solid #e9dfea;padding:0;font-size:11px;background:#f0e9f1}
 .badge{border-radius:20px;font-size:11px;padding:6px 10px}.badge:not(.warn)::before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:currentColor;margin-right:5px;vertical-align:middle}
 .workspace{padding:25px 30px 36px;max-width:1600px}.workspace-tabs{background:#fff;padding:0 30px;gap:7px;border-color:#e9e7ee}
 .workspace-tab{border:0;border-radius:0;max-width:265px}.workspace-tab.active{background:#f8f6fa;box-shadow:inset 0 -2px #714b67;color:#563d55}
 .workspace-tab [role=tab]{padding:14px 6px 14px 12px;font-size:12px}.tab-close{font-size:17px;padding:8px}.tab-close:hover{background:#f0e9f1}.tab-dirty{color:#a26b27}
 .btn{border-radius:9px}.btn.secondary{border-color:#e1dce6;background:#fff;color:#60465e}.btn.secondary:hover{background:#f8f5f9}
 .panel{border-color:#e6e5eb;border-radius:14px;box-shadow:0 2px 3px #30253803,0 8px 24px #30253803}.heading h1{font-weight:650;font-size:26px;color:#3f3448}.heading{margin-bottom:22px}
 .overview-dashboard{display:flex;flex-direction:column;gap:20px}.overview-dashboard>.panel{margin:0;padding:23px 24px}
 .overview-dashboard .overview-activity{gap:20px;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr)}
 .overview-dashboard .panel-header{margin-bottom:18px;gap:12px}.overview-dashboard h2{font-size:16px;font-weight:650;letter-spacing:-.25px;color:#44394d}
 .overview-dashboard .panel-header button{font-size:12px;font-weight:600}.section-kicker{font-size:9px;letter-spacing:1.3px;font-weight:600;color:#93839a;white-space:nowrap}
 .overview-activity>.panel{padding:21px 24px}.overview-invoices-panel th{background:#f8f7fa!important}.overview-invoices-panel tr:last-child td{border-bottom:0}
 .overview-quick-panel .quick-actions{grid-template-columns:1fr 1fr;gap:10px}.overview-quick-panel .quick-actions button{min-height:88px;align-items:flex-start;flex-direction:column;gap:10px;padding:13px;border-radius:10px;background:#faf9fc;border-color:#efecf3;transition:background .15s ease,border-color .15s ease}
 .overview-quick-panel .quick-actions button:hover{background:#f4eef5;border-color:#dacdde}.overview-quick-panel .quick-actions button>span:first-child{display:flex;align-items:center;justify-content:center;padding:7px;border-radius:8px;background:#e9f4f1;color:#258174}
 .overview-quick-panel .quick-actions button:nth-child(2)>span:first-child{background:#f1eaf6;color:#826092}.overview-quick-panel .quick-actions button:nth-child(3)>span:first-child{background:#ebf0f9;color:#5a78ac}.overview-quick-panel .quick-actions button:nth-child(4)>span:first-child{background:#faf0e5;color:#b58446}
 .overview-quick-panel svg{width:18px;height:18px}.overview-quick-panel b{font-size:12px;font-weight:600}.overview-quick-panel small{font-size:10px;line-height:1.45;margin-top:4px;color:#938898}
 .overview-today-panel{background:linear-gradient(110deg,#f1f8f6,#fff 75%);border-color:#dcebe5!important}
 .overview-today-panel .metrics{margin-bottom:0!important}.overview-today-panel .metric{border:0;border-radius:0;box-shadow:none;background:none;min-height:75px;padding:0;display:flex;flex-direction:column;justify-content:center}
 .overview-today-panel .metric small{font-size:12px;color:#6f817d;min-height:0;line-height:1.5}.overview-today-panel .metric strong{font-size:30px;line-height:1.3;font-weight:650;color:#276a5e;letter-spacing:-.8px;margin:7px 0 3px}
 .overview-today-panel>.tiny{margin-bottom:0}.overview-today-panel .tiny{font-size:11px;color:#768a83;margin-top:9px;margin-bottom:0}
 .overview-performance-panel .metrics,.overview-balances-panel .metrics{gap:12px;align-items:stretch}
 .overview-performance-panel .metric,.overview-balances-panel .metric{border:1px solid #eeebf2;border-top:1px solid #eeebf2;background:#faf9fc;min-height:127px;padding:16px;border-radius:10px;box-shadow:none;position:relative;overflow:hidden}
 .overview-performance-panel .metric::before,.overview-balances-panel .metric::before{content:'';width:22px;height:3px;background:#b8a3c2;display:block;border-radius:3px;margin-bottom:10px}
 .overview-performance-panel .metric:nth-child(-n+2)::before{background:#84b8ac}.overview-performance-panel .metric:nth-child(3)::before{background:#d9b581}.overview-performance-panel .metric:nth-child(n+4)::before{background:#a997bf}
 .overview-balances-panel .metric:nth-child(1)::before{background:#9aaed4}.overview-balances-panel .metric:nth-child(2)::before{background:#c9af85}.overview-balances-panel .metric:nth-child(3)::before,.overview-balances-panel .metric:nth-child(4)::before{background:#84b8ac}
 .overview-performance-panel .metric small,.overview-balances-panel .metric small{font-size:11px;line-height:17px;min-height:34px;color:#87798f}
 .overview-performance-panel .metric strong,.overview-balances-panel .metric strong{font-size:19px;line-height:1.4;font-weight:650;letter-spacing:-.4px;margin:9px 0 0;color:#49394f;overflow-wrap:normal;white-space:nowrap}
 .overview-balances-panel .metric span{font-size:10px;line-height:1.5;margin-top:8px;color:#94889c}
 .overview-dashboard .tiny{font-size:11px;line-height:1.7;color:#918399}.overview-custody{border-top:1px solid #efebf1;margin-top:16px;padding-top:6px;gap:0 24px}
 .overview-custody .balance-row{border-bottom:0;font-size:12px;padding:12px 0;color:#87728c}.overview-custody strong{font-weight:600;color:#58405c;font-size:13px}
 .overview-chart{border-color:#efeaf2;margin-top:20px;padding-top:20px}.overview-chart-tabs{background:#f4f0f5;border:1px solid #ede6ef;padding:3px;border-radius:9px;gap:2px}
 .overview-chart-tabs .btn{background:transparent;border:0;padding:6px 11px;font-size:11px;border-radius:6px;min-height:30px;color:#88768c}.overview-chart-tabs .btn[aria-pressed=true]{background:#fff;color:#64495f;box-shadow:0 1px 4px #49384b15}
 .overview-chart .sales-chart{padding-top:8px}.sales-chart svg{overflow:visible}.chart-grid{stroke:#efedf3;stroke-width:1;stroke-dasharray:3 5}.chart-baseline{stroke:#d9d3df;stroke-width:1}.chart-bar{opacity:.85}.chart-bar:hover{opacity:1}.chart-label{font-size:10px;fill:#91839b}.chart-value{font-size:10px;fill:#6d6077}
 .overview-performance-panel>button{padding:9px 12px;font-size:11px;min-height:36px;margin-top:12px}.overview-dashboard .empty{padding:25px 16px}.overview-stock-panel th{background:#f8f7fa!important}
 .strip.warning{background:#fff8eb;border-color:#eddfc2;color:#79653d;border-radius:10px;font-size:12px;padding:12px 16px}.strip .btn{font-size:12px;padding:9px 12px}
}
@media screen and (max-width:1200px) and (min-width:761px){.overview-performance-panel .metrics,.overview-balances-panel .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-performance-panel .metric:last-child,.overview-balances-panel .metric:last-child{grid-column:1/-1}.topbar{flex-wrap:wrap;padding-top:14px;padding-bottom:14px}.top-actions{flex-wrap:wrap}.overview-dashboard .overview-activity{grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr)}}
@media screen and (max-width:980px) and (min-width:761px){.overview-dashboard .overview-activity{grid-template-columns:1fr}.overview-quick-panel .quick-actions{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media screen and (max-width:760px){
 .sidebar{background:#352c3d;padding:7px 8px;border-right:0}.nav{gap:4px}.nav button{font-size:10px;padding:10px 11px;border-radius:8px;gap:5px}.nav button.active{box-shadow:inset 0 -2px #81d4c8}.nav svg{width:17px;height:17px}
 .topbar{padding:15px 16px;min-height:100px;flex-direction:column;align-items:stretch;gap:12px}.company-name{font-size:15px}.top-actions{width:100%;max-width:none;flex-wrap:wrap;gap:7px}.top-actions .btn{font-size:11px;padding:9px 11px;min-height:36px}.topbar-button svg{width:13px;height:13px}.avatar{display:none}.badge{font-size:10px;padding:6px 8px}
 .workspace-tabs{padding:0 12px}.workspace-tab [role=tab]{padding:13px 5px 13px 10px}.workspace{padding:16px 12px 24px}
 .overview-dashboard{gap:14px}.overview-dashboard>.panel,.overview-activity>.panel{padding:18px 16px}.overview-dashboard .overview-activity{grid-template-columns:1fr;gap:14px}
 .overview-dashboard .panel-header{margin-bottom:14px}.overview-dashboard h2{font-size:15px}.section-kicker{font-size:8px;letter-spacing:1px}
 .overview-quick-panel .quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-quick-panel .quick-actions button{min-height:94px}
 .overview-today-panel .metric strong{font-size:28px}.overview-performance-panel .metrics,.overview-balances-panel .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .overview-performance-panel .metric:last-child,.overview-balances-panel .metric:last-child{grid-column:1/-1}.overview-performance-panel .metric,.overview-balances-panel .metric{padding:13px;min-height:122px}
 .overview-performance-panel .metric strong,.overview-balances-panel .metric strong{font-size:16px;letter-spacing:-.4px}.overview-custody{grid-template-columns:1fr}
 .overview-chart .sales-chart svg{height:190px}.overview-chart-tabs .btn{min-height:36px;padding:7px 10px}.overview-performance-panel>button{min-height:40px;width:100%;margin-right:0}.overview-dashboard .tiny{font-size:10px}
}
@media screen and (prefers-reduced-motion:reduce){.nav button,.overview-quick-panel .quick-actions button{transition:none}}

.expense-bar-row{margin:14px 0}.expense-bar-row>div:first-child{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.9rem}.expense-bar-track{height:10px;background:#f0eaf1;border-radius:6px;margin-top:6px;overflow:hidden}.expense-bar-track>div{height:100%;border-radius:6px}#expense-analytics .metric strong{overflow-wrap:anywhere}#new-expense-category{grid-column:1/-1}

.list-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:12px;font-size:.85rem}

/* Quotation / package page: the line table gets the full page width and height (no cramped scroll box, no overlapping columns). */
#workflow-form #workflow-lines.entry-table{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
#workflow-form #workflow-lines table{display:table!important;width:100%!important;min-width:0!important;table-layout:fixed;border-collapse:collapse}
#workflow-form #workflow-lines thead{display:table-header-group!important}
#workflow-form #workflow-lines th,#workflow-form #workflow-lines td{padding:6px 6px;vertical-align:top;text-align:left}
#workflow-form #workflow-lines th:nth-child(1){width:34px}
#workflow-form #workflow-lines th:nth-child(3){width:80px}
#workflow-form #workflow-lines th:nth-child(4){width:84px}
#workflow-form #workflow-lines th:nth-child(5),#workflow-form #workflow-lines th:nth-child(6){width:104px}
#workflow-form #workflow-lines th:nth-child(7),#workflow-form #workflow-lines th:nth-child(8){width:110px}
#workflow-form #workflow-lines th:nth-child(9){width:120px}
#workflow-form #workflow-lines th:nth-child(10){width:34px}
#workflow-form #workflow-lines td.right,#workflow-form #workflow-lines th.right{text-align:right}
#workflow-form #workflow-lines input,#workflow-form #workflow-lines select{width:100%;min-width:0;box-sizing:border-box}
#workflow-form #workflow-lines .line-specs{margin-top:4px}
@media(max-width:900px){#workflow-form #workflow-lines.entry-table{overflow-x:auto!important}#workflow-form #workflow-lines table{min-width:900px}}
#workflow-form #workflow-lines th:last-child{width:34px!important}
#workflow-form #workflow-lines.entry-table{flex:none!important;overflow-x:auto!important;overflow-y:visible!important}
#workflow-form #workflow-lines table{min-width:980px!important}
#workflow-form #workflow-lines th:nth-child(2){width:auto;min-width:280px}
.document-editor:has(#workflow-form),#workflow-form{display:block!important;height:auto!important;max-height:none!important;overflow:visible!important}
