:root{--ink:#17363a;--ink-soft:#597071;--teal:#167d78;--teal-dark:#105a59;--mint:#e7f3f0;--cream:#f8f8f4;--line:#e2e9e6;--white:#fff;--coral:#ce6756;--coral-soft:#fff0ec;--amber:#d18b3f;--amber-soft:#fff6e6;--gray-soft:#f2f5f4;--shadow:0 12px 30px rgba(25,55,56,.06)}
*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:'Noto Sans SC','DM Sans',sans-serif;font-size:14px;letter-spacing:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}i{width:17px;height:17px;stroke-width:1.9}.app-shell{display:flex;min-height:100vh}.sidebar{width:246px;background:#14343b;color:#d9e7e3;padding:25px 15px 17px;display:flex;flex-direction:column;flex-shrink:0}.brand{display:flex;align-items:center;gap:10px;padding:0 11px 28px}.brand-mark{width:31px;height:31px;background:#e6a76d;color:#14343b;display:grid;place-items:center;border-radius:8px;font-weight:800;font-size:17px}.brand strong{display:block;font-size:15px;color:#fff;line-height:18px}.brand span{display:block;color:#91aca9;font-size:11px;margin-top:2px}.workspace-switcher{background:#21444a;border:1px solid #2b5658;border-radius:8px;padding:10px;display:flex;align-items:center;gap:9px;margin:0 4px 27px}.avatar{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#d9e6de;color:#21444a;font-weight:700;font-size:12px;flex-shrink:0}.avatar-small{width:26px;height:26px;font-size:11px;background:#e7bd98}.avatar-tiny{width:24px;height:24px;font-size:10px}.avatar-tiny.orange{background:#ffe0c4;color:#9b5828}.avatar-tiny.purple{background:#e4ddf3;color:#71579a}.avatar-tiny.green{background:#d6ebdf;color:#347052}.workspace-copy{min-width:0;flex:1}.workspace-copy strong,.workspace-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-copy strong{font-size:12px;color:#f7fcfa}.workspace-copy span{font-size:10px;color:#91aca9;margin-top:2px}.icon-muted{color:#86a4a2}.nav-label{color:#6f9291;text-transform:uppercase;letter-spacing:1.4px;font-size:10px;font-weight:700;padding:0 12px;margin:0 0 9px}.nav-label-spaced{margin-top:26px}.main-nav{flex:1}.nav-item{width:100%;display:flex;align-items:center;gap:12px;background:transparent;color:#aac0bd;text-align:left;padding:10px 12px;border-radius:7px;margin-bottom:3px;transition:.18s}.nav-item:hover{color:#fff;background:#1b4147}.nav-item.active{background:#e9f3ed;color:#17363a;font-weight:700}.nav-item svg{width:17px}.nav-count{margin-left:auto;background:#e4a069;color:#17363a;min-width:18px;height:18px;display:grid;place-items:center;border-radius:10px;font-size:10px}.nav-count.warm{background:#efc47f}.sidebar-bottom{margin-top:20px}.focus-card{border-top:1px solid #2b5355;padding:17px 11px 16px}.focus-top{display:flex;align-items:center;gap:7px;color:#91aca9;font-size:11px;margin-bottom:13px}.focus-top svg:last-child{margin-left:auto;width:15px}.status-dot{width:7px;height:7px;background:#e5a466;border-radius:50%}.focus-card strong{font-size:13px;color:#fff;display:block}.mini-progress,.metric-progress,.big-progress,.tiny-progress{height:5px;background:#dce9e5;border-radius:4px;overflow:hidden}.mini-progress{height:4px;background:#31595a;margin:12px 0 7px}.mini-progress span,.metric-progress span,.big-progress span,.tiny-progress i{display:block;height:100%;background:var(--teal);border-radius:inherit}.focus-card small{color:#91aca9;font-size:10px}.sidebar-user{border-top:1px solid #2b5355;padding:16px 11px 0;display:flex;align-items:center;gap:9px}.sidebar-user strong,.sidebar-user span{display:block}.sidebar-user strong{color:#fff;font-size:12px}.sidebar-user span{color:#91aca9;font-size:10px;margin-top:3px}.sidebar-user .icon-muted{margin-left:auto;width:15px}.main-content{flex:1;min-width:0}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 40px}.breadcrumb{display:flex;align-items:center;gap:9px;color:#7d9290;font-size:12px}.breadcrumb svg{width:14px}.breadcrumb strong{color:var(--ink);font-size:13px}.top-actions{display:flex;align-items:center;gap:13px}.icon-button{width:34px;height:34px;background:transparent;color:#597071;display:grid;place-items:center;border-radius:7px}.icon-button:hover{background:var(--gray-soft);color:var(--ink)}.notification{position:relative}.notification span{position:absolute;width:6px;height:6px;background:var(--coral);border:1.5px solid white;border-radius:50%;top:7px;right:7px}.top-date{border-left:1px solid var(--line);padding-left:16px;display:flex;align-items:center;gap:7px;color:#597071;font-size:12px}.top-date svg{width:15px}.button{height:36px;padding:0 14px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:600;font-size:12px;transition:.18s}.button svg{width:15px;height:15px}.button-primary{background:var(--teal);color:#fff}.button-primary:hover{background:var(--teal-dark)}.button-secondary{border:1px solid #cad9d5;color:var(--ink);background:#fff}.button-secondary:hover,.button-ghost:hover{background:#eef5f2}.button-ghost{height:30px;color:var(--teal);background:transparent;padding:0 2px}.button-ghost svg{width:13px}.text-button{color:var(--teal);background:transparent;font-size:11px;font-weight:600;padding:0}.content-wrap{max-width:1500px;margin:0 auto;padding:36px 40px 60px}.page-intro{display:flex;justify-content:space-between;align-items:end;margin-bottom:28px}.page-intro.compact{align-items:center;margin-bottom:27px}.eyebrow{color:#8b9e9b;font-size:10px;letter-spacing:1.25px;font-weight:700;margin:0 0 8px}.page-intro h1{font-size:28px;line-height:1.2;margin:0;letter-spacing:-.4px}.intro-copy{color:#6f8380;margin:8px 0 0;font-size:12px}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.metric-card,.panel{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:8px}.metric-card{padding:19px 20px 16px;min-height:137px}.metric-card.accent-teal{border-top:3px solid var(--teal)}.metric-card.accent-coral{border-top:3px solid var(--coral)}.metric-head{display:flex;justify-content:space-between;align-items:center;color:#77908c;font-size:11px}.metric-head svg{color:#9eb3af;width:16px}.metric-card strong{display:block;font-size:25px;letter-spacing:-.5px;margin:13px 0 12px;font-family:'DM Sans','Noto Sans SC',sans-serif}.metric-foot{display:flex;justify-content:space-between;align-items:center;color:#98a6a4;font-size:10px}.metric-foot b{color:var(--ink);font-size:11px}.trend-up{color:var(--teal);font-weight:700}.trend-down,.coral-text{color:var(--coral);font-weight:700}.trend-up svg,.trend-down svg{width:12px;height:12px;vertical-align:-2px}.metric-progress{height:4px;margin-top:10px}.dashboard-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:18px;margin-bottom:18px}.lower-grid{grid-template-columns:1.55fr 1fr}.panel{padding:21px}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.panel-heading h2{font-size:15px;margin:0 0 5px;letter-spacing:-.1px}.panel-heading p{color:#8b9e9b;font-size:11px;margin:0}.segmented{border:1px solid var(--line);border-radius:5px;padding:2px;display:flex}.segmented button{background:transparent;color:#839391;padding:5px 11px;border-radius:4px;font-size:11px}.segmented .selected{background:var(--mint);color:var(--teal);font-weight:700}.chart-legend{display:flex;align-items:center;gap:19px;color:#7e9290;font-size:10px;margin-bottom:17px}.legend-dot{display:inline-block;width:7px;height:7px;border-radius:2px;margin-right:6px}.legend-dot.actual{background:var(--teal)}.legend-dot.goal{background:#dce8e3}.chart-total{margin-left:auto}.chart-total strong{color:var(--ink);font-size:12px;font-family:'DM Sans',sans-serif}.bar-chart{height:187px;display:flex;align-items:end;justify-content:space-around;gap:15px;border-bottom:1px solid #dfe8e5;background:repeating-linear-gradient(to top,transparent 0,transparent 45px,#eef3f0 46px);padding:0 12px}.bar-pair{height:100%;display:flex;align-items:end;gap:5px;position:relative;flex:1;justify-content:center}.bar{width:18px;border-radius:4px 4px 0 0;min-height:4px}.bar.actual{background:var(--teal)}.bar.goal{background:#dce8e3}.bar-pair:first-child .bar.actual{background:#4a9b92}.bar-value{position:absolute;top:0;color:var(--teal);font-size:10px;font-weight:700}.chart-axis{display:flex;justify-content:space-around;padding:9px 5px 0;color:#91a19e;font-size:10px}.alert-panel{padding-bottom:10px}.badge{font-size:10px;border-radius:12px;padding:4px 9px;white-space:nowrap}.badge-coral{color:#b85549;background:var(--coral-soft)}.badge-teal{color:#17756f;background:var(--mint)}.badge-amber{color:#a36e2d;background:var(--amber-soft)}.badge-gray{color:#7b8c89;background:var(--gray-soft)}.alert-list{margin-top:1px}.alert-row{width:100%;background:transparent;border-bottom:1px solid #edf1ef;display:flex;align-items:center;gap:10px;text-align:left;padding:13px 0}.alert-row:last-child{border:0}.alert-row>span:nth-child(2){flex:1}.alert-row strong,.alert-row small{display:block}.alert-row strong{font-size:12px;color:var(--ink);margin-bottom:4px}.alert-row small{color:#8b9e9b;font-size:10px;white-space:nowrap}.alert-row>svg:last-child{width:14px;color:#a1b0ad}.alert-icon{width:27px;height:27px;border-radius:6px;display:grid;place-items:center}.alert-icon svg{width:14px}.alert-icon.coral{background:var(--coral-soft);color:var(--coral)}.alert-icon.amber{background:var(--amber-soft);color:var(--amber)}.alert-icon.teal{background:var(--mint);color:var(--teal)}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;color:#91a19e;text-transform:uppercase;letter-spacing:.7px;font-size:9px;font-weight:700;padding:0 10px 11px}td{border-top:1px solid #edf1ef;padding:13px 10px;font-size:11px;color:#607572}td:first-child,th:first-child{padding-left:0}.customer-name{font-weight:700;color:var(--ink);display:block;font-size:12px}.customer-company{font-size:10px;color:#9aa8a5;display:block;margin-top:3px}.stage{font-size:10px;padding:4px 7px;border-radius:4px;background:#f0f4f2;color:#647b76}.stage.proposal{background:#edf5f3;color:#2a8178}.stage.negotiation{background:#fff3e4;color:#a9702e}.stage.won{background:#eaf3ec;color:#4e815d}.money{font-weight:700;color:var(--ink);font-family:'DM Sans',sans-serif}.task-summary{display:flex;background:#f6f9f7;border-radius:6px;padding:12px 4px;margin:-2px 0 9px}.task-summary div{width:33.333%;text-align:center;border-right:1px solid #e0eae5}.task-summary div:last-child{border:0}.task-summary strong,.task-summary span{display:block}.task-summary strong{font-family:'DM Sans',sans-serif;font-size:17px}.task-summary span{font-size:9px;color:#8b9e9b;margin-top:3px}.task-list{display:flex;flex-direction:column}.task-item{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #edf1ef}.task-item:last-child{border:0}.task-check{width:16px;height:16px;border:1px solid #bccdca;border-radius:4px;background:white;display:grid;place-items:center;color:white;flex-shrink:0}.task-check.done{background:var(--teal);border-color:var(--teal)}.task-check svg{width:11px}.task-copy{min-width:0;flex:1}.task-copy strong,.task-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-copy strong{font-size:11px}.task-copy small{font-size:9px;color:#96a6a3;margin-top:3px}.task-deadline{font-family:'DM Sans',sans-serif;color:#b36e4d;font-size:10px}.hidden{display:none!important}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.search-field{height:36px;width:250px;display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:0 11px;color:#98aaa7}.search-field input{border:0;outline:0;width:100%;color:var(--ink);background:transparent;font-size:12px}.filter-group{display:flex;gap:5px}.filter-button{background:transparent;border:1px solid transparent;color:#80918e;border-radius:5px;padding:7px 10px;font-size:11px}.filter-button.selected{border-color:#c8d9d5;color:var(--teal);background:#fff;font-weight:700}.filter-button span{background:var(--mint);padding:1px 5px;border-radius:8px;margin-left:3px}.full-panel{padding:22px}.customers-table td{padding-top:15px;padding-bottom:15px}.customers-table td:last-child{text-align:right}.row-action{background:transparent;color:#90a09e;padding:5px}.row-action:hover{color:var(--teal)}.goal-layout{display:grid;grid-template-columns:1.45fr .8fr;gap:18px}.goal-main{padding:27px}.goal-number{display:flex;align-items:baseline;gap:8px;margin:31px 0 18px}.goal-number strong{font-family:'DM Sans',sans-serif;font-size:43px;letter-spacing:-1.3px}.goal-number span{font-size:15px;color:#9baaa8}.goal-number b{font-family:'DM Sans',sans-serif;font-size:17px;color:#657a76}.big-progress{height:10px}.goal-stat-row{display:flex;margin:25px 0 32px}.goal-stat-row div{flex:1;border-right:1px solid var(--line);padding-left:20px}.goal-stat-row div:first-child{padding-left:0}.goal-stat-row div:last-child{border:0}.goal-stat-row span,.goal-stat-row strong{display:block}.goal-stat-row span{font-size:10px;color:#8d9d9a;margin-bottom:7px}.goal-stat-row strong{font-family:'DM Sans',sans-serif;font-size:17px}.goal-breakdown{border-top:1px solid var(--line);padding-top:19px}.breakdown-head{display:flex;justify-content:space-between;margin-bottom:11px;font-size:11px}.breakdown-head span{color:#9aa8a5}.week-row{display:grid;grid-template-columns:60px 1fr 125px 42px;gap:13px;align-items:center;border-top:1px solid #f0f3f1;padding:13px 0;font-size:10px;color:#71827f}.week-row b{font-family:'DM Sans',sans-serif;font-size:10px;color:#6b7e7a;font-weight:500}.week-row em{font-style:normal;font-size:9px}.done{color:var(--teal)}.behind{color:var(--coral)}.upcoming{color:#9aa8a5}.tiny-progress{height:4px}.tiny-progress i{background:var(--teal)}.tiny-progress .muted-bar{background:#cbd8d4}.goal-side{display:flex;flex-direction:column;gap:18px}.small-panel{padding:22px}.donut-wrap{display:flex;align-items:center;gap:22px;padding:7px 0 3px}.donut{width:130px;height:130px;border-radius:50%;background:conic-gradient(var(--teal) 0 54%,#e28b4b 54% 85%,#d8e0df 85% 100%);display:grid;place-items:center;flex-shrink:0}.donut:after{content:"";width:86px;height:86px;border-radius:50%;background:white;position:absolute}.donut>div{z-index:1;text-align:center}.donut strong,.donut span{display:block}.donut strong{font-family:'DM Sans',sans-serif;font-size:16px}.donut span{font-size:9px;color:#8d9d9a;margin-top:4px}.source-legend{flex:1}.source-legend span{display:flex;align-items:center;gap:6px;color:#738581;font-size:10px;padding:7px 0}.source-legend i{width:7px;height:7px;border-radius:2px}.source-legend b{margin-left:auto;color:var(--ink);font-family:'DM Sans',sans-serif}.strategy-list>div{display:flex;gap:12px;border-top:1px solid #edf1ef;padding:14px 0}.strategy-num{font-family:'DM Sans',sans-serif;font-size:11px;color:#d68d53;font-weight:700}.strategy-list p{margin:0}.strategy-list strong,.strategy-list small{display:block}.strategy-list strong{font-size:11px}.strategy-list small{font-size:10px;line-height:1.6;color:#899a96;margin-top:4px}.battle-banner{border:1px solid #d9e7e2;background:#eff7f3;border-radius:8px;padding:18px 22px;display:flex;align-items:center;gap:22px;margin-bottom:18px}.battle-target span,.battle-target strong{display:block}.battle-target span{font-size:10px;color:#77908b;margin-bottom:4px}.battle-target strong{font-family:'DM Sans',sans-serif;font-size:22px}.battle-target:first-child strong{color:var(--coral)}.battle-arrow{color:#9fb8b1;width:20px}.battle-note{margin-left:auto;display:flex;align-items:center;gap:8px;color:#6e8882;font-size:11px}.battle-note svg{width:15px}.battle-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.battle-column{padding:20px;background:#fdfefd}.battle-column-head{display:flex;align-items:flex-start;gap:12px;border-bottom:1px solid var(--line);padding-bottom:17px;margin-bottom:15px}.column-index{font-family:'DM Sans',sans-serif;color:#d38b50;font-size:19px;font-weight:700}.battle-column-head>div{flex:1}.battle-column-head h2{font-size:14px;margin:2px 0 5px}.battle-column-head p{font-size:10px;color:#8a9c99;margin:0}.battle-card{border:1px solid var(--line);border-radius:6px;padding:15px;margin-bottom:12px;background:#fff}.battle-card:last-child{margin-bottom:0}.battle-card-top{display:flex;justify-content:space-between;color:#9aaba7;font-size:9px}.tag{padding:3px 6px;border-radius:3px}.tag-orange{color:#a56834;background:#fff0de}.tag-teal{color:#2e8279;background:#e9f4f1}.tag-gray{color:#7e8e8a;background:#eff3f1}.battle-card h3{font-size:12px;margin:13px 0 7px}.battle-card p{font-size:10px;line-height:1.65;color:#81918e;margin:0 0 15px}.assignee{display:flex;align-items:center;gap:7px;color:#6d807c;font-size:10px}.assignee .icon-button{margin-left:auto}.mini{width:25px;height:25px;background:#eef7f3;color:var(--teal)}.mini:hover{background:var(--mint)}.muted-column{opacity:.78}.mail-layout{display:grid;grid-template-columns:1.55fr .7fr;gap:18px}.mail-task-list{margin-top:-4px}.mail-task{display:flex;align-items:center;gap:13px;padding:16px 0;border-top:1px solid #edf1ef}.mail-task .task-check{width:18px;height:18px}.mail-task-content{flex:1;min-width:0}.mail-task-content strong{font-size:12px;display:block}.mail-task-content p{font-size:10px;color:#899a96;margin:5px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mail-meta{display:flex;align-items:center;gap:16px;color:#8d9d9a;font-size:10px}.mail-meta span{display:flex;align-items:center;gap:5px}.mail-meta svg{width:13px}.status-sent{color:var(--teal)}.status-pending{color:var(--coral)}.mail-guide{padding:28px}.guide-icon{width:40px;height:40px;background:var(--mint);color:var(--teal);display:grid;place-items:center;border-radius:7px;margin-bottom:20px}.mail-guide h2{font-size:16px;margin:0 0 9px}.mail-guide>p{font-size:11px;line-height:1.8;color:#7c8f8b;margin:0 0 22px}.guide-rule{display:flex;align-items:center;gap:8px;color:#607572;font-size:11px;margin:13px 0}.guide-rule i{color:var(--teal);width:14px}.empty-state{min-height:390px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-icon{width:55px;height:55px;border-radius:50%;background:var(--mint);color:var(--teal);display:grid;place-items:center;margin-bottom:18px}.empty-state h2{font-size:17px;margin:0 0 8px}.empty-state p{font-size:11px;color:#8b9e9b;margin:0 0 20px}.settings-panel{max-width:800px;padding:0 24px}.setting-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf1ef;padding:22px 0}.setting-row:last-child{border:0}.setting-row h2{font-size:13px;margin:0 0 5px}.setting-row p{font-size:10px;color:#899a96;margin:0}.setting-row input:not([type=checkbox]){height:33px;border:1px solid var(--line);border-radius:5px;padding:0 10px;color:var(--ink);outline:0}.toggle{position:relative;width:38px;height:21px}.toggle input{opacity:0;width:0;height:0}.toggle span{position:absolute;inset:0;background:#cad6d3;border-radius:20px;transition:.2s}.toggle span:before{content:"";position:absolute;width:17px;height:17px;left:2px;top:2px;background:#fff;border-radius:50%;transition:.2s}.toggle input:checked+span{background:var(--teal)}.toggle input:checked+span:before{transform:translateX(17px)}.modal-backdrop{position:fixed;inset:0;background:rgba(17,42,44,.38);display:grid;place-items:center;z-index:20;padding:20px}.modal{width:min(540px,100%);background:#fff;border-radius:9px;box-shadow:0 24px 70px rgba(12,40,40,.23);padding:25px}.small-modal{width:min(420px,100%)}.mail-modal{width:min(590px,100%)}.modal-header{display:flex;justify-content:space-between;align-items:start;margin-bottom:22px}.modal-header h2{font-size:19px;margin:0}.modal form>label,.form-grid label{display:block;color:#617773;font-size:11px;font-weight:600;margin-bottom:15px}.modal label input,.modal label select,.modal label textarea{display:block;width:100%;border:1px solid #d7e2de;border-radius:5px;margin-top:7px;padding:9px 10px;outline:0;color:var(--ink);background:#fff;font-size:12px}.modal label textarea{resize:vertical;line-height:1.6}.modal label input:focus,.modal label select:focus,.modal label textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px #e4f2ef}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-hint{font-size:10px;color:#8b9e9b;background:#f4f8f6;padding:11px;border-radius:5px;margin:2px 0 19px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid #edf1ef;padding-top:18px;margin-top:19px}.mail-preview{display:flex;align-items:start;gap:7px;background:#f2f8f5;color:#64817a;font-size:10px;padding:11px;border-radius:5px}.mail-preview svg{width:14px;flex-shrink:0}.toast{position:fixed;right:25px;bottom:25px;background:#173b3c;color:#fff;padding:12px 16px;border-radius:6px;display:flex;align-items:center;gap:8px;box-shadow:var(--shadow);font-size:12px;z-index:30}.toast svg{color:#a3d9c5;width:16px}.toast.hidden,.modal-backdrop.hidden{display:none}
@media(max-width:1100px){.sidebar{width:210px}.topbar{padding:0 25px}.content-wrap{padding:28px 25px 50px}.metric-grid{grid-template-columns:repeat(2,1fr)}.battle-grid{grid-template-columns:1fr 1fr}.battle-column:last-child{grid-column:span 2}.mail-layout{grid-template-columns:1fr}.mail-guide{display:none}}

#todo-modal > .modal{max-height:calc(100vh - 40px);overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}
@media(max-width:760px){.sidebar{width:65px;padding:18px 9px}.brand{padding:0 8px 27px}.brand>div:last-child,.workspace-switcher .workspace-copy,.workspace-switcher>svg,.nav-label,.nav-item span,.nav-count,.focus-card,.sidebar-user>div:not(.avatar),.sidebar-user>svg{display:none}.workspace-switcher{padding:5px;margin:0 0 22px;justify-content:center;background:transparent;border:0}.nav-item{justify-content:center;padding:11px 0}.nav-item.active{color:var(--ink)}.sidebar-user{justify-content:center;padding-left:0;padding-right:0}.topbar{height:62px;padding:0 14px}.breadcrumb span,.breadcrumb svg{display:none}.top-actions{gap:5px}.top-date{display:none}.top-actions .button{width:34px;padding:0;font-size:0}.top-actions .button svg{width:16px}.content-wrap{padding:24px 14px 40px}.page-intro,.page-intro.compact{align-items:flex-start;gap:15px;margin-bottom:23px}.page-intro .button{flex-shrink:0}.page-intro h1{font-size:23px}.intro-copy{line-height:1.6}.metric-grid{gap:9px}.metric-card{padding:15px 13px;min-height:125px}.metric-card strong{font-size:20px;margin-top:15px}.metric-foot{font-size:9px}.dashboard-grid,.lower-grid,.goal-layout{grid-template-columns:1fr;gap:13px}.panel{padding:16px}.sales-panel{min-width:0}.chart-legend{gap:9px}.bar-chart{height:160px;padding:0 4px;gap:6px}.bar{width:14px}.alert-row small{white-space:normal;line-height:1.4}.customer-panel .panel-heading,.task-panel .panel-heading{margin-bottom:12px}.toolbar{display:block}.search-field{width:100%;margin-bottom:10px}.filter-group{overflow:auto;padding-bottom:2px}.filter-button{white-space:nowrap}.goal-main{padding:19px}.goal-number{margin:24px 0 15px}.goal-number strong{font-size:31px}.goal-stat-row{margin:20px 0 24px}.goal-stat-row div{padding-left:10px}.goal-stat-row strong{font-size:14px}.week-row{grid-template-columns:48px 1fr 90px 34px;gap:7px}.donut-wrap{gap:14px}.donut{width:112px;height:112px}.donut:after{width:74px;height:74px}.battle-banner{flex-wrap:wrap;gap:14px;padding:15px}.battle-note{width:100%;margin-left:0}.battle-grid{grid-template-columns:1fr;gap:13px}.battle-column:last-child{grid-column:auto}.mail-task{align-items:flex-start;gap:9px}.mail-meta{display:block;text-align:right;line-height:1.9}.form-grid{grid-template-columns:1fr;gap:0}.modal{padding:20px}.settings-panel{padding:0 16px}}

.dashboard-grid > .panel,.goal-layout > .panel,.mail-layout > .panel{min-width:0}.table-scroll{min-width:0}
@media(max-width:360px){.metric-grid{grid-template-columns:1fr}.metric-card{min-width:0}.page-intro>div{min-width:0}.main-content,.content-wrap,.view{min-width:0}}
.sales-total-strip{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:-3px 0 20px}.sales-total-strip>div{background:#f4f8f6;border:1px solid #e6efeb;border-radius:6px;padding:12px 14px;min-width:0}.sales-total-strip span,.sales-total-strip strong,.sales-total-strip small{display:block}.sales-total-strip span{color:#79908c;font-size:10px}.sales-total-strip strong{font-family:'DM Sans',sans-serif;font-size:20px;margin:6px 0 3px}.sales-total-strip small{color:#9aa9a6;font-size:9px}.battle-support-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.support-panel{min-width:0}.battle-todos,.meeting-records{display:flex;flex-direction:column}.battle-todo,.meeting-record{display:flex;align-items:center;gap:10px;border-top:1px solid #edf1ef;padding:12px 0}.battle-todo:first-child,.meeting-record:first-child{border-top:0;padding-top:0}.battle-todo>div,.meeting-record>div:nth-child(2){flex:1;min-width:0}.battle-todo strong,.battle-todo small,.meeting-record strong,.meeting-record small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.battle-todo strong,.meeting-record strong{font-size:11px}.battle-todo small,.meeting-record small{font-size:9px;color:#8b9e9b;margin-top:4px}.battle-todo time{font-family:'DM Sans',sans-serif;color:var(--coral);font-size:10px}.meeting-record-icon{width:27px;height:27px;border-radius:6px;background:var(--mint);color:var(--teal);display:grid;place-items:center;flex-shrink:0}.meeting-record-icon svg{width:14px}.support-empty{display:flex;align-items:center;justify-content:center;gap:7px;color:#8b9e9b;font-size:10px;padding:19px 0}.support-empty svg{width:16px;color:var(--teal)}
@media(max-width:760px){.sales-total-strip{grid-template-columns:1fr 1fr}.battle-support-grid{grid-template-columns:1fr;gap:13px}.sales-total-strip strong{font-size:16px}}
@media(max-width:360px){.sales-total-strip{grid-template-columns:1fr}}

/* Keep value labels in a reserved band above the bars. */
.bar-chart{padding-top:30px}
.bar-pair{padding-top:30px;min-width:0}
.bar-value{top:4px;z-index:2;line-height:1.2;text-align:center}
@media(max-width:760px){.bar-chart{padding-top:30px}.bar-pair{padding-top:30px}.bar-value{font-size:9px}}
.people-table .row-action{margin-left:8px}
.mail-task.completed .mail-task-content strong{text-decoration:line-through;color:#81938f}.mail-task.completed .mail-task-content p{color:#a0adaa}.status-completed{color:var(--teal)}.task-check{cursor:pointer}.task-check:focus-visible{outline:2px solid #6fb2a8;outline-offset:2px}
.mail-config-row{align-items:center}.mail-config-row form{display:flex;align-items:center;gap:8px}.mail-config-row input{height:33px;width:230px;border:1px solid var(--line);border-radius:5px;padding:0 10px;color:var(--ink);outline:0}.mail-config-row input:focus{border-color:var(--teal);box-shadow:0 0 0 3px #e4f2ef}.mail-config-row .button{height:33px;white-space:nowrap}
.setting-status{display:block;color:#9aa9a6;font-size:10px;margin-top:7px}
.workspace-name-control{display:flex;align-items:center;gap:8px}.workspace-name-control input{width:230px}.workspace-name-control .button{height:33px;white-space:nowrap}
.workspace-name-control{display:none!important}
.personal-todo-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0 0 12px;border-bottom:1px solid #edf1ef}.personal-todo-metrics>div{display:grid;gap:5px;min-width:0}.personal-todo-metrics span,.personal-todo-status{font-size:10px;color:#7e9290}.personal-todo-metrics strong{font-size:15px;color:var(--ink);font-variant-numeric:tabular-nums}.personal-todo-status{display:flex;flex-wrap:wrap;gap:8px 14px;padding:10px 0 2px}.personal-todo-status span{white-space:nowrap}
@media(max-width:760px){.personal-todo-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.settings-panel .setting-row:first-child{display:block}.workspace-name-control{margin-top:10px}.workspace-name-control input{width:auto;min-width:0;flex:1}}
.button-danger{color:#a23b32;border:1px solid #e5aaa2;background:#fff7f5}.button-danger:hover{color:#fff;border-color:#a23b32;background:#a23b32}
.workspace-switcher{position:relative}.workspace-switcher select{max-width:142px;height:28px;border:1px solid #d7e5df;border-radius:5px;background:#f6faf8;color:var(--ink);font-size:10px;padding:0 22px 0 7px;outline:0}.workspace-switcher select:focus{border-color:var(--teal);box-shadow:0 0 0 3px #e4f2ef}.workspace-sync-status{display:flex;align-items:center;gap:6px;padding:0 16px 13px;color:#90a29e;font-size:9px}.workspace-sync-status .status-dot{width:6px;height:6px;flex:0 0 6px}.workspace-sync-status.is-syncing{color:var(--teal)}
.workspace-switcher{display:block;padding:11px;margin-bottom:22px}.workspace-main-row{display:flex;align-items:center;gap:9px;min-width:0}.workspace-main-row .workspace-copy{flex:1;min-width:0}.workspace-main-row>svg{flex:0 0 15px;width:15px}.current-person-row{display:flex;align-items:center;gap:8px;margin-top:10px;padding-top:9px;border-top:1px solid #2b5658;color:#91aca9;font-size:9px}.current-person-row span{flex:0 0 auto}.current-person-row select{width:100%;max-width:none;height:27px;font-size:10px}.workspace-switcher .workspace-sync-status{padding:8px 0 0;margin-top:8px;border-top:1px solid #2b5658;font-size:9px}.workspace-switcher .workspace-sync-status .status-dot{background:#8ed0a7}
@media(max-width:760px){.workspace-switcher select{display:none}.workspace-sync-status{justify-content:center;padding:0 0 13px;font-size:0}.workspace-sync-status .status-dot{width:7px;height:7px}.workspace-sync-status.is-syncing{font-size:0}}
@media(max-width:760px){.workspace-switcher{padding:5px;margin:0 0 22px}.workspace-main-row{justify-content:center}.workspace-main-row .workspace-copy,.workspace-main-row>svg,.current-person-row{display:none}.workspace-switcher .workspace-sync-status{border:0;margin:6px 0 0;padding:0}.workspace-switcher .workspace-sync-status span:last-child{display:none}}

/* ERP navigation and local operations/engineering workspace */
.sidebar{height:100vh;position:sticky;top:0;overflow:hidden;padding-top:18px}.brand{padding-bottom:18px}.workspace-switcher{margin-bottom:13px}.main-nav{min-height:0;overflow-y:auto;padding-right:3px;scrollbar-width:thin;scrollbar-color:#416266 transparent}.main-nav::-webkit-scrollbar{width:5px}.main-nav::-webkit-scrollbar-thumb{background:#416266;border-radius:5px}.nav-label{margin:13px 0 5px;padding-top:7px;border-top:1px solid #244c50;font-size:9px}.nav-label:first-child{margin-top:0;border-top:0;padding-top:0}.nav-label-spaced{margin-top:13px}.nav-item{padding:8px 10px;margin-bottom:1px}.sidebar-bottom{margin-top:8px}.focus-card{display:none}.page-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.page-actions input[type=file]{display:none}.operations-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.operations-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.operations-modal{width:min(820px,100%);max-height:calc(100vh - 40px);overflow:auto}.operations-form-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}.operations-form-grid label{display:block;color:#617773;font-size:11px;font-weight:600;margin-bottom:15px}.operations-form-grid input{display:block;width:100%;border:1px solid #d7e2de;border-radius:5px;margin-top:7px;padding:9px 10px;outline:0;color:var(--ink);background:#fff;font-size:12px}.operations-form-grid input:focus{border-color:var(--teal);box-shadow:0 0 0 3px #e4f2ef}.flow-status-select{min-width:90px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--ink);padding:6px}.price-review-strip{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--line);border-left:4px solid var(--teal);border-radius:7px;padding:13px 16px;margin-bottom:16px}.price-review-strip strong,.price-review-strip span{display:block}.price-review-strip strong{font-size:12px}.price-review-strip div>span{font-size:10px;color:#82938f;margin-top:4px}.mold-number-list{line-height:1.7}.engineering-preview-modal{width:min(900px,100%);max-height:calc(100vh - 40px);overflow:auto}.engineering-preview-modal .modal-header p:last-child{font-size:10px;color:#80928f;margin:6px 0 0}.preview-exceptions{display:flex;flex-direction:column;gap:6px;background:#fff6e6;border:1px solid #f1dfbd;border-radius:6px;padding:12px;margin-top:15px;color:#886126;font-size:10px}.preview-exceptions strong{font-size:11px}.reminder-list{display:flex;flex-direction:column;gap:8px}.reminder-item{width:100%;display:flex;align-items:center;gap:11px;background:#f7faf8;border:1px solid #e5ece9;border-radius:6px;padding:12px;text-align:left;color:var(--ink)}.reminder-item>svg{width:16px;color:var(--teal);flex:0 0 16px}.reminder-item>svg:last-child{margin-left:auto;color:#90a19e}.reminder-item div{min-width:0;flex:1}.reminder-item strong,.reminder-item span{display:block}.reminder-item strong{font-size:11px}.reminder-item span{font-size:10px;color:#82938f;margin-top:4px;line-height:1.5}.reminder-item.risk{background:#fff7f5;border-color:#f1d9d3}.reminder-item.risk>svg{color:#b94f45}.reminder-empty{display:grid;place-items:center;min-height:150px;color:#8c9d99;font-size:11px}.engineering-preview-modal table td small,.engineering-project-table td small,#production-table td small{display:block;color:#91a19e;margin-top:4px}.engineering-reminder-panel .panel-heading p{margin:5px 0 0;color:#6d817e;font-size:11px}.engineering-reminder-list{display:grid;gap:9px}.engineering-reminder-project{border:1px solid #e1e8e6;background:#fbfcfb}.engineering-reminder-project>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;cursor:pointer;list-style:none}.engineering-reminder-project>summary::-webkit-details-marker{display:none}.engineering-reminder-project>summary div{min-width:0}.engineering-reminder-project>summary strong,.engineering-reminder-project>summary span{display:block}.engineering-reminder-project>summary strong{font-size:13px;color:var(--ink)}.engineering-reminder-project>summary span{margin-top:5px;color:#a11d28;font-size:11px}.engineering-reminder-project>summary svg{width:16px;flex:0 0 16px;color:#748784;transition:transform .18s ease}.engineering-reminder-project[open]>summary svg{transform:rotate(180deg)}.engineering-reminder-body{display:grid;gap:7px;padding:0 16px 14px}.engineering-reminder-detail{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;background:#fff7f5;border-left:3px solid #b94f45}.engineering-reminder-detail>svg{width:15px;flex:0 0 15px;color:#b94f45}.engineering-reminder-detail strong,.engineering-reminder-detail span{display:block}.engineering-reminder-detail strong{font-size:11px}.engineering-reminder-detail span{margin-top:4px;color:#6d7775;font-size:10px;line-height:1.5}.engineering-reminder-delay{background:#fffaf1;border-left-color:#c67b23}.engineering-reminder-delay>svg{color:#c67b23}
@media(max-width:1100px){.operations-metrics{grid-template-columns:repeat(2,1fr)}.operations-form-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.sidebar{padding-top:14px}.main-nav{padding-right:0}.nav-label{display:none}.nav-item{padding:9px 0;margin-bottom:2px}.sidebar-bottom{margin-top:5px}.operations-grid{grid-template-columns:1fr}.page-actions{justify-content:flex-start}.page-intro.compact{display:block}.page-intro .page-actions{margin-top:14px}.operations-form-grid{grid-template-columns:1fr 1fr}.engineering-preview-modal{max-height:calc(100vh - 20px)}}
@media(max-width:480px){.operations-metrics,.operations-form-grid{grid-template-columns:1fr}.page-actions .button{width:100%}}

/* Collapsible navigation groups and per-user notification settings */
.nav-group{margin:0 0 4px}.nav-group-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;background:transparent;color:#6f9291;text-transform:uppercase;letter-spacing:1.4px;font-size:9px;font-weight:700;text-align:left;margin:13px 0 5px;padding:7px 10px;border-top:1px solid #244c50}.nav-group:first-child .nav-group-toggle{margin-top:0;border-top:0}.nav-group-toggle svg{width:14px;height:14px;transition:transform .18s}.nav-group.is-collapsed .nav-group-toggle svg{transform:rotate(-90deg)}.nav-group.is-collapsed .nav-item{display:none}.notification-settings-form{flex:1;max-width:560px;margin-left:30px}.notification-settings-form label{display:block;color:#617773;font-size:10px;font-weight:600;margin-bottom:11px}.notification-settings-form input[type=email],.notification-settings-form input[type=url],.notification-settings-form input[type=text],.notification-settings-form input[type=password]{display:block;width:100%;height:32px;border:1px solid var(--line);border-radius:5px;margin-top:5px;padding:0 8px;color:var(--ink);outline:0;font-size:11px}.notification-settings-form input:focus{border-color:var(--teal);box-shadow:0 0 0 3px #e4f2ef}.notification-settings-form .inline-checkbox{display:flex;align-items:center;gap:7px;height:32px;margin-top:20px}.notification-settings-form .inline-checkbox input{accent-color:var(--teal)}.notification-settings-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:5px}.notification-settings-actions .button{flex-shrink:0}.setting-status{font-size:10px;color:#82938f}@media(max-width:760px){.nav-group-toggle{padding:9px 0;justify-content:center}.nav-group-toggle span{display:none}.nav-group-toggle svg{width:15px}.notification-settings-form{max-width:none;margin:14px 0 0;width:100%}.setting-row.mail-config-row{display:block}.notification-settings-actions{align-items:flex-start;flex-direction:column}}

/* Product master data and full-screen demand matrix */
.product-library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}.product-library-toolbar .search-field{width:min(440px,100%)}.toolbar-hint{font-size:10px;color:#7f928d}.product-conflict{display:block;color:#ad5d36;font-size:9px;margin-top:3px}.row-actions{white-space:nowrap}.row-actions .row-action{display:inline-grid;margin-left:4px}
.demand-matrix-modal{width:calc(100vw - 34px);height:calc(100vh - 34px);max-width:none;max-height:none;overflow:hidden;display:flex;flex-direction:column}.demand-matrix-modal .modal-header{flex:0 0 auto}.demand-matrix-modal .plan-filter-bar{flex:0 0 auto}.demand-modal-scroll{flex:1;max-height:none}.modal-header-actions{display:flex;align-items:center;gap:8px}.plan-internal-col{left:362px;width:145px;min-width:145px}.plan-product-col{left:507px;width:220px;min-width:220px}.plan-product-col{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plan-product-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plan-product-text.is-unmatched{color:#a36a3b}.plan-resize-handle{display:block;position:absolute;top:0;right:-1px;width:7px;height:100%;cursor:col-resize;background:transparent}.plan-resize-handle:hover{background:#6aa9a1}.plan-matrix-scroll th.plan-product-col{position:sticky!important}.plan-matrix-scroll th{position:sticky}.demand-matrix-modal .plan-matrix-scroll{border:1px solid var(--line)}
@media(max-width:760px){.product-library-toolbar{display:block}.product-library-toolbar .search-field{width:100%;margin-bottom:10px}.demand-matrix-modal{width:calc(100vw - 20px);height:calc(100vh - 20px)}.modal-header-actions .button{display:none}.plan-internal-col{left:302px;width:125px;min-width:125px}.plan-product-col{left:427px;width:180px;min-width:180px}}

/* Customer plan import and horizontal demand matrix */
.plan-filter-bar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:0 0 14px}.plan-filter-bar label{display:flex;flex-direction:column;gap:5px;color:#617773;font-size:10px;font-weight:700}.plan-filter-bar select,.plan-filter-bar input{height:34px;min-width:160px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--ink);padding:0 9px}.plan-matrix-panel{padding-bottom:0}.plan-priority-note{font-size:10px;color:#416b68;background:#e9f4f0;border:1px solid #d5e7e1;border-radius:4px;padding:5px 8px}.plan-matrix-scroll{max-height:56vh;border-top:1px solid var(--line);overflow:auto}.plan-matrix-scroll table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}.plan-matrix-scroll th{position:sticky;top:0;z-index:5;white-space:nowrap}.plan-matrix-scroll td,.plan-matrix-scroll th{height:40px;border-right:1px solid #edf1ef;border-bottom:1px solid #edf1ef}.plan-sticky{position:sticky!important;background:#fff;z-index:4}.plan-matrix-scroll thead .plan-sticky{z-index:7;background:#173f43}.plan-customer-col{left:0;width:90px;min-width:90px}.plan-actual-col{left:90px;width:112px;min-width:112px}.plan-part-col{left:202px;width:160px;min-width:160px}.plan-product-col{left:362px;width:220px;min-width:220px}.plan-date-col{min-width:82px;text-align:center}.plan-quantity-input{width:76px;height:30px;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--ink);font:inherit;text-align:right;padding:0 7px}.plan-quantity-input:hover,.plan-quantity-input:focus{border-color:#94b9b3;background:#f4faf8;outline:0}.plan-quantity-input.adjusted{color:#8f2f2a;background:#fff2ef;font-weight:700}.plan-empty-quantity{background:#fafcfb}.plan-history-panel{margin-top:16px}.plan-history-panel td small{display:block;color:#8b9b98;margin-top:3px}.plan-preview-modal{width:min(1040px,calc(100vw - 36px));max-height:calc(100vh - 36px);overflow:auto}.plan-preview-modal .modal-header p:last-child,.plan-mapping-modal .modal-header p:last-child{margin-top:5px;color:#7c908c;font-size:10px}.plan-preview-summary{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 14px}.plan-preview-summary span{display:flex;align-items:baseline;gap:4px;background:#f2f7f5;border:1px solid #e0ebe7;border-radius:5px;padding:8px 10px;color:#6e817d;font-size:10px}.plan-preview-summary strong{color:var(--ink);font-size:14px}.plan-preview-table{max-height:48vh}.plan-mapping-modal{width:min(760px,calc(100vw - 36px));max-height:calc(100vh - 36px);overflow:auto}.plan-mapping-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.plan-mapping-fields label{display:block}.plan-mapping-fields select{display:block;width:100%;margin-top:7px}
@media(max-width:760px){.plan-filter-bar{align-items:stretch}.plan-filter-bar label,.plan-filter-bar select,.plan-filter-bar input{width:100%}.plan-customer-col{left:0;width:76px;min-width:76px}.plan-actual-col{left:76px;width:96px;min-width:96px}.plan-part-col{left:172px;width:130px;min-width:130px}.plan-product-col{left:302px;width:170px;min-width:170px}.plan-mapping-fields{grid-template-columns:1fr}.plan-preview-modal,.plan-mapping-modal{max-height:calc(100vh - 20px)}}
.workspace-access-blocked{position:fixed;inset:0;z-index:19;background:rgba(238,245,241,.94);display:grid;place-items:center;padding:24px}.workspace-access-card{width:min(420px,100%);padding:34px 30px;text-align:center;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}.workspace-access-icon{width:46px;height:46px;margin:0 auto 16px;border-radius:50%;background:var(--coral-soft);color:var(--coral);display:grid;place-items:center}.workspace-access-icon svg{width:21px}.workspace-access-card h2{margin:0 0 9px;font-size:18px}.workspace-access-card p{margin:0;color:#7d908b;font-size:11px;line-height:1.8}
.workspace-main-row #current-person-meta{display:none}.current-person-row select{border:0;background:transparent;color:#e6f1ed;padding:0 2px;outline:0;box-shadow:none;appearance:auto;color-scheme:dark}.current-person-row select:hover,.current-person-row select:focus{background:rgba(255,255,255,.05);box-shadow:none}.current-person-row option{background:#21444a;color:#f4fbf8}
.person-access-role{display:inline-block;padding:3px 7px;border-radius:4px;font-size:10px}.person-access-role.admin{background:#e8f2ef;color:var(--teal)}.person-access-role.operator{background:#f0f3f1;color:#71837f}.person-permission-summary{color:#71837f;font-size:10px}.person-modal{width:min(680px,100%);max-height:92vh;overflow-y:auto}.permission-fieldset{border:1px solid #e0ebe6;border-radius:6px;margin:3px 0 0;padding:12px}.permission-fieldset legend{padding:0 5px;color:#617773;font-size:11px;font-weight:700}.permission-fieldset p{margin:0 0 10px;color:#8b9e9b;font-size:10px}.permission-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.permission-grid label{display:flex!important;align-items:center;justify-content:space-between;gap:6px;background:#f7faf8;border:1px solid #e4ede9;border-radius:5px;padding:7px 8px;margin:0!important;font-size:10px!important;font-weight:500!important}.permission-grid label span{color:#607572}.permission-grid select{width:auto!important;min-width:68px!important;height:27px!important;margin:0!important;padding:0 4px!important;font-size:10px!important}.permission-grid select:disabled{opacity:.65}
@media(max-width:760px){.permission-grid{grid-template-columns:1fr 1fr}}
.permission-grid .packaging-permission{grid-column:1/-1;background:#f0f5fc;border-color:#cadbf2}.permission-grid .packaging-permission small{display:block;margin-top:4px;color:#68788d;font-size:10px;font-weight:400}.permission-grid .packaging-permission select{max-width:170px}
.annual-map{margin-bottom:18px;padding:22px}.annual-map-heading{align-items:center;margin-bottom:18px}.annual-map-heading h2{font-size:16px}.annual-map-heading .eyebrow{margin-bottom:7px}.annual-map-actions{display:flex;align-items:center;gap:9px}.unit-note{color:#77908c;font-size:10px}.annual-map-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-bottom:18px}.annual-map-summary>div{background:#f5f9f7;border:1px solid #e5eeea;border-radius:6px;padding:13px 14px}.annual-map-summary span,.annual-map-summary strong,.annual-map-summary small{display:block}.annual-map-summary span{font-size:10px;color:#81938f}.annual-map-summary strong{font:700 20px 'DM Sans','Noto Sans SC',sans-serif;margin:8px 0 4px;color:var(--ink)}.annual-map-summary small{font-size:9px;color:#9aa9a6}.annual-map-summary .risk{background:#fff6f3;border-color:#f1ddd8}.annual-map-summary .risk strong{color:var(--coral)}.annual-map-summary .fill{background:#fff9ed;border-color:#f2e7cc}.annual-map-summary .fill strong{color:#ad762f}.annual-map-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:13px}.annual-map-toolbar select{height:32px;border:1px solid var(--line);border-radius:5px;padding:0 10px;color:var(--ink);background:#fff;font-size:11px;outline:0}.annual-map-search{width:230px;height:32px;margin-left:auto}.annual-map-table-scroll{border:1px solid #edf1ef;border-radius:6px}.annual-map-table{min-width:1420px}.annual-map-table th{background:#f6f9f7;padding:11px 9px;color:#7b8e8a;text-transform:none;letter-spacing:0}.annual-map-table td{padding:11px 9px;vertical-align:top;font-size:10px}.annual-map-table td:first-child,.annual-map-table th:first-child{padding-left:12px}.annual-map-table td strong,.annual-map-table td small{display:block}.annual-map-table td strong{font-size:11px;color:var(--ink)}.annual-map-table td small{font-size:9px;color:#9aa9a6;margin-top:4px}.money-wan{font:600 11px 'DM Sans','Noto Sans SC',sans-serif;text-align:right;white-space:nowrap}.variance-cell{color:var(--coral);font-weight:700}.action-cell{display:flex;align-items:flex-start;gap:5px;min-width:230px;line-height:1.55}.action-cell span{flex:1}.action-cell .row-action{padding:0 3px;flex-shrink:0}.muted-text{color:#a1afac}.battle-status{display:inline-block;color:#92703a;background:#fff5dd;border-radius:4px;padding:3px 6px;white-space:nowrap}.notes-cell{min-width:180px;line-height:1.55;color:#71827f!important}.button-danger{color:#a23b32;border:1px solid #e5aaa2;background:#fff7f5}.button-danger:hover{color:#fff;border-color:#a23b32;background:#a23b32}
.annual-map-summary{overflow-x:auto}.annual-map-summary>div{min-width:145px}
@media(max-width:760px){.annual-map{padding:16px}.annual-map-heading{display:block}.annual-map-actions{flex-wrap:wrap;margin-top:13px}.annual-map-summary{display:flex;margin-right:-4px;padding-bottom:2px}.annual-map-toolbar{display:block}.annual-map-toolbar .segmented,.annual-map-toolbar select{margin-bottom:9px}.annual-map-search{width:100%;margin-left:0}.annual-map-table-scroll{overflow-x:auto}}
.battle-todo em{display:block;font-size:9px;line-height:1.5;color:#a2773d;margin-top:4px;font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-collaboration{color:#a2773d}.mail-meta{flex-wrap:wrap}.mail-meta span{white-space:nowrap}
.action-cell .row-action{width:26px;height:26px;display:grid;place-items:center;flex-shrink:0}
.week-row{grid-template-columns:60px 1fr 170px 42px}.week-row b{white-space:nowrap}.weekly-goal-editor{border:1px solid #e4ece8;border-radius:6px;background:#f7faf8;padding:12px;margin:3px 0 15px}.weekly-goal-editor>strong{display:block;font-size:11px;color:#617773;margin-bottom:10px}.weekly-goal-editor>div{display:grid;grid-template-columns:1fr 1fr;gap:9px}.weekly-goal-editor label{margin:0!important;font-size:10px!important}.weekly-goal-editor input{margin-top:5px!important;padding:8px!important}
@media(max-width:760px){.week-row{grid-template-columns:48px 1fr 145px 34px;gap:7px}.weekly-goal-editor>div{grid-template-columns:1fr}}
.page-actions{display:flex;align-items:center;gap:9px}.compact-search,.compact-select{height:36px;border:1px solid var(--line);border-radius:6px;padding:0 10px;background:#fff;color:var(--ink);font-size:11px;outline:0}.compact-search{width:220px}.compact-select{height:34px}.quote-layout{display:grid;grid-template-columns:1.6fr .8fr;gap:18px}.quote-list-panel,.quote-settings-panel{min-width:0}.quote-table td{vertical-align:top}.quote-table td strong,.quote-table td small,.mold-table td strong,.mold-table td small{display:block}.quote-table td strong,.mold-table td strong{font-size:11px;color:var(--ink)}.quote-table td small,.mold-table td small{font-size:9px;color:#91a19e;margin-top:4px}.quote-table td:last-child,.mold-table td:last-child{text-align:right}.quote-settings-panel{padding:22px}.panel-heading-icon{color:#8da7a2}.rate-form label{display:block;color:#617773;font-size:10px;font-weight:600;margin-bottom:12px}.rate-form input{display:block;width:100%;height:32px;border:1px solid var(--line);border-radius:5px;margin-top:6px;padding:0 8px;color:var(--ink);outline:0}.material-library{border-top:1px solid var(--line);margin-top:20px;padding-top:17px}.subheading{display:flex;justify-content:space-between;color:var(--ink);font-size:11px;margin-bottom:8px}.subheading span{font-size:9px;color:#91a19e}.material-row{display:flex;align-items:center;border-top:1px solid #edf1ef;padding:8px 0;color:#617773;font-size:11px}.material-row b{font:600 11px 'DM Sans',sans-serif;margin-left:auto;margin-right:5px;color:var(--ink)}.material-row .mini{width:23px;height:23px;background:transparent}.inline-add-form{display:flex;gap:5px;margin-top:10px}.inline-add-form input{min-width:0;width:50%;height:31px;border:1px solid var(--line);border-radius:5px;padding:0 8px;font-size:10px;outline:0}.inline-add-form .icon-button{width:31px;height:31px;background:var(--mint);color:var(--teal)}.quote-modal{width:min(700px,100%);max-height:92vh;overflow:auto}.mold-modal{width:min(600px,100%)}.quote-calculation{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;background:#f4f8f6;border:1px solid #e5efeb;border-radius:6px;padding:10px;margin-top:3px}.quote-calculation div{padding:6px 7px;border-right:1px solid #e0eae5}.quote-calculation div:nth-child(3n){border-right:0}.quote-calculation span,.quote-calculation strong{display:block}.quote-calculation span{font-size:9px;color:#81938f}.quote-calculation strong{font:600 12px 'DM Sans','Noto Sans SC',sans-serif;color:var(--ink);margin-top:4px}.quote-calculation .total{grid-column:1 / -1;border-right:0;border-top:1px solid #dce8e3;padding-top:10px;margin-top:2px}.quote-calculation .total strong{font-size:20px;color:var(--teal)}.mold-metrics{margin-bottom:18px}.mold-table{min-width:960px}.mold-table td{padding-top:14px;padding-bottom:14px}.payment-status{display:inline-block;font-size:10px;padding:3px 6px;border-radius:4px;background:var(--gray-soft);color:#70827e}.payment-status.paid{background:var(--mint);color:var(--teal)}.payment-status.unclaimed{background:var(--coral-soft);color:var(--coral)}.payment-status.claimed{background:var(--amber-soft);color:#9b6e2e}.mold-table td small{white-space:nowrap}.mold-modal .form-grid{gap:13px}
@media(max-width:980px){.quote-layout{grid-template-columns:1fr}.quote-settings-panel{order:-1}.mold-metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.page-actions{flex-wrap:wrap}.quote-modal{max-height:95vh}.quote-calculation{grid-template-columns:repeat(2,1fr)}.quote-calculation div:nth-child(3n){border-right:1px solid #e0eae5}.quote-calculation div:nth-child(2n){border-right:0}.quote-calculation .total{grid-column:1 / -1}.compact-search{width:150px}.quote-list-panel .panel-heading{flex-wrap:wrap;gap:8px}.mold-metrics{gap:9px}.mold-metrics .metric-card strong{font-size:20px}}
.quote-company-banner{display:flex;justify-content:space-between;align-items:center;background:#eef7f3;border:1px solid #d7ebe3;border-left:4px solid var(--teal);border-radius:6px;padding:13px 14px;margin-bottom:18px}.quote-company-banner strong{font-size:15px;color:var(--ink)}.quote-company-banner span{font-size:10px;color:#548078}.detail-section-heading{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:18px;margin-top:8px;margin-bottom:12px}.detail-section-heading h3{font-size:14px;margin:0 0 4px}.detail-section-heading p{font-size:10px;color:#8b9e9b;margin:0}.quote-detail-card{border:1px solid #dfeae5;border-radius:6px;background:#fbfdfc;padding:15px;margin-bottom:11px}.detail-card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;color:var(--teal);font-size:12px}.quote-detail-card .form-grid{gap:11px}.quote-detail-card label{margin-bottom:11px}.item-calculation{display:flex;align-items:center;gap:17px;border-top:1px solid #e5efeb;padding-top:10px;margin-top:2px;font-size:10px;color:#738985}.item-calculation strong{margin-left:auto;color:var(--teal);font-size:12px}.quote-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#f1f8f4;border:1px solid #dcece5;border-radius:6px;padding:12px;margin-top:15px}.quote-summary div{display:flex;justify-content:space-between;align-items:center;color:#6f8781;font-size:10px}.quote-summary strong{color:var(--ink);font:600 13px 'DM Sans','Noto Sans SC',sans-serif}.quote-summary .total{grid-column:1 / -1;border-top:1px solid #d5e6de;padding-top:11px;margin-top:3px}.quote-summary .total strong{font-size:20px;color:var(--teal)}
@media(max-width:760px){.quote-company-banner{display:block}.quote-company-banner span{display:block;margin-top:5px}.detail-section-heading{align-items:flex-start;gap:10px}.detail-section-heading .button{flex-shrink:0}.quote-summary{grid-template-columns:1fr}.quote-summary .total{grid-column:auto}.item-calculation{display:block;line-height:1.8}.item-calculation strong{display:block;margin-left:0}}
.quote-items-scroll,.quote-molds-scroll{overflow-x:auto;border:1px solid #dfeae5;border-radius:6px;background:#fff}.quote-items-table,.quote-molds-table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;white-space:nowrap}.quote-items-table th,.quote-molds-table th{position:sticky;top:0;background:#edf6f2;color:#5c7973;text-transform:none;letter-spacing:0;font-size:10px;line-height:1.3;padding:9px 7px;border-bottom:1px solid #dbe9e3;text-align:center;z-index:1}.quote-items-table td,.quote-molds-table td{border-top:1px solid #edf1ef;padding:7px 5px;vertical-align:middle}.quote-items-table td:first-child,.quote-molds-table td:first-child{padding-left:7px}.quote-items-table input,.quote-items-table select,.quote-molds-table input,.quote-molds-table select{height:31px;min-width:76px;border:1px solid #d7e2de;border-radius:4px;padding:0 6px;outline:0;color:var(--ink);background:#fff;font-size:11px}.quote-items-table input:focus,.quote-items-table select:focus,.quote-molds-table input:focus,.quote-molds-table select:focus{border-color:var(--teal);box-shadow:0 0 0 2px #e4f2ef}.quote-items-table td:nth-child(2) input{min-width:150px}.quote-items-table td:nth-child(3) input{min-width:110px}.quote-items-table td:nth-child(4) select{min-width:105px}.quote-items-table td:nth-child(5) input{min-width:90px}.quote-items-table td:nth-child(24) input{min-width:140px}.quote-items-table .line-number,.quote-molds-table .line-number{text-align:center;color:#8ba29d;font-weight:700}.quote-items-table .calculated-price{min-width:105px;text-align:right}.quote-items-table .calculated-price strong{color:var(--teal);font:600 12px 'DM Sans','Noto Sans SC',sans-serif}.quote-molds-table td:nth-child(2) input{min-width:160px}.quote-molds-table td:nth-child(3) input{min-width:150px}.quote-molds-table td:nth-child(4) select{min-width:135px}.quote-molds-table td:nth-child(5) input{min-width:180px}.quote-molds-table .icon-button{margin:0 auto}.quote-detail-card{border:0;background:transparent;padding:0;margin:0 0 10px}.detail-card-header{display:none}.quote-items-scroll+.quote-molds-scroll{margin-bottom:10px}
 .model-dashboard-grid{grid-template-columns:minmax(0,1fr);margin-top:18px}.model-ranking-table td{vertical-align:middle}.model-ranking-table td:first-child{display:flex;align-items:center;gap:9px}.model-rank{font:700 10px 'DM Sans',sans-serif;color:#d18b55;width:21px}.model-ranking-table td strong{font-size:11px;color:var(--ink)}.model-share{display:inline-block;width:110px;height:5px;background:#e8f0ed;border-radius:4px;vertical-align:middle;margin-right:7px;overflow:hidden}.model-share i,.model-contribution-bar i{display:block;height:100%;background:var(--teal);border-radius:4px}.model-ranking-table td small{font:500 10px 'DM Sans',sans-serif;color:#80938e}.model-contribution-list{display:flex;flex-direction:column;gap:12px}.model-contribution-row>div:first-child{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.model-contribution-row strong{font-size:11px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-contribution-row span{font:500 10px 'DM Sans',sans-serif;color:#81938f;white-space:nowrap}.model-contribution-bar{height:6px;background:#e8f0ed;border-radius:4px;overflow:hidden;margin-top:6px}.mold-import-input{display:none}@media(max-width:760px){.model-dashboard-grid{grid-template-columns:1fr}.model-share{width:80px}}
.customer-preset-library{border-top:1px solid var(--line);margin-top:20px;padding-top:17px}.customer-preset-form label{display:block;color:#617773;font-size:10px;font-weight:600;margin-bottom:12px}.customer-preset-form input{display:block;width:100%;height:32px;border:1px solid var(--line);border-radius:5px;margin-top:6px;padding:0 8px;color:var(--ink);outline:0}.customer-preset-list{margin-top:14px}.customer-preset-row{display:flex;align-items:center;gap:8px;border-top:1px solid #edf1ef;padding:10px 0}.customer-preset-row>div{min-width:0;flex:1}.customer-preset-row strong,.customer-preset-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-preset-row strong{color:var(--ink);font-size:11px}.customer-preset-row small{color:#91a19e;font-size:9px;margin-top:4px}.customer-preset-row>span{display:flex;align-items:center;gap:3px;flex-shrink:0}.customer-preset-row .button.mini{width:auto;height:25px;padding:0 7px;font-size:10px}
.material-library-actions{display:flex;justify-content:flex-end;gap:6px;margin:9px 0 2px}.material-library-actions .button{height:28px;font-size:10px;padding:0 7px}.material-import-input{display:none}
.action-row-actions{display:inline-flex;gap:2px;margin-left:4px;flex-shrink:0}.action-row-actions .row-action{padding:0 2px}
.preset-inherit-hint{font-size:10px;color:#6f8380;background:#f4f8f6;border:1px solid #e1ece8;border-radius:5px;padding:9px 10px;margin:0 0 14px;line-height:1.5}
.customer-preset-modal{width:min(620px,100%);max-height:90vh;overflow:auto}.customer-preset-modal-body{min-height:0}.customer-preset-modal .customer-preset-library{border:0;margin:0;padding:0}.customer-preset-modal .customer-preset-form{margin-top:0}.customer-preset-add{height:30px;font-size:10px;padding:0 9px;margin-left:auto}.customer-preset-add svg{width:14px;height:14px}
.mold-modal{width:min(980px,100%);max-height:92vh;overflow:auto}.mold-order-section{background:#f7faf8;border:1px solid #e3ece8;border-radius:6px;padding:14px 15px 0}.mold-form-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}.mold-form-heading h3{font-size:13px;margin:0 0 4px}.mold-form-heading p{font-size:10px;color:#879994;margin:0}.mold-detail-heading{margin-top:18px}.mold-detail-heading .button{height:31px;flex-shrink:0}.mold-lines-scroll{overflow-x:auto;border:1px solid #dfe9e5;border-radius:6px}.mold-lines-table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;white-space:nowrap}.mold-lines-table th{background:#edf6f2;color:#5c7973;text-transform:none;letter-spacing:0;font-size:10px;padding:9px 6px;text-align:center;border-bottom:1px solid #dbe9e3}.mold-lines-table td{padding:7px 5px;vertical-align:middle}.mold-lines-table td:first-child{padding-left:8px}.mold-lines-table input,.mold-lines-table select{height:31px;border:1px solid #d7e2de;border-radius:4px;padding:0 6px;outline:0;color:var(--ink);background:#fff;font-size:11px}.mold-lines-table input:focus,.mold-lines-table select:focus{border-color:var(--teal);box-shadow:0 0 0 2px #e4f2ef}.mold-lines-table [data-field="modelName"]{width:105px}.mold-lines-table [data-field="component"]{width:100px}.mold-lines-table [data-field="moldNo"]{width:145px}.mold-lines-table [data-field="product"]{width:150px}.mold-lines-table [data-field="price"]{width:125px}.mold-lines-table [data-field="status"]{width:105px}.mold-lines-table .line-number{color:#8ba29d;font-weight:700;text-align:center}.mold-lines-table .icon-button{margin:0 auto}.mold-batch-summary{display:flex;justify-content:flex-end;gap:22px;background:#f4f8f6;color:#718781;font-size:10px;padding:10px 12px;margin-top:8px;border-radius:5px}.mold-batch-summary strong{font:700 12px 'DM Sans','Noto Sans SC',sans-serif;color:var(--teal);margin-left:4px}@media(max-width:760px){.mold-modal{max-height:95vh}.mold-form-heading{align-items:flex-start}.mold-order-section{padding:12px 12px 0}.mold-batch-summary{justify-content:space-between;gap:8px}}

/* Goal and battle map linkage */
.bp-goal-panel,.bp-command-panel{padding:22px;min-width:0}.bp-owner-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:11px}.bp-owner-summary-heading>div:first-child strong,.bp-owner-summary-heading>div:first-child span{display:block}.bp-owner-summary-heading>div:first-child strong{font-size:13px;color:var(--ink)}.bp-owner-summary-heading>div:first-child span{font-size:9px;color:#8b9e9b;margin-top:4px}.bp-company-gap{text-align:right}.bp-company-gap span,.bp-company-gap strong,.bp-company-gap small{display:inline;font-size:10px}.bp-company-gap span{color:#81938f}.bp-company-gap strong{font:700 14px 'DM Sans','Noto Sans SC',sans-serif;margin:0 4px}.bp-company-gap.risk strong{color:#9f2f2a}.bp-company-gap.done strong{color:var(--teal)}.bp-owner-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:8px}.bp-owner-card{border:1px solid #e4ede9;border-top:3px solid #cfdbd7;border-radius:6px;padding:13px 14px;min-width:0;background:#fbfdfc}.bp-owner-card.risk{border-top-color:#9f2f2a}.bp-owner-card.done{border-top-color:var(--teal)}.bp-owner-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.bp-owner-card-head span,.bp-owner-card-head strong{display:block}.bp-owner-card-head span{font-size:9px;color:#8b9e9b}.bp-owner-card-head strong{font-size:13px;color:var(--ink);margin-top:2px}.bp-owner-card-head small{font-size:9px;color:#98a9a5;white-space:nowrap}.bp-owner-gap{display:flex;align-items:baseline;gap:4px;margin:13px 0 11px}.bp-owner-gap span{font-size:9px;color:#81938f;margin-right:auto}.bp-owner-gap strong{font:700 22px 'DM Sans','Noto Sans SC',sans-serif;white-space:nowrap}.bp-owner-gap small{font-size:9px;color:#98a9a5}.bp-owner-card.risk .bp-owner-gap strong{color:#9f2f2a}.bp-owner-card.done .bp-owner-gap strong{color:var(--teal)}.bp-owner-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:9px;border-top:1px solid #e8efec}.bp-owner-metrics span,.bp-owner-metrics b{display:block}.bp-owner-metrics span{font-size:9px;color:#8b9e9b}.bp-owner-metrics b{font:600 11px 'DM Sans','Noto Sans SC',sans-serif;color:var(--ink);margin-top:3px}.bp-owner-progress{height:5px;background:#e7eeeb;border-radius:5px;margin:11px 0 6px;overflow:hidden}.bp-owner-progress span{display:block;height:100%;background:var(--teal);border-radius:inherit}.bp-owner-rate{display:flex;justify-content:space-between;font-size:9px;color:#82938f}.bp-owner-rate b{color:var(--ink)}.bp-owner-formula{color:#8b9e9b;font-size:9px;text-align:right;margin-bottom:20px}.bp-owner-empty{border:1px dashed #d9e5e0;background:#f8faf9;border-radius:6px;padding:22px;text-align:center;color:#81938f;font-size:10px;margin-bottom:20px}.bp-compat-hidden{display:none!important}.bp-section-heading{margin:4px 0 12px}.bp-section-heading h2{font-size:15px}.bp-table-scroll{border:1px solid #e5ece9;border-radius:6px;overflow:auto}.bp-table{width:100%;border-collapse:collapse;min-width:760px}.bp-table th{background:#f2f6f4;color:#6f8580;font-size:10px;font-weight:700;letter-spacing:0;padding:10px 9px;text-align:left;white-space:nowrap;border-bottom:1px solid #dfe8e4}.bp-table td{font-size:10px;color:#60746f;padding:9px;border-bottom:1px solid #edf1ef;vertical-align:top}.bp-table tbody tr:last-child td{border-bottom:0}.bp-table td strong{color:var(--ink);font-size:11px}.bp-table .money-wan{text-align:right}.bp-target-table th:nth-child(n+3){text-align:right}.bp-target-table .money-wan{font:600 12px 'DM Sans','Noto Sans SC',sans-serif;font-variant-numeric:tabular-nums}.bp-subtotal td{background:#f8faf9;color:#405e58;font-weight:700;border-top:1px solid #dce7e2}.bp-positive{color:var(--teal)!important}.bp-target-input{width:100px;height:29px;border:1px solid #d5e1dc;border-radius:4px;padding:0 6px;text-align:right;color:var(--ink);background:#fff9e9}.bp-table-tabs{display:grid;grid-template-columns:repeat(3,1fr);margin:5px 0 18px;border:1px solid #dfe8e4;border-radius:6px;overflow:hidden}.bp-table-tabs button{height:39px;border:0;border-right:1px solid #dfe8e4;background:#fff;color:#6f827e;font-size:11px;font-weight:600;cursor:pointer}.bp-table-tabs button:last-child{border-right:0}.bp-table-tabs button.selected{background:#eaf4f0;color:var(--teal)}.bp-inline-summary,.bp-project-toolbar{display:flex;align-items:center;gap:18px;background:#f6f9f7;border:1px solid #e4ece8;border-radius:6px;padding:10px 12px;margin-bottom:12px;color:#71847f;font-size:10px}.bp-inline-summary b,.bp-project-toolbar b{color:var(--ink);margin-left:4px}.bp-inline-summary span:last-child{margin-left:auto;color:#a36b27}.bp-action-table{min-width:1450px}.bp-project-table{width:max-content;min-width:100%}.bp-project-table th,.bp-project-table td{min-width:72px;text-align:right}.bp-project-table th:first-child,.bp-project-table td:first-child,.bp-project-table th:nth-child(2),.bp-project-table td:nth-child(2),.bp-project-table th:nth-child(3),.bp-project-table td:nth-child(3){text-align:left}.bp-project-table .bp-annual-total{background:#eef6f3;color:var(--teal);font-weight:700}.bp-project-toolbar .segmented{flex-shrink:0}.bp-project-toolbar>span{margin-left:auto}.bp-category{display:inline-block;padding:3px 6px;border-radius:4px;white-space:nowrap;background:#eef2f0;color:#60746f}.bp-category.action{background:#e8f4ef;color:var(--teal)}.bp-category.gap{background:#fff0e8;color:#a85a33}.bp-category.future{background:#f0eef7;color:#6e6290}.bp-row-actions{display:flex;gap:2px;white-space:nowrap}.bp-converted{opacity:.58}.bp-modal{width:min(820px,100%);max-height:92vh;overflow:auto}.bp-project-modal{width:min(940px,100%);max-height:92vh;overflow:auto}.bp-month-editor fieldset{border:1px solid #dfe9e5;border-radius:6px;margin:13px 0;padding:11px}.bp-month-editor legend{padding:0 5px;color:#526d67;font-size:11px;font-weight:700}.bp-month-editor fieldset>div{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.bp-month-editor label{margin:0!important;font-size:9px!important}.bp-month-editor input{height:29px!important;margin-top:4px!important;text-align:right}.bp-project-modal .modal-actions{position:sticky;bottom:-1px;background:#fff;padding-bottom:2px}.bp-command-panel+.battle-support-grid{margin-top:18px}
@media(max-width:900px){.bp-owner-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bp-month-editor fieldset>div{grid-template-columns:repeat(4,1fr)}}
@media(max-width:760px){.bp-goal-panel,.bp-command-panel{padding:16px}.bp-owner-summary-heading{align-items:flex-start}.bp-company-gap{max-width:130px}.bp-owner-summary-grid{grid-template-columns:1fr;gap:7px}.bp-owner-card{padding:11px}.bp-owner-gap strong{font-size:20px}.bp-owner-formula{text-align:left;line-height:1.6}.bp-table-tabs button{font-size:9px}.bp-inline-summary,.bp-project-toolbar{align-items:flex-start;flex-wrap:wrap;gap:8px}.bp-inline-summary span:last-child,.bp-project-toolbar>span{margin-left:0;width:100%}.bp-month-editor fieldset>div{grid-template-columns:repeat(3,1fr)}}
.bp-target-table .variance-cell{color:#9f2f2a!important;font-weight:800!important}
.bp-legacy-target{display:block;margin-top:3px;color:#9a7a45;font:500 8px 'Noto Sans SC',sans-serif;white-space:nowrap}.bp-target-editor-table{width:max-content;min-width:100%}.bp-target-editor-table th,.bp-target-editor-table td{text-align:right;vertical-align:middle}.bp-target-editor-table th:first-child,.bp-target-editor-table td:first-child,.bp-target-editor-table th:nth-child(2),.bp-target-editor-table td:nth-child(2){text-align:left}.bp-target-editor-table .bp-target-input{width:82px}.bp-target-modal{width:min(1180px,100%);max-height:92vh;overflow:auto}.bp-target-modal .modal-actions{position:sticky;bottom:-1px;background:#fff;padding-bottom:2px}
.customer-source-details,.bp-other-details{margin-top:5px;white-space:normal}.customer-source-details summary,.bp-other-details summary{color:var(--teal);font-size:9px;cursor:pointer;white-space:nowrap}.customer-source-details>div,.bp-other-details>div{display:grid;gap:4px;margin-top:6px;padding:7px 8px;background:#f5f8f7;border:1px solid #e3ebe8;border-radius:5px;min-width:220px}.customer-source-details span,.bp-other-details span{display:flex;justify-content:space-between;gap:12px;color:#70827e;font-size:9px}.customer-source-details b,.bp-other-details b{color:#526a65;font-weight:600}.customer-source-details em,.bp-other-details em{font-style:normal;white-space:nowrap}.bp-other-details>div{min-width:260px;max-height:210px;overflow:auto}
.customer-owner-select{min-width:104px;height:30px;border:1px solid #d5e1dc;border-radius:5px;background:#fff;color:var(--ink);padding:0 25px 0 8px;font-size:11px}.customer-owner-select:focus{outline:2px solid rgba(22,125,120,.16);border-color:var(--teal)}.customer-owner-select:disabled{background:#f3f6f5;color:#8b9e9b}
.bp-action-table{min-width:1640px}.bp-linked-contribution{color:var(--teal)!important;font-weight:700!important}.bp-action-table .variance-cell{color:#9f2f2a!important;font-weight:800!important}
.bp-action-table th:nth-child(n+4):nth-child(-n+7),.bp-action-table td:nth-child(n+4):nth-child(-n+7){min-width:108px;text-align:right;font-variant-numeric:tabular-nums}
.sales-filter-controls,.customer-sales-filters{display:flex;align-items:center;gap:7px}.mold-modal{width:min(1180px,100%)}.mold-table{min-width:1560px}.mold-lines-table [data-field="internalMoldNo"],.mold-lines-table [data-field="customerPartNo"],.mold-lines-table [data-field="internalPartNo"]{width:145px}.mold-lines-table [data-field="purchasePrice"]{width:125px}.mold-lines-table [data-field="supplier"]{width:150px}@media(max-width:760px){.sales-filter-controls,.customer-sales-filters{width:100%}.sales-filter-controls .compact-select,.customer-sales-filters .compact-select{flex:1;min-width:0}.mold-batch-summary{flex-wrap:wrap}}
.auth-gate{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;background:#edf3f0;padding:20px}.auth-gate.hidden{display:none}.auth-panel{width:min(390px,100%);background:#fff;border:1px solid #dce7e2;border-radius:8px;padding:30px;box-shadow:0 20px 55px rgba(23,54,58,.14)}.auth-brand{display:grid;place-items:center;width:44px;height:44px;border-radius:7px;background:var(--teal);color:#fff;font-weight:800;margin-bottom:20px}.auth-panel h1{font-size:21px;margin:0 0 8px}.auth-panel>p{font-size:11px;color:#71847f;margin:0 0 22px}.auth-panel label{display:block;font-size:10px;color:#60746f;font-weight:700;margin:0 0 14px}.auth-panel input,.auth-panel select{display:block;width:100%;height:39px;margin-top:6px;border:1px solid #d7e2de;border-radius:5px;padding:0 10px;background:#fff;color:var(--ink)}.auth-panel .button{width:100%;height:40px;justify-content:center}.auth-error{min-height:18px;color:#9f2f2a!important;margin:0 0 8px!important}.workspace-logout{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border:0;background:transparent;color:#9bb2ae;cursor:pointer}.workspace-logout svg{width:14px;height:14px}.workspace-logout:hover{color:#fff}
/* Mold task order */
 .mold-task-order-modal{width:min(1180px,100%);max-height:92vh;overflow:auto}.mold-task-order-modal .modal-header p:last-child{margin:4px 0 0;color:#81938f;font-size:10px}.task-order-head-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}.task-order-head-grid label,.task-order-remarks{display:block;color:#617773;font-size:10px;font-weight:600}.task-order-head-grid input,.task-order-head-grid select,.task-order-remarks textarea{display:block;width:100%;margin-top:6px;border:1px solid #d7e2de;border-radius:5px;background:#fff;color:var(--ink);outline:0}.task-order-head-grid input,.task-order-head-grid select{height:34px;padding:0 8px}.task-order-remarks{margin-top:12px}.task-order-remarks textarea{padding:8px;resize:vertical}.task-order-summary{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:14px 0 10px;padding:10px 12px;border:1px solid #e1ebe7;border-radius:5px;background:#f4f8f6;color:#718781;font-size:10px}.task-order-summary strong{margin-left:3px;color:var(--teal);font-size:11px}.task-order-lines-table [data-task-field="internalPartNo"]{width:150px}.task-order-lines-table [data-task-field="task"],.task-order-lines-table [data-task-field="product"]{width:110px}.task-order-lines-table [data-task-field="material"]{width:120px}.task-order-lines-table [data-task-field="shotCount"]{width:100px}.task-order-lines-table [data-task-field="customerT1Date"],.task-order-lines-table [data-task-field="deliveryDate"]{width:130px}.task-order-lines-table [data-task-field="supplier"],.task-order-lines-table [data-task-field="notes"]{width:145px}.task-order-lines-table [data-task-field="salePrice"],.task-order-lines-table [data-task-field="purchasePrice"]{width:125px}@media(max-width:760px){.task-order-head-grid{grid-template-columns:1fr}.mold-task-order-modal{max-height:95vh}}

/* Demand matrix widths and frozen offsets are calculated together. */
.plan-matrix-scroll{isolation:isolate}.plan-matrix-scroll table{table-layout:fixed;min-width:0}.plan-matrix-scroll th{background:#173f43;color:#e5f0ed;padding-right:16px}.plan-matrix-scroll td{background:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plan-matrix-scroll tbody .plan-sticky{background:#eef4f2}.plan-matrix-scroll tbody tr:hover .plan-sticky{background:#e2eeea}.plan-matrix-scroll .plan-sticky{width:auto;min-width:0;max-width:none}.plan-column-label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plan-matrix-scroll .plan-product-col{box-shadow:2px 0 0 #c8d9d3}.plan-matrix-scroll .plan-quantity-input{width:100%;min-width:0}.plan-matrix-scroll .plan-customer-col{left:var(--plan-customer-left)}.plan-matrix-scroll .plan-actual-col{left:var(--plan-actual-left)}.plan-matrix-scroll .plan-part-col{left:var(--plan-part-left)}.plan-matrix-scroll .plan-internal-col{left:var(--plan-internal-left)}.plan-matrix-scroll .plan-product-col{left:var(--plan-product-left)}
.plan-matrix-scroll .plan-resize-handle{right:0;width:12px;touch-action:none}.plan-resize-handle::after{content:"";position:absolute;top:9px;bottom:9px;right:3px;width:2px;background:#a9c8c2}.plan-column-resizing,.plan-column-resizing *{cursor:col-resize!important;user-select:none!important}
.plan-matrix-scroll td:not(.plan-sticky){padding-left:4px;padding-right:4px}.plan-matrix-scroll .plan-quantity-input{padding-left:4px;padding-right:4px}
.plan-sort-button{display:flex;align-items:center;gap:5px;width:100%;padding:0;background:transparent;color:inherit;text-align:inherit;font:inherit}.plan-sort-button .plan-column-label{flex:1;min-width:0}.plan-sort-button:focus-visible{outline:2px solid #a9c8c2;outline-offset:2px}.plan-monitor-actions{display:flex;gap:8px;flex-wrap:wrap;flex:0 0 auto;margin-bottom:12px}.inventory-import-status{font-size:11px;color:#617773;overflow-wrap:anywhere;text-align:right}.plan-matrix-meta{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.demand-matrix-modal .modal-header-actions{flex-wrap:wrap;justify-content:flex-end;max-width:50%}.plan-matrix-scroll .plan-inventory-cell{background:#f2f7fb;text-align:right;font-variant-numeric:tabular-nums;font-weight:600}#matrix-demand-modal{z-index:60}#matrix-demand-error{color:#9f2f2a}.plan-empty-quantity .plan-quantity-input:hover{background:#eef6f3}
/* Monthly baselines and rolling production planning. */
.revenue-table-scroll, .production-plan-scroll { max-height: 65vh; overflow: auto; }
.revenue-table, .production-plan-table { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-variant-numeric: tabular-nums; }
.revenue-table th, .revenue-table td, .production-plan-table th, .production-plan-table td { min-width: 110px; padding: 12px; text-align: right; white-space: nowrap; }
.revenue-table th, .production-plan-table th { background: #eef3f5; color: #243746; position: sticky; top: 0; z-index: 2; }
#view-monthly-plan .revenue-table thead tr:first-child th { position: static; }
.revenue-table td:first-child, .production-plan-table td:first-child { position: sticky; left: 0; z-index: 1; background: #f5f8fa; text-align: left; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.revenue-table small, .production-plan-table small { display: block; font-size: 11px; font-weight: 400; color: #657481; margin-top: 5px; }
.revenue-gap, .revenue-table .revenue-gap, .production-plan-table .revenue-gap { color: #991b1b; font-weight: 700; }
.revenue-plan-modal { width: min(1100px, 96vw); max-height: 90vh; overflow: auto; }
.revenue-plan-modal input:not([type=checkbox]) { min-width: 110px; width: 100%; padding: 9px; border: 1px solid #d9e1e6; border-radius: 6px; }
.revenue-plan-modal label { display: block; margin-top: 15px; }
.revenue-plan-modal [hidden] { display: none !important; }
.revenue-plan-modal details { border-top: 1px solid #e1e6eb; padding: 12px 0; }
#monthly-plan-error { color: #991b1b; }
.production-periods { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 16px; }
.production-periods label { display: grid; gap: 5px; color: #526577; font-size: 12px; }
.production-periods input { padding: 7px; border: 1px solid #d9e1e6; border-radius: 6px; }
.production-plan-table input { width: 105px; padding: 8px; text-align: right; border: 1px solid #d9e1e6; border-radius: 5px; background: #fffdf3; }
.production-plan-table td:nth-child(2), .production-plan-table td:nth-child(3) { max-width: 190px; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.production-delivery-links { margin-top: 20px; padding: 12px; }
.production-matrix-toolbar,.production-matrix-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.matrix-zoom-controls{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-bottom:10px}.matrix-zoom-controls input[type=range]{width:110px;accent-color:#327d74}.matrix-zoom-controls output{width:42px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}
.production-plan-scroll{isolation:isolate;border:1px solid #ccd7db}
.production-plan-table{table-layout:fixed;min-width:0;border-spacing:0}
.production-plan-table th,.production-plan-table td,.production-plan-table td:nth-child(2),.production-plan-table td:nth-child(3){min-width:0;max-width:none;padding:9px 10px;border-right:1px solid #ccd7db;border-bottom:1px solid #dce3e6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;vertical-align:middle}
.production-plan-table th{background:#edf1f4;height:70px;padding-right:16px;letter-spacing:0;color:#29404a;z-index:4}
.production-plan-table th .plan-sort-button{white-space:normal;overflow-wrap:anywhere;line-height:1.4;justify-content:flex-end}
.production-plan-table .production-text,.production-plan-table td.production-text:first-child{text-align:left;background:#f0f4f5}
.production-plan-table th.production-text .plan-sort-button{justify-content:flex-start}
.production-plan-table .production-number{text-align:right;background:#fff}
.production-plan-table th.production-number{background:#edf1f4}
.production-plan-table th.production-stage-0{background:#dceee4}
.production-plan-table th.production-stage-1{background:#dceaf8}
.production-plan-table th.production-stage-2{background:#fbefcb}
.production-plan-table th.production-stage-3{background:#eee1ee}
.production-plan-table td:first-child{position:static;max-width:none;z-index:auto}
.production-plan-table td.production-frozen{position:sticky;z-index:2;background:#f0f4f5}
.production-plan-table th.production-frozen{z-index:6}
.production-plan-table td input{width:100%;min-width:0;max-width:100%;height:30px;padding:3px 5px;text-align:right;font:inherit;border:1px solid #cad7dc;border-radius:3px;background:#fff}
.production-plan-table td.production-edited input{border-color:#559988;background:#f3faf7}
.production-restore{height:22px;width:24px;display:inline-grid;place-items:center;background:transparent;color:#327d74;vertical-align:middle}.production-restore svg{width:13px;height:13px}
.production-plan-table tfoot td{background:#edf1f4;font-weight:700}
.production-resize-handle{position:absolute;right:0;top:0;bottom:0;width:10px;cursor:col-resize;touch-action:none;z-index:8}
.production-resize-handle::after{content:"";position:absolute;top:10px;bottom:10px;right:2px;width:2px;background:#a2b5bd}
.production-resize-handle:focus-visible{outline:2px solid #327d74;outline-offset:-2px}
.production-matrix-modal{width:100%;max-width:1800px;height:92vh;max-height:92vh;display:flex;flex-direction:column;overflow:hidden}
#production-modal-content{flex:1;min-height:0;display:flex;flex-direction:column}
.production-matrix-modal .production-plan-scroll{flex:1;min-height:0;max-height:none}
.production-matrix-modal .production-matrix-toolbar{flex-shrink:0}
.production-import-modal{width:min(1000px,96vw);max-height:90vh;overflow:auto}
#production-import-modal{z-index:70}
.plan-matrix-scroll th,.plan-matrix-scroll td{border-right:1px solid #ccd7db;border-bottom:1px solid #dce3e6}
.plan-matrix-scroll .plan-date-col .plan-sort-button{justify-content:flex-end}
.demand-matrix-modal{max-width:100%}.demand-matrix-modal .matrix-zoom-controls{flex-shrink:0}
@media(max-width:760px){.production-matrix-modal{padding:14px}.production-matrix-toolbar .page-actions{flex-wrap:wrap}.production-matrix-toolbar{gap:6px}.matrix-zoom-controls{margin-bottom:5px}}
.demand-month-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.matrix-column-filter { display: block; width: calc(100% - 8px); min-width: 0; height: 26px; margin: 5px 4px 2px; padding: 3px 6px; border: 1px solid #aabfbb; border-radius: 3px; background: #fff; color: #244c50; font: inherit; font-weight: 400; }
.plan-matrix-scroll th[data-holiday]:not([data-holiday=""]) { background: #ffe6e5 !important; }
.plan-matrix-scroll th[data-holiday]:not([data-holiday=""]) .plan-sort-button { color: #a21c28; font-weight: 800; }
.plan-quantity-input.adjusted { color: #135f9b; background: #edf5ff; font-weight: 700; }
.plan-matrix-scroll td.stock-shortage, .production-plan-table td.stock-shortage, td.stock-shortage { background: #fff1df; color: #9a4500; }
.production-plan-table input.production-adjusted { color: #135f9b; background: #edf5ff; font-weight: 700; }
.demand-master-warnings { margin: 12px 0; padding: 12px; border: 1px solid #e7c9c9; border-radius: 5px; background: #fffafa; }
.demand-master-warnings summary { cursor: pointer; font-weight: 600; }
#demand-warning-items { max-height: 240px; overflow: auto; margin-top: 8px; line-height: 1.9; }
#demand-warning-items strong { color: #ac1d2b; }
.operations-todo-table small { display: block; margin-top: 5px; color: #657b78; white-space: normal; }
.operations-todo-modal { max-height: calc(100vh - 40px); overflow: auto; }
#operations-todo-error { color: #ac1d2b; }
.operations-overview { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-bottom: 20px; }
.operations-summary { min-width: 0; padding: 16px 0; border-top: 1px solid #ccd7db; border-bottom: 1px solid #ccd7db; }
.operations-summary h2 { font-size: 15px; margin: 0 0 8px; }
.operations-summary p { font-size: 12px; color: #53676b; margin: 0 0 10px; }
.operations-sales-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.operations-sales-numbers span, .operations-task-numbers span { display: block; font-size: 12px; color: #53676b; }
.operations-sales-numbers strong, .operations-task-numbers strong { display: block; margin-top: 8px; font-size: 22px; color: #20363d; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.operations-sales-numbers .operations-risk, .operations-overdue strong { color: #991b1b; }
.operations-urgent strong { color: #9a4500; }
.operations-task-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.operations-task-numbers button { padding: 8px; text-align: left; background: transparent; border-bottom: 2px solid transparent; }
.operations-task-numbers button[aria-pressed=true] { background: #eef4f2; border-bottom-color: #277b70; }
.operations-summary .operations-data-note { margin: 10px 0 0; color: #91421d; }
.customer-show-all { display: flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; }
.operations-todo-modal .operations-urgent-label { display: flex; align-items: center; gap: 8px; }
.operations-todo-modal .operations-urgent-label input { width: 16px; height: 16px; margin: 0; }
@media (max-width: 1000px) { .operations-overview { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 480px) { .operations-sales-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.operations-todo-table input[type=checkbox] { width: 18px; height: 18px; accent-color: #24796c; cursor: pointer; }
.engineering-overview-panel { margin-bottom: 20px; }
.engineering-overview-panel .panel-heading { align-items: flex-start; }
.engineering-overview-panel .panel-heading p { margin: 4px 0 0; color: #657b78; font-size: 12px; }
.engineering-overview-metrics { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.engineering-overview-metrics span { padding: 6px 9px; border: 1px solid #dbe4e3; background: #f7f9f8; font-size: 12px; color: #53676b; }
.engineering-overview-metrics strong { margin-left: 4px; color: var(--ink); font-variant-numeric: tabular-nums; }
.engineering-overview-table th,.engineering-overview-table td { vertical-align: middle; }
.engineering-overview-table td strong,.engineering-overview-table td small { display: block; }
.engineering-overview-table td small { margin-top: 4px; color: #657b78; }
.engineering-overview-progress { display: grid; grid-template-columns: minmax(80px,1fr) 40px; align-items: center; gap: 8px; }
.engineering-overview-progress>span { height: 7px; overflow: hidden; background: #e4ebe9; }
.engineering-overview-progress i { display: block; height: 100%; background: #24796c; }
.engineering-overview-progress strong { text-align: right; font-variant-numeric: tabular-nums; }
.engineering-overview-risk { color: #b33a2f !important; }
.engineering-overview-pending { color: #9a5b18; }
.engineering-overview-normal { color: #24796c; }
@media(max-width:760px){.engineering-overview-panel .panel-heading{display:grid;gap:10px}.engineering-overview-metrics{justify-content:flex-start}.engineering-overview-table{min-width:780px}}

/* Shared demand and production worksheet presentation. */
.plan-matrix-scroll th, .plan-matrix-scroll td, .production-plan-table th, .production-plan-table td,
.production-plan-table td:nth-child(2), .production-plan-table td:nth-child(3) {
  font-size: 13px; line-height: 1.45; letter-spacing: 0; font-variant-numeric: tabular-nums;
  padding: 7px 10px; color: #20363d; vertical-align: middle;
}
.plan-matrix-scroll th, .plan-matrix-scroll thead .plan-sticky { background: #edf1f4; color: #20363d; }
.plan-matrix-scroll th, .production-plan-table th { padding-right: 16px; font-weight: 650; }
.plan-matrix-scroll .plan-sort-button, .production-plan-table .plan-sort-button { line-height: 1.4; }
.plan-matrix-scroll .plan-quantity-input, .production-plan-table td input { font: inherit; color: #20363d; }
.plan-matrix-scroll .plan-quantity-input.adjusted, .production-plan-table td input.production-adjusted { color: #135f9b; }
.plan-matrix-scroll td.stock-shortage, .production-plan-table td.stock-shortage { color: #9a4500; }
.plan-matrix-scroll .matrix-column-filter, .production-plan-table .matrix-column-filter { font-size: 12px; color: #20363d; }
.production-matrix-toolbar .matrix-zoom-controls { margin-bottom: 0; }
.production-matrix-toolbar .page-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.production-matrix-toolbar .icon-button { flex: 0 0 34px; }
#view-demand .page-intro { align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
#view-demand .page-intro h1 { font-size: 23px; margin: 0; }
.demand-month-metrics { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.demand-month-metrics > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.demand-month-metrics span { font-size: 12px; color: #52656b; }
.demand-month-metrics strong { font-size: 21px; color: #20363d; font-variant-numeric: tabular-nums; }
.demand-status-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 10px; font-size: 12px; }
#view-demand .demand-master-warnings { flex: 1; min-width: 180px; margin: 0; padding: 0; border: 0; background: transparent; }
#view-demand #demand-value-note { color: #8c3d24; font-size: 12px; }
#view-demand .plan-matrix-panel { padding: 12px 0 0; border: 0; border-top: 1px solid #ccd7db; border-radius: 0; box-shadow: none; }
#view-demand .plan-matrix-panel .panel-heading { margin-bottom: 8px; gap: 10px; flex-wrap: wrap; }
#view-demand .plan-matrix-panel h2 { font-size: 15px; }
#view-demand .plan-matrix-panel .panel-heading p { font-size: 12px; margin-top: 3px; }
#view-demand .plan-filter-bar, .demand-matrix-modal .plan-filter-bar { margin: 0 0 8px; gap: 8px; }
#view-demand .plan-filter-bar label, .demand-matrix-modal .plan-filter-bar label { flex: 0 1 170px; min-width: 0; font-size: 11px; }
#view-demand .plan-filter-bar input, #view-demand .plan-filter-bar select,
.demand-matrix-modal .plan-filter-bar input, .demand-matrix-modal .plan-filter-bar select { width: 100%; min-width: 0; height: 30px; margin-top: 0; padding: 3px 7px; font-size: 12px; }
#view-demand .plan-matrix-scroll { height: max(320px, calc(100vh - 355px)); max-height: none; border: 1px solid #ccd7db; }
.demand-matrix-toolbar { gap: 8px; margin-bottom: 8px; }
.matrix-more-menu { position: relative; }
.matrix-more-menu > summary { list-style: none; cursor: pointer; }
.matrix-more-menu > summary::-webkit-details-marker { display: none; }
.matrix-more-options { position: absolute; right: 0; top: 38px; z-index: 12; width: 174px; padding: 5px; border: 1px solid #ccd7db; border-radius: 5px; background: #fff; box-shadow: 0 5px 16px #20363d20; }
.matrix-more-options button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px; background: #fff; color: #20363d; text-align: left; font-size: 12px; }
.matrix-more-options button:hover { background: #edf3f5; }
.matrix-more-options svg { width: 16px; height: 16px; }
#view-demand .plan-history-panel { margin-top: 10px; padding: 8px 0; border-top: 1px solid #dce3e6; font-size: 12px; color: #52656b; }
.plan-history-panel > summary { cursor: pointer; font-weight: 600; }
.plan-history-panel .table-scroll { margin-top: 8px; max-height: 240px; }
.demand-matrix-modal { width: 100%; max-width: 1800px; height: 92vh; max-height: 92vh; }
.demand-matrix-modal .modal-header { margin-bottom: 12px; }
.demand-matrix-modal .production-matrix-summary { flex-shrink: 0; font-size: 12px; margin-bottom: 8px; }
.demand-matrix-modal .demand-matrix-toolbar { flex-shrink: 0; }
.demand-matrix-modal .plan-matrix-scroll { flex: 1; min-height: 0; max-height: none; }
#plan-preview-modal, #plan-mapping-modal { z-index: 70; }
@media (max-width: 760px) {
  .demand-matrix-modal { padding: 14px; }
  .demand-month-metrics { gap: 6px 16px; }
  .demand-month-metrics strong { font-size: 18px; }
  .demand-matrix-toolbar .page-actions { gap: 3px; }
  .demand-matrix-toolbar .page-actions .button { width: auto; flex: 0 0 auto; padding: 0 8px; }
  .demand-matrix-modal .plan-filter-bar label, #view-demand .plan-filter-bar label { flex: 1 1 100px; }
}

/* Engineering projects and supplier milestones */
.engineering-overview { display: flex; flex-wrap: wrap; gap: 16px 32px; padding: 16px 20px; background: #fff; border: 1px solid #e0e5ec; border-radius: 12px; margin-bottom: 18px; }
.engineering-overview b { font-size: 22px; margin-left: 8px; color: #21364b; }
.engineering-project-card { margin-bottom: 14px; padding: 0; overflow: hidden; }
.engineering-project-card > summary { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(180px, 1.2fr) minmax(110px, .7fr) minmax(140px, 1fr); gap: 16px; align-items: center; padding: 18px 20px; cursor: pointer; background: #f5f8fc; border-left: 4px solid #476f95; }
.engineering-project-card > summary > div { display: grid; gap: 6px; }
.engineering-project-card > summary > div:first-child > strong::before { content: '▸ '; color: #476f95; }
.engineering-project-card[open] > summary > div:first-child > strong::before { content: '▾ '; }
.engineering-project-card summary { font-size: 13px; color: #25394c; list-style: none; }
.engineering-project-card summary::-webkit-details-marker { display: none; }
.engineering-project-card summary strong { font-size: 14px; }
.engineering-project-card summary small { color: #596b7e; }
.engineering-project-body { padding: 16px; }
.engineering-card-heading, .engineering-card-actions, .engineering-mold-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.engineering-card-heading { justify-content: space-between; margin-bottom: 16px; font-size: 12px; color: #52677c; }
.engineering-card-actions .button, .engineering-mold-meta .button { min-height: 32px; height: auto; font-size: 12px; padding: 7px 10px; }
.engineering-stage-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(105px, 1fr); gap: 5px; overflow-x: auto; padding-bottom: 8px; }
.engineering-stage { display: grid; gap: 5px; padding: 10px 5px; text-align: center; background: #f3f5f8; border: 1px solid #dce3eb; border-radius: 6px; font-size: 13px; }
.engineering-stage small { font-size: 11px; white-space: nowrap; }
.engineering-stage.done { background: #e8f4ed; color: #1d6344; }
.engineering-stage.key-stage { border-top: 3px solid #bf741d; }
.engineering-key-ranges { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 12px; color: #80501b; margin: 4px 0 16px; }
.engineering-key-ranges span:first-child { font-weight: 700; }
.engineering-mold { border: 1px solid #dce3eb; border-radius: 8px; margin: 10px 0; overflow: hidden; }
.engineering-mold > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; padding: 14px; background: #f8fafc; cursor: pointer; }
.engineering-mold > summary > strong:first-child::before { content: '▸ '; }
.engineering-mold[open] > summary > strong:first-child::before { content: '▾ '; }
.engineering-mold-meta { font-size: 12px; color: #465b70; padding: 12px 14px; }
.engineering-progress-value { display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; }
.engineering-progress-value progress { width: 80px; height: 8px; accent-color: #397b71; }
.engineering-risk, .engineering-overview .engineering-risk { color: #a11d28; font-weight: 700; }
.engineering-table { width: 100%; font-size: 13px; color: #26384b; }
.engineering-table th, .engineering-table td { text-align: center; padding: 10px 12px; border: 1px solid #e0e5ec; white-space: nowrap; }
.engineering-table th { background: #edf2f8; color: #354e68; }
.engineering-table td:first-child, .engineering-table th:first-child { text-align: left; }
.engineering-table .engineering-late { background: #fff6f5; }
.engineering-table small { display: block; font-size: 11px; margin-top: 4px; }
.engineering-nodes-modal { width: min(1120px, 96vw); max-height: 92vh; overflow: auto; }
#mold-form > .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; }
#mold-form > .form-grid label { margin-bottom: 6px; }
#mold-form .modal-actions { flex-wrap: wrap; }
.mold-line-more { min-width: 145px; }
.mold-line-more summary { color: #246d69; cursor: pointer; padding: 8px 0; }
.mold-line-more label { display: block; margin: 8px 0; font-size: 11px; color: #52677c; }
.mold-lines-table input[readonly] { background: #f2f5f8; color: #52677c; }
.mold-price-editor { width: 190px; display: grid; gap: 5px; }
.mold-price-editor > input { width: 100%; }
.mold-price-options { display: flex; align-items: center; gap: 5px; }
.mold-price-options select { width: 60px; }
.mold-price-options label { display: flex; align-items: center; gap: 3px; margin: 0; font-size: 10px; }
.mold-price-options input[data-tax-rate] { width: 72px; }
.mold-price-editor small { color: #52677c; font-size: 10px; white-space: normal; }
.mold-price-editor .invalid, #mold-import-messages .invalid { color: #b42318; }
.mold-import-modal { width: min(1280px, 96vw); max-height: 92vh; overflow: auto; }
#mold-import-messages { max-height: 150px; overflow: auto; font-size: 12px; }
#mold-import-rows td { white-space: normal; min-width: 100px; }
#mold-import-rows select { max-width: 240px; }
@media (max-width: 760px) { #mold-form > .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { #mold-form > .form-grid { grid-template-columns: 1fr; } }
.engineering-table input, .engineering-table select { min-width: 115px; font-size: 13px; padding: 8px; }
.engineering-table input[data-field="reason"] { min-width: 150px; }
.engineering-preview-modal { max-height: 92vh; overflow: auto; }
@media (max-width: 900px) { .engineering-project-card > summary { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .engineering-project-card > summary { grid-template-columns: 1fr; padding: 14px; } .engineering-project-body { padding: 10px; } .engineering-overview { gap: 12px 20px; } }
.mold-group-row td{padding:0!important;border-top:1px solid #dfeae5;background:#f5f9f7}.mold-customer-group td{background:#eaf4f0}.mold-model-group td{background:#f7faf8}.mold-fold-toggle{display:flex;align-items:center;gap:8px;width:100%;min-height:40px;padding:8px 12px;border:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer}.mold-fold-toggle:hover{background:#e1f0eb}.mold-fold-toggle svg{width:15px;height:15px;color:var(--teal);flex-shrink:0}.mold-fold-toggle strong,.mold-fold-toggle span{font-size:11px}.mold-fold-toggle>span:last-child{margin-left:auto;color:#82948f;font-size:10px}.mold-model-group .mold-fold-toggle{padding-left:30px;min-height:36px}.mold-model-group .mold-fold-toggle span{font-weight:600}.mold-model-group .mold-fold-toggle small{margin-left:auto;color:#82948f;font-size:10px}

/* Compact personal notification settings */
.settings-panel{max-width:960px}.settings-panel .mail-config-row{display:block;align-items:initial}.settings-panel .mail-config-row>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:20px}.settings-panel .mail-config-row>div:first-child h2{flex-shrink:0}.settings-panel .mail-config-row>div:first-child p{text-align:right}.mail-config-row .notification-settings-form{display:grid;grid-template-columns:minmax(190px,1.2fr) minmax(160px,.9fr) minmax(190px,1.1fr);gap:12px 14px;width:100%;max-width:none;margin:16px 0 0;padding:15px;background:#f6f9f7;border:1px solid #e4ece8;border-radius:6px;align-items:end}.notification-settings-form>.form-grid{display:contents}.notification-settings-form label{min-width:0;margin:0;line-height:1.4;white-space:normal}.notification-settings-form input[type=email],.notification-settings-form input[type=url],.notification-settings-form input[type=text],.notification-settings-form input[type=password]{width:100%;height:34px;margin-top:6px;background:#fff}.notification-settings-form .inline-checkbox{display:flex;align-items:center;gap:8px;height:34px;margin:0;padding:0 11px;background:#fff;border:1px solid #dfe8e4;border-radius:5px;white-space:nowrap}.notification-settings-form .inline-checkbox input{width:15px;height:15px;margin:0;flex:0 0 15px}.notification-settings-actions{grid-column:1/-1;min-height:35px;margin:2px 0 0;padding-top:12px;border-top:1px solid #e0e9e5;justify-content:flex-end}.notification-settings-actions .setting-status{margin-right:auto}.notification-settings-actions .button{height:34px}.notification-settings-actions .button-ghost{padding:0 10px}
@media(max-width:900px){.mail-config-row .notification-settings-form{grid-template-columns:1fr 1fr}.notification-settings-actions{grid-column:1/-1}}
@media(max-width:620px){.settings-panel .mail-config-row>div:first-child{display:block}.settings-panel .mail-config-row>div:first-child p{text-align:left;margin-top:5px}.mail-config-row .notification-settings-form{grid-template-columns:1fr}.notification-settings-actions{grid-column:1;align-items:stretch}.notification-settings-actions .button{width:100%}}

.nav-item[hidden]{display:none!important}

/* Uploaded quotation archive */
.quote-archive-table{min-width:1320px}.quote-archive-heading{gap:18px}.quote-archive-controls{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap}.quote-row-actions{display:inline-flex;gap:5px}.stage.lost{background:#f1f2f2;color:#6f7c79}.quote-project-revenue{padding:11px 12px;background:#f4f8f6;border:1px solid #dce9e4;border-radius:6px;color:var(--teal);font-size:12px;font-weight:700}.quote-review-modal{width:min(1400px,96vw);max-height:94vh;overflow:auto}.quote-review-source,.quote-review-total{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#f4f8f6;border:1px solid #dce9e4;border-radius:6px;padding:11px 13px;margin-bottom:12px}.quote-review-source span,.quote-review-table small{font-size:10px;color:#78908a}.quote-review-warnings{margin:0 0 14px;padding:10px 14px 10px 31px;background:#fff7ed;border:1px solid #fed7aa;border-radius:6px;color:#9a3412;font-size:11px;line-height:1.7}.quote-review-fields{grid-template-columns:repeat(5,minmax(150px,1fr));margin-bottom:10px}.quote-review-scroll{overflow:auto;max-height:50vh;border:1px solid #dbe7e3;border-radius:6px}.quote-review-table{border-collapse:separate;border-spacing:0;min-width:1900px;width:100%}.quote-review-table th{position:sticky;top:0;z-index:1;background:#e7f1ed;color:#476a63;font-size:10px;padding:9px 6px;border-bottom:1px solid #cadbd5;white-space:nowrap}.quote-review-table td{padding:6px;border-top:1px solid #edf2f0;vertical-align:middle}.quote-review-table input,.quote-review-table select{height:30px;min-width:82px;border:1px solid #cfddd8;border-radius:4px;padding:0 6px;background:#fff;color:var(--ink);font-size:10px}.quote-review-table td:first-child input{min-width:145px}.quote-review-table td:nth-child(2) input{min-width:120px}.quote-review-table input[type=checkbox]{min-width:18px;width:18px}.quote-review-total{justify-content:flex-end;margin-top:12px;margin-bottom:0}.quote-review-total span{font-size:11px;color:#607a74}.quote-review-total strong{color:var(--teal);margin-left:4px}.quote-archive-table .money{min-width:145px}.quote-archive-table td:last-child{white-space:nowrap}
@media(max-width:900px){.quote-archive-heading{align-items:stretch;flex-direction:column}.quote-archive-controls{justify-content:flex-start}.quote-archive-controls .compact-search{width:100%}.quote-review-fields{grid-template-columns:1fr 1fr}.quote-review-modal{width:98vw}.quote-review-total{align-items:flex-start;flex-direction:column;gap:7px}}
