:root{font-family:system-ui,sans-serif;color:#22324a;background:#f3f6fa}*{box-sizing:border-box}body{margin:0}header{display:flex;gap:20px;align-items:center;padding:20px 32px;background:#102b49;color:white}header strong{font-size:28px}#identity{margin-left:auto}main{max-width:1100px;margin:24px auto;padding:0 20px}.panel{background:white;border:1px solid #dce3ed;border-radius:12px;padding:24px;margin:20px 0}.notice{background:#fff7df;padding:16px;border-radius:8px;font-size:14px;line-height:1.7}h1{font-size:23px}h2{font-size:18px;margin-top:28px}form{display:flex;flex-wrap:wrap;gap:14px;align-items:end}label{display:flex;flex-direction:column;gap:7px;font-size:14px}input,select,button{font:inherit;padding:10px;border:1px solid #bcc9d9;border-radius:6px}button{background:#16598a;color:white;cursor:pointer}button:disabled{opacity:.5}#entry{max-width:600px}#login-form{display:grid}#setup-fields{display:grid;gap:14px}[hidden]{display:none!important}#message{color:#b32b20;white-space:pre-wrap}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{padding:12px;text-align:left;border-bottom:1px solid #e4eaf1}th{background:#edf3f9}.user{border-top:1px solid #ddd;padding:16px 0}.user form{margin-top:12px}.user input[type=checkbox]{width:20px;height:20px}p{line-height:1.6}a{color:#16598a}
.kanban{display:flex;gap:12px;overflow:auto}.column{min-width:220px;flex:1;background:#edf3f9;padding:12px;border-radius:8px}.case-card{background:white;border:1px solid #dce3ed;padding:14px;margin:12px 0;border-radius:8px}.case-card button{display:block;margin-top:12px;font-size:12px}dialog{max-width:600px;width:90%;border:1px solid #bcc9d9;border-radius:12px;padding:24px}dialog::backdrop{background:#102b4980}dialog form{display:grid}dialog h2{margin:0}.edit-error{color:#b32b20}td button{margin-left:12px;font-size:12px}
.workflow-dialog{max-width:1000px;max-height:90vh;overflow:auto}.workflow-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.workflow-grid input,.workflow-grid select,.workflow-grid textarea{width:100%;min-width:0}.workflow-grid textarea{min-height:85px;font:inherit;padding:8px}td button{margin-top:6px}
.phase-summary{background:white;border:1px solid #dce3ed;border-radius:8px;padding:8px;font-size:13px}.phase-summary p{margin:4px}.loss-area{margin-top:16px;background:#faf0f0;min-height:100px}.loss-area .case-card{display:inline-block;vertical-align:top;width:220px;margin-right:12px}
#calendar-grid{max-height:520px;margin-top:16px;min-width:0}#calendar-grid table{table-layout:fixed;width:100%;min-width:0}#calendar-grid th,#calendar-grid td{min-width:0;padding:8px 4px;overflow-wrap:anywhere;text-align:center;font-size:12px}#calendar-grid thead th{position:sticky;top:0;z-index:1}#calendar-grid th:first-child{width:54px}#calendar-grid th div{font-size:11px;font-weight:normal;margin-top:8px}#calendar-grid button{width:100%;margin:0;padding:7px 2px;font-size:12px;white-space:normal;min-width:0}#calendar-grid meter{display:block;width:100%;min-width:0}.schedule-busy{background:#e8edf4}#calendar-block{margin-top:16px}
.hearing-checks{border:1px solid #dce3ed;border-radius:8px;padding:16px}.hearing-checks summary{cursor:pointer;font-weight:600;padding:10px 0}.hearing-checks details{border-top:1px solid #dce3ed;padding:8px 0}.hearing-checks p{font-size:13px;color:#52647a}
#jobs-view .table-wrap,.supplier-preview .table-wrap{max-height:500px}#jobs-table td{max-width:240px;min-width:100px;white-space:pre-wrap;overflow-wrap:anywhere}.job-source-details p{white-space:pre-wrap;overflow-wrap:anywhere}.supplier-preview{margin-top:18px}.supplier-preview details{padding:12px;border:1px solid #dce3ed;margin:12px 0}
.user fieldset{width:100%;border:1px solid #dce3ed;border-radius:8px;padding:14px;display:flex;flex-wrap:wrap;gap:12px}.user fieldset p{width:100%;margin:0;font-size:12px}.user fieldset label{flex-direction:row;align-items:center;min-width:160px}.user fieldset legend{font-weight:600}
.job-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:16px}.job-card{min-width:0;border:1px solid #dce3ed;border-radius:12px;padding:18px;background:#fff}.job-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;font-size:12px;color:#536477}.job-card h3{font-size:17px;line-height:1.5;margin:14px 0 6px;overflow-wrap:anywhere}.job-factory{margin:0 0 14px;color:#63738a;font-size:13px;overflow-wrap:anywhere}.job-state{border-radius:6px;padding:4px 7px;white-space:normal;overflow-wrap:anywhere}.job-state.is-active{background:#e7f6ef;color:#176446}.job-state.is-inactive{background:#fff1dc;color:#87551d}.job-card dl{margin:0;display:grid;gap:10px}.job-card dl>div{display:grid;grid-template-columns:88px minmax(0,1fr);gap:10px}.job-card dt{font-size:12px;color:#63738a}.job-card dd{margin:0;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.job-card-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:18px;padding-top:14px;border-top:1px solid #edf0f5}.job-card-bottom small{min-width:0;font-size:11px;color:#63738a;overflow-wrap:anywhere}.job-detail-action{flex-shrink:0}.job-detail-action button{font-size:12px}.jobs-empty{grid-column:1/-1;padding:28px;background:#f5f8fc;border-radius:10px}
.job-card-compact{display:flex;flex-direction:column;padding:16px;gap:14px}.job-company>span{font-size:11px;color:#63738a}.job-card-compact h3{margin:4px 0 0;font-size:17px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.job-card-compact dl{gap:0}.job-card-compact dl>div{padding:9px 0;border-bottom:1px solid #edf0f5;grid-template-columns:66px minmax(0,1fr)}.job-card-compact dd{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:13px}.job-card-compact dl>div:nth-child(2) dd{font-weight:700;color:#1856bd}.job-card-compact .job-detail-action{margin-top:auto;text-align:right}.job-card-compact.is-inactive{background:#f5f6f8;border-style:dashed}
.job-source-details dl{margin:16px 0}.job-source-details dl>div{display:grid;grid-template-columns:minmax(110px,25%) minmax(0,1fr);border-bottom:1px solid #e4eaf1;padding:12px 0;gap:16px}.job-source-details dt{color:#52647a;font-size:13px;font-weight:600}.job-source-details dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.job-source-details details{margin-top:20px;padding:14px;background:#f5f8fc;border-radius:8px}.job-source-details summary{cursor:pointer}
/* Daily workflow: navigation, readable groups and reachable actions. */
:root{color-scheme:light}main{max-width:1480px}header{padding:16px 28px}header span{font-size:14px}h1,h2,h3{letter-spacing:.02em}h2{padding-bottom:10px;border-bottom:1px solid #e4eaf1}summary{cursor:pointer}.notice{margin:12px 0;padding:12px 16px}.notice p{margin-bottom:0}
#workspace-nav{position:sticky;top:0;z-index:5;display:flex;gap:6px;overflow-x:auto;padding:10px;background:#f3f6faf5;border:1px solid #dce3ed;border-radius:10px;box-shadow:0 4px 12px #102b490b}#workspace-nav a{flex:none;text-decoration:none;padding:10px 13px;background:white;border-radius:7px;font-size:14px;font-weight:600}#workspace-nav a:hover,#workspace-nav a:focus-visible{background:#16598a;color:white}#workspace section[id],#workspace h2[id]{scroll-margin-top:80px}
button{font-weight:600;transition:background .15s}button:hover:not(:disabled){background:#10466e}button:disabled{cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #e5a527;outline-offset:3px}input,select,textarea{background:white;color:#22324a;min-height:42px}input[type=checkbox]{min-height:18px;width:18px;height:18px;accent-color:#16598a}label:has(input[type=checkbox]){flex-direction:row;align-items:center}label:has(input[type=checkbox]) input{flex:none;width:18px}
#message:not(:empty){padding:12px 16px;border:1px solid #d4e2f0;background:#fff;border-radius:8px;color:#22324a}#message:empty{margin:0}#imported,.board-help{font-size:13px;color:#52647a}.candidate-tools{display:flex;flex-wrap:wrap;gap:16px;align-items:end;margin:16px 0}.candidate-tools label{min-width:240px;flex:1}.candidate-tools p{font-size:13px;color:#52647a;margin:0 0 12px}
#candidates td:first-child{max-width:160px;font-size:11px;color:#63738a;overflow-wrap:anywhere}#candidates td:nth-child(2){font-weight:700;min-width:110px}#candidates td:last-child{min-width:290px}#candidates td button{margin:4px;padding:8px 10px}td,th{vertical-align:top}.table-wrap{border:1px solid #e4eaf1;border-radius:8px}th{white-space:nowrap}.kanban{padding:4px 0 12px;scroll-snap-type:x proximity}.column{min-width:230px;scroll-snap-align:start}.column h3{font-size:16px;margin:16px 0}.column:nth-child(1){border-top:4px solid #7d93b5}.column:nth-child(2){border-top:4px solid #3f8bbe}.column:nth-child(3){border-top:4px solid #7763b4}.column:nth-child(4){border-top:4px solid #c59a35}.column:nth-child(5){border-top:4px solid #31927c}.case-card{box-shadow:0 2px 6px #102b4908}.case-card[draggable=true]{cursor:grab}.case-card[draggable=true]:active{cursor:grabbing}.case-card small{display:block;overflow-wrap:anywhere;color:#63738a}.case-card button{width:100%;text-align:left;background:#f3f7fb;color:#16598a;border-color:#dce3ed}.case-card button:hover{color:white}.phase-summary{font-variant-numeric:tabular-nums}.loss-area{border:1px dashed #d8aaa6}
dialog{max-height:90dvh;overflow:auto;box-shadow:0 20px 80px #102b4930}dialog h2{line-height:1.5}dialog form{min-width:0}.workflow-dialog{padding:24px}.workflow-grid{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}.workflow-grid label{min-width:0}.workflow-grid label:has(textarea){grid-column:1/-1}.form-actions{position:sticky;bottom:-24px;display:flex;justify-content:flex-end;gap:12px;padding:16px 0;background:white;border-top:1px solid #dce3ed;z-index:2}.form-actions button{min-width:110px}.cancel{background:white;color:#52647a}.cancel:hover{color:white}.edit-error:not(:empty){background:#fff0ee;border-left:4px solid #b32b20;padding:12px;scroll-margin:20px}.hearing-group{min-width:0;border:1px solid #dce3ed;border-radius:10px;padding:18px;margin:8px 0}.hearing-group legend{font-weight:700;color:#16598a;padding:0 8px}.hearing-nav{display:flex;flex-wrap:wrap;gap:6px}.hearing-nav button{font-size:12px;padding:8px 10px;background:#edf3f9;color:#16598a;border-color:#dce3ed}.hearing-nav button:hover{color:white}.hearing-job-search{padding:18px;border:1px solid #bbd5e8;background:#f6faff;border-radius:10px}.hearing-job-search>button{margin-top:16px}.hearing-search-results article button{margin:4px}.hearing-search-hints{font-size:13px;color:#52647a}#tasks-view .panel{padding:16px;margin:10px 0}#tasks-view .panel button{margin:4px}#entry{margin:36px auto;padding:32px}#login-form button{margin-top:8px}
@media(max-width:640px){header{padding:14px 16px;gap:10px;flex-wrap:wrap}header>span:first-of-type{display:none}#identity{font-size:12px}main{padding:0 12px;margin:12px auto}.panel{padding:16px;margin:14px 0}#workspace-nav{border-radius:8px}#workspace-nav a{padding:8px 10px;font-size:13px}.candidate-tools label{min-width:100%}.workflow-dialog,dialog{width:calc(100% - 16px);padding:16px}.form-actions{bottom:-16px}.hearing-group{padding:12px}.hearing-nav{gap:4px}.hearing-nav button{font-size:11px}.column{min-width:260px}.workflow-grid{grid-template-columns:1fr}input,select,textarea{font-size:16px}#user-form label{width:100%}#calendar-grid{max-height:380px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
.loss-area.column{border-top:1px dashed #d8aaa6;min-height:280px;padding:18px 18px 32px}#candidates td:first-child{min-width:120px}#candidates td:nth-child(3){min-width:90px}
@media(max-width:640px){#candidates table{min-width:720px}#candidates .table-wrap::before{content:'左右にスクロールして操作できます';display:block;padding:10px;font-size:12px;color:#52647a;position:sticky;left:0;width:280px}}
/* Demo-inspired shell: a navy sidebar and one work area at a time. */
.hearing-search-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.hearing-search-condition{min-width:0;padding:14px;background:white;border:1px solid #dce3ed;border-radius:8px;display:flex;flex-direction:column;gap:12px}.hearing-search-condition>label:first-child{flex:1}.hearing-search-required{font-size:12px;line-height:1.5}.hearing-search-grid .hearing-search-required input[type=checkbox]{width:18px;height:18px;min-height:18px;padding:0;margin:0;flex:0 0 18px}.hearing-job-search{min-width:0}.hearing-search-results{overflow-wrap:anywhere}@media(max-width:640px){.hearing-search-grid{grid-template-columns:1fr}.hearing-search-condition{padding:12px}}
.candidate-tools .absence-button{background:#fff7e9;border-color:#e6cfaa;color:#8c5a18}.candidate-tools .absence-button:hover:not(:disabled){background:#ffedcc}
:root{--ink:#172332;--muted:#6e7c8f;--paper:#f6f8fb;--line:#e5eaf1;--navy:#162b45;--blue:#2667d8;font-family:Inter,"Noto Sans JP",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-size:14px}
body>header{background:white;color:var(--ink);border-bottom:1px solid var(--line);min-height:96px;padding:22px 34px;gap:18px}.page-brand small{display:block;font-size:11px;color:var(--muted);margin-bottom:4px;letter-spacing:.08em}.page-brand strong{font-size:23px}#identity{font-size:12px;color:var(--muted)}#logout{background:white;color:var(--muted);border-color:var(--line);font-size:12px}body:has(#workspace:not([hidden]))>header{margin-left:232px}body:has(#workspace:not([hidden]))>main{margin-left:232px;max-width:none;padding:24px 32px 48px;margin-top:0}body:has(#workspace:not([hidden])) #workspace-nav{position:fixed;inset:0 auto 0 0;width:232px;height:100dvh;border:0;border-radius:0;background:var(--navy);padding:26px 14px;display:flex;flex-direction:column;align-items:stretch;gap:6px;overflow-y:auto;box-shadow:none;z-index:10}
#workspace-nav .nav-brand{font-size:21px;color:white;font-weight:800;margin:0 8px 28px;letter-spacing:.4px}.nav-brand b{display:inline-grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#3a82ef;font-size:18px;margin-right:7px}.nav-brand small{display:block;font-size:9px;color:#8ea2ba;font-weight:500;margin:8px 0 0 40px}#workspace-nav a{background:transparent;color:#b5c4d6;font-size:14px;font-weight:500;padding:12px 13px;border-radius:8px;display:flex;align-items:center;gap:12px}#workspace-nav a span{display:inline-block;width:19px;text-align:center;font-size:18px}#workspace-nav a:hover,#workspace-nav a[aria-current=page]{background:#243e5f;color:white}#workspace-nav a[aria-current=page]{box-shadow:inset 3px 0 #6099ed}.nav-foot{margin-top:auto;border-top:1px solid #314962;padding:18px 10px 0;color:#9fb1c7;font-size:12px}.nav-foot small{display:block;font-size:10px;margin-top:5px;color:#8ea2ba}
#workspace>.panel{display:none;margin:0}body[data-page=tasks-view] #tasks-view,body[data-page=candidate-heading] #candidate-panel,body[data-page=project-heading] #project-panel,body[data-page=calendar-view] #calendar-view,body[data-page=kpi-heading] #kpi-panel,body[data-page=jobs-view] #jobs-view,body[data-page=billing-view] #billing-view,body[data-page=admin] #admin{display:block}
.panel{border-color:var(--line);border-radius:10px;box-shadow:0 8px 25px #1b2b4112;padding:22px}.panel>h2:first-child{margin-top:0;font-size:16px}.panel>p{color:var(--muted);font-size:13px}button{background:var(--blue);border-color:var(--blue);font-size:13px;border-radius:7px}button:hover:not(:disabled){background:#1856bd}.cancel{background:white;border-color:var(--line)}input,select,textarea{border-color:#dce3eb;border-radius:7px}th{background:#f9fafc;color:#718094;font-size:11px;letter-spacing:.04em}td{font-size:13px}tbody tr:hover{background:#fbfdff}.notice{font-size:12px;background:#fff7e9;border:1px solid #f7dfae;color:#936019;margin:0 0 18px;padding:10px 14px}.notice summary{font-weight:500}#message:not(:empty){margin:0 0 18px}#candidate-panel>h2,#project-panel>h2{border:0;margin-bottom:12px}#candidates td button{background:white;color:#536477;border-color:var(--line);font-size:11px}#candidates td button:nth-of-type(2){background:#eaf2ff;color:#2667d8;border-color:#d8e6fb}#candidates td button:hover{background:#eaf2ff;color:#1856bd}.column{background:#eef2f6;min-width:205px;padding:11px}.column h3{font-size:13px}.case-card{padding:13px;border-radius:7px}.case-card strong{font-size:13px}.case-card p{font-size:11px;color:var(--muted);margin:8px 0}.case-card small{font-size:10px}.case-card button{font-size:11px;padding:7px 9px;margin-top:7px}.phase-summary{font-size:12px}.loss-area{min-height:100px;background:#fcf3f3}.hearing-nav button{border-color:#dce3ed}.form-actions .cancel{background:white;color:#536477}.form-actions .cancel:hover{background:#edf3f9}
@media(max-width:950px) and (min-width:641px){body:has(#workspace:not([hidden]))>header{margin-left:192px}body:has(#workspace:not([hidden]))>main{margin-left:192px;padding:20px}body:has(#workspace:not([hidden])) #workspace-nav{width:192px;padding:24px 10px}#workspace-nav a{padding:12px 10px;font-size:13px}}
@media(max-width:640px){body:has(#workspace:not([hidden]))>header{margin-left:0;padding:16px;min-height:78px}.page-brand strong{font-size:19px}body:has(#workspace:not([hidden]))>main{margin-left:0;padding:12px 12px 32px}body:has(#workspace:not([hidden])) #workspace-nav{position:sticky;inset:auto;top:0;width:100%;height:auto;flex-direction:row;overflow-x:auto;padding:8px;margin-bottom:14px;border-radius:8px;gap:4px}#workspace-nav .nav-brand,#workspace-nav .nav-foot{display:none}#workspace-nav a{font-size:12px;padding:9px;gap:6px}#workspace-nav a span{font-size:15px}.panel{padding:16px}.column{min-width:245px}#identity{display:block;font-size:11px;width:100%;order:3;margin:0}#identity:empty{display:none}.notice{margin-bottom:12px}#workspace-nav a[aria-current=page]{box-shadow:inset 0 -2px #6099ed}}
/* Owner filters on candidates, progress and KPI pages. */
.owner-filter{display:block;max-width:300px;margin:12px 0 18px;font-size:13px;color:var(--muted)}
.owner-filter select{display:block;width:100%;margin-top:6px}
#kpi-charts{margin:20px 0;padding:18px;background:#f5f8fc;border:1px solid #dce3ed;border-radius:10px}#kpi-charts h3{margin-top:0}#kpi-charts>label{display:block;max-width:240px}#kpi-charts select{display:block;width:100%;margin-top:6px}#kpi-charts p{font-size:12px;color:#64748b;line-height:1.7}.kpi-chart-bars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.kpi-chart{min-width:0;background:white;padding:18px;border-radius:8px;border:1px solid #e1e7ef}.kpi-chart-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;font-size:14px}.kpi-chart-heading strong{font-size:24px;color:#2667d8}.kpi-chart-track{height:18px;margin:16px 0;background:#e8eef7;border-radius:5px;overflow:hidden}.kpi-chart-track span{display:block;height:100%;background:#3679de}.kpi-chart:nth-child(2) .kpi-chart-track span{background:#169b8a}.kpi-chart small{color:#64748b}@media(max-width:640px){.kpi-chart-bars{grid-template-columns:1fr}}
#kpi-daily{margin-top:28px}#kpi-daily .daily-caption{font-size:12px;color:#64748b;line-height:1.7}#kpi-daily-table .table-wrap{max-height:620px;overflow:auto}#kpi-daily-table table{min-width:740px;width:100%;font-variant-numeric:tabular-nums}#kpi-daily-table th{position:sticky;top:0;z-index:1}#kpi-daily-table tbody tr:first-child{background:#eaf2ff;font-weight:700}#kpi-daily-table td:not(:first-child),#kpi-daily-table th:not(:first-child){text-align:right}#kpi-daily-table td:first-child{white-space:nowrap}
.kpi-chart-progress{display:block;width:100%;height:18px;margin:16px 0;border:0;border-radius:5px;overflow:hidden;appearance:none}.kpi-chart-progress::-webkit-progress-bar{background:#e8eef7}.kpi-chart-progress::-webkit-progress-value{background:#3679de}.kpi-chart:nth-child(2) .kpi-chart-progress::-webkit-progress-value{background:#169b8a}.kpi-chart-progress::-moz-progress-bar{background:#3679de}
details.hearing-group{padding:0;overflow:hidden}details.hearing-group>summary{padding:16px 18px;background:#f3f7fc;color:#244b76;font-weight:700;cursor:pointer}details.hearing-group>.workflow-grid{padding:18px}.hearing-wide{grid-column:1/-1}.hearing-wide textarea{min-height:90px}.toss-automatic{padding:12px 16px;background:#f3f7fc;border:1px solid #dce3ed;border-radius:8px;margin:12px 0}.toss-automatic p{margin:6px 0;font-size:13px}
.priority-grid{display:flex!important;flex-direction:column;gap:10px}.priority-row{display:grid;grid-template-columns:48px minmax(140px,1fr) minmax(160px,2fr);align-items:center;gap:12px;padding:14px;background:#f6f9fd;border:1px solid #dce3ed;border-radius:8px}.priority-row>strong{color:#2667d8;font-size:20px}.postal-result{grid-column:1/-1;font-size:13px;color:#365b7c}.hearing-search-advanced{margin:16px 0}.hearing-search-advanced>summary{cursor:pointer;padding:12px;font-weight:600}.hearing-search-advanced>.workflow-grid{margin-top:10px}@media(max-width:640px){.priority-row{grid-template-columns:40px 1fr}.priority-row>label:last-child{grid-column:2}}
.hearing-layout[open]{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;width:calc(100vw - 48px);max-width:1340px;overflow:hidden}.hearing-layout>form{max-height:calc(90dvh - 48px);overflow:auto;padding:0 10px 0 0}.hearing-layout .form-actions{bottom:0}.hearing-reference{min-width:0;max-height:calc(90dvh - 48px);overflow:auto;border:1px solid #dce3ed;border-radius:10px;background:#f8fafc;padding:14px}.hearing-reference summary{cursor:pointer;font-weight:700;color:#244b76;padding:6px 0}.hearing-reference h3{font-size:14px;color:#334155;margin:16px 0 8px}.hearing-reference p,.hearing-reference li{font-size:12px;line-height:1.8}.hearing-reference ul{padding-left:20px}.hearing-reference section+section{border-top:1px solid #dce3ed;margin-top:16px}.hearing-reference .reference-note{padding:10px;background:#fff7e9;color:#755728;border-radius:6px}@media(max-width:999px){.hearing-layout[open]{display:flex;flex-direction:column;overflow:auto;width:calc(100vw - 16px);gap:14px}.hearing-layout>form{max-height:none;overflow:visible;padding:0}.hearing-reference{order:-1;max-height:45dvh;flex-shrink:0}.hearing-layout .form-actions{bottom:-16px}}
/* Keep hearing sections at their natural height inside the scrolling column. */
.hearing-layout>form{display:block;align-self:start;min-height:0}
.hearing-layout>form>h2,.hearing-layout>form>.hearing-nav,.hearing-layout>form>.hearing-checks,.hearing-layout>form>.hearing-job-search{margin-bottom:16px}
.hearing-layout>form>.hearing-group{height:auto;min-height:min-content}
.hearing-layout>form>.form-actions{margin-top:16px}
#outcome-table table{min-width:640px}
#outcome-table td:first-child{min-width:200px;overflow-wrap:anywhere}
#outcome-table td:not(:first-child){white-space:nowrap}
@media screen and (max-width:640px){
 .form-actions{flex-wrap:wrap}.form-actions button{min-width:0;flex:1}
 .report-controls label{min-width:0;width:100%}
 #monthly-report .table-wrap::before{content:'表は左右にスクロールできます';display:block;position:sticky;left:0;width:240px;max-width:100%;padding:10px;color:#52647a;font-size:12px}
}
body[data-page=monthly-report] #monthly-report{display:block}
.admin-notices{padding:18px;border:1px solid #dce3ed;border-radius:10px;background:#f6f9fd;margin-top:20px}.admin-notices h3{margin-top:0}.admin-notices p{font-size:13px;line-height:1.7}.admin-notices summary{cursor:pointer;font-weight:700}.admin-update-list{max-height:440px;overflow:auto}.admin-update-list article{padding:14px;background:white;border-bottom:1px solid #dce3ed}.admin-update-list small{color:#64748b}
.report-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:18px 0}.report-actions small{color:#64748b}.report-review{padding:18px;background:#f6f9fd;border:1px solid #dce3ed;border-radius:10px;margin:18px 0}.report-review h3{margin-top:0}.report-review li{margin:8px 0;line-height:1.7}.report-review p{font-size:12px;color:#64748b}
@media print{
 @page{size:A4 landscape;margin:12mm}
 body.printing-monthly{background:white;color:#162334;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 body.printing-monthly>header,body.printing-monthly #workspace-nav,body.printing-monthly #entry,body.printing-monthly #message,body.printing-monthly main>.notice,body.printing-monthly dialog{display:none!important}
 body.printing-monthly>main{margin:0!important;padding:0!important;max-width:none!important}
 body.printing-monthly #workspace>.panel{display:none!important}
 body.printing-monthly #workspace>#monthly-report{display:block!important;border:0;box-shadow:none;padding:0}
 body.printing-monthly .report-actions,body.printing-monthly .report-controls{display:none!important}
 body.printing-monthly .report-charts{display:block;columns:2;column-gap:12px}
 body.printing-monthly .report-chart{break-inside:avoid;margin:0 0 12px}
 body.printing-monthly .report-cards{grid-template-columns:repeat(4,minmax(0,1fr))}
 body.printing-monthly .report-cards>div{break-inside:avoid}
 body.printing-monthly .table-wrap{overflow:visible;max-height:none;border-radius:0}
 body.printing-monthly #monthly-report .table-wrap::before{display:none}
 body.printing-monthly #monthly-report table{min-width:0;width:100%;table-layout:fixed}
 body.printing-monthly #monthly-report th,body.printing-monthly #monthly-report td{min-width:0;white-space:normal;overflow-wrap:anywhere}
 body.printing-monthly #report-table table{min-width:0;width:100%;table-layout:fixed}
 body.printing-monthly th,body.printing-monthly td{font-size:10px;padding:5px;overflow-wrap:anywhere;white-space:normal}
 body.printing-monthly #monthly-report select{border:0;padding:0;appearance:none;min-height:0}
 body.printing-monthly .report-review{break-inside:avoid}
 body.printing-monthly .report-bar-label{flex-wrap:wrap;overflow-wrap:anywhere}
 body.printing-monthly tr{break-inside:avoid}body.printing-monthly thead{display:table-header-group}
 body.printing-monthly h3,body.printing-monthly h4{break-after:avoid}
}
.report-controls{display:flex;flex-wrap:wrap;gap:20px}.report-controls label{min-width:180px}.report-controls input,.report-controls select{display:block;width:100%;margin-top:6px}
.report-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:20px 0}.report-cards>div{padding:18px;border:1px solid #dce3ed;border-radius:10px;background:#f6f9fd}.report-cards span{display:block;color:#64748b;font-size:12px}.report-cards strong{display:block;font-size:23px;margin-top:10px;overflow-wrap:anywhere}
.report-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.report-chart{padding:18px;border:1px solid #dce3ed;border-radius:10px;min-width:0}.report-chart h3{margin-top:0;font-size:15px}.report-chart small{color:#64748b}.report-bar-label{display:flex;justify-content:space-between;gap:10px;margin-top:20px;font-size:13px}.report-chart .kpi-chart-progress{margin:8px 0 16px}.report-notes{margin-top:24px;padding:16px;background:#f6f9fd;font-size:13px;line-height:1.8}#report-table table{min-width:1100px}#report-table td:not(:first-child),#report-gender td:not(:first-child){text-align:right}#report-table tbody tr:first-child{font-weight:700;background:#eaf2ff}@media(max-width:800px){.report-charts{grid-template-columns:1fr}}
.matching-message{min-width:0;margin:12px 0;padding:12px;border:1px solid #d9e2ef;border-radius:8px;background:#f7faff}
.matching-message textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;margin:10px 0;resize:vertical;line-height:1.6}
.matching-message p{overflow-wrap:anywhere}
.billing-month-label{display:block;max-width:220px;margin:16px 0}
.billing-month-label input{display:block;width:100%;margin-top:6px}
.billing-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
.billing-summary-card{min-width:0;padding:18px;border:1px solid #dce3ed;border-radius:10px;background:#f6f9fd}
.billing-summary-card span{display:block;color:#52647d;font-size:13px}
.billing-summary-card strong{display:block;margin-top:10px;font-size:24px;overflow-wrap:anywhere}
@media(max-width:850px){.billing-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:450px){.billing-summary{grid-template-columns:1fr}}
.case-card .case-actions{display:flex;flex-wrap:nowrap;gap:4px;overflow-x:auto;margin-top:8px}
.case-card .case-actions button{width:auto!important;min-width:0;flex:0 0 auto;margin:0!important;padding:6px;font-size:11px;white-space:nowrap}
.reward-form .workflow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.reward-form .workflow-grid h3{grid-column:1/-1;margin:12px 0 0;padding:8px 12px;background:#eef4fb;border-radius:6px}
.job-list-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}
.job-list-filters label{min-width:0}.job-list-filters input,.job-list-filters select{display:block;width:100%;box-sizing:border-box;margin-top:5px}
.jobs-sheet-wrap{overflow:auto;max-height:70vh;border:1px solid #dce3ed;border-radius:8px}
.jobs-sheet{table-layout:fixed;width:175%;border-collapse:separate;border-spacing:0;font-size:12px}
.jobs-sheet .job-col-0{width:8%}.jobs-sheet .job-col-1{width:12%}.jobs-sheet .job-col-2{width:8%}.jobs-sheet .job-col-3{width:12%}.jobs-sheet .job-col-4{width:8%}.jobs-sheet .job-col-5{width:9.15%}
.jobs-sheet th{position:sticky;top:0;z-index:1;background:#eaf1fa;color:#203d63}
.jobs-sheet th,.jobs-sheet td{padding:9px 7px;white-space:normal;overflow-wrap:anywhere;border-right:1px solid #e4eaf2;border-bottom:1px solid #e4eaf2;vertical-align:top}
.jobs-sheet tbody tr:nth-child(even){background:#f8fafd}.jobs-sheet a{color:#175abd;text-decoration:underline}.jobs-sheet button{font-size:11px;padding:5px}
.job-cell{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;line-height:1.5}
.job-link-fallback{max-width:720px;margin:60px auto;padding:28px;background:white;border:1px solid #dce3ed;border-radius:12px}.job-link-fallback a{display:inline-block;padding:12px 18px;background:#175abd;color:white;border-radius:6px}.job-link-fallback p{line-height:1.8}
#jobs-paging{display:flex;gap:10px;margin-top:12px}
.jobs-filter-details,.jobs-display-notes{margin:8px 0;font-size:12px}.jobs-filter-details summary,.jobs-display-notes summary{cursor:pointer;color:#31577f}
.jobs-map-controls{display:grid;grid-template-columns:2fr 1fr;gap:12px}.jobs-map-controls input,.jobs-map-controls select{width:100%;box-sizing:border-box;display:block}
#jobs-view label{font-size:12px}#jobs-view input,#jobs-view select{padding:7px 9px;margin-top:3px;min-height:34px}#jobs-view .jobs-primary{margin-bottom:8px;grid-template-columns:1fr 1.5fr 1fr}
#jobs-view .jobs-upload{float:right;font-size:11px;padding:6px;margin-top:-52px}#jobs-count{margin:8px 0;font-size:12px}
@media(max-width:800px){.job-list-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.jobs-sheet{min-width:1450px}}
/* Monthly analysis and independent-period benchmark comparison. */
.analysis-workspace{margin:24px 0;padding:20px;border:1px solid #cddbec;border-radius:12px;background:#f8fbff}
.analysis-selection{display:grid;grid-template-columns:minmax(200px,2fr) minmax(150px,1fr) minmax(150px,1fr) auto;gap:12px;align-items:end;margin:10px 0}
.analysis-selection label{display:flex;flex-direction:column;gap:5px}.analysis-selection input,.analysis-selection select{width:100%;min-width:0}
.analysis-targets{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:14px 0}.analysis-targets label{display:flex;flex-direction:column;gap:6px}
.analysis-table-wrap{overflow-x:auto;max-width:100%;margin:12px 0}.analysis-table{border-collapse:collapse;background:white;min-width:650px;width:100%;font-variant-numeric:tabular-nums;font-size:14px}
.analysis-table th,.analysis-table td{border:1px solid #ccd4df;padding:9px 12px;vertical-align:middle}.analysis-table thead th{background:#fff3cd;min-width:160px;white-space:normal;overflow-wrap:anywhere}.analysis-table tbody th{text-align:left;background:#fff9e9;white-space:normal}.analysis-table td{text-align:right;white-space:nowrap}
.analysis-table .analysis-rank-1{background:#d4e3f8;color:#12396b;font-weight:700}.analysis-table .analysis-rank-2{background:#eef4fb;color:#234b78;font-weight:700}.analysis-table .analysis-goal-missed{background:#fce0e4;color:#9e1328;font-weight:700}.analysis-table td small{display:block;font-size:11px;margin-top:4px}.analysis-weakness li{color:#9e1328}
.analysis-detail{display:grid;grid-template-columns:1fr 1fr;gap:18px;min-width:0}.analysis-detail>section{min-width:0}.analysis-detail .analysis-table{min-width:420px}
.analysis-weakness{background:#fff7df;border:1px solid #e2cc87;border-radius:10px;padding:16px;margin:18px 0}.analysis-weakness li{margin:10px 0}.analysis-output progress{width:100%;accent-color:#2463bf}.analysis-status{min-height:1.5em}
@media(max-width:850px){.analysis-selection{grid-template-columns:1fr 1fr}.analysis-detail{grid-template-columns:1fr}.analysis-workspace{padding:12px}}
@media print{.analysis-form,.analysis-benchmarks,.analysis-status{display:none}.analysis-table-wrap{overflow:visible}.analysis-table{min-width:0;font-size:8px}.analysis-table th,.analysis-table td{padding:3px;white-space:normal;min-width:0!important}.analysis-workspace{padding:0;border:0}.analysis-detail{display:block}.analysis-rank-1,.analysis-rank-2{print-color-adjust:exact}}

/* Calendar headings must wrap within each CA column, including compact widths. */
#jobs-view .jobs-primary{grid-template-columns:1fr 2fr}
#jobs-view .jobs-sort-hint{font-size:12px;color:#53667d;margin:8px 0}
#jobs-view .jobs-sheet .job-sort-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;padding:3px 0;margin:0;background:transparent;border:0;box-shadow:none;color:#203d63;font:inherit;text-align:left;white-space:normal}
#jobs-view .jobs-sheet .job-sort-heading:hover{background:#dce8f8;color:#14365d}
#jobs-view .jobs-sheet th[aria-sort=ascending],#jobs-view .jobs-sheet th[aria-sort=descending],#jobs-view .jobs-sheet th[aria-sort=other]{background:#dce8f8}
.jobs-sheet td:nth-child(8) .job-cell,.jobs-sheet td:nth-child(9) .job-cell{display:block;-webkit-line-clamp:unset;overflow:visible;white-space:pre-wrap;line-height:1.7;font-weight:600;color:#263e59}
.jobs-sheet td:nth-child(8),.jobs-sheet td:nth-child(9){background:#f2f6fb}
#calendar-grid th{white-space:normal;overflow-wrap:anywhere}
#calendar-grid th div{white-space:normal;line-height:1.5;letter-spacing:0}
#calendar-grid th:first-child{white-space:nowrap}
/* Visual refresh only: preserve workflow, grid sizes, navigation and print output. */
@media screen{
 :root{--ink:#182b43;--muted:#617187;--line:#e0e7ef;--accent:#285bd4;background:#f2f5f9;color:var(--ink);font-family:'Segoe UI','Yu Gothic UI',Meiryo,sans-serif}
 body{background:#f2f5f9}
 body>header{border-bottom:1px solid #e0e7ef}
 .page-brand small{letter-spacing:.12em;font-size:10px}.page-brand strong{letter-spacing:.025em}
 #workspace-nav{background:linear-gradient(165deg,#142b47,#0d1b30)!important;border-right:1px solid #203956}
 #workspace-nav a{border:1px solid transparent;border-radius:9px;transition:background .15s,border-color .15s}
 #workspace-nav a:hover{background:#203b5d;color:#fff}
 #workspace-nav a[aria-current=page]{background:#254b78;color:#fff;border-color:#3b618b;box-shadow:inset 3px 0 #78c6dd}
 #workspace-nav .nav-brand{letter-spacing:.08em}#workspace-nav .nav-brand b{background:linear-gradient(135deg,#83d9df,#8eaeed);color:#122b48;box-shadow:0 4px 12px #0002}
 #workspace-nav .nav-brand small{letter-spacing:.09em;color:#a1b5ce}#workspace-nav .nav-foot{color:#a1b5ce}
 #workspace>.panel{border-color:#e0e7ef;border-radius:14px;box-shadow:0 3px 18px #18345305}
 #workspace>.panel>h1,#workspace>.panel>h2{color:#172e49;letter-spacing:.025em}
 button{border-radius:8px;background:#285bd4;border-color:#285bd4;box-shadow:0 2px 3px #163f8710;transition:background .15s,box-shadow .15s}
 button:not(:disabled):hover{background:#204bb2;border-color:#204bb2;box-shadow:0 3px 8px #163f8725}
 button:disabled{cursor:not-allowed}
 input:not([type=checkbox]):not([type=radio]),select,textarea{background:#fff;color:#20364e;border-color:#ccd7e4;border-radius:8px;transition:border-color .15s,box-shadow .15s}
 input::placeholder,textarea::placeholder{color:#7a899c}
 input:focus,select:focus,textarea:focus{outline:2px solid #5b8fe4;outline-offset:1px;border-color:#5b8fe4;box-shadow:0 0 0 4px #285bd40c}
 button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #5686dc;outline-offset:3px}
 .table-wrap{border-radius:10px;border-color:#e0e7ef}th{color:#52657c;background:#f5f8fc}
 .case-card{border-color:#dce5ef;border-radius:10px;box-shadow:0 2px 6px #102b4908}
 .case-card:hover{border-color:#aebfd5;box-shadow:0 4px 12px #102b4910}
 .case-card button,.hearing-nav button{background:#edf3fb;color:#285384;border-color:#d6e2f1;box-shadow:none}
 .case-card button:hover,.hearing-nav button:hover{background:#dce9fa;color:#193e6b}
 dialog{border-color:#d8e2ed;border-radius:16px;box-shadow:0 24px 80px #0c233a38}dialog::backdrop{background:#0b1b36a6;backdrop-filter:blur(3px)}
 .cancel,.form-actions .cancel{background:#fff;color:#4d6077;border-color:#ced9e7}.cancel:hover,.form-actions .cancel:hover{background:#edf3fb;color:#20364e}
 /* The entry form remains in the same single-column order. */
 body:has(#entry:not([hidden])){min-height:100dvh;background:radial-gradient(ellipse at 15% 20%,#23486b 0,transparent 52%),radial-gradient(ellipse at 95% 90%,#204554 0,transparent 45%),#101d31}
 body:has(#entry:not([hidden]))>header{background:transparent;border-bottom:1px solid #ffffff17;color:#e6eff9}
 body:has(#entry:not([hidden])) .page-brand small{color:#b6c8dc}
 body:has(#entry:not([hidden]))>main{max-width:1100px}
 body:has(#entry:not([hidden])) main>.notice{background:#192f49;color:#cad7e7;border-color:#39516b}
 #entry{max-width:520px;padding:38px 40px;margin:42px auto;background:#fff;border:1px solid #ffffffa6;border-radius:20px;box-shadow:0 24px 70px #0004;position:relative;overflow:hidden}
 #entry::before{content:'';position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#67c9cb,#5484db,#a6bdeb)}
 .login-brand{display:flex;align-items:center;gap:13px;color:#18324f;font-size:24px;font-weight:750;letter-spacing:.12em;margin-bottom:28px}
 .login-brand>span{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:linear-gradient(140deg,#193957,#285c82);color:#b6e9ee;font-size:27px;box-shadow:0 4px 10px #1b3a5720}
 .login-brand small{display:block;font-size:9px;letter-spacing:.17em;color:#697d93;margin-top:3px;font-weight:600}
 #entry h1{font-size:24px;letter-spacing:.03em;margin:0 0 8px;color:#182f49}
 #entry .login-intro{font-size:13px;color:#61738a;margin:0 0 28px}
 #login-form{gap:19px}#login-form label{font-size:12px;font-weight:600;gap:8px;color:#41556e}
 #login-form input{min-height:46px;background:#f9fbfd;font-size:15px;padding:12px 14px}
 #login-form button{min-height:47px;background:#234f9a;border-color:#234f9a;font-weight:650;letter-spacing:.12em;margin-top:5px;box-shadow:0 5px 12px #234f9a20}
 #login-form button:hover{background:#193e7c}
 @media(max-width:640px){#entry{padding:28px 24px;margin:24px auto;border-radius:16px}.login-brand{margin-bottom:22px}}
 @media(prefers-reduced-motion:reduce){button,input,select,textarea,#workspace-nav a{transition:none}}
}
.goal-business-calendar{width:320px;max-width:100%;margin:12px 0;padding:12px;border:1px solid #dbe5f1;border-radius:12px;background:#f8fafc}
.goal-business-calendar h4{margin:0 0 6px;font-size:15px}
.goal-business-calendar p{margin:6px 0;font-size:12px;line-height:1.4}
.goal-business-calendar .goal-calendar-actions{margin-top:10px}
.goal-business-calendar .goal-calendar-actions button{padding:5px 7px;min-height:28px;font-size:11px;box-shadow:none}
.goal-calendar-actions{display:flex;flex-wrap:wrap;gap:6px}
.goal-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center;margin-top:8px;font-size:12px}
.goal-calendar-grid button{min-height:32px;height:32px;padding:3px;margin:0;background:#fff;color:#334155;border:1px solid #cbd5e1;box-shadow:none;font-size:12px}
.goal-calendar-grid button[aria-pressed="true"]{background:#1764d9;color:white;border-color:#1764d9}
.goal-calendar-grid button[aria-current="date"]{outline:2px solid #0891b2;outline-offset:1px}
.analysis-benchmarks>form{display:block}
.analysis-benchmarks>form>label{display:flex;flex-direction:column;gap:6px;max-width:240px}
.jobs-personal-controls{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.jobs-personal-controls p,.jobs-sort-pins{flex-basis:100%;margin:0}
.jobs-sort-pins{display:flex;flex-wrap:wrap;gap:6px}
.jobs-sheet .job-actions-col{width:64px}
.jobs-sheet .job-personal-cell{position:sticky;left:0;background:#f1f5fb;z-index:2;text-align:center}
.jobs-sheet th.job-personal-cell{z-index:3}
.jobs-sheet .job-personal-cell button{display:block;margin:0 auto 5px;min-width:32px;min-height:30px}
.jobs-personal-controls button[aria-pressed=true]{outline:3px solid #eab308}
body[data-page=sales-view] #sales-view{display:block}
.sales-controls{display:flex;flex-wrap:wrap;gap:14px;align-items:end}
.sales-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:20px 0}
.sales-summary>div{background:#eff5ff;border:1px solid #dce7f6;border-radius:12px;padding:18px}.sales-summary strong{display:block;font-size:24px;margin-top:8px}
.sales-person{display:grid;grid-template-columns:minmax(90px,1fr) 130px minmax(100px,2fr) 65px 150px;gap:12px;align-items:center;padding:14px 8px;border-bottom:1px solid #e2e8f0}
.sales-person small,.sales-matrix small{display:block;font-size:11px;color:#64748b;margin-top:4px}.sales-track{display:flex;height:16px;border-radius:5px;background:#edf1f6;overflow:hidden}.sales-track i{display:block;height:100%}
.sales-trend>div{display:grid;grid-template-columns:70px 1fr 140px;gap:12px;align-items:center;margin:10px 0}.sales-matrix th,.sales-matrix td{min-width:130px;white-space:nowrap}.sales-matrix{max-height:520px;overflow:auto}.sales-matrix thead th{position:sticky;top:0}.sales-matrix th:first-child{position:sticky;left:0}
@media(max-width:800px){.sales-person{grid-template-columns:1fr 1fr}.sales-person .sales-track{grid-column:1/-1}.sales-trend>div{grid-template-columns:65px 1fr 110px;font-size:12px}}
.sales-goal-form{margin:18px 0;padding:16px;border:1px solid #dce7f6;border-radius:12px;background:#f8fbff}.sales-goal-form h3,.sales-goal-form p{flex-basis:100%;margin:0}.sales-goal-form p{font-size:12px;color:#52647a}
.sales-group-card{border:1px solid #dce7f6;border-radius:12px;padding:16px;margin:16px 0;background:#fff}.sales-group-card>h3{margin:0 0 10px;color:#234778}.sales-group-card>.sales-person{background:#f2f6fd;border-radius:8px}.sales-group-card summary{cursor:pointer;padding:12px 0;font-weight:600}.sales-group-totals{display:flex;flex-wrap:wrap;gap:20px;margin:12px 0;font-size:13px}.sales-group-note{font-size:12px;color:#64748b}
.sales-matrix.table-wrap{max-height:none;overflow:visible}.sales-matrix table{table-layout:fixed;width:100%;font-size:12px}.sales-matrix .sales-name-col{width:14%}.sales-matrix .sales-year-col{width:9%}.sales-matrix th,.sales-matrix td{min-width:0;white-space:normal;padding:8px 3px;text-align:right;overflow-wrap:anywhere}.sales-matrix thead th{position:static;text-align:center}.sales-matrix th:first-child{position:static;text-align:left}.sales-matrix .sales-quarter{border-left:2px solid #8fa7c7}.sales-matrix .sales-subtotal{background:#edf3fc;font-weight:700}.sales-matrix .sales-subtotal th,.sales-matrix .sales-subtotal td{border-top:2px solid #b5c8e0}.sales-matrix .sales-cell-detail{display:block;width:100%;margin:0;padding:3px 0;background:transparent;color:#223d60;border:0;border-radius:3px;box-shadow:none;font:inherit;font-variant-numeric:tabular-nums;text-align:right}.sales-matrix .sales-cell-detail:hover{background:#dbeafe}.sales-matrix-note{font-size:12px;color:#64748b}
@media(max-width:700px){.sales-matrix.table-wrap{overflow:auto}.sales-matrix table{min-width:760px}}
.sales-matrix td.sales-achieved{background:#fff19c;color:#594400}.sales-matrix td.sales-achieved .sales-cell-detail{color:#594400;font-weight:700}.sales-matrix td.sales-achieved .sales-cell-detail:hover{background:#ffe66b}
.sales-demo-toggle{display:flex;flex-direction:row;align-items:center;gap:8px;margin:14px 0;font-weight:600}.sales-demo-toggle input{width:18px;height:18px}.sales-demo-banner{padding:12px 16px;border:1px solid #e5bd50;border-radius:8px;background:#fff4cc;color:#704d00;font-weight:600}
.sales-track .sales-fill{flex-shrink:0}.sales-fill.is-achieved{background:#15966d}.sales-fill.is-pending{background:#3265dc}.sales-fill.is-unknown{background:#94a3b8}.sales-fill.is-expected{background:#8daef5}
.sales-matrix td.sales-achieved{background:#ffeb00!important;color:#343000!important}
.sales-axis-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:12px 0}.sales-axis-form label{max-width:220px}.sales-axis-form small{flex-basis:100%;color:#687585}
/* Orange CRM theme: presentation only; keep layout, status colors and print styles. */
.sales-daily-scroll{overflow:auto;max-height:620px;margin:16px;border:1px solid #dce1e7;border-radius:6px}
.sales-daily-actions{display:flex;gap:8px;margin:12px 16px}.sales-daily-actions button{font-size:12px;padding:7px 12px}
.sales-daily table{font-size:12px}.sales-daily th,.sales-daily td{min-width:155px;white-space:nowrap;padding:12px;vertical-align:top;border-right:1px solid #e3e7ed}
.sales-daily thead th{position:sticky;top:0;z-index:2;background:#f2f4f7}.sales-daily tr>th:first-child{position:sticky;left:0;background:#f7f8fa;z-index:1;min-width:180px}.sales-daily thead th:first-child{z-index:3}
.sales-daily td>*{display:block;margin:3px 0}.sales-daily small{font-size:11px;color:#626e7e}.sales-daily td>b{font-variant-numeric:tabular-nums}.sales-daily .is-subtotal{background:#f5f8fc}
.sales-daily .is-yesterday{background:#fff1a8}.sales-daily em{font-size:11px;font-style:normal;border-radius:4px;padding:4px 6px;width:max-content}
.sales-daily .on-pace{background:#e0f4eb;color:#146c4b}.sales-daily .behind{background:#fff0e4;color:#943e00}.sales-daily .unset{background:#edf0f4;color:#657080}.daily-future{color:#9aa3af}
.sales-progress-sheet table{border-collapse:separate;border-spacing:0;font-size:12px;font-variant-numeric:tabular-nums}
.sales-progress-sheet th,.sales-progress-sheet td{min-width:118px;padding:6px 9px;border-right:1px solid #cdd3dc;border-bottom:1px solid #d9dfe6;text-align:right;line-height:1.35;height:30px}
.sales-progress-sheet thead{position:sticky;top:0;z-index:4}.sales-progress-sheet thead th{position:static;background:#f5f7fa;text-align:center}
/* Freeze the header as one block, not each merged cell at top:0. */
.sales-daily .sales-progress-sheet thead th,.sales-daily .sales-progress-sheet thead th:first-child{position:static;top:auto;left:auto;z-index:auto}
.sales-daily .sales-progress-sheet tbody th:first-child{top:auto}
.sales-daily .sales-progress-sheet{max-height:none;min-height:0;overflow-x:auto}
.sales-daily .sales-progress-sheet thead{position:static}
.sales-progress-sheet tr>th:first-child{min-width:85px;text-align:center;background:#fff}
.sales-progress-sheet tbody td:nth-child(2){min-width:46px;text-align:center}.sales-progress-sheet tbody td:nth-child(3),.sales-progress-sheet tbody td:nth-child(4){min-width:96px}
.sales-progress-sheet thead tr:nth-child(2) th:nth-child(2){min-width:46px}.sales-progress-sheet thead tr:nth-child(2) th:nth-child(3),.sales-progress-sheet thead tr:nth-child(2) th:nth-child(4){min-width:96px}
.sales-progress-sheet thead tr:nth-child(2) th{background:#e8eff7}.sales-progress-sheet thead th.group-heading{background:#deebdc}
.sales-progress-sheet thead tr:nth-child(3) th{background:#fff8e9}.sales-progress-sheet thead tr:nth-child(4) th{background:#e9f0f8;font-weight:700}
.sales-progress-sheet .group-value{background:#f1f5fa;font-weight:700}
.sales-progress-sheet thead .pace-heading.on-pace{background:#2362bc;color:white}.sales-progress-sheet thead .pace-heading.behind{background:#b92929;color:white}.sales-progress-sheet thead .pace-heading.unset{background:#e9edf2;color:#58616f}
.sales-progress-sheet tbody tr.is-yesterday>*{background:#fff099!important;color:#453c17}
.sales-progress-sheet tbody tr:hover>*{box-shadow:inset 0 0 0 999px #eaa24512}
.daily-method{margin:12px 20px;font-size:12px;color:#647080}
@media screen{
 .sales-chart-card{margin:24px 0;border:1px solid #dce1e7;border-radius:8px;background:#fff;box-shadow:0 2px 5px #26364a09;overflow:hidden}
 .sales-chart-card>h3{margin:0;padding:17px 20px;border-bottom:1px solid #e8ebef;background:#fafbfc;font-size:15px;color:#343e4b}
 .sales-chart-card>p{margin:14px 20px;font-size:12px;color:#697586}
 .sales-chart-card .sales-ranking{padding:0 16px 8px}
 .sales-chart-card .sales-group-card{box-shadow:none;border-radius:6px;margin:12px 0;padding:14px}
 .sales-chart-card .sales-group-card>h3{font-size:14px}
 .sales-chart-card .sales-person{font-size:13px;padding:17px 10px}
 .sales-chart-card .sales-track{height:18px;border-radius:2px;background-color:#f4f6f9;background-image:linear-gradient(to right,transparent calc(100% - 1px),#dce2e9 0);background-size:25% 100%}
 .sales-chart-card .sales-person>strong{font-size:16px;font-variant-numeric:tabular-nums}
 .sales-chart-card .sales-trend{padding:12px 20px 18px}
 .sales-chart-card .sales-trend>div{margin:0;min-height:36px;font-size:12px}
 .sales-chart-card .sales-trend>div>b{text-align:right;font-weight:600;font-variant-numeric:tabular-nums;color:#3c4655}
 .sales-chart-card .sales-trend .sales-track{height:22px}
 .sales-chart-unit{text-align:right;margin:0 0 8px;font-size:11px;color:#6d7786}
 .sales-chart-axis{color:#727c8a;font-size:10px!important;border-bottom:1px solid #e8ebef;padding-bottom:6px}
 .sales-chart-axis>div{display:flex;justify-content:space-between;font-variant-numeric:tabular-nums}
 .sales-chart-axis>span:last-child{text-align:right}
 .sales-chart-legend{display:flex;justify-content:center;gap:24px;margin:16px 0 0;padding-top:12px;border-top:1px solid #edf0f3;font-size:12px;color:#566171}
 .sales-chart-legend span{display:flex;align-items:center;gap:7px}.sales-chart-legend i{width:10px;height:10px;border-radius:2px}
 .legend-confirmed{background:#15966d}.legend-expected{background:#8daef5}
 @media(max-width:640px){.sales-chart-card .sales-trend{padding:10px}.sales-chart-card .sales-trend>div{grid-template-columns:55px minmax(0,1fr) 95px;gap:7px}.sales-chart-axis{font-size:9px!important}}
}
@media screen{
 :root{--accent:#b94700;--ink:#292d35;--muted:#68707d;--line:#e3e5e9;--navy:#fff;background:#f4f5f7;color:var(--ink)}
 body{background:#f4f5f7}
 body>header{background:#fff;border-top:4px solid #ed761a;border-bottom:1px solid var(--line)}
 .page-brand strong{color:#292d35}.page-brand small{color:#777b83}
 body:has(#workspace:not([hidden])) #workspace-nav{background:#fff!important;border-right:1px solid #e0e3e8}
 #workspace-nav .nav-brand{color:#30343b}#workspace-nav .nav-brand b{background:linear-gradient(135deg,#f68a2c,#c95106);color:#fff;box-shadow:0 3px 8px #b9470020}
 #workspace-nav .nav-brand small{color:#747b86}
 #workspace-nav a{color:#505967;border-radius:6px;font-weight:600}
 #workspace-nav a span{color:#87909c}
 #workspace-nav a:hover{background:#fff5eb;color:#984000;border-color:#f8dfc9}
 #workspace-nav a[aria-current=page]{background:#fff0e1;color:#9a3c00;border-color:#f4d3b5;box-shadow:inset 3px 0 #e87319}
 #workspace-nav a[aria-current=page] span{color:#bf4e05}
 #workspace-nav .nav-foot{color:#737b87;border-color:#e8eaed}#workspace-nav .nav-foot small{color:#737b87}
 #workspace>.panel{border-color:#dfe3e8;border-radius:10px;box-shadow:0 2px 6px #24304406}
 #workspace>.panel>h1,#workspace>.panel>h2{color:#303640;border-color:#e8eaee}
 button{background:#b94700;border-color:#b94700;border-radius:6px;box-shadow:0 1px 2px #32241512}
 button:not(:disabled):hover{background:#963a00;border-color:#963a00;box-shadow:0 2px 5px #71350020}
 input:not([type=checkbox]):not([type=radio]),select,textarea{border-color:#cbd0d8;border-radius:6px;color:#303640}
 input:focus,select:focus,textarea:focus{outline:2px solid #bc570f;outline-offset:1px;border-color:#bc570f;box-shadow:0 0 0 4px #ed761a12}
 button:focus-visible,a:focus-visible,summary:focus-visible{outline-color:#bc570f}
 input[type=checkbox],input[type=radio]{accent-color:#b94700}
 a{color:#a44106}
 .table-wrap{border-color:#dfe3e8;border-radius:7px}
 th{background:#f3f4f6;color:#4c5563;border-bottom-color:#d9dde4}
 .case-card{border-color:#dfe3e8;box-shadow:0 1px 4px #29313b08;border-radius:7px}
 .case-card:hover{border-color:#edb887;box-shadow:0 3px 9px #9a570810}
 .case-card button,.hearing-nav button{background:#fff5eb;color:#994000;border-color:#efd8c3}
 .case-card button:hover,.hearing-nav button:hover{background:#ffe7d0;color:#7a3100;border-color:#e8b98f}
 .cancel,.form-actions .cancel,#logout{background:#fff;color:#59616e;border-color:#cfd4dc;box-shadow:none}
 .cancel:hover,.form-actions .cancel:hover,#logout:hover{background:#f2f3f5;color:#303640;border-color:#aab2be}
 dialog{border-color:#dfe3e8;border-radius:12px}dialog::backdrop{background:#20273380}
 .sales-summary>div{background:#fffaf5;border-color:#efdfd0;border-radius:8px;border-top:3px solid #ed8b40}
 .sales-summary strong{color:#34383f;font-variant-numeric:tabular-nums}
 .sales-group-card,.sales-goal-form{border-color:#e0e3e8;border-radius:8px}
 .sales-group-card>h3{color:#3c434e}.sales-group-card>.sales-person{background:#f7f8fa}
 .sales-goal-form{background:#fffaf5}
 .sales-matrix .sales-subtotal{background:#fff3e7}.sales-matrix .sales-subtotal th,.sales-matrix .sales-subtotal td{border-top-color:#e1c3a6}
 .sales-matrix .sales-quarter{border-left-color:#c7b6a8}
 .sales-matrix .sales-cell-detail{color:#404854}.sales-matrix .sales-cell-detail:hover{background:#ffe7d0}
 .goal-calendar-grid button[aria-pressed="true"]{background:#b94700;border-color:#b94700;color:#fff}
 .goal-calendar-grid button[aria-current="date"]{outline-color:#b94700}
 .jobs-sheet th{background:#f3f4f6;color:#4c5563}
 .jobs-sheet tbody tr:nth-child(even){background:#fafbfc}.jobs-sheet a{color:#a44106}
 .jobs-sheet .job-personal-cell{background:#f6f7f9}
 .jobs-sheet td:nth-child(8),.jobs-sheet td:nth-child(9){background:#faf6f1}
 #jobs-view .jobs-sheet .job-sort-heading{color:#4c5563}
 #jobs-view .jobs-sheet .job-sort-heading:hover{background:#ffe7d0;color:#843500}
 #jobs-view .jobs-sheet th[aria-sort=ascending],#jobs-view .jobs-sheet th[aria-sort=descending],#jobs-view .jobs-sheet th[aria-sort=other]{background:#ffead6}
 .report-cards>div{background:#fffaf5;border-color:#efdfd0;border-top:3px solid #ed8b40}
 body:has(#entry:not([hidden])){background:radial-gradient(ellipse at 10% 10%,#ffdfbd 0,transparent 55%),radial-gradient(ellipse at 95% 90%,#ffe8d5 0,transparent 50%),#f6f4f1}
 body:has(#entry:not([hidden]))>header{background:#ffffffbf;color:#34383f;border-bottom:1px solid #e4dcd4}
 body:has(#entry:not([hidden])) .page-brand small{color:#6c717a}
 body:has(#entry:not([hidden])) main>.notice{background:#fffcf7;color:#735333;border-color:#edd9c3}
 #entry{border:1px solid #e5ddd5;box-shadow:0 18px 60px #713c1512;border-radius:14px}
 #entry::before{background:linear-gradient(90deg,#c75205,#ffad53)}
 .login-brand{color:#34383f}.login-brand>span{background:linear-gradient(135deg,#f68a2c,#c95106);color:#fff;box-shadow:0 4px 10px #c7520520}
 #entry h1{color:#34383f}#login-form input{background:#fff}
 #login-form button{background:#b94700;border-color:#b94700;box-shadow:0 4px 12px #b9470020}
 #login-form button:hover{background:#963a00;border-color:#963a00}
 @media(max-width:640px){#workspace-nav a[aria-current=page]{box-shadow:inset 0 -3px #e87319}}
}
.progress-members{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;padding:12px 0}.progress-members label{display:flex;align-items:center;gap:8px}.progress-members input[type=checkbox]{width:18px}.progress-members input[type=number]{width:130px}.sales-progress-sheet input[data-percent]{min-width:80px;width:90px}.sales-progress-sheet small{white-space:nowrap;color:#53667e}
.progress-form{display:block}.progress-form>button{margin:14px 0}.progress-form>.sales-daily-scroll{width:100%}
.progress-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid #dce1e7}.sales-daily .progress-heading h3{margin:0;padding:0;border:0}.progress-period{font-size:12px;color:#61738a;flex:1}.progress-heading button,.progress-yesterday{font-size:12px;padding:6px 12px}.sales-daily:not(.is-configuring) .progress-config,.sales-daily:not(.is-configuring) .progress-edit-percent,.sales-daily.is-configuring .progress-read-percent:has(+input){display:none}.sales-daily .progress-config{padding:12px 16px}.sales-daily .progress-status:empty{display:none}.progress-yesterday{margin:8px 16px 0}.progress-footnote{font-size:11px;color:#61738a;margin:8px 16px}.progress-form>.sales-daily-scroll{width:auto}.sales-daily .sales-progress-sheet td{height:30px;padding:5px 9px}.sales-daily .sales-progress-sheet td>span{margin:0}
#sales-view.progress-preview-mode> :not(.sales-daily){display:none!important}.progress-demo .progress-status{background:#fff4da;border:1px solid #edcf8d;border-radius:6px;padding:9px 12px;margin:12px 16px}.progress-demo .sales-progress-sheet th,.progress-demo .sales-progress-sheet td{min-width:78px;font-size:11px;padding:5px}.progress-demo .sales-progress-sheet tr>th:first-child{min-width:55px}.progress-demo .sales-progress-sheet tbody td:nth-child(2){min-width:32px}.progress-demo .sales-progress-sheet tbody td:nth-child(3),.progress-demo .sales-progress-sheet tbody td:nth-child(4){min-width:58px}
