
:root{--paper:#EDE7D8;--paper-deep:#E4DCC7;--ink:#232922;--soft:#5B6459;--line:#D6CFB9;--seal:#AC3327;--done:#3E6B4F;--panel:#f6f2e8}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Noto Sans KR','Malgun Gothic',sans-serif;font-size:14px;line-height:1.6}button,input,textarea,select{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);border-radius:5px;padding:9px 13px;background:transparent;color:var(--ink);cursor:pointer;font-size:14px;text-decoration:none;white-space:nowrap}button:hover,.button:hover{background:var(--paper-deep)}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #a17a1e;outline-offset:3px}.primary{background:var(--seal);color:#fff;border-color:var(--seal)}.primary:hover{background:#8e2c23}.workspace{min-height:100vh;display:grid;grid-template-columns:240px minmax(0,1fr)}.sidebar{padding:34px 20px;position:sticky;top:0;height:100vh;border-right:1px solid #c9c1ad;background:#e7dfce;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:13px;color:var(--seal);font-size:40px;font-weight:800;text-decoration:none;padding:0 4px 38px}.brand span{font-size:20px;color:var(--ink);letter-spacing:-1px}.brand small{font-size:12px;letter-spacing:0;color:var(--soft);font-weight:400;display:block;margin-top:3px}.section-label{font-size:12px;color:var(--soft);padding:12px}.sidebar nav{display:grid;gap:6px}.sidebar nav button{justify-content:flex-start;border:0;padding:14px 12px;border-radius:4px;gap:12px}.sidebar nav .active{color:var(--seal);background:#d8ccb9;font-weight:700;border-left:3px solid var(--seal);padding-left:9px}.nav-tag{font-size:11px;margin-left:auto;opacity:.7}.profile{margin-top:auto;padding:20px 6px 10px;display:flex;align-items:center;gap:12px;border-top:1px solid var(--line)}.avatar{width:38px;height:38px;display:grid;place-items:center;background:#cfc4af;border-radius:50%;font-weight:700}.profile small{display:block;color:var(--soft);font-size:12px}.signout{color:var(--soft);font-size:12px;padding:5px 56px;text-decoration:none}.main{padding:0 30px 40px;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;min-height:111px;border-bottom:2px solid var(--ink);margin-bottom:20px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:var(--seal)}h1{font-size:26px;letter-spacing:-1px;margin:3px 0 0;font-weight:700}h2{font-size:22px;font-weight:700;margin:0 0 8px;letter-spacing:-.7px}h3{font-size:18px;font-weight:700;margin:0 0 12px}p{margin:6px 0 14px}.top-actions{display:flex;align-items:center;gap:20px}.today{font-size:14px;font-weight:700}.today small{display:block;text-align:right;font-size:11px;color:var(--soft);font-weight:400}.subline{display:flex;justify-content:space-between;gap:16px;font-size:12px;color:var(--soft);padding:9px 0 15px}.report-frame{width:100%;height:1400px;border:none;display:block;background:var(--paper)}.footnote{font-size:12px;color:var(--soft);margin-top:12px}.page-content{padding-top:12px}.narrow{max-width:1080px}.intro{margin:5px 0 26px}.intro p{font-size:14px;color:var(--soft)}.row{display:flex;justify-content:space-between;align-items:center;gap:12px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:7px;padding:24px;margin-bottom:22px}.welcome{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:24px}.welcome p{color:var(--soft);font-size:14px;margin-bottom:0}.notice{padding:14px 18px;border:1px solid;display:flex;align-items:center;gap:12px;border-radius:5px;margin:14px 0;font-size:14px}.notice button{margin-left:auto;padding:4px;border:0}.error{color:#8f2a21;border-color:#cfa19a;background:#f6e5df}.success{color:#36513a;border-color:#bbc8b8;background:#e4ecdf}.import-panel{text-align:center;padding:45px 25px}.import-panel p{font-size:13px;color:var(--soft)}.upload-icon{width:66px;height:66px;border:1px solid #c8bda8;background:var(--paper);border-radius:12px;display:grid;place-items:center;margin:0 auto 18px;color:var(--seal)}.file-button{display:inline-flex;border-radius:5px;padding:10px 23px;font-size:14px;cursor:pointer}.file-button input{position:absolute;width:1px;height:1px;opacity:0}.import-panel small{display:block;color:var(--soft);font-size:12px;margin-top:17px}.paste-panel summary{cursor:pointer;font-size:15px;font-weight:700}.paste-panel label{margin:18px 0}.panel-title,.panel-footer{display:flex;align-items:center;justify-content:space-between;gap:15px}.panel-title{margin-bottom:20px}.panel-title p,.panel-title span{font-size:13px;color:var(--soft);margin:0}.panel-footer{border-top:1px solid var(--line);padding-top:18px;margin-top:18px;font-size:12px;color:var(--soft)}.metrics{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:20px 0}.metrics>div{padding:20px;border-right:1px solid var(--line)}.metrics>div:last-child{border:0}.metrics b{font-size:30px;display:block}.metrics span{font-size:13px;color:var(--soft)}.warning{color:#8a5b0b;font-size:14px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}th{font-size:12px;font-weight:700;background:var(--paper-deep);padding:12px 14px;white-space:nowrap}td{padding:16px 14px;border-bottom:1px solid var(--line);vertical-align:top}td small{display:block;font-size:12px;color:var(--soft);margin-top:5px}.nowrap{white-space:nowrap}.content-cell{min-width:260px;max-width:520px}.content-cell b{font-size:12px;color:var(--soft);font-weight:400}.content-cell p{margin:5px 0;font-size:14px;word-break:keep-all;overflow-wrap:anywhere}.content-cell .note{color:#866727}.badge{display:inline-flex;border-radius:4px;padding:3px 8px;font-size:12px;white-space:nowrap}.done{background:#e2e9df;color:#3E6B4F}.progress{background:#efe5cc;color:#8a650b}.pending{background:#e3e0d3;color:#666351}.overdue{color:var(--seal)}.filters{display:flex;gap:10px;margin-bottom:15px}.filters>input:first-child{flex:1;min-width:150px}input,select,textarea{border:1px solid #c7beaa;border-radius:4px;background:#fcf9f1;padding:10px 12px;color:var(--ink);font-size:14px;max-width:100%}textarea{width:100%;resize:vertical}label{display:flex;flex-direction:column;gap:6px;font-size:14px}.checkbox{display:flex;flex-direction:row;align-items:center;font-size:12px}.small-btn{font-size:12px;padding:5px 8px;margin:0 5px 5px 0}.empty{padding:40px;text-align:center;color:var(--soft)}.linked{opacity:.65}.rule-row{display:grid;grid-template-columns:30px 1fr 1.4fr 36px 36px 36px;align-items:center;gap:9px;margin:12px 0}.rule-row button{padding:8px}.rule-number{color:var(--soft);font-size:12px}.history-row{display:flex;align-items:center;gap:18px;padding:20px 0;border-bottom:1px solid var(--line)}.history-row>div{flex:1}.history-row small{display:block;font-size:12px;color:var(--soft);margin-top:5px}.audit-row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}.audit-row time{font-size:12px;color:var(--soft)}dialog{border:1px solid #b3a58d;border-radius:8px;background:var(--panel);color:var(--ink);padding:26px;width:620px;max-width:calc(100% - 32px);max-height:90vh;overflow:auto;margin:auto;box-shadow:0 24px 80px #23292245}dialog::backdrop{background:#23292270}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-head button{border:0;padding:5px}.modal-head h2{margin:0}dialog p{font-size:14px;color:var(--soft)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid .full{grid-column:1/-1}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.raw-detail{font-size:13px;margin:16px 0;background:var(--paper);padding:12px;border-radius:4px}.raw-detail summary{cursor:pointer}.raw-detail dl>div{display:grid;grid-template-columns:110px 1fr;gap:8px;border-bottom:1px solid var(--line);padding:6px 0}.raw-detail dd{margin:0;overflow-wrap:anywhere}.loading{margin-top:30px}
@media(min-width:1600px){.main{padding-right:50px;padding-left:50px}.report-frame{height:1300px}}@media(max-width:1050px){.workspace{grid-template-columns:195px minmax(0,1fr)}.sidebar{padding:26px 12px}.brand span{font-size:17px}.brand small{font-size:10px}.main{padding:0 20px 25px}.filters{flex-wrap:wrap}.rule-row{grid-template-columns:25px 1fr 1fr 30px 30px 30px;gap:5px}.subline{flex-wrap:wrap}.report-frame{height:1750px}}@media(max-width:700px){.workspace{display:block}.sidebar{position:relative;height:auto;padding:15px;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0 0 12px;font-size:30px}.brand small,.section-label,.profile,.signout{display:none}.sidebar nav{display:flex;overflow:auto;gap:4px}.sidebar nav button{padding:10px;font-size:12px;gap:6px;flex-shrink:0}.sidebar nav .active{border-left:0;border-bottom:3px solid var(--seal);padding-left:10px}.nav-tag{display:none}.main{padding:0 14px 20px}.topbar{min-height:92px}.topbar h1{font-size:22px}.welcome,.row{align-items:flex-start;flex-direction:column}.panel{padding:18px}.metrics>div{padding:12px 5px}.metrics b{font-size:25px}.metrics span{font-size:11px}.history-row{flex-wrap:wrap}.history-row>div{min-width:75%}.rule-row{grid-template-columns:20px 1fr 1fr}.rule-row button{grid-row:auto}.panel-footer{align-items:flex-start;flex-direction:column}.form-grid{grid-template-columns:1fr}.report-frame{height:2350px}.today{font-size:12px}.top-actions{gap:10px}}

/* Three primary work pages */
.workspace{display:block;}.workspace>.main{max-width:1480px;margin:0 auto;padding:0 32px 48px;}.topbar{min-height:108px;}.primary-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);padding:12px 0;margin-bottom:24px;}.primary-tabs button{border:0;border-radius:0;font-size:16px;padding:12px 24px;border-bottom:3px solid transparent;}.primary-tabs button.active{color:var(--seal);border-bottom-color:var(--seal);font-weight:700;}.report-frame{min-height:750px;width:100%;}.status-overview h2,.report-history h2{font-size:22px;}.status-overview h2 small{font-size:14px;color:var(--soft);font-weight:400;}.overdue-panel{border:1px solid #b7352c;border-top:5px solid #b7352c;background:#fcf1eb;}.overdue-panel h2{color:#94291f;}.summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;}.summary-grid>div{display:flex;flex-direction:column;padding:16px 12px;background:var(--paper);border-radius:5px;}.summary-grid strong{font-size:30px;}.summary-grid span{font-size:14px;color:var(--soft);}.overview-item{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--line);}.overview-item:last-child{border-bottom:0;}.overview-item>div:first-child{min-width:0;}.overview-item b{font-size:15px;white-space:pre-wrap;overflow-wrap:anywhere;}.overview-item small{display:block;margin-top:6px;font-size:13px;color:var(--soft);}.overview-item p{font-size:14px;margin:8px 0 0;white-space:pre-wrap;}.work-metadata{display:flex;align-items:center;gap:10px;flex-shrink:0;font-size:14px;}.late-badge{display:inline-block;color:#a0261b;background:#f9dcd4;border-radius:4px;padding:4px 9px;font-size:14px;white-space:nowrap;}.due-badge{color:var(--ink);white-space:nowrap;}.overview-group{margin-top:24px;}.overview-group h3{font-size:17px;margin:0;border-bottom:2px solid var(--line);padding-bottom:8px;}.overview-group h3 small{font-size:13px;color:var(--soft);font-weight:400;}.category-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}.category-overview>div{display:flex;flex-direction:column;gap:8px;}.category-overview span{font-size:14px;color:var(--soft);}.category-overview progress{width:100%;height:8px;accent-color:var(--done);}.report-history-row{display:flex;align-items:center;gap:24px;padding:20px 0;border-bottom:1px solid var(--line);}.report-history-row h3{font-size:17px;margin:0;}.report-history-row>div{display:flex;gap:18px;flex-wrap:wrap;font-size:14px;}.report-history-row button{margin-left:auto;}.administration>summary{cursor:pointer;font-weight:700;font-size:16px;}.administration .page-content{margin-top:20px;}.administration .panel{box-shadow:none;}.status-overview .panel{margin-bottom:24px;}
@media(max-width:900px){.summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.work-metadata{flex-wrap:wrap;max-width:190px;justify-content:flex-end;}.category-overview{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.workspace>.main{padding:0 14px 32px;}.primary-tabs{gap:0;}.primary-tabs button{flex:1;padding:12px 6px;font-size:15px;}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.overview-item{flex-direction:column;gap:10px;}.work-metadata{max-width:none;justify-content:flex-start;}.category-overview{grid-template-columns:1fr;}.report-history-row{flex-wrap:wrap;gap:12px;}.report-history-row>div{order:3;width:100%;gap:12px;}.report-history-row button{margin-left:auto;}.topbar h1{font-size:24px;}}

.header-signout{font-size:13px;color:var(--soft);text-decoration:none;}@media(max-width:600px){.header-signout{font-size:12px;}.top-actions{gap:8px;}}

#excel-upload{scroll-margin-top:24px;}.upload-shortcut{border-color:var(--seal);color:var(--seal);font-weight:700;}@media(max-width:600px){.topbar{flex-wrap:wrap;padding:20px 0;gap:12px;}.top-actions{flex-wrap:wrap;}.upload-shortcut{font-size:13px;}}

.report-count{justify-content:flex-end;margin:0 0 12px;}.primary-tabs{margin-bottom:16px;}

/* Primary navigation consolidated on the left. */
.workspace{display:grid;grid-template-columns:224px minmax(0,1fr);}.workspace>.main{width:100%;max-width:1480px;min-width:0;padding:0 32px 48px;}.app-sidebar{position:sticky;top:0;height:100dvh;padding:32px 18px;background:#e7dfce;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:24px;}.sidebar-identity{display:flex;flex-direction:column;gap:6px;padding:0 12px;}.sidebar-identity b{font-size:17px;}.sidebar-identity span{font-size:14px;color:var(--soft);}.app-sidebar .primary-tabs{display:flex;flex-direction:column;gap:6px;padding:0;margin:0;border:0;}.app-sidebar .primary-tabs button{width:100%;justify-content:flex-start;text-align:left;border:0;border-left:3px solid transparent;border-radius:4px;padding:13px 14px;font-size:16px;}.app-sidebar .primary-tabs button.active{border-left-color:var(--seal);background:var(--paper-deep);}.sidebar-tools{padding-top:20px;border-top:1px solid var(--line);}.sidebar-tools button{width:100%;justify-content:flex-start;padding:12px 14px;}.sidebar-bottom{margin-top:auto;padding:12px;}.sidebar-bottom a{font-size:14px;}.report-count{margin-top:18px;}
@media(max-width:760px){.workspace{grid-template-columns:164px minmax(0,1fr);}.app-sidebar{padding:24px 10px;}.workspace>.main{padding:0 16px 32px;}.sidebar-identity{padding:0 8px;}.app-sidebar .primary-tabs button{font-size:14px;padding:12px 10px;}.sidebar-tools button{font-size:13px;padding:10px 8px;}}
@media(max-width:520px){.workspace{grid-template-columns:124px minmax(0,1fr);}.app-sidebar{padding:20px 8px;gap:18px;}.sidebar-identity b{font-size:14px;}.sidebar-identity span{font-size:13px;}.app-sidebar .primary-tabs button{font-size:13px;padding:11px 6px;}.sidebar-tools button{white-space:normal;gap:5px;}.sidebar-tools svg{width:14px;flex-shrink:0;}.workspace>.main{padding:0 10px 24px;}.topbar h1{font-size:21px;}.sidebar-bottom{padding:8px;}}

@media(max-width:520px){.workspace{display:block;}.app-sidebar{position:relative;height:auto;display:grid;grid-template-columns:1fr auto;gap:12px;padding:16px;border-right:0;border-bottom:1px solid var(--line);}.app-sidebar .primary-tabs{grid-column:1/-1;flex-direction:row;}.app-sidebar .primary-tabs button{justify-content:center;}.sidebar-tools{padding:0;border:0;grid-column:2;grid-row:1;}.sidebar-bottom{margin:0;padding:0;grid-column:2;justify-self:end;}.sidebar-identity{padding:0;}.workspace>.main{padding:0 14px 24px;}}

.sidebar-tools{display:flex;flex-direction:column;gap:10px;}.manual-shortcut{font-weight:700;}

.sidebar-brand{font-size:21px;font-weight:700;letter-spacing:-.03em;padding:0 10px;}.sidebar-bottom .sidebar-identity{padding:0;margin-bottom:20px;}@media(max-width:760px){.sidebar-brand{font-size:17px;padding:0 4px;}}@media(max-width:520px){.sidebar-bottom{grid-column:1/-1;justify-self:stretch;display:flex;align-items:center;justify-content:space-between;}.sidebar-bottom .sidebar-identity{margin:0;flex-direction:row;gap:10px;}.sidebar-brand{grid-row:1;}}

.manual-entry{max-width:900px;margin:24px auto;}.manual-entry>h2{margin-top:0;}.manual-entry .form-grid{margin-top:24px;}#excel-paste{scroll-margin-top:24px;}.sidebar-tools button{white-space:normal;text-align:left;}

.sidebar-brand{display:flex;flex-direction:column;gap:8px;}.sidebar-brand .eyebrow{font-size:11px;letter-spacing:.18em;}.sidebar-brand strong{font-size:21px;line-height:1.4;}@media(max-width:760px){.sidebar-brand strong{font-size:17px;}}

.top-actions{flex-direction:column;align-items:flex-end;gap:8px;}.top-actions .report-count{margin:0;font-size:12px;text-align:right;}.entry-divider{border-top:1px solid var(--line);margin:32px 0;}.manual-entry .paste-panel{margin-bottom:0;box-shadow:none;}.topbar{padding-top:20px;padding-bottom:20px;}

.work-link{color:#245e80;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;}.work-link:hover{color:var(--seal);}
.monthly-report{min-width:0}.monthly-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}.monthly-heading h2{margin:0;font-size:26px}.monthly-heading p{margin:6px 0;color:var(--soft);font-size:14px}.monthly-controls{display:flex;gap:8px;align-items:center}.monthly-controls button{min-height:44px;min-width:44px}.monthly-controls input{width:158px;min-width:0}.monthly-summary{display:flex;gap:24px;align-items:center;flex-wrap:wrap;margin:24px 0 16px;font-size:14px;color:var(--soft)}.monthly-summary b{color:var(--ink);margin-left:6px}.monthly-legend{display:flex;gap:14px;margin-left:auto;font-size:12px}.monthly-legend span,.monthly-state-counts span{display:inline-flex;gap:5px;align-items:center}.done-dot,.progress-dot,.other-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#477351;flex-shrink:0}.progress-dot{background:#aa7919}.other-dot{background:#7b8177}.monthly-weekdays,.monthly-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.monthly-weekdays{text-align:center;border:1px solid var(--line);background:var(--paper-deep);border-radius:8px 8px 0 0;font-size:13px}.monthly-weekdays span{padding:10px}.monthly-weekdays span:first-child,.monthly-day.sunday .monthly-date{color:var(--seal)}.monthly-weekdays span:last-child,.monthly-day.saturday .monthly-date{color:#326681}.monthly-grid{border-left:1px solid var(--line)}.monthly-day{min-height:112px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;text-align:left;white-space:normal;gap:4px;padding:10px 14px;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;min-width:0;position:relative}.monthly-day.outside{background:#ebe6d9;color:#777d72}.monthly-day.outside .monthly-date{opacity:.6}.monthly-day.selected{background:#fffaf0;box-shadow:inset 0 0 0 2px var(--seal);z-index:1}.monthly-day:hover{background:#ece6d5}.monthly-date{font-weight:600;display:flex;justify-content:space-between;align-items:center;font-size:14px}.monthly-day.is-today .monthly-date>span{background:var(--seal);color:white;min-width:25px;height:25px;text-align:center;border-radius:50%;line-height:25px}.monthly-date small{font-size:11px;color:var(--seal)}.monthly-count{font-size:23px;line-height:1.2;margin-top:3px}.monthly-count small{font-size:12px;font-weight:400;margin-left:4px;color:var(--soft)}.monthly-state-counts{display:flex;gap:12px;font-size:12px;color:var(--soft);flex-wrap:wrap}.monthly-empty{color:#a3a494;font-size:18px;margin-top:6px}.monthly-hint{font-size:12px;color:var(--soft);margin:12px 0 24px}.monthly-detail{border-top:2px solid var(--line);padding-top:24px}.monthly-detail-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.monthly-detail-heading h3{margin:3px 0 12px;font-size:21px}.monthly-detail-heading h3 small{font-size:14px;color:var(--soft);margin-left:8px}.monthly-task{display:flex;gap:20px;border-top:1px solid var(--line);padding:18px 0}.monthly-task-status{display:flex;align-items:center;flex-direction:column;gap:8px;min-width:70px;font-size:13px;color:var(--soft)}.monthly-task-content{min-width:0;flex:1}.monthly-task-content b{font-size:16px}.monthly-task-content p{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.monthly-task-content small{color:var(--soft);font-size:12px}.monthly-detail-empty{text-align:center;background:var(--paper);padding:32px 16px;border-radius:8px;margin-top:12px;color:var(--soft)}.monthly-detail-empty p{margin-bottom:0;font-size:14px}@media(max-width:650px){.monthly-report.panel{padding:14px}.monthly-heading{gap:12px}.monthly-heading h2{font-size:23px}.monthly-heading p{font-size:12px}.monthly-controls{width:100%;gap:6px}.monthly-controls input{flex:1;width:110px}.monthly-controls button{padding:8px 10px}.monthly-summary{gap:8px 18px;margin:18px 0 12px;font-size:12px}.monthly-legend{width:100%;margin:3px 0 0;gap:14px;font-size:11px}.monthly-day{padding:7px 4px;min-height:91px;gap:4px}.monthly-date{font-size:12px}.monthly-date small{display:none}.monthly-count{font-size:20px}.monthly-count small{font-size:10px;margin-left:2px}.monthly-state-counts{font-size:10px;gap:3px 6px}.monthly-state-counts span{gap:3px}.monthly-state-counts i{width:5px;height:5px}.monthly-day.is-today .monthly-date>span{min-width:22px;height:22px;line-height:22px}.monthly-weekdays span{padding:8px 0}.monthly-task{gap:10px}.monthly-task-status{min-width:55px}.monthly-task-content p{font-size:14px}.monthly-detail-heading h3{font-size:18px}.monthly-detail-heading button{font-size:12px}.monthly-hint{font-size:11px}}

/* Use available width while keeping one consistent page edge. */
.workspace>.main{max-width:none;margin:0;padding:0 24px 32px;}
.monthly-day.holiday .monthly-date{color:var(--seal);}
.monthly-holiday{display:block;color:var(--seal);font-size:12px;font-weight:500;line-height:1.4;overflow-wrap:anywhere;}
@media(max-width:760px){.workspace>.main{padding:0 16px 28px;}}
@media(max-width:520px){.workspace>.main{padding:0 12px 24px;}.monthly-holiday{font-size:10px;}}

.report-file-dialog{width:min(1100px,94vw);max-width:94vw;max-height:94vh;overflow:auto}.report-file-list{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.report-document-preview{width:100%;height:65vh;border:1px solid var(--line)}.report-image-preview{max-width:100%;max-height:65vh;object-fit:contain;display:block;margin:auto}

/* Month view: compact event titles with an accessible details dialog. */
.monthly-grid .monthly-day{min-height:156px;padding:6px;gap:4px;background:#fffdf8;cursor:default}
.monthly-grid .monthly-day.outside{background:#f2eee5}
.monthly-grid .monthly-day.selected{background:#f6f8fc;box-shadow:inset 0 0 0 1px #a8bbd6}
.monthly-grid .monthly-day:hover{background:#faf8f1}
.monthly-grid .monthly-date{border:0;background:none;padding:2px 5px;min-height:30px;width:100%;border-radius:6px;font-size:13px}
.monthly-grid .monthly-date>span{display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;border-radius:50%}
.monthly-grid .monthly-date small{font-size:10px;color:#788174;font-weight:400}
.monthly-grid .monthly-date:hover>span{background:#e9e3d5}
.monthly-grid .monthly-day.is-today .monthly-date>span{background:#315d9d;color:white}
.monthly-grid .monthly-holiday{font-size:11px;padding:0 7px;line-height:18px}
.calendar-events{display:flex;flex-direction:column;gap:3px;min-width:0}
.calendar-event{display:flex;align-items:center;gap:5px;min-width:0;width:100%;text-align:left;border:0;border-radius:4px;padding:5px 6px;font-size:12px;line-height:18px;background:#e9edf0;color:#465361}
.calendar-event.progress{background:#e8effb;color:#234e86}.calendar-event.done{background:#e8f1e9;color:#386345}.calendar-event.pending{background:#edeaf3;color:#62547c}
.calendar-event:hover{filter:brightness(.94)}.calendar-event:focus-visible,.monthly-date:focus-visible,.calendar-more:focus-visible{outline:2px solid #315d9d;outline-offset:-2px}
.event-dot{width:5px;height:5px;background:currentColor;border-radius:50%;flex:none}.event-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}
.calendar-more{font-size:11px;padding:3px 7px;border:0;background:transparent;text-align:left;color:#5e665c;border-radius:4px;min-height:26px}
.calendar-popup{width:min(560px,92vw);max-width:92vw;max-height:85vh;overflow:auto;padding:24px}.calendar-popup h3{font-size:21px;line-height:1.5;overflow-wrap:anywhere}.calendar-popup p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.calendar-popup-meta{font-size:12px;color:var(--soft)}
.monthly-legend .progress-dot{background:#315d9d}.monthly-legend .other-dot{background:#79668f}
@media(max-width:650px){.monthly-grid .monthly-day{padding:3px 2px;min-height:132px}.calendar-event{font-size:10px;padding:3px 2px;gap:2px;line-height:17px}.event-dot{display:none}.monthly-grid .monthly-date{padding:0 1px;font-size:11px}.monthly-grid .monthly-date small{display:none}.calendar-more{font-size:10px;padding:3px 1px}.monthly-grid .monthly-holiday{font-size:10px;padding:0 2px}.calendar-popup{padding:16px}}

.calendar-view-switch{display:flex;gap:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;flex-shrink:0}.calendar-view-switch button{border:0;border-radius:0;background:transparent;min-width:42px}.calendar-view-switch button[aria-pressed="true"]{background:#315d9d;color:white;font-weight:700}
.calendar-mode-week .monthly-day{min-height:350px}.calendar-mode-week .event-title,.calendar-mode-day .event-title{white-space:normal;overflow-wrap:anywhere}.calendar-mode-week .calendar-event{align-items:flex-start}
.calendar-mode-day .monthly-weekdays,.calendar-mode-day .monthly-grid{grid-template-columns:minmax(0,1fr)}.calendar-mode-day .monthly-day{min-height:180px;padding:14px}.calendar-mode-day .calendar-event{font-size:14px;padding:12px;gap:10px}.calendar-mode-day .calendar-events{gap:8px}.calendar-mode-day .monthly-date{justify-content:flex-start;gap:12px}
@media(max-width:650px){.monthly-controls{flex-wrap:wrap}.calendar-view-switch{width:100%;justify-content:center}.calendar-view-switch button{flex:1}.calendar-mode-week .monthly-grid,.calendar-mode-week .monthly-weekdays{grid-template-columns:repeat(7,minmax(105px,1fr));min-width:735px}.calendar-mode-week{overflow-x:auto}.calendar-mode-week .monthly-day{min-height:280px}.calendar-mode-day .monthly-day{min-height:120px}}

.calendar-span-week.monthly-grid{position:relative;isolation:isolate}
.calendar-span-week.monthly-grid .monthly-day{min-height:0;z-index:0}
.calendar-span-week .calendar-span{z-index:2;align-self:center;width:auto;margin:2px 3px;height:28px;padding:4px 8px;border-radius:5px;overflow:hidden}
.calendar-span-week .calendar-span .event-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calendar-span-week .calendar-span.progress{background:#dbe7fb;border-left:3px solid #4779bd}
.calendar-span-week .calendar-span.done{background:#dfeddf;border-left:3px solid #568264}
.calendar-span-week .calendar-span.pending{background:#e9e1f1;border-left:3px solid #8c6aad}
.calendar-mode-day .calendar-span-week .calendar-span{font-size:14px}
@media(max-width:650px){.calendar-mode-month .calendar-weeks,.calendar-mode-month .monthly-weekdays{min-width:735px}.calendar-mode-month{overflow-x:auto}.calendar-span-week .calendar-span{font-size:11px}}

.calendar-task-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;margin:20px 0}.calendar-task-facts div{min-width:0}.calendar-task-facts dt{font-size:12px;color:var(--soft)}.calendar-task-facts dd{margin:4px 0 0;overflow-wrap:anywhere}.calendar-popup-section{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.calendar-popup-section h4{margin:0 0 12px}.calendar-popup-section h5{margin:16px 0 6px}.calendar-popup-section p{white-space:pre-wrap;overflow-wrap:anywhere}.calendar-popup-section small{font-weight:400;color:var(--soft)}.calendar-record-history{padding:12px 0;border-bottom:1px solid var(--line)}.calendar-popup-section summary{cursor:pointer;font-weight:600}

/* Fixed calendar heights; overflowing tasks remain reachable inside each week. */
.calendar-week-viewport{height:300px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
.calendar-week-viewport .calendar-span-week{min-height:100%;box-sizing:border-box}
.calendar-mode-week .calendar-week-viewport,.calendar-mode-day .calendar-week-viewport{height:800px}
.calendar-week-viewport:focus-visible{outline:2px solid #315d9d;outline-offset:-2px}

.calendar-week-viewport{overflow:hidden}
.calendar-overflow-more{z-index:2;align-self:center;margin:0 4px;padding:4px 7px;border:0;background:transparent;text-align:left;font-size:12px;color:#315d9d;white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}
.calendar-overflow-more:hover{background:#e8effb}
.calendar-overflow-list{display:flex;flex-direction:column;gap:8px;max-height:65vh;overflow:auto}
.calendar-overflow-list .calendar-event{padding:10px;align-items:flex-start}
.calendar-overflow-list .event-title{white-space:normal;overflow-wrap:anywhere;flex:1}
.calendar-overflow-list small{white-space:nowrap}

.report-filters{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:18px 0}.report-filters label{display:flex;align-items:center;gap:8px;font-size:14px}.report-filters select{min-width:160px;max-width:100%}.report-filters>span{color:var(--soft);font-size:13px}.calendar-reporter-heading{margin:14px 0 8px;font-size:14px}

.primary-tabs button{display:flex;align-items:center;gap:12px}.primary-tabs button svg{flex-shrink:0;color:#73796f}.primary-tabs button.active svg{color:var(--seal)}
.calendar-reporter-heading{display:flex;align-items:center;gap:9px;padding:12px 0 6px;border-top:1px solid var(--line);font-size:16px}.calendar-reporter-heading svg{color:var(--seal);flex-shrink:0}
#calendar-more-title{display:flex;align-items:center;gap:9px}
.calendar-overflow-popup{background:#fffdfa;border-radius:10px;box-shadow:0 14px 48px #0003}
.calendar-overflow-list .calendar-event{background:transparent;border-bottom:1px solid #ece8df;border-radius:0;padding:12px 4px;align-items:center}.calendar-overflow-list .calendar-event small{padding:3px 7px;border-radius:4px;font-size:11px}.calendar-overflow-list .calendar-event.progress small{background:#dceafb;color:#2167af}.calendar-overflow-list .calendar-event.done small{background:#dff0db;color:#28733a}

.daily-report-page>.topbar{border-bottom:0;padding-bottom:0;margin-bottom:0}.daily-report-page>.topbar .eyebrow{display:none}.daily-report-page>.topbar h1{font-size:30px;letter-spacing:-.8px;line-height:1.3;color:#151a22;margin:0}
.daily-report-page>.report-filters{margin:14px 0 24px;gap:16px;align-items:center}.daily-report-page .report-filters label{gap:10px;font-size:13px;color:#20242a}.daily-report-page .report-filters select,.daily-report-page .report-date-picker{background:#fff;border:1px solid #d9dadd;border-radius:6px;height:36px;padding:6px 10px;color:#262b32;font-size:13px;box-shadow:0 1px 2px #00000005}.daily-report-page .report-filters select{min-width:112px;max-width:210px}.daily-report-page .report-date-picker{width:155px;min-width:145px}
@media(max-width:650px){.daily-report-page>.report-filters{gap:10px}.daily-report-page .report-filters select{min-width:95px;max-width:150px}.daily-report-page>.topbar h1{font-size:26px}}

.sidebar-home{display:block;width:100%;border:0;border-radius:0;background:transparent;text-align:left;color:inherit;cursor:pointer;font:inherit}.sidebar-home:hover{background:rgba(255,255,255,.2)}.sidebar-home:focus-visible{outline:2px solid var(--seal);outline-offset:-2px}

.sidebar-home{display:flex;flex-direction:column;gap:8px}.sidebar-home strong{font-size:36px;line-height:1.2;letter-spacing:-.06em;white-space:nowrap}.sidebar-home .eyebrow{font-size:12px}@media(min-width:761px){.workspace{grid-template-columns:268px minmax(0,1fr)}}@media(min-width:521px) and (max-width:760px){.workspace{grid-template-columns:236px minmax(0,1fr)}.sidebar-home strong{font-size:34px}}@media(max-width:520px){.sidebar-home strong{font-size:32px}}

/* Monthly heading and compact inline filters match the daily reporting design. */
.monthly-report-page>.topbar{border-bottom:0;padding-bottom:0;margin-bottom:0}
.monthly-report-page>.topbar .eyebrow{display:none}
.monthly-report-page>.topbar h1{font-size:30px;letter-spacing:-.8px;line-height:1.3;color:#151a22;margin:0}
.monthly-report-page>.report-filters{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:0 0 20px;padding:0}
.monthly-report-page>.report-filters label{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0;font-size:13px;color:#20242a;white-space:nowrap}
.monthly-report-page>.report-filters select{width:140px;min-width:112px;max-width:190px;height:36px;margin:0;padding:6px 10px;background:#fff;border:1px solid #d9dadd;border-radius:6px;color:#262b32;font-size:13px;box-shadow:0 1px 2px #00000005}
.monthly-report-page>.report-filters>span{font-size:13px;color:var(--soft)}
@media(max-width:650px){.monthly-report-page>.topbar h1{font-size:26px}.monthly-report-page>.report-filters{gap:10px}.monthly-report-page>.report-filters select{width:112px;min-width:95px;max-width:150px}}

/* Shared action spacing; calendar date cells and spanning events keep their grid geometry. */
.action-buttons{display:inline-flex;align-items:center;flex-wrap:wrap;gap:10px}
.sidebar-actions{display:flex;margin-top:12px}.account-actions{margin:8px 0 8px 12px}
.modal-actions,.monthly-controls,.report-file-list{gap:10px;flex-wrap:wrap}
.modal-head{gap:12px}.app-sidebar .primary-tabs{gap:8px}
.calendar-view-switch{gap:8px;border:0;overflow:visible}
.calendar-view-switch button{border:1px solid var(--line);border-radius:5px}
form>button+button,td>button+button{margin-inline-start:10px;margin-block:4px}
td>button{margin-block:4px}
main.panel>form+p{margin-top:14px}
@media(max-width:650px){.account-actions{display:flex;margin-left:0}.sidebar-actions{gap:8px}.modal-actions{row-gap:10px}}

/* Separate the brand/navigation and page heading/content with a consistent rule. */
.sidebar-home{padding-bottom:20px;border-bottom:1px solid #c8bfa9;border-radius:0}
.daily-report-page>.topbar,.monthly-report-page>.topbar{border-bottom:1px solid #c8bfa9;margin-bottom:20px;padding-bottom:20px}
@media(max-width:520px){.sidebar-home{padding-bottom:12px}.daily-report-page>.topbar,.monthly-report-page>.topbar{margin-bottom:16px;padding-bottom:16px}}

@media(min-width:521px){
 .workspace{--report-header-height:128px}
 .app-sidebar{padding-top:0}
 .app-sidebar>.sidebar-home{height:var(--report-header-height);min-height:var(--report-header-height);flex-shrink:0;justify-content:center;padding-top:20px;padding-bottom:20px}
 .workspace>.main>.topbar{height:var(--report-header-height);min-height:var(--report-header-height);box-sizing:border-box;margin-top:0;padding-top:20px;padding-bottom:20px;border-bottom:1px solid #c8bfa9}
}

.login-panel form>.primary{margin-top:18px}.login-panel>form+p{margin-top:16px}

.login-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px}.login-actions>.button,.login-actions>button{margin:0}

.accounts-page{max-width:1200px}.accounts-page h2 small{font-size:14px;color:var(--soft);font-weight:400}.accounts-page form>button{margin-top:18px}.accounts-page .panel-title{flex-wrap:wrap}

/* Align heading baselines while keeping the shared divider height. */
@media(min-width:521px){
 .app-sidebar>.sidebar-home{display:grid;grid-template-rows:20px 44px;align-content:center;justify-content:start;justify-items:start;gap:8px}
 .app-sidebar>.sidebar-home strong{align-self:baseline;line-height:44px}
 .workspace>.main>.topbar>div{display:grid;grid-template-rows:20px 44px;align-content:center;gap:8px}
 .workspace>.main>.topbar>div>.eyebrow{grid-row:1}
 .workspace>.main>.topbar>div>h1{grid-row:2;align-self:baseline;line-height:44px;margin:0;transform:translateY(2px)}
}

.import-methods{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px;align-items:stretch}.import-methods>.panel{margin:0;min-width:0}.import-methods>.import-panel{padding:28px 20px}.import-methods .paste-panel textarea{width:100%}@media(max-width:760px){.import-methods{grid-template-columns:1fr}}

.import-methods{gap:12px}.import-methods>.panel,.import-methods>.import-panel{padding:14px 16px}.import-methods .upload-icon{display:none}.import-methods h3{font-size:16px;margin:0 0 4px}.import-methods p{margin:0 0 8px}.import-methods small{display:block;font-size:11px;margin-top:6px}.import-methods textarea{min-height:58px;max-height:160px;margin:5px 0;resize:vertical}.import-methods label{font-size:12px}.import-methods button,.import-methods .file-button{padding:6px 10px;font-size:12px}.import-methods .paste-panel summary{margin-bottom:6px}.manual-entry>.entry-divider{margin:18px 0}

.organization-page{padding:24px;background:#faf9f5;border:1px solid #dcd5c3;border-radius:14px}.org-caption{display:flex;justify-content:space-between;align-items:center;gap:16px}.org-caption h2{margin:0;font-size:24px}.org-caption p,.org-caption>span,.org-source{color:#687068;font-size:13px}.org-root{display:flex;align-items:center;justify-content:center;gap:14px;max-width:260px;margin:26px auto 0;padding:20px;background:#293a34;color:white;border-radius:10px}.org-root span,.org-root strong{display:block}.org-root strong{font-size:23px;margin-top:5px}.org-branches{display:grid;grid-template-columns:0.85fr 1fr 1.15fr;gap:22px;padding-top:32px;position:relative}.org-branches:before{content:'';position:absolute;top:0;left:50%;height:32px;border-left:1px solid #b7bdaf}.org-division{border:1px solid #dcd5c3;border-radius:10px;background:white;padding:18px;align-self:start;border-top:4px solid #7a8272;min-width:0}.org-division>h3,.org-subdivision>h3{display:flex;align-items:center;gap:9px;font-size:18px;margin:0 0 14px}.org-subdivision{border-top:1px solid #deded6;margin-top:20px;padding-top:18px}.org-team{border:1px solid #e3e5de;border-radius:8px;margin-top:14px;overflow:hidden}.org-team h4{display:flex;align-items:center;gap:8px;margin:0;padding:11px 12px;background:#f0f2ec;font-size:15px}.org-team h4 small{margin-left:auto;font-weight:400;color:#69736b}.org-people{padding:0;margin:0;list-style:none}.org-people li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;padding:11px 12px;border-bottom:1px solid #eeeee8;font-size:14px}.org-people li:last-child{border:0}.org-people li>span{color:#58655d}.org-people small{grid-column:1/-1;color:#727c73;line-height:1.5}.org-note{font-size:12px;color:#56705f;margin:10px 0 0}.org-source{border-top:1px solid #dcd5c3;padding-top:18px;margin-top:24px;line-height:1.6}@media(max-width:1000px){.org-branches{grid-template-columns:1fr 1fr}.org-division:last-child{grid-column:1/-1}}@media(max-width:650px){.organization-page{padding:14px}.org-branches{grid-template-columns:1fr}.org-caption{align-items:flex-start;flex-direction:column}.org-division:last-child{grid-column:auto}}

.google-sync-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:12px 14px;background:#24675f;color:#fff;border:1px solid #24675f;border-radius:8px}.google-sync-button:hover:not(:disabled){background:#1b514b;border-color:#1b514b}.google-sync-button:focus-visible{outline:3px solid #78bcb2;outline-offset:3px}.google-sync-button:disabled{opacity:.65;cursor:wait}.google-sync-button span{display:flex;flex-direction:column;gap:4px;text-align:left}.google-sync-button strong{font-size:14px;line-height:1.4}.google-sync-button small{font-size:12px;line-height:1.4;color:#e0f1ed}

.task-target-date{margin-left:auto;font-size:12px;color:#a53b2f;text-align:right}.calendar-popup>.modal-head{gap:12px;flex-wrap:wrap}.calendar-popup>.modal-head .task-target-date{flex:1}.calendar-popup-section>p:first-child{margin-top:0}

.calendar-mode-week .calendar-week-viewport,.calendar-mode-day .calendar-week-viewport{overflow-y:auto;overflow-x:hidden}.calendar-mode-week .calendar-span-week .calendar-span,.calendar-mode-day .calendar-span-week .calendar-span{height:auto;min-height:28px;align-self:start;align-items:flex-start;padding:4px 8px;overflow:visible}.calendar-mode-week .calendar-span-week .event-title,.calendar-mode-day .calendar-span-week .event-title{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:normal;min-width:0;flex:1}.calendar-mode-week .calendar-span .event-dot,.calendar-mode-day .calendar-span .event-dot{margin-top:6px;flex-shrink:0}

.monthly-heading{margin-bottom:12px;gap:12px}.monthly-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:18px;flex-wrap:wrap;min-width:0}.monthly-toolbar .monthly-legend{margin:0;white-space:nowrap;gap:10px}@media(max-width:650px){.monthly-toolbar{width:100%;gap:8px;justify-content:flex-start}.monthly-toolbar .monthly-controls{width:100%}}

.company-calendar-event{position:relative;z-index:3;background:#ece4fa;color:#624483;border:0;border-radius:4px;padding:3px 6px;text-align:left;font-size:11px;line-height:18px;min-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}
.sales-report{display:grid;gap:18px}.sales-report .panel{padding:22px}.sales-heading,.sales-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.sales-controls{margin-top:20px;justify-content:flex-start}.sales-controls label{display:flex;align-items:center;gap:10px}.sales-controls [role=group]{display:flex;gap:8px}.sales-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:20px 0}.sales-kpis>div{padding:16px;border:1px solid var(--line);border-radius:8px;background:#fffdf7}.sales-kpis span{display:block;font-size:13px;color:#62695f}.sales-kpis strong{display:block;font-size:24px;margin-top:8px;color:#263e46}.sales-report table{width:100%;border-collapse:collapse;font-size:13px}.sales-report td,.sales-report th{padding:11px 12px;border-bottom:1px solid var(--line);white-space:nowrap;text-align:right}.sales-report th:first-child,.sales-report td:first-child{text-align:left}.sales-report thead{background:#ede8d8}.sales-report tbody td{font-weight:400}.sales-report h2{margin-top:0}.sales-report summary{cursor:pointer;font-weight:700}.sales-report details p{line-height:1.7}.sales-report .table-scroll{margin-top:16px}.sales-report select{max-width:100%}@media print{.app-sidebar,.sales-controls,.sales-heading button{display:none!important}.sales-report .table-scroll{overflow:visible}.sales-report table{font-size:8px}.sales-report td,.sales-report th{padding:4px;white-space:normal}.sales-report .panel{break-inside:avoid}.main{padding:0;margin:0}}

.sales-report{min-width:0;grid-template-columns:minmax(0,1fr)}.sales-report>.panel{min-width:0}.sales-report .table-scroll{max-width:100%}

.sales-annual{margin:22px 0;border:1px solid var(--line);border-radius:6px;overflow:hidden}.sales-annual h3{margin:0;padding:9px 14px;background:#303638;color:white;font-size:16px}.sales-annual-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}.sales-annual-grid>div{min-width:0;border-right:1px solid var(--line);text-align:right}.sales-annual-grid>div:last-child{border:0}.sales-annual-grid span{display:block;background:#ddeaf5;padding:9px;text-align:center;font-size:13px}.sales-annual-grid strong{display:block;padding:14px 10px;font-size:20px;overflow-wrap:anywhere}.sales-annual-business .sales-annual-grid span{background:#f6e2d7}@media(max-width:850px){.sales-annual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.sales-analysis-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding-bottom:20px;border-bottom:2px solid var(--line)}.sales-analysis-heading h2{margin:0}.sales-analysis-heading .sales-controls{margin:0}.sales-analysis-heading .sales-controls label{flex-direction:row}.sales-analysis-section{padding:22px 0}.sales-analysis-section+.sales-analysis-section{border-top:1px solid var(--line)}.sales-analysis-section:last-child{padding-bottom:0}@media(max-width:700px){.sales-analysis-heading .sales-controls{width:100%;flex-wrap:wrap}.sales-analysis-heading .sales-controls label{align-items:flex-start;flex-direction:column}}

.sales-period-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.sales-period-title select{font-size:22px;font-weight:700;padding:6px 10px;background:#fffdf7}.sales-period-title span{margin-left:4px}

.sales-report .sales-rise{color:#c53030;font-weight:700}.sales-report .sales-fall{color:#2563b5;font-weight:700}.sales-report .sales-flat{color:#72777e}

.sales-report .sales-rise::before{content:'▲ ';font-size:.85em}.sales-report .sales-fall::before{content:'▼ ';font-size:.85em}

.sales-table-title,.sales-title-block{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.sales-title-block{flex:1}.sales-unit{font-size:12px;font-weight:400;white-space:nowrap;letter-spacing:0}.sales-period-note{display:block;font-size:12px;font-weight:400;letter-spacing:0;margin-top:4px;opacity:.85}.sales-comparison-note{font-size:12px;color:#62695f;margin:10px 0 0;line-height:1.6}.sales-annual .sales-comparison-note{padding:0 12px 12px}

.sales-print-only{display:none}
@media print{
 @page{size:A4 landscape;margin:10mm}
 body:has(.sales-report){background:#fff!important;color:#222;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .workspace:has(.sales-report){display:block!important;width:100%!important}
 .workspace:has(.sales-report)>.main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
 .workspace:has(.sales-report) .app-sidebar,.workspace:has(.sales-report) .topbar,.workspace:has(.sales-report) .notice,.workspace:has(.sales-report) .loading{display:none!important}
 .sales-report{display:block!important;width:100%;font-size:9pt}
 .sales-report .sales-print-only{display:block}
 .sales-report .sales-period-title select,.sales-report .sales-controls,.sales-report .sales-heading button,.sales-report .sales-analysis-section>label{display:none!important}
 .sales-report .panel{padding:0!important;margin:0 0 6mm!important;border:0!important;border-radius:0!important;background:#fff!important;break-inside:auto!important}
 .sales-report .sales-analysis-group{break-before:page}
 .sales-report .sales-analysis-section{padding:4mm 0;break-inside:auto}
 .sales-report .sales-analysis-heading{padding-bottom:3mm}
 .sales-report h2{font-size:14pt}.sales-report h3{font-size:11pt}
 .sales-report .sales-heading{margin-bottom:4mm}.sales-report .sales-period-title{gap:8px}
 .sales-report .sales-annual{margin:4mm 0;break-inside:avoid}
 .sales-report .sales-annual-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
 .sales-report .sales-annual-grid strong{font-size:13pt;padding:3mm 2mm}.sales-report .sales-annual-grid span{font-size:9pt}
 .sales-report .sales-kpis{grid-template-columns:repeat(6,minmax(0,1fr));gap:2mm;margin:3mm 0}
 .sales-report .sales-kpis>div{padding:2mm}.sales-report .sales-kpis strong{font-size:13pt}.sales-report .sales-kpis span{font-size:8pt}
 .sales-report .table-scroll{overflow:visible!important;max-width:none!important;margin-top:3mm}
 .sales-report table{width:100%!important;table-layout:fixed;font-size:8pt}
 .sales-report th,.sales-report td{padding:2mm 1.5mm!important;white-space:normal!important;overflow-wrap:anywhere;font-size:8pt;vertical-align:middle}
 .sales-report th:first-child,.sales-report td:first-child{width:17%}
 .sales-report thead{display:table-header-group}.sales-report tr{break-inside:avoid}
 .sales-report h2,.sales-report h3,.sales-report .sales-table-title{break-after:avoid}
 .sales-report .sales-unit,.sales-report .sales-period-note,.sales-report .sales-comparison-note,.sales-report .footnote{font-size:8pt}
 .sales-print-context{margin:0 0 3mm;font-size:9pt}
}

/* Compact phone layouts; print rules remain independent. */
@media screen and (max-width:760px){
 .workspace{display:block}.workspace>.main{padding:0 10px 18px;max-width:100%}
 .app-sidebar{position:relative;height:auto;padding:10px;gap:8px;border-right:0;border-bottom:1px solid var(--line);display:flex}
 .app-sidebar>.sidebar-home{height:auto;min-height:0;padding:4px;gap:2px;display:block;text-align:left}
 .app-sidebar>.sidebar-home .eyebrow{font-size:9px}.app-sidebar>.sidebar-home strong{font-size:26px;line-height:1.2}
 .app-sidebar .primary-tabs{flex-direction:row;overflow-x:auto;gap:4px}.app-sidebar .primary-tabs button{width:auto;flex-shrink:0;font-size:13px;padding:10px 8px;min-height:40px}
 .sidebar-tools,.sidebar-bottom{padding:6px 0;margin:0}.sidebar-identity{gap:2px}.sidebar-identity b{font-size:14px}.sidebar-identity span{font-size:12px}
 .topbar{min-height:60px;margin-bottom:12px;padding:10px 0}.topbar h1{font-size:23px}
 .panel{padding:12px;margin-bottom:12px}.page-content{padding-top:4px}.intro{margin-bottom:12px}
 .sales-report{gap:10px}.sales-report .panel{padding:12px;margin-bottom:0}
 .sales-heading{gap:10px}.sales-period-title{gap:5px}.sales-period-title select{font-size:18px;padding:7px}.sales-period-title span{font-size:19px;margin:0}
 .sales-heading p{margin:4px 0;font-size:12px}.sales-heading>button{min-height:40px;padding:7px 10px}
 .sales-report h2{font-size:18px}.sales-report h3{font-size:16px}.sales-annual{margin:12px 0}
 .sales-annual h3{padding:8px 10px}.sales-annual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-annual-grid>div:last-child:nth-child(odd){grid-column:1/-1}
 .sales-annual-grid span{padding:6px;font-size:12px}.sales-annual-grid strong{font-size:19px;padding:8px}
 .sales-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:12px 0}.sales-kpis>div{padding:10px}.sales-kpis strong{font-size:20px;margin-top:3px}.sales-kpis span{font-size:12px}
 .sales-analysis-heading{gap:10px;padding-bottom:12px}.sales-title-block{width:100%;flex-basis:100%;gap:6px}.sales-analysis-heading .sales-controls{width:100%;gap:8px;justify-content:space-between}.sales-analysis-heading .sales-controls label{flex:1;min-width:140px;gap:4px}.sales-controls select{width:100%;min-height:40px}.sales-controls [role=group]{gap:4px}.sales-controls button{min-height:40px;padding:7px 10px}
 .sales-analysis-section{padding:14px 0}.sales-report .table-scroll{margin-top:10px}.sales-report td,.sales-report th{padding:9px 8px;font-size:12px}
 .sales-table-title{gap:6px}.sales-unit,.sales-period-note,.sales-comparison-note{font-size:11px}.sales-comparison-note{margin-top:6px}
 .modal-head{margin-bottom:12px}dialog{padding:16px;max-width:calc(100% - 16px)}.form-grid{gap:10px}
}

.sales-business-group .sales-analysis-group{margin-top:22px;padding-top:20px;border-top:2px solid var(--line)}.sales-scope-note{padding:11px 14px;margin:0 0 14px;border-left:3px solid #ac3327;background:#eee8d9;font-size:13px;line-height:1.6}.sales-business-group>.sales-annual{margin-top:0}@media screen and (max-width:760px){.sales-business-group .sales-analysis-group{margin-top:14px;padding-top:14px}.sales-scope-note{padding:9px 10px;font-size:12px}}@media print{.sales-scope-note{font-size:9pt;padding:2mm 3mm;break-inside:avoid}.sales-business-group .sales-analysis-group{border-top:0;margin-top:0;padding-top:0}}

.permission-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.permission-groups fieldset{margin:0;min-width:0;padding:16px;border:1px solid #d8cfb9;border-radius:8px}.permission-groups legend{font-weight:700;padding:0 6px}.permission-options{display:grid;gap:10px}.permission-options label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;text-align:left}.permission-options input{width:auto;margin:0}.permission-options small{color:#777;font-size:11px}.permission-groups>small{grid-column:1/-1}@media(max-width:650px){.permission-groups{grid-template-columns:1fr}}

.account-table-wrap{overflow-x:auto;margin-top:16px}.account-table{width:100%;border-collapse:collapse;min-width:820px;text-align:left}.account-table th,.account-table td{padding:12px 14px;border-bottom:1px solid var(--line,#d8cfb8);vertical-align:middle}.account-table th{background:#eee9dc;font-weight:700;white-space:nowrap}.account-table tbody tr:hover{background:#f7f3e9}.account-table-actions{display:flex;flex-wrap:wrap;gap:8px}.account-table-actions button{margin:0;white-space:nowrap;padding:8px 10px}

.account-registration-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;overflow-y:auto}.account-registration-dialog .permission-groups{margin-top:20px}.account-registration-dialog .modal-head h2{margin:0}.account-registration-dialog .modal-actions{gap:12px}@media(max-width:600px){.account-registration-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:18px}}

.access-history-filter{display:flex;align-items:center;gap:12px;margin:14px 0}.access-history-filter label{display:flex;flex-direction:row;align-items:center;gap:10px}.access-history-filter select{width:auto;min-width:180px}.access-history-filter>span{font-size:13px;color:var(--soft)}
/* Fixed column proportions, with minimum widths sized to each table. */
@media screen {
 .sales-report .sales-analysis-section table{table-layout:fixed;width:100%}
 .sales-report .sales-department-table{min-width:1180px}
 .sales-report .sales-period-table{min-width:820px}
 .sales-report .sales-half-table{min-width:600px}
 .sales-report .sales-analysis-section table th:first-child{width:170px}
 .sales-report .sales-analysis-section th,.sales-report .sales-analysis-section td{padding:10px 8px;white-space:normal;overflow-wrap:anywhere}
 .sales-report .sales-analysis-section td{font-variant-numeric:tabular-nums}
 .sales-report .sales-analysis-section .table-scroll{overflow-x:auto}
}

.sales-annual-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.sales-annual-subgroup{border-top:1px solid var(--line);margin-top:16px}
.sales-annual-subgroup h4{margin:0;padding:12px 14px;background:#eee9dc;font-size:15px}
.sales-annual-subgroup .sales-comparison-note{padding:0 12px}
@media(max-width:650px){.sales-annual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.sales-report .sales-annual-grid{grid-template-columns:repeat(auto-fit,minmax(35mm,1fr))!important}.sales-annual-subgroup{break-inside:avoid}}

.sales-quarter{margin-top:20px}.sales-quarter h3{margin:0;padding:10px 12px;background:#eee9dc;font-size:16px}.sales-quarter h3 small{font-size:12px;font-weight:400}.sales-quarter .table-scroll{margin-top:0}

.sales-department-label{display:flex;flex-direction:column;justify-content:center;gap:3px;line-height:1.4}
.sales-channel-label{font-size:12px;font-weight:400}
@media screen{.sales-report .sales-department-table tbody tr,.sales-report .sales-half-table tbody tr{height:78px}.sales-report .sales-department-table tbody th,.sales-report .sales-half-table tbody th,.sales-report .sales-department-table tbody td,.sales-report .sales-half-table tbody td{vertical-align:middle}}
@media screen {
 .sales-report .sales-analysis-section table{font-size:15px}
 .sales-report .sales-department-label{font-size:15px}
 .sales-report .sales-channel-label{font-size:14px}
 .sales-report .sales-department-table tbody tr,.sales-report .sales-half-table tbody tr{height:88px}
}

.sales-report tbody tr.sales-total-row{background:#e5ddc8;border-top:2px solid #9c9074;border-bottom:2px solid #9c9074}
.sales-report tbody tr.sales-total-row th,.sales-report tbody tr.sales-total-row td{font-weight:700}
.sales-report tbody tr.sales-total-row th{background:#d9cfb7}

.sales-quarter-filter{display:flex;align-items:center;gap:10px;margin:12px 0}.sales-quarter-filter select{width:150px}@media print{.sales-quarter-filter{display:none}}

.sales-quarter-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.sales-quarter-heading .sales-table-title{flex:1;margin:0;min-width:240px}
.sales-quarter-heading .sales-quarter-filter{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:10px;width:auto;margin:0;text-align:left;white-space:nowrap}
.sales-quarter-heading .sales-quarter-filter select{width:160px;margin:0}
@media(max-width:650px){.sales-quarter-heading .sales-quarter-filter{justify-content:flex-start}.sales-quarter-heading .sales-table-title{flex-basis:100%}}
/* Sales typography and controls adapt to the available screen width. */
@media screen {
 .sales-report .sales-table-title,.sales-report .sales-title-block h2{font-size:24px;line-height:1.4;font-weight:700}
 .sales-report .sales-annual h3{font-size:22px;padding:14px 16px}
 .sales-report .sales-annual-subgroup h4,.sales-report .sales-quarter h3{font-size:19px;line-height:1.4}
 .sales-report .sales-analysis-section,.sales-report .sales-analysis-group,.sales-quarter{min-width:0}
}
@media screen and (max-width:700px) {
 .sales-report .sales-table-title,.sales-report .sales-title-block h2{font-size:20px;line-height:1.45}
 .sales-report .sales-annual h3{font-size:19px;padding:10px 12px}
 .sales-report .sales-annual-subgroup h4,.sales-report .sales-quarter h3{font-size:17px;padding:10px}
 .sales-report .sales-analysis-section{padding:16px 0}
 .sales-report .sales-analysis-heading{gap:12px;padding-bottom:14px}
 .sales-report .sales-analysis-section table{font-size:14px}
 .sales-report .sales-department-label{font-size:14px}.sales-report .sales-channel-label{font-size:13px}
 .sales-report .sales-department-table tbody tr,.sales-report .sales-half-table tbody tr{height:82px}
 .sales-report .sales-controls label{min-width:0;max-width:100%}
 .sales-report select{font-size:16px;min-height:44px}
 .sales-report .sales-quarter-heading{gap:10px}
 .sales-report .sales-quarter-heading .sales-table-title{min-width:0;flex-basis:100%}
 .sales-report .sales-quarter-heading .sales-quarter-filter{width:100%;justify-content:space-between}
 .sales-report .sales-quarter-heading .sales-quarter-filter select{width:160px;max-width:65%}
 .sales-report .table-scroll{overscroll-behavior-x:contain}
}
@media print{.sales-report .sales-quarter-heading .sales-quarter-filter{display:none}}
/* Consistent sales table type scale and unbroken channel names. */
@media screen {
 .sales-report .sales-analysis-section table{font-size:15px}
 .sales-report .sales-department-label{font-size:15px}
 .sales-report .sales-channel-label{font-size:13px;white-space:nowrap;overflow-wrap:normal;word-break:normal}
 .sales-report .sales-department-table th:first-child,.sales-report .sales-half-table th:first-child{width:240px}
 .sales-report .sales-department-table tbody tr,.sales-report .sales-half-table tbody tr{height:76px}
}
@media screen and (max-width:700px) {
 .sales-report .sales-analysis-section table,.sales-report .sales-department-label{font-size:14px}
 .sales-report .sales-channel-label{font-size:12px}
 .sales-report .sales-department-table th:first-child,.sales-report .sales-half-table th:first-child{width:220px}
 .sales-report .sales-department-table tbody tr,.sales-report .sales-half-table tbody tr{height:72px}
}
@media screen {
 .sales-report .sales-analysis-section table th,.sales-report .sales-analysis-section table td{font-size:15px;line-height:1.5}
 .sales-report .sales-analysis-section table thead th{font-weight:700}
 .sales-report .sales-period-table tbody th{font-weight:600}
}
@media screen and (max-width:700px) {
 .sales-report .sales-analysis-section table th,.sales-report .sales-analysis-section table td{font-size:14px}
}

.sales-week-label{display:flex;flex-direction:column;gap:3px}.sales-week-dates{font-size:.9em;font-weight:400;white-space:nowrap}

.sales-quarter-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sales-quarter-title select{font:inherit;font-weight:700;width:auto;max-width:100%;min-height:44px;padding:6px 28px 6px 10px}
@media screen and (max-width:700px){.sales-report .sales-quarter-title select{font-size:20px}.sales-quarter-title{gap:8px}}
@media print{.sales-quarter-title select{display:none}}

@media screen{.sales-report .sales-period-table th:first-child{width:220px}}
.sales-report .sales-period-table th,.sales-report .sales-period-table td{vertical-align:middle}

@media screen {
 .sales-report .sales-department-table th:first-child,.sales-report .sales-half-table th:first-child{width:145px}
 .sales-report .sales-department-table thead th:nth-child(2),.sales-report .sales-half-table thead th:nth-child(2){width:215px;text-align:left}
 .sales-report .sales-analysis-section td.sales-channel-cell{text-align:left;font-size:13px;white-space:nowrap;overflow-wrap:normal}
 .sales-report .sales-department-table{min-width:1280px}
 .sales-report .sales-half-table{min-width:760px}
 .sales-report .sales-department-table tbody tr,.sales-report .sales-half-table tbody tr{height:62px}
}
@media screen and (max-width:700px){
 .sales-report .sales-department-table th:first-child,.sales-report .sales-half-table th:first-child{width:125px}
 .sales-report .sales-department-table thead th:nth-child(2),.sales-report .sales-half-table thead th:nth-child(2){width:200px}
 .sales-report .sales-analysis-section td.sales-channel-cell{font-size:12px}
}
@media print{.sales-report td.sales-channel-cell{text-align:left;white-space:normal}}

.sales-report .sales-department-cell{vertical-align:middle}.sales-report .sales-channel-cell{font-weight:400}
.sales-report .sales-analysis-section td.sales-channel-cell{background:#eeede6}
/* Compact labels leave room for the financial column headings. */
@media screen {
 .sales-report .sales-department-table thead th:nth-child(2),.sales-report .sales-half-table thead th:nth-child(2){width:100px}
 .sales-report .sales-department-table th:first-child,.sales-report .sales-half-table th:first-child{width:130px}
 .sales-report .sales-analysis-section .sales-department-table{table-layout:auto;min-width:1280px}
 .sales-report .sales-analysis-section .sales-department-table thead th{font-size:13px;padding:10px 6px;white-space:normal;word-break:break-all;overflow-wrap:anywhere;vertical-align:middle}
 .sales-report .sales-analysis-section .sales-department-table td{padding:10px 6px;white-space:nowrap;overflow-wrap:normal}
}
.org-register{padding:24px;background:var(--panel);border:1px solid var(--line);border-radius:8px}.org-register-scroll{overflow:auto}.org-register-table{table-layout:fixed;min-width:1060px;font-size:14px}.org-register-table th,.org-register-table td{border:1px solid var(--line);padding:10px 9px;vertical-align:middle;white-space:normal;overflow-wrap:break-word}.org-register-table thead th{text-align:center;font-size:14px;background:#dfd7c1;white-space:nowrap}.org-register-table .org-hierarchy{text-align:center;font-size:15px;background:#e9e2d1}.org-register-table .org-level-1{background:#eee9dd}.org-register-table .org-level-2{background:#f1eee5;font-weight:500}.org-register-table .org-headcount{text-align:center;font-variant-numeric:tabular-nums}.org-register-table tfoot th,.org-register-table tfoot td{background:#dfd7c1;text-align:center;font-weight:700;border-top:2px solid #938975}.org-register-table .org-field-3{font-weight:600}@media(max-width:700px){.org-register{padding:12px}.org-register .org-caption{align-items:flex-start;gap:8px}.org-register .org-caption h2{font-size:22px}.org-register-table{font-size:13px;min-width:1000px}.org-register-table .org-hierarchy{font-size:14px}}@media print{.org-register{padding:0;border:0}.org-register-scroll{overflow:visible}.org-register-table{min-width:0;font-size:8px}.org-register-table th,.org-register-table td{padding:3px}.org-register-table thead th,.org-register-table .org-hierarchy{font-size:8px}.org-register-table tr{break-inside:avoid}.org-register-table thead{display:table-header-group}}
/* Organization PDF monochrome table. */
.org-register{background:#fff;color:#111;border:0;border-radius:0;padding:40px 32px}.org-register .org-caption{margin-bottom:18px;align-items:flex-end}.org-register .org-caption h2{font-size:24px;color:#111}.org-register .org-caption p,.org-register .org-caption>span,.org-register .org-source{color:#333;font-size:13px}.org-register-table th,.org-register-table td{background:#fff!important;color:#111;border-color:#999;border-width:0 1px 1px 0;padding:7px 8px;line-height:1.5}.org-register-table tr>:last-child{border-right:0}.org-register-table thead th{border-right:0;border-bottom:2px solid #111;font-weight:700}.org-register-table .org-hierarchy{font-weight:400;text-align:left}.org-register-table .org-field-3{font-weight:400}.org-register-table tfoot th,.org-register-table tfoot td{border-top:2px solid #888;font-weight:400}.org-register .org-source{margin-top:8px}@media(max-width:700px){.org-register{padding:20px 12px}.org-register .org-caption h2{font-size:21px}}@media print{.org-register{padding:0}.org-register-table th,.org-register-table td{padding:3px 4px}}
.org-register-table tbody tr>:last-child{border-right:1px solid #999}.org-register-table tbody tr>.org-headcount:last-child{border-right:0}
/* Organization register: visual refinement only. */
.org-register{padding:28px;background:#fffdf8;border:1px solid #ded8c9;border-radius:12px;box-shadow:0 3px 14px #302b1b06}.org-register .org-caption{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;padding-bottom:18px;margin-bottom:20px;border-bottom:2px solid #343e3a}.org-register .org-caption h2{font-size:26px;letter-spacing:-.7px;margin:0 0 6px;color:#24332e}.org-register .org-caption p{margin:0;font-size:13px;color:#6b7169}.org-register .org-caption>span{white-space:nowrap;font-size:12px;color:#6b7169}.org-register-scroll{border:1px solid #d9d5c9;border-radius:7px}.org-register-table{font-size:14px}.org-register-table th,.org-register-table td{padding:11px 12px;line-height:1.6;border-color:#dedbd2;background:#fffdf8!important;color:#303830}.org-register-table thead th{background:#e5e9e3!important;color:#293b32;padding:13px 10px;font-size:14px;border-bottom:2px solid #aebaae}.org-register-table .org-level-0{background:#e9e4d6!important;font-weight:700;font-size:15px}.org-register-table .org-level-1{background:#f0ecdf!important;font-weight:600;font-size:14px}.org-register-table .org-level-2{background:#f5f2e9!important;font-size:14px}.org-register-table .org-field-3{font-weight:600;color:#24332e}.org-register-table .org-field-5{color:#525b52}.org-register-table .org-headcount{background:#f8f7f1!important;font-variant-numeric:tabular-nums}.org-register-table tbody tr>:last-child{border-right-color:#dedbd2}.org-register-table tbody tr:hover td{background:#f0f4ed!important}.org-register-table tfoot th,.org-register-table tfoot td{background:#e5e9e3!important;color:#24372e;font-weight:700;font-size:15px;border-top:2px solid #aebaae;padding:13px 12px}.org-register .org-source{margin:12px 0 0;font-size:12px;color:#747a70}@media(max-width:700px){.org-register{padding:16px 12px;border-radius:8px}.org-register .org-caption{gap:8px;padding-bottom:13px;margin-bottom:14px}.org-register .org-caption h2{font-size:22px}.org-register .org-caption p{font-size:12px}.org-register-table th,.org-register-table td{padding:9px 10px}.org-register .org-source{line-height:1.6}}@media print{.org-register{background:#fff;border:0;border-radius:0;box-shadow:none;padding:0}.org-register .org-caption{margin-bottom:10px;padding-bottom:8px}.org-register-scroll{border:0;border-radius:0}.org-register-table th,.org-register-table td{padding:3px 4px;font-size:8px}.org-register-table thead th,.org-register-table .org-hierarchy,.org-register-table tfoot th,.org-register-table tfoot td{font-size:8px;padding:4px}.org-register .org-caption h2{font-size:18px}}
.org-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:0 0 16px;padding:16px;background:#f2f3ed;border:1px solid #e1e3d9;border-radius:8px}.org-filters label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:#586157;flex:1 1 125px}.org-filters .org-search{flex:2 1 230px}.org-filters input,.org-filters select{width:100%;min-width:0;min-height:42px;padding:9px 11px;border:1px solid #ced3c7;border-radius:5px;background:#fffdf8;color:#26382d;font-size:14px;font-weight:400}.org-filters button{min-height:42px}.org-filter-result{font-size:12px;color:#66705e}.org-register-table .org-empty{text-align:center;padding:40px;color:#697064}@media(max-width:700px){.org-filters{gap:10px;padding:12px}.org-filters .org-search{flex-basis:100%}.org-filters label{flex-basis:calc(50% - 10px)}.org-filters input,.org-filters select{font-size:16px;min-height:44px}.org-filters button{margin-left:auto}}@media print{.org-filters{display:none}}
.google-calendar-panel{min-width:0}.google-calendar-panel iframe{display:block;width:100%;height:calc(100dvh - 185px);min-height:600px;border:1px solid var(--line);border-radius:8px;background:white}.google-calendar-panel>a{margin:12px 0 20px}@media(max-width:700px){.google-calendar-panel iframe{height:75dvh;min-height:520px}}
.calendar-settings summary{cursor:pointer;font-weight:700}.calendar-settings form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.calendar-settings label{flex:1;min-width:180px}.calendar-settings label:nth-child(2){flex:2}.calendar-settings ul{list-style:none;padding:0}.calendar-settings li{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.calendar-settings li>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.calendar-settings small{display:block}.calendar-settings p{font-size:13px}@media(max-width:700px){.calendar-settings label{flex-basis:100%}.calendar-settings{padding:14px}}
.calendar-legend{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0 0 12px;font-size:14px;font-weight:600}
.calendar-settings label.calendar-color-field{flex:0 0 70px;min-width:70px}.calendar-settings input[type=color]{width:54px;height:40px;padding:3px;cursor:pointer}.calendar-color-edit{display:flex;align-items:center;gap:8px}@media(max-width:700px){.calendar-settings li{flex-wrap:wrap}.calendar-color-edit{margin-left:24px}.calendar-settings li>span:nth-child(2){flex-basis:calc(100% - 36px)}}
.manual-entry-popup{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);padding:24px}.manual-entry-popup::backdrop{background:#0006}.manual-entry-popup .modal-head{display:flex;justify-content:space-between;align-items:center}@media(max-width:700px){.manual-entry-popup{padding:16px}.manual-entry-popup .form-grid{grid-template-columns:1fr}}
.brand100-page{min-width:0}.brand100-actions{display:flex;justify-content:flex-end;margin-bottom:12px}.brand100-page iframe{display:block;width:100%;height:calc(100dvh - 235px);min-height:560px;border:1px solid var(--line);border-radius:8px;background:#fff}@media(max-width:700px){.brand100-page iframe{height:72dvh;min-height:440px}}

.page-link-settings li.page-link-row{display:block}.page-link-row form{width:100%}.page-link-settings{margin-bottom:20px}

.page-link-row label.page-link-order{flex:0 0 84px;min-width:84px}

/* Shared tab management controls: pending file selection and explicit saving. */
.page-link-settings .page-link-row{padding:20px;border:1px solid var(--line);border-radius:10px;margin:18px 0;background:#fcfaf5;min-width:0}.tab-editor-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}.tab-editor-heading strong{font-size:17px;overflow-wrap:anywhere}.tab-editor-heading>span{font-size:12px;color:var(--muted);white-space:nowrap}.tab-file-section{background:#f0ecdf;border-radius:8px;padding:16px;margin-bottom:18px}.tab-field-label{display:block;font-weight:600;font-size:14px;margin-bottom:10px}.tab-field-label small{display:inline;font-weight:400;margin-left:8px}.tab-file-actions,.tab-pending-file,.tab-order-buttons,.tab-save-buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.page-link-settings .tab-file-picker{flex:0 0 auto;min-width:auto;display:inline-flex;align-items:center;justify-content:center;gap:7px;position:relative;cursor:pointer;font-size:14px;overflow:hidden}.tab-file-picker input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.tab-current-file{display:flex;align-items:center;gap:7px;min-width:0;flex:1 1 230px;overflow-wrap:anywhere;font-size:14px}.tab-current-file svg,.tab-pending-file>svg{flex-shrink:0}.tab-pending-file{background:#e6efe6;border:1px solid #c4d5c5;border-radius:6px;padding:12px;margin-top:12px;font-size:14px}.tab-pending-file>span{flex:1;min-width:0;overflow-wrap:anywhere}.tab-pending-file small{margin-top:5px}.page-link-settings .tab-edit-form{display:block;min-width:0}.tab-info-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:14px}.page-link-settings .tab-info-fields label{min-width:0;display:flex;flex-direction:column}.tab-info-fields input{width:100%;min-width:0}.tab-order-section{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:16px 0}.page-link-settings .tab-order-section .page-link-order{display:flex;flex-direction:column;max-width:84px;min-width:70px;margin:0}.page-link-settings button,.page-link-settings .button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;font-size:14px}.page-link-settings button:focus-visible,.tab-file-picker:focus-within{outline:2px solid #ac3327;outline-offset:3px}.tab-edit-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.tab-save-status{flex:1 1 200px;font-size:13px;color:var(--muted)}.page-link-settings button.tab-subtle-danger{color:#a33228;border-color:#d7c4bc;background:transparent}.tab-delete{margin-left:4px}.new-tab-registration{border:1px dashed var(--line);border-radius:8px;padding:14px 16px;margin:18px 0}.new-tab-registration>summary{display:flex;align-items:center;gap:8px;font-size:14px}.new-tab-registration>form{padding-top:16px}.report-content-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px}.page-link-row .report-content-field>button{margin-top:10px}.page-link-settings p{overflow-wrap:anywhere}@media(max-width:700px){.page-link-settings .page-link-row{padding:14px}.tab-info-fields{grid-template-columns:minmax(0,1fr)}.tab-file-section{padding:12px}.page-link-settings .tab-file-picker{flex-basis:auto}.tab-current-file{flex-basis:100%}.tab-edit-footer{align-items:stretch}.tab-save-status{flex-basis:100%}.tab-save-buttons{display:grid;grid-template-columns:1fr 1fr;flex:1 1 100%}.tab-delete{margin-left:0}.page-link-settings button,.page-link-settings .button{min-height:44px}.tab-pending-file{align-items:flex-start}.tab-field-label small{display:block;margin-left:0;margin-top:4px}.new-tab-registration{padding:12px}.tab-info-fields label{width:100%}}

.page-link-settings .tab-file-picker{flex-direction:row}.tab-file-picker:has(input:disabled){opacity:.5;cursor:default}

.sales-report .sales-column-title{display:inline-flex;flex-direction:column;justify-content:center;min-height:2.7em;line-height:1.35;vertical-align:middle}.sales-report .sales-column-title>span{display:block;white-space:nowrap}

.sales-mobile-scroll-hint{display:none}
@media screen and (max-width:1024px){
 .sales-report .sales-mobile-scroll-hint{display:block;font-size:12px;color:var(--soft);margin:14px 0 6px}
 .sales-report .table-scroll{overflow-x:auto!important;max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;position:relative;isolation:isolate}
 .sales-report .sales-analysis-section .sales-department-table,.sales-report .sales-analysis-section .sales-half-table{table-layout:fixed;width:100%;border-collapse:separate;border-spacing:0;--sales-dept-width:88px;--sales-channel-width:78px}
 .sales-report .sales-analysis-section .sales-department-table{min-width:1486px}
 .sales-report .sales-analysis-section .sales-half-table{min-width:562px}
 .sales-report .sales-analysis-section .sales-period-table{min-width:1056px;table-layout:fixed}
 .sales-report .sales-analysis-section .sales-dept-col{width:var(--sales-dept-width)}
 .sales-report .sales-analysis-section .sales-channel-col{width:var(--sales-channel-width)}
 .sales-report .sales-analysis-section table td{white-space:nowrap;overflow-wrap:normal;word-break:normal;font-size:13px;padding:12px 8px;font-variant-numeric:tabular-nums}
 .sales-report .sales-analysis-section table thead th{white-space:normal;word-break:keep-all;overflow-wrap:normal;font-size:12px;padding:12px 8px;vertical-align:middle}
 .sales-report .sales-column-title>span{white-space:normal;overflow-wrap:normal;word-break:keep-all}
 .sales-report .sales-department-cell,.sales-report .sales-label-total{position:sticky;left:0;z-index:3;background:#e5ddc8}
 .sales-report .sales-analysis-section .sales-department-cell{white-space:normal;overflow-wrap:anywhere;word-break:normal;font-size:13px;padding:12px 8px}
 .sales-report .sales-analysis-section td.sales-channel-cell{position:sticky;left:var(--sales-dept-width);z-index:3;background:#eeede6;white-space:normal;overflow-wrap:anywhere;word-break:normal;font-size:12px;box-shadow:2px 0 0 var(--line)}
 .sales-report .sales-department-table thead th:first-child,.sales-report .sales-half-table thead th:first-child{position:sticky;left:0;z-index:5;background:#ede8d8}
 .sales-report .sales-department-table thead th:nth-child(2),.sales-report .sales-half-table thead th:nth-child(2){position:sticky;left:var(--sales-dept-width);z-index:5;background:#ede8d8;box-shadow:2px 0 0 var(--line)}
 .sales-report .sales-label-total{box-shadow:2px 0 0 var(--line)}
}
@media print{.sales-mobile-scroll-hint{display:none!important}.sales-report .sales-department-cell,.sales-report .sales-channel-cell,.sales-report .sales-label-total{position:static}}

/* 사업부 업무 리포팅 */
.department-report-controls{display:flex;align-items:end;gap:14px;flex-wrap:wrap}.department-report-controls>div:first-child{margin-right:auto}.department-report-controls label{min-width:150px}.department-work-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.department-work-metrics>div{padding:14px 18px;border-left:3px solid #d7d1bc}.department-work-metrics span{display:block;color:#666d60;font-size:12px}.department-work-metrics strong{display:block;font-size:28px}.department-work-metrics small{font-size:13px;margin-left:4px}.department-work-report table{min-width:850px}.department-work-report td{vertical-align:top}.department-work-details{min-width:1100px}.department-work-details td:nth-child(3){min-width:300px;max-width:550px}.department-work-content{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.department-work-details progress{display:block;width:90px;max-width:100%;height:8px;margin-top:7px;accent-color:#08794f}.department-detail-heading{margin:24px 0 14px}.department-import-preview{padding-top:18px}.department-work-report .table-scroll{max-width:100%;overflow-x:auto}@media(max-width:700px){.department-work-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.department-report-controls>div:first-child{flex-basis:100%}.department-report-controls label{flex:1 1 150px}.department-work-metrics>div{padding:10px}.department-work-metrics strong{font-size:24px}}

.sidebar-shell{grid-template-columns:264px minmax(0,1fr)}.sidebar-shell>.app-sidebar{padding:12px 14px 16px;gap:14px;overflow-y:auto}.sidebar-controls{display:flex;justify-content:flex-end}.sidebar-controls button{padding:7px;display:flex}.sidebar-close,.sidebar-mobile-toggle{display:none!important}.sidebar-shell .sidebar-brand{padding:8px 10px}.sidebar-shell .primary-tabs{flex-direction:column;flex-wrap:nowrap;overflow:visible;flex-shrink:0}.sidebar-shell .primary-tabs button{min-height:44px}.sidebar-personal{display:flex;flex-direction:column;gap:6px}.sidebar-personal button{display:flex;align-items:center;gap:12px;text-align:left;min-height:40px}.sidebar-shell .sidebar-bottom{margin-top:auto}.sidebar-shell.sidebar-collapsed{grid-template-columns:72px minmax(0,1fr)}.sidebar-collapsed>.app-sidebar{padding:12px 8px}.sidebar-collapsed .sidebar-brand,.sidebar-collapsed .sidebar-identity,.sidebar-collapsed .sidebar-bottom,.sidebar-collapsed .sidebar-tools{display:none}.sidebar-collapsed .primary-tabs button{justify-content:center;padding:10px;gap:0}.sidebar-collapsed .primary-tabs button>span:not(:first-child),.sidebar-collapsed .sidebar-personal button>span{display:none}.sidebar-collapsed .sidebar-personal button{justify-content:center;padding:10px}.sidebar-preferences{width:min(560px,calc(100vw - 24px));max-height:85dvh;overflow:auto;padding:24px}.sidebar-preferences .modal-head{display:flex;align-items:center;justify-content:space-between}.sidebar-preferences>p{font-size:13px;color:var(--soft)}.sidebar-preference-row{display:flex;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}.sidebar-preference-row label{display:flex;align-items:center;gap:10px;flex:1}.sidebar-preference-row input{width:18px;height:18px}.sidebar-preference-row button{display:flex;padding:9px}.sidebar-preferences>button{display:block;width:100%;text-align:left;margin-top:6px}.sidebar-backdrop{position:fixed;inset:0;width:100%;height:100dvh;border:0;border-radius:0;background:#0006;z-index:90}.sidebar-shell .primary-tabs button:focus-visible,.sidebar-controls button:focus-visible,.sidebar-personal button:focus-visible{outline:2px solid var(--seal);outline-offset:2px}
@media(max-width:1024px){.sidebar-shell,.sidebar-shell.sidebar-collapsed{display:block;padding-top:48px}.sidebar-shell>.app-sidebar{position:fixed;inset:0 auto 0 0;width:min(300px,85vw);height:100dvh;z-index:100;display:flex;flex-direction:column;transform:translateX(-100%);visibility:hidden;border-right:1px solid var(--line);border-bottom:0;padding:12px 14px 16px;gap:14px}.sidebar-shell.sidebar-open>.app-sidebar{transform:translateX(0);visibility:visible}.sidebar-mobile-toggle{display:flex!important;position:fixed;top:8px;left:12px;align-items:center;gap:8px;z-index:80;background:var(--panel);min-height:36px}.sidebar-shell .sidebar-close{display:flex!important}.sidebar-shell .sidebar-collapse{display:none}.sidebar-shell .sidebar-brand{display:flex;font-size:21px}.sidebar-shell .sidebar-brand strong{font-size:21px}.sidebar-shell .primary-tabs button{justify-content:flex-start;padding:10px;gap:12px;font-size:15px}.sidebar-shell .primary-tabs button>span{display:inline-flex}.sidebar-shell .sidebar-identity{display:flex;flex-direction:column}.sidebar-shell .sidebar-bottom{display:block;align-self:stretch;padding:10px}.sidebar-shell .sidebar-tools{display:flex;flex-direction:column}.sidebar-shell .sidebar-personal button>span{display:inline}.sidebar-shell .sidebar-personal button{justify-content:flex-start;gap:12px}.sidebar-shell>.main{padding:0 14px 24px}.sidebar-preferences{padding:16px}.sidebar-preferences .modal-actions{flex-wrap:wrap}}
@media(min-width:1025px){.sidebar-shell{--sidebar-column-width:264px;min-height:100dvh;background-image:linear-gradient(to right,#e7dfce 0 calc(var(--sidebar-column-width) - 1px),var(--line) calc(var(--sidebar-column-width) - 1px) var(--sidebar-column-width),transparent var(--sidebar-column-width))}.sidebar-shell.sidebar-collapsed{--sidebar-column-width:72px}}
@media(prefers-reduced-motion:no-preference){.sidebar-shell>.app-sidebar{transition:transform .18s ease,visibility .18s ease}}
@media print{.sidebar-shell{display:block;padding:0}.sidebar-shell>.app-sidebar,.sidebar-mobile-toggle,.sidebar-backdrop{display:none!important}}
.sidebar-group{margin-top:12px}.sidebar-shell .primary-tabs button.sidebar-group-heading{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:28px;padding:5px 10px;background:transparent;border:0;font-size:12px;color:var(--soft);font-weight:600}.sidebar-group-items{display:flex;flex-direction:column;gap:4px}.sidebar-group-items[hidden]{display:none}.sidebar-collapsed .sidebar-group-heading{display:none!important}.sidebar-collapsed .sidebar-group{border-top:1px solid var(--line);padding-top:8px}.sidebar-collapsed .sidebar-group-items[hidden]{display:flex}.sidebar-group-editor{display:flex;align-items:flex-end;gap:6px;padding:8px 0}.sidebar-group-editor label{flex:1;min-width:0;font-size:12px}.sidebar-group-editor input{width:100%;margin-top:5px}.sidebar-group-editor button{padding:9px;flex-shrink:0}.sidebar-preference-row select{width:150px;max-width:100%;padding:8px;font-size:13px}.sidebar-preferences h3{margin:22px 0 10px;font-size:16px}@media(max-width:1024px){.sidebar-shell .sidebar-group-heading{display:flex!important}.sidebar-shell .sidebar-group-items[hidden]{display:none}.sidebar-group-editor{flex-wrap:wrap}.sidebar-group-editor label{flex-basis:100%}.sidebar-preference-row{flex-wrap:wrap}.sidebar-preference-row label{flex-basis:100%}.sidebar-preference-row select{flex:1}.sidebar-shell .sidebar-group{border-top:0}}

@media(max-width:1024px){.sidebar-shell.sidebar-collapsed .primary-tabs button>span:not(:first-child){display:inline-flex}}

.report-content-field{flex:0 0 100%;min-width:0}.report-content-editor{width:100%}.report-content-editor>span{display:block;margin-bottom:8px}.report-content-toolbar{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:6px}.report-content-toolbar button{padding:6px 10px;min-height:34px}.report-content-input{min-height:130px;border:1px solid var(--line);border-radius:4px;padding:12px;background:var(--panel);overflow-wrap:anywhere;white-space:pre-wrap}.report-content-input:focus{outline:2px solid var(--seal);outline-offset:1px}.report-content-body{overflow-wrap:anywhere;white-space:pre-wrap}.report-content-body ul,.report-content-body ol,.report-content-input ul,.report-content-input ol{padding-left:24px;list-style:revert}.report-content-body p{margin:8px 0}.report-content-body a{text-decoration:underline}.tab-report-content{margin-bottom:20px}.report-content-editor small{display:block;margin-top:6px;color:var(--soft)}

/* Foldable/tablet: adapt content width rather than conceal overflow. */
@media screen and (max-width:1024px){
 .sidebar-shell>.main{min-width:0;max-width:100%;padding:0 14px 24px}
 .sidebar-shell .panel,.sidebar-shell .brand100-page,.sidebar-shell .sales-report,.sidebar-shell .table-scroll,.sidebar-shell .org-register-scroll{min-width:0;max-width:100%}
 .sidebar-shell .topbar,.sidebar-shell .row,.sidebar-shell .filters,.sidebar-shell .panel-title,.sidebar-shell .panel-footer,.sidebar-shell .action-buttons{flex-wrap:wrap}
 .sidebar-shell .topbar{gap:12px;padding:16px 0}.sidebar-shell .panel{padding:16px}
 .sidebar-shell .action-buttons>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
 .sidebar-shell input,.sidebar-shell select,.sidebar-shell textarea,.sidebar-shell iframe{min-width:0;max-width:100%}
 .sidebar-shell .calendar-settings label{min-width:0;flex-basis:200px}.sidebar-shell .calendar-settings li{flex-wrap:wrap}
 .sidebar-shell .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sidebar-shell .org-register-table{min-width:0!important;width:100%;table-layout:fixed!important}
 .sidebar-shell .org-register-table th,.sidebar-shell .org-register-table td{width:auto!important;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;padding:8px 4px;font-size:12px}
 .sidebar-shell .sales-report .sales-channel-label{white-space:normal;overflow-wrap:anywhere}
 .sidebar-shell .org-caption{flex-wrap:wrap}.sidebar-shell .sales-kpis,.sidebar-shell .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sidebar-shell .calendar-mode-month .calendar-weeks,.sidebar-shell .calendar-mode-month .monthly-weekdays{min-width:0}
 .sidebar-shell .calendar-mode-month .calendar-day,.sidebar-shell .calendar-mode-month .calendar-span{min-width:0;overflow-wrap:anywhere}
 .sidebar-shell .report-content-body,.sidebar-shell .brand100-page .action-buttons b{overflow-wrap:anywhere}
}
@media screen and (max-width:600px){.sidebar-shell .form-grid{grid-template-columns:minmax(0,1fr)}}
/* Full-width top bar and sidebar form a T-shaped workspace. */
.sidebar-shell{grid-template-rows:56px minmax(0,1fr);align-items:start}
.workspace-menubar{grid-column:1/-1;position:sticky;top:0;z-index:110;display:flex;align-items:center;gap:16px;height:56px;padding:8px 16px;border-bottom:1px solid var(--line);background:var(--panel);min-width:0;max-width:100%}
.workspace-menubar button{padding:7px;flex-shrink:0}.workspace-logo{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:17px}.workspace-logo>span{display:grid;place-items:center;background:var(--seal);color:white;border-radius:6px;width:30px;height:30px;font-weight:700}.workspace-current-page{border-left:1px solid var(--line);padding-left:16px;font-size:14px;min-width:0;overflow-wrap:anywhere}
.sidebar-shell>.app-sidebar{position:sticky;top:56px;height:calc(100dvh - 56px)}.sidebar-shell .sidebar-brand{display:none}.sidebar-shell .sidebar-controls:has(.sidebar-close){min-height:0}
@media(max-width:1024px){.sidebar-shell,.sidebar-shell.sidebar-collapsed{padding-top:0}.workspace-menubar{padding:8px 12px;gap:10px}.workspace-menubar .sidebar-mobile-toggle{position:static;min-height:36px;background:transparent}.workspace-menubar .sidebar-mobile-toggle>span{display:none}.workspace-menubar .sidebar-collapse{display:none}.workspace-current-page{margin-left:auto;font-size:12px;padding-left:10px}.sidebar-shell>.app-sidebar{top:56px;height:calc(100dvh - 56px)}.sidebar-shell .sidebar-brand{display:none}.sidebar-backdrop{top:56px;height:calc(100dvh - 56px)}}
@media print{.workspace-menubar{display:none}}
/* Sidebar edge handle; the page heading stays in the content area. */
.sidebar-shell>.app-sidebar{overflow:visible}.sidebar-shell .sidebar-controls{position:absolute;top:18px;right:-15px;z-index:115}
.sidebar-shell .sidebar-controls .sidebar-collapse{display:flex;align-items:center;justify-content:center;width:30px;height:44px;padding:4px;border:1px solid var(--line);border-radius:0 8px 8px 0;background:var(--panel);box-shadow:2px 2px 5px #23292216}
.sidebar-shell .primary-tabs{overflow-y:auto;min-height:0;flex-shrink:1}.sidebar-shell .sidebar-personal,.sidebar-shell .sidebar-bottom{flex-shrink:0}
@media(max-width:1024px){.sidebar-shell .sidebar-controls{position:static;align-self:flex-end}.sidebar-shell .sidebar-controls .sidebar-collapse{display:none}.sidebar-shell>.app-sidebar{overflow-y:auto}}
.jira-sidebar-settings .sidebar-custom-group{margin:18px 0}.jira-sidebar-settings .sidebar-group-editor{align-items:center;flex-wrap:nowrap;padding:4px 0;border-bottom:1px solid var(--line)}.jira-sidebar-settings .sidebar-group-editor>input{flex:1;min-width:0;margin:0;padding:7px 6px;border:0;background:transparent;font-weight:700}.jira-sidebar-settings button[draggable]{cursor:grab;padding:4px;border:0}.jira-sidebar-settings button[draggable]:active{cursor:grabbing}.jira-sidebar-settings .sidebar-preference-row{padding:8px 0;gap:8px;flex-wrap:nowrap}.jira-sidebar-settings .sidebar-preference-row>label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-basis:auto;gap:10px;min-width:0;text-align:left}.jira-sidebar-settings .sidebar-preference-row>label span{overflow-wrap:anywhere}.jira-sidebar-settings input[type=checkbox]{flex-shrink:0;width:16px;height:16px;margin:0}.jira-sidebar-settings label svg,.jira-sidebar-settings label img{flex-shrink:0}.sidebar-item-actions{position:relative;margin-left:auto}.sidebar-item-menu{position:absolute;right:0;top:100%;z-index:10;width:220px;max-width:calc(100vw - 56px);padding:10px;background:var(--panel);border:1px solid var(--line);border-radius:6px;box-shadow:0 5px 16px #23292222}.sidebar-item-menu>button{display:flex;width:100%;justify-content:flex-start;border:0}.sidebar-item-menu>label{display:block!important;font-size:12px}.sidebar-item-menu select{width:100%!important;margin-top:6px}.jira-sidebar-settings .sidebar-group-editor>strong{flex:1}
.sidebar-preferences .modal-actions{position:sticky;bottom:-24px;z-index:30;background:var(--panel);padding:14px 0;border-top:1px solid var(--line)}

.sidebar-shell .primary-tabs .sidebar-group-items>button{font-size:14px;min-height:36px;padding:7px 10px}.sidebar-shell .sidebar-personal button{font-size:14px;min-height:36px;padding:7px 10px}.sidebar-shell .sidebar-group-heading{min-height:24px;padding:3px 10px}.sidebar-shell .sidebar-group{margin-top:8px}.sidebar-shell .sidebar-group-items{gap:2px}.jira-sidebar-settings .sidebar-preference-row{font-size:14px;padding:5px 0;min-height:36px}.sidebar-shell.sidebar-collapsed .primary-tabs .sidebar-group-items>button{padding:7px;justify-content:center}

/* Match report text to the sidebar menu size. */
.report-content-body,.report-content-input{font-size:14px;line-height:1.45}.report-content-body p,.report-content-input p{margin:4px 0}.report-content-body h3,.report-content-input h3{font-size:inherit;margin:14px 0 6px}.report-content-body ul,.report-content-body ol,.report-content-input ul,.report-content-input ol{margin:6px 0}.report-content-body li,.report-content-input li{margin:2px 0}

html body{font-size:14px}

.sidebar-shell>.app-sidebar,.sidebar-shell .primary-tabs{scrollbar-width:none}.sidebar-shell>.app-sidebar::-webkit-scrollbar,.sidebar-shell .primary-tabs::-webkit-scrollbar{display:none;width:0;height:0}

/* Let long navigation extend the page instead of creating a nested scroller. */
.sidebar-shell{position:relative;grid-template-rows:56px auto}.sidebar-shell>.app-sidebar{position:relative;top:auto;height:auto;min-height:calc(100dvh - 56px);overflow:visible;align-self:start}.sidebar-shell .primary-tabs{overflow:visible;flex-shrink:0}
@media(max-width:1024px){.sidebar-shell>.app-sidebar{position:absolute;inset:56px auto auto 0;height:auto;min-height:calc(100dvh - 56px);overflow:visible}.sidebar-shell:not(.sidebar-open)>.app-sidebar{display:none}}

.sidebar-shell .primary-tabs button,.sidebar-shell .sidebar-personal button,.sidebar-shell .sidebar-bottom button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}.sidebar-shell .sidebar-group-heading>span:first-child{min-width:0;overflow-wrap:anywhere}.sidebar-shell .sidebar-bottom{min-width:0;max-width:100%;overflow-wrap:anywhere}

/* Account identity remains accessible at the top even with a closed sidebar. */
.sidebar-shell{grid-template-rows:auto auto}
.workspace-menubar{height:auto;min-height:56px;flex-wrap:wrap}
.workspace-account{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:14px;min-width:0;max-width:100%;font-size:14px}
.workspace-account .sidebar-identity{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden}.workspace-account .sidebar-identity b{flex-shrink:0}.workspace-account .sidebar-identity span{min-width:0;overflow:hidden;text-overflow:ellipsis}.workspace-account .sidebar-identity b+span::before{content:"·";margin-right:6px}
.workspace-account .sidebar-identity b{font-size:14px}.workspace-account .sidebar-identity span{font-size:13px}
.workspace-account-actions,.workspace-account .sidebar-actions{display:flex;align-items:center;gap:8px;margin:0;flex-wrap:wrap;justify-content:flex-end}
.workspace-account-actions button,.workspace-account-actions .button{min-height:36px;font-size:14px;padding:7px 12px;white-space:nowrap}
.sidebar-shell>.app-sidebar{min-height:calc(100dvh - var(--workspace-header-height,56px))}
@media(max-width:1024px){.sidebar-shell>.app-sidebar{top:var(--workspace-header-height,56px)}.sidebar-backdrop{top:var(--workspace-header-height,56px);height:calc(100dvh - var(--workspace-header-height,56px))}}
@media(max-width:600px){.workspace-account{flex-basis:100%;gap:8px;justify-content:flex-end;flex-wrap:wrap}.workspace-account .sidebar-identity{flex:0 1 auto}.workspace-account-actions{flex-shrink:0}.workspace-account-actions button,.workspace-account-actions .button{padding:7px 9px}}

/* Shared compact page heading for reporting and administration. */
.sidebar-shell>.main>.topbar{height:auto;min-height:64px;padding:12px 0;margin-top:0;margin-bottom:16px}
.sidebar-shell>.main>.topbar>div{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px}
.sidebar-shell>.main>.topbar>div>h1{margin:0;line-height:1.3;transform:none}
@media(max-width:1024px){.sidebar-shell>.main>.topbar{min-height:56px;padding:10px 0;margin-bottom:12px}}

.department-report .department-custom{padding:12px;margin-top:8px;background:var(--panel);border:1px solid var(--line);border-radius:8px}.department-report .table-scroll{overflow-x:auto}.department-report .table-scroll table{min-width:760px}.department-report .table-scroll th,.department-report .table-scroll td{white-space:normal;overflow-wrap:anywhere}.department-report .action-buttons{flex-wrap:wrap;margin:12px 0}

.sales-manual-page{min-width:0}.sales-manual-page label{display:flex;flex-direction:column;gap:6px;min-width:0}.sales-manual-page input,.sales-manual-page select,.sales-manual-page textarea{max-width:100%;width:100%;min-width:0}.manual-toolbar,.manual-tabs,.manual-save{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.manual-toolbar{margin:16px 0}.manual-toolbar label{min-width:150px}.manual-tabs{margin:18px 0}.manual-fields{padding:0;border:0;min-width:0}.manual-month{display:grid;grid-template-columns:45px repeat(3,minmax(110px,1fr)) minmax(90px,.7fr);gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #d7ccb6}.manual-month label{font-size:12px}.manual-month input{font-size:14px;text-align:right}.manual-effective{font-size:12px;text-align:right}.manual-summary{margin-top:20px}.manual-summary label{max-width:260px}.manual-channel,.manual-reference{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px 0;border-bottom:1px solid #d7ccb6}.manual-channel>strong,.manual-reference>label:last-of-type{grid-column:1/-1}.manual-reference>button{justify-self:start}.manual-import{padding:20px;margin:20px 0;background:#eee9dc;border-radius:8px;overflow-wrap:anywhere}.sales-manual-page .manual-checkbox{flex-direction:row;align-items:center;margin:10px 0}.manual-checkbox input{width:auto}.manual-save{position:sticky;bottom:0;z-index:5;box-shadow:0 -2px 10px #0000000a}.manual-save span{margin-right:auto}.manual-import details p{font-size:13px}.manual-months{margin-top:15px}@media(max-width:760px){.manual-month{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.manual-month>strong{grid-column:1/-1}.manual-effective{text-align:left}.manual-channel,.manual-reference{grid-template-columns:minmax(0,1fr)}.manual-save{position:static}.manual-tabs button{flex:1 1 160px}.manual-toolbar label{width:100%}}@media print{.manual-tabs,.manual-toolbar,.manual-save{display:none}}
.education-board{width:100%;min-width:0}.education-board .education-actions{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.education-actions select{max-width:480px}.education-file-picker{position:relative;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.education-file-picker input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.education-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.education-form-grid .education-wide{grid-column:1/-1}.education-form-grid label small{color:#1e7a4e}.education-form-grid input[readonly],.education-form-grid textarea[readonly]{background:#eeeee9;color:#555b55}.education-editor fieldset{border:1px solid #d6d8ce;border-radius:8px;margin:20px 0;padding:16px;min-width:0}.education-editor legend{padding:0 8px;overflow-wrap:anywhere}.education-raw-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:500px;overflow:auto;background:#f6f7f3;padding:16px}.education-row-title{padding:0;border:0;background:transparent;text-align:left;white-space:normal;color:#166747}.education-selected{background:#edf6ed}.education-board .table-scroll{max-height:520px;overflow:auto;margin-top:18px}.education-board .table-scroll th{position:sticky;top:0}.education-board .notice{white-space:pre-wrap}@media(max-width:800px){.education-form-grid{grid-template-columns:1fr}.education-actions>*{width:100%}.education-actions select{max-width:100%;width:100%}.education-editor{padding:16px}}

.education-preview-dialog{box-sizing:border-box;width:min(1200px,96vw);max-width:96vw;max-height:94vh;padding:20px;border:1px solid #d5d7ce;border-radius:12px;overflow:auto}.education-preview-dialog::backdrop{background:#0008}.education-preview-head{display:flex;align-items:center;justify-content:space-between;gap:15px;position:sticky;top:-20px;background:#fff;z-index:2;padding:12px 0}.education-preview-head h2{font-size:18px;overflow-wrap:anywhere;margin:0}.education-preview-head .action-buttons{flex-shrink:0}.education-pdf{width:100%;overflow:auto}.education-pdf-pages{display:flex;align-items:center;justify-content:center;gap:15px;padding:12px}.education-pdf canvas{display:block;max-width:100%;height:auto;margin:0 auto}.education-preview-text{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f6f2;padding:20px}@media(max-width:600px){.education-preview-dialog{padding:12px}.education-preview-head{align-items:flex-start;flex-direction:column;top:-12px}}

.education-editor-dialog{box-sizing:border-box;width:min(1120px,96vw);max-width:96vw;max-height:92dvh;overflow:auto;padding:20px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:12px}.education-editor-dialog::backdrop{background:#0008}.education-editor-dialog>.education-preview-head{top:-20px;background:var(--panel)}.education-editor-dialog .education-editor{border:0;margin:0;padding:12px 0}.education-editor-dialog .education-preview-head h2{margin:0}@media(max-width:600px){.education-editor-dialog{padding:12px}.education-editor-dialog>.education-preview-head{top:-12px}}

/* 법인차량관리 */
.fleet-page{width:100%;min-width:0}.fleet-notice{margin:0 0 18px;padding:16px 20px;border:1px solid #d6d0bc;border-radius:10px;background:#fff8df;color:#5f5129;line-height:1.7}.fleet-gallery{min-width:0}.fleet-toolbar{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap}.fleet-toolbar select{max-width:560px;min-width:0;flex:1}.fleet-toolbar .action-buttons{align-items:center;flex-wrap:nowrap}.fleet-toolbar span{min-width:60px;text-align:center}.fleet-filename{overflow-wrap:anywhere;color:#56605b;font-size:13px}.fleet-image{width:100%;min-height:200px;text-align:center;touch-action:pan-y}.fleet-image img{display:block;width:100%;height:auto;margin:0 auto;object-fit:contain}.fleet-upload{display:inline-flex;position:relative;cursor:pointer;overflow:hidden}.fleet-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.fleet-upload:focus-within{outline:2px solid #007b52;outline-offset:3px}.fleet-empty{text-align:center;padding:45px 20px}@media(max-width:600px){.fleet-toolbar{align-items:stretch}.fleet-toolbar select{flex-basis:100%;width:100%}.fleet-notice{padding:12px 14px}.fleet-gallery{padding:12px}.fleet-image{min-height:100px}}
