/* Application frame: keep the quote's fields and calculation hooks intact. */
:root{--sidebar:210px;--sidebar-bg:#0c372a;--topbar-height:52px}
body{background:#f6f5ef}.app-shell{margin-left:var(--sidebar);min-height:100vh}.app-sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:var(--sidebar-bg);color:#d6e4dc;z-index:40;display:flex;flex-direction:column;padding:0 9px;overflow-y:auto}.sidebar-brand{display:flex;align-items:center;gap:9px;color:#fff;text-decoration:none;font-size:18px;font-weight:800;padding:17px 10px 20px;min-height:76px;border-bottom:1px solid #ffffff15;white-space:nowrap}.sidebar-brand .brand-icon{height:30px;width:30px;flex:none;background:#16825f;font-size:18px}.sidebar-section{font-size:10px;letter-spacing:1.3px;color:#7ba18f;font-weight:700;padding:23px 15px 9px}.sidebar-nav{display:flex;flex-direction:column;align-items:stretch;gap:5px;margin:0;flex-wrap:nowrap}.sidebar-nav button{position:relative;display:flex;align-items:center;gap:11px;min-height:43px;text-align:left;background:transparent;color:#bdcfc5;border:0;border-radius:8px;padding:10px 13px;font-size:13px;font-weight:600;width:100%}.sidebar-nav button:hover{background:#ffffff0c;color:#fff}.sidebar-nav button.current{color:#fff;background:#127453;box-shadow:inset 0 0 0 1px #ffffff0b}.sidebar-nav button.current:before{content:'';position:absolute;width:5px;height:5px;background:#ffbf37;border-radius:50%;left:5px;top:19px}.nav-icon{font-family:Arial,sans-serif;font-size:19px;line-height:20px;display:inline-grid;place-items:center;width:20px;flex:none;color:#8cac9c;font-weight:400}.sidebar-nav button.current .nav-icon{color:#d0e6d9}.sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff12;padding:20px 12px;font-size:11px;color:#a5bdaf;line-height:1.8;white-space:nowrap}.sidebar-bottom small{font-size:10px;color:#739a85}.online-dot{display:inline-block;background:#58b980;width:6px;height:6px;border-radius:50%;margin-right:7px}.topbar{position:sticky;top:0;z-index:20;height:var(--topbar-height);padding:0 26px;background:#fff;border-bottom:1px solid #dadccc;box-shadow:0 1px 3px #223b2310;justify-content:space-between;gap:12px}.topbar-left,.topbar-actions{display:flex;align-items:center;gap:13px;min-width:0}.topbar-crumb{font-size:11px;color:#78877b;white-space:nowrap}.topbar-crumb span{padding:0 9px;color:#c8d0c5}.topbar-crumb strong{color:#2e473a;font-size:12px;font-weight:600}#menuToggle{border:0;padding:4px 7px;min-height:32px;font-size:18px;background:transparent}#todayLabel{font-size:11px;color:#6f7f72;white-space:nowrap}.topbar-print{font-size:11px;padding:6px 10px;min-height:31px}.topbar .privacy{font-size:10px;padding:5px 10px}#app{max-width:none;padding:24px 30px 0}.page-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #d7d4c2;padding:0 0 19px;margin-bottom:17px;gap:12px}.page-heading h1{font-size:21px;line-height:1.3;margin-bottom:6px;font-weight:800;color:#202f27}.page-heading .intro{margin:0;font-size:11px}#headingPrint{font-size:11px;min-height:32px;padding:7px 14px}#designContent>nav{align-items:start;gap:7px;margin-bottom:9px}#designContent>nav>button{min-height:35px;padding:7px 16px;font-size:12px;min-width:78px;box-shadow:0 2px 5px #263b1d0d}#carriers{flex-basis:100%;margin-top:3px}#carriers button{min-height:34px;padding:7px 15px;font-size:12px}.workspace{grid-template-columns:minmax(0,1fr) minmax(275px,34%);gap:14px}.summary-card{top:calc(var(--topbar-height) + 18px);padding:19px 17px}.summary-card .total{font-size:36px}.card{margin-bottom:20px;border-radius:5px;padding:17px}.design-title{display:none}.support-line{max-width:none;display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 14px}.support-options{display:flex;align-items:center;gap:13px;flex-wrap:wrap;font-size:11px}.support-options strong{font-weight:700;font-size:11px;margin-right:5px}.support-options label{flex-direction:row;align-items:center;gap:5px;font-size:11px;white-space:nowrap}.support-options input{appearance:auto;width:13px;height:13px;accent-color:#1578d1;padding:0;margin:0}.choice-duration{flex-direction:row;align-items:center;font-size:10px;gap:5px}.choice-duration select{width:165px;font-size:10px;min-height:28px;height:28px;padding:3px 22px 3px 6px}.support-line>#reset{margin-left:auto;font-size:10px;padding:5px 9px;min-height:28px}.design-grid{padding:13px}.column{gap:12px}.column label{font-size:11px;font-weight:500}.column small{font-size:9px}.static-field{font-size:11px}.result-box{min-height:60px}.result-box strong{font-size:18px}.sidebar-backdrop{position:fixed;inset:0;z-index:35;background:#061c166b;border:0;border-radius:0;width:100%;height:100%;padding:0;min-height:0}.sidebar-backdrop:hover{background:#061c166b}.dashboard-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.dashboard-stat{border-top:3px solid #16815b;min-height:148px;display:flex;flex-direction:column;gap:10px;padding:22px}.dashboard-stat>span{font-size:12px;color:#65796b}.dashboard-stat strong{font-size:29px;letter-spacing:-.6px}.dashboard-stat small{margin-top:auto;font-size:10px;color:#879080}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:18px}.dashboard-columns>.card{border-top:1px solid #d8d4c0;padding:23px}.dashboard-columns dl{margin:0 0 22px}.dashboard-columns dl>div{display:flex;gap:18px;justify-content:space-between;border-bottom:1px solid #edf0e7;padding:13px 0;font-size:12px}.dashboard-columns dt{color:#758476;white-space:nowrap}.dashboard-columns dd{margin:0;text-align:right;overflow-wrap:anywhere}.dashboard-shortcut{display:flex;justify-content:space-between;align-items:center;width:100%;padding:15px 4px;border:0;border-bottom:1px solid #edf0e7;border-radius:0;font-size:12px;text-align:left}.dashboard-columns .help{margin-top:15px}.info-panel{max-width:1000px;border-top:3px solid #16815b;padding:26px}.info-panel p,.info-panel li{font-size:13px;line-height:1.9;color:#5d7163}.info-panel li{padding:6px 0}.info-panel ol{padding-left:20px;margin-bottom:28px}.info-panel h3{margin-top:24px}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #e5e7de;padding:10px 0 22px;margin-bottom:18px}.settings-row h3{margin-top:0}.check-option{flex-direction:row;align-items:center;gap:8px;white-space:nowrap}.check-option input{width:17px;height:17px;accent-color:#117353}.sidebar-collapsed{--sidebar:68px}.sidebar-collapsed .sidebar-brand{padding:17px 10px 20px}.sidebar-collapsed .sidebar-brand strong,.sidebar-collapsed .sidebar-nav button>span:last-child,.sidebar-collapsed .sidebar-bottom,.sidebar-collapsed .sidebar-section{display:none}.sidebar-collapsed .sidebar-nav{margin-top:18px}.sidebar-collapsed .sidebar-nav button{justify-content:center;padding:10px 8px}.sidebar-collapsed .sidebar-nav button.current:before{left:3px}.compact-density #designContent input,.compact-density #designContent select{height:34px;padding-top:7px;padding-bottom:7px;font-size:12px}.compact-density #designContent textarea{font-size:12px}.compact-density .column{gap:11px}.compact-density .field-grid,.compact-density .customer-grid{gap:13px}.compact-density .static-field>div{min-height:34px;padding:8px;font-size:10px}.compact-density #designContent .support-options input{width:13px;height:13px;padding:0}.compact-density .choice-duration select{height:28px!important;padding:3px 22px 3px 6px!important;font-size:10px!important}.sidebar-brand:focus-visible{outline:2px solid #93cbb7;outline-offset:-3px}.app-sidebar button:focus-visible{outline:2px solid #93cbb7;outline-offset:-2px}
@media(min-width:1600px){.workspace{grid-template-columns:minmax(0,1fr) minmax(360px,36%)}#app{padding:26px 35px 0}}
@media(max-width:1250px){#app{padding:23px 20px 0}.workspace{grid-template-columns:minmax(0,1fr) 275px}.card{padding:13px}.support-options{gap:9px}.support-line{gap:9px}.support-line>#reset{padding:5px 7px}.topbar{padding:0 18px}.column{padding:0 10px}.summary-card{padding:16px 13px}.column label{font-size:10px}}
@media(max-width:950px){:root{--sidebar:210px}.app-shell,.sidebar-collapsed .app-shell{margin-left:0}.app-sidebar{transform:translateX(-100%);transition:transform .18s ease-out;width:210px}.sidebar-open .app-sidebar{transform:translateX(0)}.sidebar-collapsed .sidebar-brand strong,.sidebar-collapsed .sidebar-nav button>span:last-child,.sidebar-collapsed .sidebar-section{display:block}.sidebar-collapsed .sidebar-bottom{display:block}.sidebar-collapsed .sidebar-nav{margin-top:0}.sidebar-collapsed .sidebar-nav button{justify-content:flex-start;padding:10px 13px}.topbar{padding:0 17px}#todayLabel{display:none}.sidebar-open{overflow:hidden}.workspace{grid-template-columns:minmax(0,1fr) 275px}.dashboard-stat{padding:18px;min-height:130px}.dashboard-stat strong{font-size:25px}}
@media(max-width:850px){.workspace{grid-template-columns:1fr}.summary-card{position:static;grid-row:1}.page-heading{padding-bottom:15px}.dashboard-columns{grid-template-columns:1fr}.page-heading .intro{font-size:10px}.card{padding:15px}.column label{font-size:12px}.summary-card .total{font-size:32px}.topbar .privacy{font-size:9px}.dashboard-columns>.card{padding:20px}}
@media(max-width:560px){#app{padding:20px 12px 0}.topbar{height:48px;padding:0 10px;gap:5px}.topbar-left,.topbar-actions{gap:7px}.topbar-crumb{font-size:10px}.topbar-crumb span{padding:0 4px}.topbar-crumb strong{font-size:10px}.topbar-print{display:none}.topbar .privacy{font-size:9px;padding:5px 8px}.page-heading h1{font-size:20px}#headingPrint{font-size:10px;padding:6px 10px}.page-heading{align-items:start;gap:10px}.page-heading .intro{max-width:230px}.card{padding:12px}.support-line{gap:10px}.support-options{gap:9px}.support-options strong{font-size:10px;margin:0}.support-options label{font-size:10px}.support-line>#reset{font-size:9px;min-height:26px}#carriers{margin-left:0;gap:6px}#carriers button{min-width:64px}.column{padding:0 0 12px}.column+.column{padding:12px 0}.column:last-child{padding-bottom:0}.dashboard-stats{grid-template-columns:1fr;gap:0}.dashboard-stat{min-height:108px;padding:16px;gap:5px}.dashboard-stat strong{font-size:25px}.info-panel{padding:20px}.dashboard-columns{gap:0}.settings-row{align-items:start}.support-options input{flex:none}}
@media(prefers-reduced-motion:reduce){.app-sidebar{transition:none}}
@media print{.app-sidebar,.topbar,.sidebar-backdrop{display:none!important}.app-shell{margin:0!important;min-height:0!important}body.sidebar-open{overflow:visible}}
/* Matching calendar and print preview controls. */
.date-control input[type=date]::-webkit-calendar-picker-indicator{display:none}.date-control input{flex:1;min-width:0}.date-control .calendar-trigger{display:grid;place-items:center;min-width:31px;padding:5px;border-left:0;border-radius:0;color:#5a7061}.date-control button:last-child{border-radius:0 6px 6px 0}.date-control{border-radius:6px}.date-control svg{pointer-events:none}#calendarDialog{width:350px;margin:0;position:fixed;padding:0;border:1px solid #cddbd3;border-radius:10px;box-shadow:0 12px 35px #14392e30;max-height:calc(100dvh - 20px);overflow:auto}#calendarDialog::backdrop{background:transparent;backdrop-filter:none}.calendar-header{display:flex;align-items:center;gap:6px;padding:10px;background:#0878c9;color:#fff}.calendar-header button{min-width:29px;width:29px;min-height:29px;padding:0;background:#ffffff14;color:#fff;border:1px solid #ffffff44;border-radius:50%;font-size:23px}.calendar-header select{height:30px;min-height:30px;width:auto;color:#fff;background-color:transparent;border:0;border-radius:4px;padding:4px 22px 4px 7px;background-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="10" height="8"%3E%3Cpath d="M1 1h8L5 7z" fill="white"/%3E%3C/svg%3E');background-position:right 5px center;font-size:14px;font-weight:bold;text-align:center}.calendar-header select option{color:#243d30;background:#fff;font-size:13px}.cal-year{margin-left:auto}.cal-month{margin-right:auto}.calendar-week,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));padding:0 10px}.calendar-week{padding-top:9px;padding-bottom:5px;font-size:11px;color:#687c6e;text-align:center}.calendar-week span:first-child,.calendar-days .sunday{color:#de354c}.calendar-week span:last-child,.calendar-days .saturday{color:#2876db}.calendar-days{gap:2px}.calendar-days button{min-height:32px;height:32px;font-size:12px;padding:0;border:0;border-radius:5px;background:white;color:#283f33}.calendar-days button:hover{background:#eaf2fb}.calendar-days .other-month{opacity:.3}.calendar-days .today{box-shadow:inset 0 0 0 1px #71abca;font-weight:bold}.calendar-days .selected{background:#0878dd;color:#fff!important;opacity:1;box-shadow:none}.calendar-footer{display:flex;align-items:center;justify-content:space-between;background:#f4f7fa;border-top:1px solid #e3e8ee;padding:7px 10px;margin-top:7px;gap:8px}.calendar-footer button{font-size:10px;min-height:25px;padding:4px 9px;border-color:#d9e0e7}.calendar-footer .cal-close{margin-left:auto}.calendar-footer .cal-clear{background:transparent;border:0;color:#859387;padding-left:0}#legacyPreformFrame{border:0;display:block;width:100%;height:76dvh;min-height:500px;background:#e8e8e8}.print-legacy #printPages{padding:0}.print-legacy{max-height:94dvh}#customerCard{scroll-margin-top:75px}@media print{#calendarDialog{display:none!important}}
#productDialog{width:min(850px,calc(100vw - 24px))}#productSearch{margin-bottom:12px}#productChoices{display:grid;gap:7px;max-height:43dvh;overflow:auto;margin-top:14px;padding-right:2px}.product-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px;text-align:left;border-color:#d6d5c4;white-space:normal;min-height:58px}.product-choice strong{font-size:13px}.product-choice small{margin-top:5px;font-size:11px;color:#7c8b7e;line-height:1.7}.product-choice.picked{background:#eef7f1;border-color:#17825f;box-shadow:inset 0 0 0 1px #17825f}.product-choice>b{white-space:nowrap;font-size:13px;color:#176b4c}.product-draft{margin-top:16px;background:#f9faf6;border:1px dashed #dddcc9;border-radius:6px;padding:12px;display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:#64816d}.product-draft label{flex:1;min-width:140px}.product-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}#familyDisplay,#insuranceDisplay,#serviceDisplay,#welfareDisplay{background:#f7f9f8;cursor:default;text-overflow:ellipsis}.input-action select{border-radius:6px 0 0 6px}.input-action button{min-width:30px;padding:4px 8px}.customer-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.customer-grid label:has([data-field=address]){grid-column:span 2}@media(max-width:1250px){.customer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-choice{padding:12px;gap:10px}.product-choice strong{font-size:12px}}
.compact-density #designContent .input-action>button{height:34px;min-height:34px}.compact-density #designContent .input-action>input,.compact-density #designContent .input-action>select{height:34px}
.reference-notice{font-size:11px;line-height:1.65;color:#95651d;border:1px solid #e3cf9a;border-radius:6px;background:#fff8e8;padding:9px 11px;margin-top:12px}.reference-tag{font-size:10px;color:#9a7329;margin-top:4px}.product-choice .plan-summary-label{font-size:10px;color:#167558;margin-top:7px}.product-choice small{line-height:1.8}.print-reference{color:#9a5c14!important;border:1px solid #cfa568;padding:8px;background:#fff9ef}
/* Quote form proportions and the itemized monthly breakdown. */
.selection-hint{display:block;min-height:13px;font-size:10px!important;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#748779!important;font-weight:400;max-width:100%}.column .preorder-check{display:flex;flex-direction:row;align-items:center;gap:7px;padding:4px 0;font-size:12px}.preorder-check input{width:15px!important;height:15px!important;margin:0;padding:0!important;accent-color:#117353}.column [data-field=plan],.column [data-field=finalPlan]{background-image:none;padding-right:8px;background-color:#f7f9f8}.addon-total{text-align:right;font-size:11px;padding:14px 0 0;font-weight:600}.addon-total strong{color:#126847}.customer-grid label:has([data-field=address]){grid-column:auto}.address-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:14px;background:#fbfaf3;border:1px solid #e5e0cf;border-top:0;border-radius:0 0 6px 6px;padding:0 14px 14px}.customer-more{margin:14px 0}.customer-more summary{font-size:11px;color:#7c8b7e;cursor:pointer}.customer-more .customer-grid{margin-top:13px}.memo textarea{min-height:40px}.summary-principal dd{color:#ef3028;font-size:16px!important}.summary-note{border:0!important;padding:0 0 10px!important;gap:3px!important}.summary-note dt,.summary-note dd{font-size:10px!important;color:#7b8b7d;font-weight:400!important}.summary-major{padding-bottom:9px!important}.summary-detail{border:0!important;padding:5px 9px!important}.summary-detail dt{font-size:11px;color:#7b8b7d}.summary-detail dd{font-size:11px!important;font-weight:500!important}.summary-minus dd{color:#e63236}.summary-card dl>div:last-child{padding-bottom:0}.column [data-field=retail],.column [data-field=planPrice],.column [data-field=common]{font-weight:600;border-color:#a8cfbb}.column [data-field=common]{border-color:#e7c394}.address-grid label{font-size:12px}#customerCard>.customer-grid{border-radius:6px 6px 0 0;border-bottom:0}#customerCard .memo{margin-top:13px}@media(max-width:1250px){.address-grid{padding:0 12px 12px}.customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.address-grid{grid-template-columns:1fr}.summary-detail dd{font-size:10px!important}.selection-hint{max-width:100%}.preorder-check input{flex:none}}
.insurance-extra{margin-top:14px}
/* Mouse actions keep their normal button border; keyboard focus remains visible. */
html[data-input-method=pointer] button:focus,html[data-input-method=pointer] .app-sidebar button:focus{outline:none!important;box-shadow:none!important}button:focus-visible,.app-sidebar button:focus-visible{outline:2px solid #64748b;outline-offset:2px}button:not(.primary):not(.selected):not(.current):not(.active):not(.picked):hover{border-color:var(--border)}input:not([type=checkbox]):not([type=radio]):not([readonly]):focus,textarea:focus{outline:none!important;outline-offset:0;border-color:#95c2a8;box-shadow:0 0 0 3px #23825321}select:focus{outline:none!important;outline-offset:0;border-color:#0f7659;box-shadow:0 0 0 2px #0f76591a}.welfare-hint{font-size:10px;line-height:1.5;color:#6f8778}[data-field=welfare]{font-size:11px!important;white-space:nowrap}#commonStatus{font-size:9px;color:#8c7a5b}
/* Searching changes rows, never the dialog or search control dimensions. */
#modelDialog{height:min(760px,90dvh);max-height:90dvh;overflow:hidden}#modelDialog[open]{display:flex;flex-direction:column}#modelDialog>.dialog-head{flex:none}#modelDialog>.dialog-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}#modelSearch{flex:none;width:100%;min-height:42px}#modelDialog .filters,#modelDialog .help{flex:none}#modelDialog .table-scroll{flex:1;min-height:0;max-height:none;overflow:auto;scrollbar-gutter:stable}#modelDialog table{table-layout:fixed}#modelDialog th:first-child{width:52%}#modelDialog th:nth-child(2){width:25%}#modelDialog th:last-child{width:23%}#modelDialog td{overflow-wrap:anywhere}#modelCount{min-height:19px}
@media(max-width:1250px){.field-grid>.welfare-control{grid-column:1/-1}}.welfare-control select{width:100%}
input[readonly]:focus{outline:none!important;box-shadow:none!important;border-color:#c9d0be}
