

/* v58 optimized cascade */
:root{--bg:#f4f7fb;--panel:#fff;--ink:#22364a;--muted:#718497;--line:#dbe4ec;--blue:#2f7bdc;--blue-soft:#eaf3ff;--green:#43a65d;--green-soft:#e9f7ed;--orange:#ef933f;--orange-soft:#fff0e2;--red:#e65050;--red-soft:#ffebeb;--violet:#7c64d4;--violet-soft:#f0ecff;--yellow:#fff59b;--weekday:#fafbfd;--sat:#e7f2ff;--sun:#fff0e4;--shadow:0 8px 26px rgba(36,70,104,.08);}
*{box-sizing:border-box;}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Yu Gothic UI",Meiryo,sans-serif;}
button,input,select,textarea{font:inherit;}
button{cursor:pointer;}
.topbar{background:linear-gradient(90deg,#236cb9,#4389dc 62%,#74acec);color:#fff;padding:10px 22px;display:flex;justify-content:space-between;align-items:center;gap:16px;box-shadow:0 2px 12px rgba(31,69,107,.18);}
.brand{display:flex;align-items:center;gap:16px;min-width:0;}
.brand .title{font-size:21px;font-weight:900;white-space:nowrap;}
.brand .team{font-size:18px;font-weight:800;border-left:1px solid rgba(255,255,255,.45);padding-left:16px;white-space:nowrap;}
.topmeta{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.chip{background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.28);border-radius:10px;padding:6px 9px;font-size:11px;font-weight:800;}
.main{max-width:1900px;margin:auto;padding:16px 18px 28px;}
.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 560px;gap:14px;align-items:stretch;}
.countdowns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:center;margin-bottom:10px;}
.countdown{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px 7px;box-shadow:0 4px 16px rgba(36,70,104,.06);font-size:11px;font-weight:900;color:#536b81;white-space:nowrap;}
.countdown strong{font-size:17px;color:#244c73;}
.countdown.past{background:#fff6f0;border-color:#f3c9aa;color:#9a5b26;}
.countdown.exam{background:#f2f8ff;border-color:#bfd8f5;}
.asof{grid-column:1/-1;font-size:11px;color:#718497;font-weight:900;text-align:right;}
.summary-green-combined{display:grid;grid-template-columns:1.25fr 1fr;overflow:hidden;min-width:0;}
.summary-green-combined .green-main{display:flex;flex-direction:column;justify-content:center;padding:9px 10px;}
.summary-green-combined .summary-label{font-weight:950;color:#5a7084;white-space:nowrap;}
.summary-green-combined .summary-label small{color:#8292a1;}
.summary-green-combined .green-main strong{color:#147a36;font-size:38px;font-weight:950;line-height:1;margin-top:3px;white-space:nowrap;}
.summary-green-combined strong em{font-style:normal;margin-left:2px;}
.green-rates{display:grid;grid-template-rows:1fr 1fr;align-items:center;padding:6px 8px;}
.green-rates>div{display:flex;align-items:baseline;justify-content:space-between;gap:5px;min-width:0;}
.green-rates span{font-weight:950;color:#5a7084;white-space:nowrap;}
.green-rates strong{color:#147a36;font-weight:950;line-height:1;white-space:nowrap;}
.summary-side-stack{display:grid;grid-template-rows:1fr 1fr;gap:6px;}
.metric{border:1px solid #e0e7ee;border-radius:12px;padding:7px 8px;background:#fbfdff;display:flex;flex-direction:column;justify-content:center;min-width:0;box-shadow:var(--shadow);}
.metric .m-label{font-size:9px;font-weight:950;color:#65798c;white-space:nowrap;}
.metric b{font-size:20px;line-height:1.15;margin-top:2px;white-space:nowrap;}
.metric small{font-size:8px;color:#7d8f9f;margin-top:2px;white-space:nowrap;}
.summary-abc{display:grid;grid-template-columns:1fr;gap:5px;align-items:stretch;}
.summary-abc-single .sumall{height:100%;padding:8px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(180deg,#f8f6ff,#f0ecff);}
.summary-abc-single .line1,
.summary-abc-single .line2{font-weight:950;color:#5a7084;white-space:nowrap;}
.summary-abc-single .line1 b,
.summary-abc-single .line2 b{line-height:1.1;color:#2f3c55;}
.reminders{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:10px;min-width:0;}
.reminders h3{margin:0 0 8px;font-size:19px;line-height:1.15;}
.status-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,auto);gap:6px;width:100%;}
.status-grid .reminder{display:flex;width:100%;min-width:0;margin:0;border:0;border-radius:11px;flex-direction:column;align-items:center;justify-content:center;text-align:center;transition:.15s;}
.status-grid .reminder:hover{filter:brightness(.98);transform:translateY(-1px);}
.status-grid .reminder.active{outline-offset:-2px;}
.status-grid .stat-title{display:block;width:100%;font-size:11px;font-weight:900;line-height:1.12;white-space:normal;}
.status-grid .n{display:block;font-size:21px;font-weight:950;margin-top:2px;}
.reminder.neutral{background:#eef3f8;color:#42576c;}
.reminder.abc-a{background:#e8f5e9;color:#27733d;}
.reminder.abc-b{background:#e8f1fb;color:#326c9f;}
.reminder.abc-c{background:#fff0df;color:#a45a16;}
.reminder.out{background:#f3f3f3;color:#666;}
.reminder.green{background:var(--green-soft);color:#24763c;}
.reminder.amber{background:#fff4da;color:#96620e;}
.reminder.red{background:var(--red-soft);color:#b82e2e;}
.reminder.purple{background:#f1edff;color:#6650b9;}
.reminder.follow{background:#edf2f7;color:#42576c;}
.matrix-filter-title,
.matrix-tools-row{margin:6px 0 5px;}
.matrix-tools-row{background:#eef2f5;border-radius:0;}
.name-note{display:flex;flex-wrap:wrap;color:#687e92;font-weight:900;}
.name-note span{display:inline-flex;align-items:center;gap:3px;}
.collapse-control{font-weight:900;color:#5e7387;white-space:nowrap;}
.mini-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font-weight:950;line-height:1;}
.mini-over{background:#ffe1e1;color:#b82c2c;border:1px solid #f2b4b4;}
.mini-stale{background:#efe8ff;color:#6950b8;border:1px solid #cdbcf1;}
.mini-none{background:#fff1bf;color:#8b6500;border:1px solid #e6cb74;}
.matrix-card{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);overflow:hidden;}
.table-wrap{overflow:auto;max-width:100%;}
table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;}
th,td{border-right:1px solid #d9e2ea;border-bottom:1px solid #d9e2ea;padding:6px 7px;height:36px;text-align:center;font-size:13px;white-space:nowrap;background:#fff;}
thead th{position:sticky;top:0;z-index:20;background:#fff;color:#254760;font-weight:950;}
thead th:last-child,tbody td:last-child{border-right:0;}
th.sticky,td.sticky{position:sticky;left:0;z-index:12;background:#fff;text-align:left;min-width:92px;max-width:92px;}
thead th.sticky{z-index:31;background:#fff;}
th.grip,td.grip{position:sticky;left:92px;z-index:11;min-width:44px;max-width:44px;}
thead th.grip{z-index:30;background:#fff;}
th.ratiocol,td.ratiocol{position:sticky;left:136px;z-index:11;min-width:58px;max-width:58px;}
thead th.ratiocol{z-index:30;background:#fff;}
th.abc,td.abc{position:sticky;left:194px;z-index:13;min-width:84px;max-width:84px;}
thead th.abc{z-index:31;background:#fff;}
th.applycol,td.applycol{position:sticky;left:278px;z-index:13;min-width:44px;max-width:44px;}
thead th.applycol{z-index:31;background:#fff;}
th.goalcol,td.goalcol{position:sticky;left:322px;z-index:11;min-width:44px;max-width:44px;}
thead th.goalcol{z-index:30;background:#fff;}
th.prevcol,td.prevcol{position:sticky;left:366px;z-index:11;min-width:44px;max-width:44px;}
thead th.prevcol{z-index:30;background:#fff;}
th.contactcol,td.contactcol{min-width:90px;max-width:90px;}
th.nextcol,td.nextcol{min-width:90px;max-width:90px;}
.ratio-head{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.05;gap:2px;}
.ratio-head span{font-size:10px;color:#254760;}
.ratio-stack{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.05;gap:2px;}
.ratio-stack span{font-size:11px;font-weight:950;}
.section .ratiocol .ratio-stack span{font-size:15px;}
.section .abc .abc-stack .breakdown{font-size:14px;}
.section .abc .abc-stack .extended{font-size:14px;}
tbody tr:last-child .ratiocol .ratio-stack span{font-size:15px;}
tbody tr:last-child .abc .abc-stack .breakdown{font-size:14px;}
tbody tr:last-child .abc .abc-stack .extended{font-size:14px;}
.abc-head-inline{display:flex;align-items:center;justify-content:center;gap:3px;white-space:nowrap;font-size:12px;font-weight:950;}
.abc-stack{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.05;gap:2px;}
.abc-stack .breakdown{font-size:10px;font-weight:950;}
.abc-stack .extended{font-size:10px;font-weight:900;color:#60768a;}
.section td{font-weight:950;background:#eef8ef!important;color:#224965;}
.section.alt td{background:#eef8ef!important;}
.fold{border:0;background:none;padding:0;font:inherit;font-weight:950;color:#224965;}
.person-cell{cursor:pointer;}
.person-cell:hover{background:#eef5fb!important;}
.person-name{display:inline-flex;align-items:center;color:inherit;font-weight:800;padding:2px 3px;border-radius:6px;text-align:left;}
.name-status{display:inline-flex;gap:3px;margin-left:4px;vertical-align:middle;}
.abc-badge{display:inline-flex;min-width:32px;justify-content:center;align-items:center;padding:3px 7px;border-radius:8px;font-weight:950;}
.abc-A{background:#dff2e3;color:#24763c;}
.abc-B{background:#e3effb;color:#326c9f;}
.abc-C{background:#ffe5bb;color:#9a620f;}
.check{font-size:17px;font-weight:950;color:#394d60;}
.muted{color:#9aa9b7;}
.next{display:inline-flex;align-items:center;min-height:22px;padding:3px 6px;border-radius:7px;font-size:10px;font-weight:900;}
.next.scheduled{background:#e7f2ff;color:#326c9f;}
.next.today{background:#e8f5e9;color:#27733d;}
.next.none{background:#fff1bf;color:#8b6500;}
.next.over{background:#ffe1e1;color:#b82c2c;}
.event{display:inline-flex;align-items:center;justify-content:center;padding:3px 5px;border-radius:7px;font-size:10px;font-weight:950;}
.event.visit{background:#dff2e3;color:#24763c;}
.event.call{background:#e3effb;color:#326c9f;}
.event.read{background:#ffe5bb;color:#9a620f;}
.event.pvisit{background:#e4f4e8;color:#2c8750;border:1px solid #b8d9c2;}
.event.pcall{background:#e7f1fb;color:#3779ab;border:1px solid #bdd3e7;}
.event.pread{background:#fff0d5;color:#9c6715;border:1px solid #e6ca95;}
.event.late{background:#ffe1e1;color:#b82c2c;border:1px solid #efb2b2;}
.day-sat{background:var(--sat)!important;}
.day-sun{background:var(--sun)!important;}
.day-final{background:var(--yellow)!important;}
.is-today-col{border-left:3px solid #2f7bdc!important;border-right:3px solid #2f7bdc!important;font-weight:950!important;box-shadow:inset 0 0 0 9999px rgba(47,123,220,.035);}
.today-top{border-top:3px solid #2f7bdc!important;}
.today-bottom{border-bottom:3px solid #2f7bdc!important;}
.rowhide{display:none!important;}
.legend{font-size:12px;color:#617589;flex-wrap:wrap;column-gap:6px;row-gap:5px;}
.legend-sep{display:none;}
.modal-bg{position:fixed;inset:0;background:rgba(18,36,54,.38);display:none;align-items:center;justify-content:center;z-index:1000;padding:16px;}
.modal-bg.open{display:flex;}
.modal{background:#fff;border-radius:14px;box-shadow:0 18px 60px rgba(18,36,54,.25);padding:16px;width:min(460px,100%);}
.modal h3{margin:0 0 12px;font-size:17px;}
.formrow{display:grid;gap:6px;margin-top:10px;}
.formrow label{font-size:11px;font-weight:900;color:#617589;}
.formrow input,.formrow select,.formrow textarea{width:100%;border:1px solid #ccd8e2;border-radius:9px;padding:9px 10px;background:#fff;}
.modal-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:14px;}
.action{border:1px solid #cfd9e2;background:#fff;border-radius:9px;padding:8px 11px;font-weight:900;}
.action.primary{background:#2f7bdc;color:#fff;border-color:#2f7bdc;}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#263747;color:#fff;padding:9px 13px;border-radius:999px;font-size:11px;font-weight:900;display:none;z-index:1100;}
.toast.show{display:block;}
@media (max-width:1050px){
  .hero-grid{grid-template-columns:1fr;}
}
@media (max-width:720px){
  .topbar{padding:8px 12px;}
  .brand{gap:10px;}
  .brand .title{font-size:18px;}
  .brand .team{font-size:15px;padding-left:10px;}
  .topmeta{display:none;}
  .main{padding:10px;}
  .countdowns{gap:6px;}
  .countdown{font-size:10px;padding:7px 4px;gap:3px;}
  .countdown strong{font-size:15px;}
}
@media (max-width:520px) and (orientation:portrait){
  .main{padding:10px;}
  .hero-grid{grid-template-columns:1fr;}
  .reminders h3{font-size:20px;}
  .status-grid{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,auto);gap:4px;}
  .status-grid .stat-title{font-size:9px;line-height:1.1;}
  .status-grid .n{font-size:18px;}
  .matrix-tools-row{gap:8px;padding:7px 8px;}
  .name-note{flex:1 1 auto;}
  .collapse-control{display:inline-flex;align-items:center;}
  th,td{font-size:13px;}
  .legend{grid-template-columns:max-content max-content max-content;justify-content:start;justify-items:start;column-gap:6px;row-gap:5px;}
  .legend-item.actual:nth-of-type(1){grid-column:1;grid-row:1;}
  .legend-item.actual:nth-of-type(2){grid-column:2;grid-row:1;}
  .legend-item.actual:nth-of-type(3){grid-column:3;grid-row:1;}
  .legend-item.planned:nth-of-type(4){grid-column:1 / span 3;grid-row:2;}
  .legend-item.planned:nth-of-type(5){grid-column:1 / span 3;grid-row:3;}
}
.summary-board{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;display:grid!important;grid-template-columns:1.9fr .78fr .95fr!important;gap:10px!important;align-items:stretch!important;}
.summary-green-combined{box-shadow:var(--shadow)!important;border:1px solid #abdcb6!important;border-radius:12px!important;background:linear-gradient(135deg,#f1fff4,#fff)!important;}
.summary-abc-single .sumall{border:1px solid var(--line)!important;box-shadow:var(--shadow)!important;border-radius:12px!important;}
.matrix-tools-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:8px 10px!important;}
.name-note{align-items:center!important;}
.mini-badge{min-width:24px!important;height:24px!important;padding:0 6px!important;font-size:12px!important;}
.collapse-control{display:inline-flex!important;align-items:center!important;gap:8px!important;font-size:13px!important;line-height:1!important;}
.collapse-control input[type="checkbox"]{width:22px!important;height:22px!important;margin:0!important;}
@media (max-width:520px) and (orientation:portrait){
  .summary-board{padding:0!important;}
  .summary-green-combined .green-main strong{font-size:30px!important;}
  .mini-badge{min-width:22px!important;height:22px!important;font-size:11px!important;}
  .collapse-control{font-size:11px!important;gap:6px!important;}
}
.follow-mark{width:18px;margin-left:4px;vertical-align:middle;}
.summary-green-combined .summary-label{font-size:12px!important;}
.summary-green-combined .summary-label small{font-size:9px!important;}
.green-rates span{font-size:11px!important;}
.summary-side-stack .metric .m-label{font-size:11px!important;}
.summary-side-stack .metric small{font-size:9px!important;}
.section .ratiocol .ratio-stack span,
tbody tr:last-child .ratiocol .ratio-stack span{font-size:16px!important;}
.section .abc .abc-stack .breakdown,
tbody tr:last-child .abc .abc-stack .breakdown{font-size:15px!important;}
.section .abc .abc-stack .extended,
tbody tr:last-child .abc .abc-stack .extended{font-size:15px!important;}
@media (max-width:520px) and (orientation:portrait){
  .summary-green-combined .summary-label{font-size:9px!important;}
  .summary-green-combined .summary-label small{font-size:7px!important;}
  .green-rates span{font-size:8.5px!important;}
  .summary-side-stack .metric .m-label{font-size:9px!important;}
  .summary-side-stack .metric small{font-size:7.3px!important;}
}
.summary-green-combined .summary-label,
.green-rates span,
.summary-side-stack .metric .m-label,
.summary-abc-single .line1,
.summary-abc-single .line2{font-size:12px!important;font-weight:950!important;}
.summary-asof{display:block;margin-top:2px;font-size:11px;font-weight:900;color:#8292a1;}
.status-grid .reminder{min-height:72px!important;padding:10px 6px!important;}
.status-grid .reminder .stat-title{font-size:13px!important;line-height:1.08!important;font-weight:950!important;}
.status-grid .reminder .n{font-size:25px!important;line-height:1!important;}
.status-grid .reminder.active{background:#e65050!important;color:#fff!important;outline:0!important;box-shadow:0 0 0 2px rgba(230,80,80,.16),0 5px 12px rgba(184,46,46,.18)!important;}
.status-grid .reminder.active .stat-title,
.status-grid .reminder.active .n{color:#fff!important;}
.person-cell.needs-follow-cell{background:#fff0f0!important;}
.person-name.needs-follow{color:#c52f2f!important;font-weight:950!important;}
.follow-mark{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:20px!important;height:20px!important;padding:0 5px!important;border-radius:999px!important;background:#e65050!important;border:1px solid #d13d3d!important;color:#fff!important;font-size:12px!important;font-weight:950!important;line-height:1!important;}
.legend{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:5px!important;padding:9px 12px!important;}
.legend-row{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;width:auto!important;max-width:100%!important;}
.legend-item{display:inline-flex!important;align-items:center!important;gap:2px!important;margin:0!important;white-space:nowrap!important;width:auto!important;}
.legend-item.actual:nth-of-type(1),
.legend-item.actual:nth-of-type(2),
.legend-item.actual:nth-of-type(3),
.legend-item.planned:nth-of-type(4),
.legend-item.planned:nth-of-type(5){grid-column:auto!important;grid-row:auto!important;margin:0!important;}
@media (max-width:520px) and (orientation:portrait){
  .summary-green-combined .summary-label,
  .green-rates span,
  .summary-side-stack .metric .m-label,
  .summary-abc-single .line1,
  .summary-abc-single .line2{font-size:10px!important;}
  .summary-asof{font-size:9px!important;}
  .status-grid .reminder{min-height:70px!important;padding:9px 3px!important;}
  .status-grid .reminder .stat-title{font-size:11px!important;}
  .status-grid .reminder .n{font-size:22px!important;}
  .legend{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important;}
  .legend-row{display:flex!important;gap:6px!important;justify-content:flex-start!important;width:auto!important;}
}
tbody td.grip,
tbody td.goalcol,
tbody td.prevcol,
tbody td.applycol,
tbody td.ratiocol .ratio-stack span{font-size:16px!important;font-weight:950!important;}
.section .abc .abc-stack .breakdown,
.section .abc .abc-stack .extended,
tbody tr:last-child .abc .abc-stack .breakdown,
tbody tr:last-child .abc .abc-stack .extended{font-size:16px!important;}
.green-rates{padding-left:2px!important;padding-right:3px!important;}
.green-rates > div{justify-content:flex-start!important;gap:5px!important;}
.green-rates strong{margin-left:1px!important;font-size:32px!important;}
.green-rates strong em{margin-left:1px!important;}
.summary-abc-single .line1,
.summary-abc-single .line2{font-size:15px!important;line-height:1.2!important;}
.stat-title.two-line{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;line-height:1.02!important;}
.stat-title.two-line > span{display:block!important;white-space:nowrap!important;}
@media (max-width:520px) and (orientation:portrait){
  tbody td.grip,
  tbody td.goalcol,
  tbody td.prevcol,
  tbody td.applycol,
  tbody td.ratiocol .ratio-stack span{font-size:16px!important;}
  .green-rates{padding-left:0!important;padding-right:1px!important;}
  .green-rates strong{font-size:24px!important;margin-left:0!important;}
  .summary-abc-single .line1,
  .summary-abc-single .line2{font-size:12px!important;}
  .stat-title.two-line{font-size:10px!important;}
}
.follow-legend{background:#e65050!important;border:1px solid #d13d3d!important;color:#fff!important;}
.name-note{font-size:13px!important;gap:12px!important;}
.name-note .mini-badge{min-width:25px!important;height:25px!important;font-size:12px!important;}
.summary-green-combined strong em,
.summary-main-value span,
.summary-side-stack .metric b,
.summary-abc-single .line2{font-size:inherit;}
.summary-green-combined strong em{font-size:16px!important;font-weight:950!important;color:inherit!important;}
.summary-side-stack .metric b{font-size:28px!important;}
.summary-abc-single .line1 b,
.summary-abc-single .line2 b{font-size:30px!important;}
.summary-abc-single .line2{font-size:15px!important;}
.summary-side-stack .metric .m-label,
.summary-green-combined .summary-label,
.green-rates span,
.summary-abc-single .line1,
.summary-abc-single .line2{font-size:13px!important;}
.abc-select-cell,
.apply-select-cell{cursor:pointer;}
.abc-select-cell:hover,
.apply-select-cell:hover{background:#f3f8fd!important;}
.apply-select-cell{font-size:18px!important;font-weight:950!important;}
.choice-grid{display:grid;}
.abc-choice-grid{grid-template-columns:repeat(4,1fr);}
.apply-choice-grid{grid-template-columns:repeat(2,1fr);}
.choice-btn{border:1px solid #d4dee7;background:#fff;font-weight:950;}
.abc-choice[data-abc="A"]{background:#e8f5e9;color:#27733d;}
.abc-choice[data-abc="B"]{background:#e8f1fb;color:#326c9f;}
.abc-choice[data-abc="C"]{background:#fff0df;color:#a45a16;}
.abc-choice.outside-choice{background:#f0f0f0;color:#666;}
.apply-choice.done{background:#e8f5e9;color:#27733d;}
.apply-choice.notyet{background:#f3f3f3;color:#666;}
.abc-out{background:#ececec;color:#666;}
@media (max-width:520px) and (orientation:portrait){
  .name-note{font-size:11px!important;gap:7px!important;}
  .name-note .mini-badge{min-width:23px!important;height:23px!important;font-size:11px!important;}
  .summary-green-combined strong em{font-size:12px!important;}
  .summary-side-stack .metric b{font-size:21px!important;}
  .summary-abc-single .line1 b,
  .summary-abc-single .line2 b{font-size:22px!important;}
  .summary-side-stack .metric .m-label,
  .summary-green-combined .summary-label,
  .green-rates span,
  .summary-abc-single .line1,
  .summary-abc-single .line2{font-size:10px!important;}
}
.next,
.event{font-size:13px!important;}
.event{min-width:30px;}
@media (min-width:721px), (orientation:landscape) and (min-width:521px){
  #matrixTable tbody td{font-weight:400!important;}
  #matrixTable tbody .person-name,
  #matrixTable tbody .abc-badge,
  #matrixTable tbody .next,
  #matrixTable tbody .event,
  #matrixTable tbody .check{font-weight:400!important;}
  #matrixTable tbody tr.section td,
  #matrixTable tbody tr.team-total td{font-weight:500!important;}
  #matrixTable tbody tr.section .fold{font-weight:500!important;}
  #matrixTable tbody .ratio-stack span,
  #matrixTable tbody .abc-stack .breakdown,
  #matrixTable tbody .abc-stack .extended{font-weight:500!important;}
  .summary-board{gap:7px!important;}
  .summary-green-combined .green-main{padding:4px 8px!important;}
  .green-rates{padding-top:3px!important;padding-bottom:3px!important;}
  .summary-side-stack{gap:4px!important;}
  .summary-side-stack .metric{padding:4px 7px!important;}
  .summary-abc-single .sumall{padding:4px 6px!important;}
  .summary-green-combined .green-main strong{font-size:34px!important;}
  .green-rates strong{font-size:28px!important;}
  .summary-side-stack .metric b{font-size:24px!important;}
  .summary-abc-single .line1 b,
  .summary-abc-single .line2 b{font-size:26px!important;}
}
@media (max-width:520px) and (orientation:portrait){
  .next,
  .event{font-size:13px!important;}
}
.header-asof{margin-left:auto;color:#fff;}
@media (orientation:landscape) and (min-width:521px){
  .summary-board{gap:6px!important;}
  .summary-green-combined .green-main{padding:3px 7px!important;}
  .summary-green-combined .summary-label{font-size:10px!important;}
  .summary-asof{font-size:9px!important;margin-top:0!important;}
  .summary-green-combined .green-main strong{font-size:30px!important;margin-top:1px!important;}
  .green-rates{padding:2px 3px!important;}
  .green-rates span{font-size:9px!important;}
  .green-rates strong{font-size:24px!important;}
  .summary-side-stack{gap:3px!important;}
  .summary-side-stack .metric{padding:3px 6px!important;}
  .summary-side-stack .metric .m-label{font-size:9px!important;}
  .summary-side-stack .metric b{font-size:20px!important;}
  .summary-abc-single .sumall{padding:3px 5px!important;}
  .summary-abc-single .line1,
  .summary-abc-single .line2{font-size:10px!important;}
  .summary-abc-single .line1 b,
  .summary-abc-single .line2 b{font-size:22px!important;}
  .reminders{padding:8px!important;}
  .reminders h3{font-size:17px!important;margin-bottom:6px!important;}
  .status-grid{gap:4px!important;}
  .status-grid .reminder{min-height:50px!important;padding:5px 4px!important;}
  .status-grid .reminder .stat-title{font-size:10px!important;line-height:1.05!important;}
  .status-grid .reminder .n{font-size:19px!important;margin-top:1px!important;}
  .status-grid .reminder[data-row="lower"]{display:grid!important;grid-template-rows:1fr auto!important;align-items:end!important;}
  .status-grid .reminder[data-row="lower"] .stat-title{align-self:end!important;justify-self:center!important;margin-bottom:2px!important;}
  .status-grid .reminder[data-row="lower"] .n{align-self:end!important;justify-self:center!important;margin:0!important;}
  .legend{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;overflow-x:auto!important;white-space:nowrap!important;}
  .legend-row{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;width:auto!important;flex:0 0 auto!important;}
}
@media (max-width:520px) and (orientation:portrait){
  .header-asof{font-size:10px;}
}
.choice-btn.selected{box-shadow:0 4px 10px rgba(35,54,73,.14);}
.event-wrap{display:inline-flex;align-items:center;justify-content:center;gap:3px;white-space:nowrap;}
.event-actor{font-size:12px;font-weight:400;color:#42576c;}
@media (min-width:900px), (orientation:landscape) and (min-width:521px){
  .hero-grid{grid-template-columns:1fr!important;gap:8px!important;}
  .summary-green-combined,
  .summary-side-stack,
  .summary-abc{display:contents!important;}
  .summary-green-combined .green-main,
  .green-rates,
  .summary-side-stack .metric,
  .summary-abc-single .sumall{min-height:58px!important;height:58px!important;border-radius:10px!important;}
  .green-rates > div{line-height:1!important;}
  .summary-asof{font-size:8px!important;}
  .green-rates strong{font-size:22px!important;}
  .summary-abc-single .line1 b,
  .summary-abc-single .line2 b{font-size:20px!important;}
  .reminders{padding:7px 8px!important;}
  .reminders h3{font-size:16px!important;margin:0 0 5px!important;}
  .status-grid{grid-template-columns:repeat(10,minmax(0,1fr))!important;grid-template-rows:1fr!important;gap:4px!important;}
  .status-grid .reminder,
  .status-grid .reminder[data-row="lower"]{min-height:48px!important;height:48px!important;padding:4px 2px!important;display:grid!important;grid-template-rows:1fr auto!important;align-items:end!important;}
  .status-grid .reminder .stat-title{font-size:9px!important;line-height:1.0!important;align-self:end!important;margin-bottom:2px!important;}
  .status-grid .reminder .n{font-size:17px!important;line-height:1!important;align-self:end!important;margin:0!important;}
  .stat-title.two-line{gap:0!important;}
}
@media (max-width:520px) and (orientation:portrait){
  .event-actor{font-size:12px;}
}
@media (max-width:520px) and (orientation:portrait){
  .status-grid .reminder[data-row="lower"]{display:grid!important;grid-template-rows:1fr auto!important;align-items:end!important;}
  .status-grid .reminder[data-row="lower"] .stat-title{align-self:end!important;justify-self:center!important;margin-bottom:2px!important;}
  .status-grid .reminder[data-row="lower"] .n{align-self:end!important;justify-self:center!important;margin:0!important;}
}
@media (min-width:900px), (orientation:landscape) and (min-width:521px){
  .summary-abc-single .sumall{flex-direction:row!important;white-space:nowrap!important;}
  .matrix-tools-row{justify-content:flex-start!important;}
  .collapse-control{margin-left:14px!important;margin-right:0!important;}
}
@media (max-width:520px) and (orientation:portrait){
  .summary-abc-single .sumall{flex-direction:column!important;}
  .summary-abc-single .line1,
  .summary-abc-single .line2{display:block!important;}
}
.summary-abc-single em{font-style:normal;}
.summary-abc-single .line1 .abc-unit-item{display:inline-flex;align-items:baseline;gap:1px;margin-right:6px;}
@media (min-width:900px), (orientation:landscape) and (min-width:521px){
  .summary-green-combined .green-main{border-radius:10px!important;}
  .green-rates{border-radius:10px!important;}
  .summary-side-stack{border:1px solid #e0e7ee!important;background:#fbfdff!important;box-shadow:var(--shadow)!important;border-radius:10px!important;padding:4px 8px!important;align-items:end!important;}
  .summary-abc-single .line1,
  .summary-abc-single .line2{display:flex!important;align-items:baseline!important;justify-content:flex-start!important;gap:8px!important;white-space:nowrap!important;}
  .summary-green-combined .summary-label,
  .green-rates span,
  .summary-side-stack .metric .m-label,
  .summary-abc-single .line1,
  .summary-abc-single .line2{font-size:12px!important;font-weight:950!important;line-height:1.05!important;}
  .summary-green-combined .green-main strong em,
  .green-rates strong em,
  .summary-side-stack .metric b .unit,
  .summary-side-stack .metric b,
  .summary-abc-single .line1 em,
  .summary-abc-single .line2 em{font-size:12px!important;}
  .summary-side-stack .metric b,
  .summary-abc-single .line2{display:flex!important;align-items:baseline!important;gap:1px!important;}
  .summary-abc-single .line1 .abc-unit-item{display:inline-flex!important;align-items:baseline!important;gap:1px!important;margin-right:2px!important;}
  .summary-abc-single .line1 b{font-size:18px!important;line-height:1!important;font-weight:950!important;}
  .summary-green-combined .summary-label,
  .summary-side-stack .metric .m-label,
  .summary-abc-single .line1,
  .summary-abc-single .line2{font-size:13px!important;}
  .summary-green-combined .green-main,
  .green-rates > div,
  .summary-side-stack .metric,
  .summary-abc-single .sumall{justify-content:flex-end!important;}
}
.summary-abc-single .abc-label{display:block;}
.summary-abc-single .abc-value{display:inline-flex;align-items:baseline;gap:1px;}
.summary-abc-single .abc-unit-item{display:inline-flex;align-items:baseline;gap:1px;margin-right:0;}
@media not all and (orientation:landscape){
  .summary-abc-single .line1 .abc-unit-item{margin-right:6px;}
}
@media (min-width:900px), (orientation:landscape) and (min-width:521px){
  .summary-board{display:grid!important;}
  .summary-green-combined{display:grid!important;min-height:56px!important;height:56px!important;border:1px solid #abdcb6!important;background:linear-gradient(135deg,#f1fff4,#fff)!important;box-shadow:var(--shadow)!important;border-radius:10px!important;overflow:hidden!important;}
  .summary-green-combined .green-main{border:0!important;background:transparent!important;box-shadow:none!important;min-height:auto!important;height:auto!important;padding:5px 8px 4px!important;display:flex!important;flex-direction:column!important;justify-content:flex-end!important;}
  .green-rates{border:0!important;background:transparent!important;box-shadow:none!important;min-height:auto!important;height:auto!important;padding:4px 8px!important;display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-rows:1fr!important;align-items:end!important;gap:8px!important;}
  .green-rates > div{display:flex!important;flex-direction:column!important;justify-content:flex-end!important;gap:0!important;min-height:0!important;}
  .summary-side-stack .metric{border:1px solid #e0e7ee!important;background:#fbfdff!important;box-shadow:var(--shadow)!important;border-radius:10px!important;gap:0!important;}
  .summary-abc{display:block!important;}
  .summary-abc-single .sumall{min-height:56px!important;height:56px!important;border:1px solid var(--line)!important;box-shadow:var(--shadow)!important;border-radius:10px!important;padding:4px 8px!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;grid-template-rows:1fr!important;gap:8px!important;align-items:end!important;}
  .summary-abc-single .line1{display:contents!important;}
  .summary-abc-single .line2{display:flex!important;flex-direction:column!important;justify-content:flex-end!important;align-items:flex-start!important;white-space:nowrap!important;}
  .summary-abc-single .abc-unit-item{display:flex!important;flex-direction:column!important;justify-content:flex-end!important;align-items:flex-start!important;white-space:nowrap!important;gap:0!important;}
  .summary-green-combined .green-main strong{margin-top:1px!important;}
  .green-rates strong,
  .summary-side-stack .metric b,
  .summary-abc-single .line2 b{font-size:22px!important;line-height:1!important;font-weight:950!important;}
  .summary-abc-single .abc-unit-item b{font-size:18px!important;line-height:1!important;font-weight:950!important;}
  .summary-abc-single .abc-value{display:inline-flex!important;align-items:baseline!important;gap:1px!important;}
  .summary-green-combined .summary-label,
  .summary-abc-single .abc-label{font-size:14px!important;}
}
@media (min-width:900px), (orientation:landscape) and (min-width:521px){
  .summary-green-combined .summary-label,
  .green-rates span,
  .summary-side-stack .metric .m-label,
  .summary-abc-single .abc-label{font-size:14px!important;font-weight:950!important;line-height:1.05!important;}
  .green-rates strong,
  .summary-side-stack .metric b,
  .summary-abc-single .abc-unit-item b,
  .summary-abc-single .line2 b{font-size:22px!important;line-height:1!important;font-weight:950!important;}
  .summary-green-combined .green-main strong{font-size:22px!important;line-height:1!important;}
  .summary-green-combined .green-main strong em,
  .green-rates strong em,
  .summary-side-stack .metric b,
  .summary-abc-single .abc-value em{font-size:12px!important;}
  .summary-green-combined .green-main{align-items:center!important;text-align:center!important;}
  .green-rates > div{align-items:center!important;text-align:center!important;}
  .summary-abc-single .abc-unit-item,
  .summary-abc-single .line2{align-items:center!important;text-align:center!important;}
  .summary-abc-single .sumall{justify-items:center!important;}
  .summary-green-combined .green-main,
  .green-rates > div,
  .summary-side-stack .metric,
  .summary-abc-single .abc-unit-item,
  .summary-abc-single .line2{justify-content:center!important;}
}
@media (min-width:900px), (orientation:landscape) and (min-width:521px){
  .summary-side-stack .metric b{font-size:12px!important;line-height:1!important;font-weight:950!important;}
}
.select-modal{width:min(300px,92vw)!important;padding:13px!important;}
.select-modal h3{font-size:15px!important;margin-bottom:8px!important;}
.choice-grid{gap:6px!important;margin-top:8px!important;}
.choice-btn{padding:10px 6px!important;font-size:16px!important;border-radius:9px!important;}
.select-modal .modal-actions{margin-top:10px!important;}
.select-modal .action{padding:7px 10px!important;font-size:13px!important;}
@media (max-width:520px) and (orientation:portrait){
  .summary-board{gap:5px!important;}
  .summary-side-stack{min-width:0!important;}
}
.name-note,
.name-note span,
.name-note .mini-badge,
.collapse-control,
.collapse-control input{font-weight:400!important;}
.status-grid .reminder,
.status-grid .reminder .stat-title,
.status-grid .reminder .n,
.status-grid .reminder.active,
.status-grid .reminder.active .stat-title,
.status-grid .reminder.active .n,
.reminders h3{font-weight:400!important;}
#matrixTable th,
#matrixTable td,
#matrixTable thead th,
#matrixTable tbody td,
#matrixTable .fold,
#matrixTable .person-name,
#matrixTable .abc-badge,
#matrixTable .check,
#matrixTable .ratio-head,
#matrixTable .ratio-head span,
#matrixTable .ratio-stack,
#matrixTable .ratio-stack span,
#matrixTable .abc-head-inline,
#matrixTable .abc-stack,
#matrixTable .abc-stack .breakdown,
#matrixTable .abc-stack .extended,
#matrixTable .next,
#matrixTable .event,
#matrixTable .event-actor,
#matrixTable .mini-badge,
#matrixTable .sum-strong{font-weight:400!important;}
#matrixTable tr.section td,
#matrixTable tr.team-total td,
#matrixTable tr.section .fold,
#matrixTable tr.section .ratio-stack span,
#matrixTable tr.team-total .ratio-stack span,
#matrixTable tr.section .abc-stack .breakdown,
#matrixTable tr.section .abc-stack .extended,
#matrixTable tr.team-total .abc-stack .breakdown,
#matrixTable tr.team-total .abc-stack .extended{font-weight:400!important;}
.legend,
.legend-row,
.legend-item,
.legend .event,
.legend .event-actor{font-weight:400!important;}
.follow-mark,
.follow-legend{font-weight:400!important;}
.abc-choice[data-abc="A"].selected{background:#e3f3e7!important;color:#24763c!important;border-color:#a8d5b3!important;box-shadow:0 2px 7px rgba(67,166,93,.10)!important;}
.abc-choice[data-abc="B"].selected{background:#e6f0fa!important;color:#326c9f!important;border-color:#b6cfe5!important;box-shadow:0 2px 7px rgba(79,143,201,.10)!important;}
.abc-choice[data-abc="C"].selected{background:#fff0d9!important;color:#9a620f!important;border-color:#e8c995!important;box-shadow:0 2px 7px rgba(239,155,61,.10)!important;}
.abc-choice.outside-choice.selected{background:#eeeeee!important;color:#666!important;border-color:#c9c9c9!important;box-shadow:0 2px 7px rgba(100,100,100,.08)!important;}
.apply-choice.done.selected{background:#dff2e3!important;color:#24763c!important;border-color:#9fd0aa!important;box-shadow:0 2px 7px rgba(67,166,93,.10)!important;}
.apply-choice.notyet.selected{background:#eeeeee!important;color:#5f6871!important;border-color:#c9d0d6!important;box-shadow:0 2px 7px rgba(90,100,110,.08)!important;}
.choice-btn.selected{border-width:2px!important;transform:none!important;}
.event-follow-box{display:flex;align-items:center;gap:7px;margin-top:12px;font-size:13px;color:#566b7e;}
.event-follow-box input{width:18px;height:18px;margin:0;}
.person-detail-modal{width:min(500px,94vw)!important;}
.history-block{margin:2px 0 12px;}
.history-heading{font-weight:400;color:#5f7386;margin-bottom:6px;}
.person-history{overflow:auto;border:1px solid #dbe4ec;border-radius:10px;background:#fbfdff;}
.history-item{border-bottom:1px solid #e5ebf0;}
.history-item:last-child{border-bottom:0;}
.history-top{color:#344b61;}
.history-date{color:#718497;}
.history-type{font-weight:400;}
.history-memo{margin-top:3px;padding-left:41px;font-size:12px;line-height:1.35;}
.history-empty{padding:12px;text-align:center;font-size:12px;color:#8a99a7;}
.green-rates strong,
.green-rates strong > span{font-size:38px!important;line-height:1!important;font-weight:400!important;}
.green-rates strong em{font-size:16px!important;}
.event.missvisit,
.event.misscall{background:#ffe1e1!important;color:#b82c2c!important;border:1px solid #efb2b2!important;}
.person-history{max-height:230px!important;}
.history-item{padding:7px 9px!important;}
.history-top{display:grid!important;grid-template-columns:42px 92px 70px minmax(140px,1fr)!important;align-items:center!important;gap:7px!important;font-size:12px!important;line-height:1.25!important;}
.history-date{min-width:0!important;}
.history-type,
.history-actor,
.history-memo{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.history-actor{color:#5e7387!important;}
.history-memo{margin:0!important;padding:0!important;color:#566b7e!important;}
@media (orientation:landscape) and (min-width:521px){
  .legend-row-missed{display:flex!important;flex-direction:row!important;}
}
@media (max-width:520px) and (orientation:portrait){
  .green-rates strong,
  .green-rates strong > span{font-size:30px!important;}
  .green-rates strong em{font-size:12px!important;}
  .history-top{grid-template-columns:36px 82px 58px minmax(110px,1fr)!important;gap:5px!important;font-size:11px!important;}
}
@media (max-width:520px) and (orientation:portrait){
  .green-rates > div{min-width:0!important;}
}
.legend .event.missvisit,
.legend .event.misscall{min-width:22px!important;width:22px!important;padding:0!important;display:inline-flex!important;justify-content:center!important;font-size:10px!important;line-height:1!important;border-radius:5px!important;}
.summary-board,
.summary-board *,
.summary-green-combined,
.summary-green-combined *,
.summary-side-stack,
.summary-side-stack *,
.summary-abc,
.summary-abc *{font-weight:400!important;}
@media (min-width:900px), (orientation:landscape) and (min-width:521px){
  .summary-green-combined .green-main strong,
  .green-rates strong,
  .summary-side-stack .metric b{font-size:12px!important;font-weight:400!important;}
  #mainGrip,
  #mainGoalPct,
  #mainPrevPct,
  #mainGoal,
  #mainPrev,
  #mainA,
  #mainB,
  #mainC,
  #mainExtended{font-size:22px!important;line-height:1!important;font-weight:400!important;}
  .summary-green-combined .green-main strong em,
  .green-rates strong em,
  .summary-abc-single .abc-value em{font-size:12px!important;font-weight:400!important;}
}
#matrixTable th.sticky,
#matrixTable td.sticky{min-width:112px!important;max-width:112px!important;width:112px!important;}
#matrixTable th.grip,
#matrixTable td.grip{left:112px!important;min-width:44px!important;max-width:44px!important;}
#matrixTable th.goalcol,
#matrixTable td.goalcol{left:156px!important;min-width:44px!important;max-width:44px!important;}
#matrixTable th.prevcol,
#matrixTable td.prevcol{left:200px!important;min-width:44px!important;max-width:44px!important;}
#matrixTable th.ratiocol,
#matrixTable td.ratiocol{left:244px!important;}
#matrixTable th.applycol,
#matrixTable td.applycol{min-width:44px!important;max-width:44px!important;}
#matrixTable th.contactcol,
#matrixTable td.contactcol,
#matrixTable th.nextcol,
#matrixTable td.nextcol{min-width:78px!important;max-width:78px!important;width:78px!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.legend,
.legend .legend-row,
.legend .legend-item,
.legend .event,
.legend .event-actor{font-size:11px!important;font-weight:400!important;line-height:1!important;}
.legend .event{width:30px!important;min-width:30px!important;height:22px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:6px!important;}
.header-asof{font-size:16px!important;font-weight:400!important;white-space:nowrap!important;}
.event.missvisit,
.event.misscall,
.legend .event.missvisit,
.legend .event.misscall{min-width:28px!important;width:auto!important;height:auto!important;padding:3px 5px!important;font-size:10px!important;line-height:1!important;border-radius:7px!important;}
#matrixTable th.ratiocol,
#matrixTable td.ratiocol{min-width:50px!important;max-width:50px!important;width:50px!important;}
#matrixTable th.abc,
#matrixTable td.abc{min-width:72px!important;max-width:72px!important;width:72px!important;}
#matrixTable th.abc,
#matrixTable td.abc{left:294px!important;}
#matrixTable th.applycol,
#matrixTable td.applycol{left:366px!important;}
@media (max-width:520px) and (orientation:portrait){
  #matrixTable th.sticky,
  #matrixTable td.sticky{min-width:104px!important;max-width:104px!important;width:104px!important;}
  #matrixTable th.grip,
  #matrixTable td.grip{left:104px!important;min-width:42px!important;max-width:42px!important;width:42px!important;}
  #matrixTable th.goalcol,
  #matrixTable td.goalcol{left:146px!important;min-width:40px!important;max-width:40px!important;width:40px!important;}
  #matrixTable th.prevcol,
  #matrixTable td.prevcol{left:186px!important;min-width:40px!important;max-width:40px!important;width:40px!important;}
  #matrixTable th.ratiocol,
  #matrixTable td.ratiocol{left:226px!important;min-width:48px!important;max-width:48px!important;width:48px!important;}
  #matrixTable th.abc,
  #matrixTable td.abc{left:274px!important;min-width:68px!important;max-width:68px!important;width:68px!important;}
  #matrixTable th.applycol,
  #matrixTable td.applycol{left:342px!important;min-width:42px!important;max-width:42px!important;width:42px!important;}
}
#matrixTable .name-status{gap:2px!important;margin-left:3px!important;}
#matrixTable .name-status .mini-badge,
#matrixTable .follow-mark{min-width:18px!important;height:18px!important;padding:0 4px!important;font-size:9px!important;line-height:1!important;}
@media (min-width:900px), (orientation:landscape) and (min-width:521px){
  .status-grid .stat-title{font-size:11px!important;line-height:1.08!important;}
}
.event-entry-modal{width:min(460px,94vw)!important;}
.event-modal-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:4px!important;}
.event-modal-head h3{margin:0!important;min-width:0!important;font-size:16px!important;font-weight:400!important;}
.event-modal-head .event-follow-box{margin:0!important;flex:0 0 auto!important;white-space:nowrap!important;}
.formrow input::placeholder,
.formrow textarea::placeholder{color:#aeb9c4!important;opacity:1!important;}
.person-modal-head{display:flex!important;justify-content:space-between!important;gap:12px!important;margin-bottom:4px!important;}
.person-modal-head h3{margin:0!important;min-width:0!important;font-size:16px!important;font-weight:400!important;}
.person-follow-box{margin:0!important;flex:0 0 auto!important;white-space:nowrap!important;}
#personComment::placeholder{color:#aeb9c4!important;opacity:1!important;}
.person-history .history-top{font-size:13px!important;}
.person-history .history-date,
.person-history .history-type,
.person-history .history-actor,
.person-history .history-memo{font-size:13px!important;}
.history-heading{font-size:13px!important;}
.person-detail-modal .formrow > label,
.person-detail-modal .history-heading{font-weight:400!important;line-height:1.2!important;color:#5f7386!important;}
.person-detail-modal .history-block{margin-top:18px!important;}
.person-follow-box{font-size:14px!important;font-weight:400!important;}
.person-follow-box input{width:19px!important;height:19px!important;}
.person-history .history-top,
.person-history .history-date,
.person-history .history-type,
.person-history .history-actor,
.person-history .history-memo{font-size:14px!important;line-height:1.3!important;}
.person-history .history-item{padding-top:9px!important;padding-bottom:9px!important;}
.event-entry-modal .formrow > label{font-weight:400!important;color:#5f7386!important;}
.event-modal-head .event-follow-box{font-size:13px!important;font-weight:400!important;}
.event-modal-head .event-follow-box input{width:19px!important;height:19px!important;}
#matrixTable .ratio-head span,
#matrixTable .ratio-stack span{font-size:12px!important;letter-spacing:-.25px!important;}
#matrixTable tr.section .ratio-stack span,
#matrixTable tr.team-total .ratio-stack span{font-size:14px!important;letter-spacing:-.35px!important;}
#matrixTable .ratiocol,
#matrixTable .abc{overflow:hidden!important;}
#matrixTable .ratio-stack,
#matrixTable .abc-stack{max-width:100%!important;}
.summary-green-combined .green-apply{display:flex;flex-direction:column;justify-content:center;min-width:0;}
.summary-green-combined .green-apply .summary-label{color:#5a7084;white-space:nowrap;}
.summary-green-combined .green-apply strong{color:#147a36;white-space:nowrap;line-height:1;}
.summary-green-combined .green-apply em{font-style:normal;}
.summary-green-combined .green-main strong,
.summary-green-combined .green-main strong *,
.summary-green-combined .green-apply strong,
.summary-green-combined .green-apply strong *,
.summary-green-combined .green-rates strong,
.summary-green-combined .green-rates strong *{color:#147a36!important;font-weight:400!important;}
@media (min-width:900px), (orientation:landscape) and (min-width:521px){
  .summary-green-combined{grid-template-columns:1fr .82fr 1.72fr!important;}
  .summary-green-combined .green-main,
  .summary-green-combined .green-apply,
  .green-rates > div{align-items:center!important;text-align:center!important;justify-content:center!important;}
  .summary-green-combined .green-main,
  .summary-green-combined .green-apply{padding:4px 5px!important;}
  .summary-green-combined .green-apply .summary-label,
  .summary-green-combined .green-main .summary-label,
  .green-rates span{font-size:14px!important;font-weight:400!important;line-height:1.05!important;}
  .summary-green-combined .green-main strong,
  .summary-green-combined .green-apply strong,
  .green-rates strong{font-size:12px!important;font-weight:400!important;}
  #mainGrip,
  #mainApply,
  #mainGoalPct,
  #mainPrevPct{font-size:22px!important;font-weight:400!important;}
  .summary-green-combined .green-main em,
  .summary-green-combined .green-apply em,
  .green-rates em{font-size:12px!important;font-weight:400!important;}
}
@media (max-width:520px) and (orientation:portrait){
  .summary-green-combined{grid-template-columns:.92fr 1.08fr!important;grid-template-rows:1fr 1fr!important;}
  .summary-green-combined .green-main{grid-column:1!important;grid-row:1!important;padding:4px 4px!important;align-items:center!important;text-align:center!important;}
  .summary-green-combined .green-apply{grid-column:1!important;grid-row:2!important;padding:4px 4px!important;align-items:center!important;text-align:center!important;}
  .green-rates{grid-column:2!important;grid-row:1 / span 2!important;transform:none!important;}
  .summary-green-combined .green-main .summary-label,
  .summary-green-combined .green-apply .summary-label,
  .green-rates span{font-size:7.5px!important;font-weight:400!important;}
  .summary-green-combined .green-main strong,
  .summary-green-combined .green-apply strong,
  .green-rates strong{font-size:12px!important;font-weight:400!important;}
  #mainGrip,
  #mainApply,
  #mainGoalPct,
  #mainPrevPct{font-size:29px!important;font-weight:400!important;}
  .summary-green-combined .green-main em,
  .summary-green-combined .green-apply em,
  .green-rates em{font-size:11px!important;font-weight:400!important;}
  .green-rates strong{white-space:nowrap!important;}
  .summary-side-stack .metric{padding-left:4px!important;padding-right:4px!important;}
  .summary-abc-single .sumall{padding-left:4px!important;padding-right:4px!important;}
  .person-history .history-top,
  .person-history .history-date,
  .person-history .history-type,
  .person-history .history-actor,
  .person-history .history-memo{font-size:13px!important;}
  #matrixTable .ratio-head span,
  #matrixTable .ratio-stack span{font-size:11px!important;}
  #matrixTable tr.section .ratio-stack span,
  #matrixTable tr.team-total .ratio-stack span{font-size:13px!important;}
}
.person-follow-box,
.event-modal-head .event-follow-box{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:30px!important;padding:5px 9px!important;border:1px solid #efb7b7!important;border-radius:9px!important;background:#fff1f1!important;color:#b23a3a!important;font-size:14px!important;font-weight:700!important;line-height:1!important;vertical-align:middle!important;}
.person-follow-box input,
.event-modal-head .event-follow-box input{width:18px!important;height:18px!important;margin:0!important;flex:0 0 auto!important;accent-color:#d95b5b!important;}
.person-modal-head{align-items:center!important;}
.person-modal-head h3,
.person-modal-head .person-follow-box{align-self:center!important;}
.person-detail-modal .formrow > label,
.person-detail-modal .history-heading,
.event-entry-modal .formrow > label{display:flex!important;align-items:center!important;gap:7px!important;font-weight:700!important;color:#42576c!important;}
.person-detail-modal .formrow > label::before,
.person-detail-modal .history-heading::before,
.event-entry-modal .formrow > label::before{content:""!important;display:inline-block!important;width:4px!important;height:15px!important;border-radius:3px!important;background:#4f84bd!important;flex:0 0 4px!important;}
.person-detail-modal .formrow > label,
.person-detail-modal .history-heading{font-size:14px!important;}
.event-entry-modal .formrow > label{font-size:13px!important;}
@media (max-width:520px) and (orientation:portrait){
  #matrixTable .abc-head-inline{letter-spacing:-.3px!important;}
}
.summary-green-combined .summary-label,
.green-rates > div > span,
.summary-abc-single .abc-label{font-size:9px!important;font-weight:400!important;line-height:1.05!important;}
@media (min-width:900px), (orientation:landscape) and (min-width:521px){
  .summary-green-combined .summary-label,
  .green-rates > div > span,
  .summary-abc-single .abc-label{font-size:14px!important;font-weight:400!important;}
}
@media (max-width:520px) and (orientation:portrait){
  .summary-green-combined .summary-label,
  .green-rates > div > span,
  .summary-abc-single .abc-label{font-size:7.5px!important;font-weight:400!important;}
}
.legend .event.missvisit,
.legend .event.misscall{height:22px!important;min-height:22px!important;padding-top:0!important;padding-bottom:0!important;align-items:center!important;}
#matrixTable th.abc,
#matrixTable td.abc{padding-left:3px!important;padding-right:3px!important;}
#matrixTable .abc-head-inline{font-size:14px!important;letter-spacing:-.35px!important;}
#matrixTable .abc-stack .breakdown,
#matrixTable .abc-stack .extended{font-size:12.5px!important;letter-spacing:-.7px!important;}
#matrixTable tr.section .abc-stack .breakdown,
#matrixTable tr.section .abc-stack .extended,
#matrixTable tr.team-total .abc-stack .breakdown,
#matrixTable tr.team-total .abc-stack .extended{font-size:14px!important;letter-spacing:-.85px!important;}
@media (max-width:520px) and (orientation:portrait){
  #matrixTable .abc-head-inline{font-size:13px!important;}
  #matrixTable .abc-stack .breakdown,
  #matrixTable .abc-stack .extended{font-size:11.5px!important;letter-spacing:-.75px!important;}
  #matrixTable tr.section .abc-stack .breakdown,
  #matrixTable tr.section .abc-stack .extended,
  #matrixTable tr.team-total .abc-stack .breakdown,
  #matrixTable tr.team-total .abc-stack .extended{font-size:13px!important;letter-spacing:-.9px!important;}
}
#matrixTable #headRow > .is-today-col{border-top:3px solid #2f7bdc!important;}
#matrixTable tbody tr:last-child > .is-today-col{border-bottom:3px solid #2f7bdc!important;}
.summary-green-combined .summary-label,
.green-rates > div > span,
.summary-side-stack .metric .m-label,
.summary-abc-single .abc-label{font-size:11px!important;font-weight:400!important;line-height:1.08!important;}
@media (min-width:900px), (orientation:landscape) and (min-width:521px){
  .summary-green-combined .summary-label,
  .green-rates > div > span,
  .summary-side-stack .metric .m-label,
  .summary-abc-single .abc-label{font-size:14px!important;font-weight:400!important;}
}
@media (max-width:520px) and (orientation:portrait){
  .summary-green-combined .summary-label,
  .green-rates > div > span,
  .summary-side-stack .metric .m-label,
  .summary-abc-single .abc-label{font-size:11px!important;font-weight:400!important;line-height:1.05!important;}
  .summary-green-combined .green-main,
  .summary-green-combined .green-apply{padding-top:3px!important;padding-bottom:3px!important;}
}
.summary-green-combined .green-main .summary-label,
.summary-green-combined .green-apply .summary-label,
.summary-green-combined .green-rates > div > span{font-size:12px!important;font-weight:400!important;line-height:1.08!important;}
.summary-abc-single .abc-label,
.summary-abc-single .sumall .abc-label{font-size:12px!important;font-weight:400!important;line-height:1.08!important;}
@media (min-width:900px), (orientation:landscape) and (min-width:521px){
  .summary-green-combined .green-main .summary-label,
  .summary-green-combined .green-apply .summary-label,
  .summary-green-combined .green-rates > div > span,
  .summary-abc-single .abc-label,
  .summary-abc-single .sumall .abc-label{font-size:14px!important;font-weight:400!important;}
}
@media (max-width:520px) and (orientation:portrait){
  .summary-green-combined .green-main .summary-label,
  .summary-green-combined .green-apply .summary-label,
  .summary-green-combined .green-rates > div > span,
  .summary-abc-single .abc-label,
  .summary-abc-single .sumall .abc-label{font-size:12px!important;font-weight:400!important;line-height:1.06!important;}
}
@media (min-width:900px), (orientation:landscape) and (min-width:521px){
  .summary-green-combined,
  .summary-side-stack .metric,
  .summary-abc-single .sumall{min-height:58px!important;height:58px!important;}
  .summary-green-combined .green-main,
  .summary-green-combined .green-apply,
  .green-rates > div,
  .summary-side-stack .metric,
  .summary-abc-single .abc-unit-item,
  .summary-abc-single .line2{display:flex!important;flex-direction:column!important;justify-content:flex-end!important;align-items:center!important;text-align:center!important;min-height:0!important;}
  .summary-green-combined .green-main strong,
  .summary-green-combined .green-apply strong,
  .green-rates strong,
  .summary-side-stack .metric b,
  .summary-abc-single .abc-value{margin-top:3px!important;}
  #mainGrip,
  #mainApply,
  #mainGoalPct,
  #mainPrevPct,
  #mainGoal,
  #mainPrev,
  #mainA,
  #mainB,
  #mainC,
  #mainExtended{line-height:1!important;font-size:22px!important;font-weight:400!important;}
}
@media (max-width:520px) and (orientation:portrait){
  .summary-abc-single .abc-unit-item{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;}
  .summary-abc-single .line2{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;}
  .summary-abc-single .abc-label{font-size:12px!important;line-height:1!important;}
}
.day-holiday{background:var(--sun)!important;}
@media (max-width:520px) and (orientation:portrait){
  .green-rates{display:grid!important;grid-template-rows:1fr 1fr!important;align-items:stretch!important;padding:3px 2px 3px 0!important;gap:0!important;}
  .green-rates > div{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;text-align:center!important;gap:2px!important;}
  .green-rates > div > span{display:block!important;order:1!important;font-size:12px!important;font-weight:400!important;line-height:1.05!important;margin:0!important;}
  .green-rates > div > strong{display:inline-flex!important;align-items:baseline!important;justify-content:center!important;order:2!important;margin-top:0!important;white-space:nowrap!important;}
  .summary-green-combined .green-main .summary-label,
  .summary-green-combined .green-apply .summary-label{font-size:12px!important;font-weight:400!important;line-height:1.05!important;margin:0!important;}
  .summary-board{grid-template-columns:1.68fr .94fr 1.14fr!important;}
  .summary-abc-single .sumall{display:grid!important;grid-template-rows:1fr 1fr!important;gap:5px!important;padding:6px 5px!important;align-items:center!important;justify-items:center!important;}
  .summary-abc-single .line1{display:grid!important;grid-template-columns:repeat(3,1fr)!important;width:100%!important;gap:2px!important;align-items:center!important;}
  .summary-abc-single .abc-unit-item,
  .summary-abc-single .line2{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;}
  .summary-abc-single .abc-label,
  .summary-abc-single .line2 .abc-label{font-size:12px!important;font-weight:400!important;line-height:1.05!important;margin:0!important;}
  .summary-abc-single .abc-value{display:inline-flex!important;align-items:baseline!important;justify-content:center!important;gap:1px!important;line-height:1!important;}
  #mainA,
  #mainB,
  #mainC,
  #mainExtended{font-size:29px!important;line-height:1!important;font-weight:400!important;}
  .summary-abc-single .abc-value em{font-size:11px!important;line-height:1!important;font-weight:400!important;}
}
.summary-side-stack{border:1px solid #e0e7ee!important;background:#fbfdff!important;box-shadow:var(--shadow)!important;border-radius:12px!important;overflow:hidden!important;min-width:0!important;}
.summary-side-stack .metric{border:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important;margin:0!important;}
@media (max-width:520px) and (orientation:portrait){
  .summary-side-stack{display:grid!important;grid-template-rows:1fr 1fr!important;gap:0!important;height:100%!important;}
  .summary-side-stack .metric{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;padding:5px 6px!important;}
  .summary-side-stack .metric + .metric{border-top:1px solid #e7edf2!important;}
}
@media (min-width:900px), (orientation:landscape) and (min-width:521px){
  .summary-board{grid-template-columns:1.75fr 1.35fr 1.35fr!important;gap:6px!important;align-items:stretch!important;}
  .summary-side-stack{display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-rows:1fr!important;gap:0!important;min-height:58px!important;height:58px!important;}
  .summary-side-stack .metric{min-height:58px!important;height:58px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;text-align:center!important;padding:4px 8px!important;}
  .summary-side-stack .metric + .metric{border-left:1px solid #e7edf2!important;}
  .summary-side-stack .metric .m-label{font-size:14px!important;font-weight:400!important;line-height:1.05!important;}
  #mainGoal,
  #mainPrev{font-size:22px!important;line-height:1!important;font-weight:400!important;}
}
.reminders h3{display:flex!important;align-items:baseline!important;gap:1.5em!important;flex-wrap:wrap!important;}
.status-title-main{font:inherit!important;}
.status-title-hint{color:#7b8c9c!important;white-space:nowrap!important;}
@media (max-width:520px) and (orientation:portrait){
  .reminders h3{gap:1.2em!important;}
}
.summary-side-stack .metric + .metric{border-left:0!important;border-top:0!important;}
.status-title-hint{font-size:.72em!important;font-weight:400!important;}
@media (max-width:520px) and (orientation:portrait){
  .status-title-hint{font-size:.64em!important;}
}
.summary-board{margin-bottom:0!important;}
.summary-side-stack .metric,
.summary-abc-single .sumall,
.summary-green-combined{height:100%;}
.status-grid .reminder .stat-title{word-break:keep-all;}
.matrix-tools-row input[type="checkbox"]{width:22px;height:22px;margin:0;}
.section .ratiocol,.section .abc{font-weight:950;}


/* ===== 支隊長ページ v8 ===== */

/* 横向き：中段10ボードの見出しを拡大 */
@media (orientation:landscape) and (min-width:521px){
  .status-grid .stat-title{
    font-size:13px!important;
    line-height:1.08!important;
  }
}

/* 会場 / 送迎の入力対象セル */
#matrixTable .logistics-input-cell{
  cursor:pointer;
  transition:background .12s ease, box-shadow .12s ease;
}
#matrixTable .logistics-input-cell:hover{
  background:#f3f8fd!important;
  box-shadow:inset 0 0 0 1px #c9ddee;
}
.logistics-entry-modal .formrow > label{
  font-size:13px!important;
  font-weight:700!important;
  color:#5f7386!important;
  border-left:3px solid #2f7bdc;
  padding-left:7px;
  line-height:1.2!important;
}
.logistics-entry-modal #logisticsValue::placeholder{
  color:#aeb9c4!important;
  opacity:1!important;
}



/* ===== 支隊長ページ v8 ===== */

/* 会場 / 送迎者：既存の疑似要素による青バー1本だけに統一 */
.logistics-entry-modal .formrow > label{
  border-left:0!important;
  padding-left:0!important;
}

/* 横向き：中段10ボード説明文字をさらに拡大 */
@media (orientation:landscape) and (min-width:521px){
  .status-grid .stat-title{
    font-size:15px!important;
    line-height:1.08!important;
  }
}

/* PC：横スクロールバーをマトリクス上部へ */
.matrix-top-scroll{
  display:none;
}
@media (min-width:721px){
  .matrix-top-scroll{
    display:block;
    overflow-x:auto;
    overflow-y:hidden;
    width:100%;
    height:16px;
    background:#f5f7f9;
    border-bottom:1px solid #dbe4ec;
  }
  .matrix-top-scroll-inner{
    height:1px;
    min-width:100%;
  }

  /* 表本体の下側横スクロールバーは非表示。横スクロール自体は維持 */
  #matrixTableWrap{
    scrollbar-width:none;
    -ms-overflow-style:none;
  }
  #matrixTableWrap::-webkit-scrollbar{
    width:0;
    height:0;
    display:none;
  }
}



/* ===== 支隊長ページ v8 ===== */

/* 横向き：中段10ボードの説明文字を17pxへ */
@media (orientation:landscape) and (min-width:521px){
  .status-grid .stat-title{
    font-size:17px!important;
    line-height:1.06!important;
  }
}

/* 各ブロック間の縦余白を圧縮 */
.main{
  padding-top:8px!important;
}
@media (max-width:720px){
  .main{
    padding-top:6px!important;
  }
}
@media (max-width:1050px){
  .hero-grid{
    gap:4px!important;
  }
}
.matrix-tools-row{
  margin-top:3px!important;
  margin-bottom:2px!important;
}
.reminders{
  margin-bottom:0!important;
}

/* 班行の候補者追加 */
.section-name-actions{
  display:flex;
  align-items:center;
  gap:4px;
  width:100%;
  min-width:0;
}
.section-name-actions .fold{
  min-width:0;
  flex:1 1 auto;
  text-align:left;
  white-space:nowrap;
}
.add-person-btn{
  flex:0 0 auto;
  border:1px solid #a9cdb4;
  background:#fff;
  color:#327047;
  border-radius:6px;
  padding:2px 4px;
  font-size:9px;
  line-height:1.15;
  font-weight:400;
  white-space:nowrap;
}
.add-person-btn:hover{
  background:#e7f5ea;
}
.add-person-modal{
  width:min(360px,92vw)!important;
}
.add-person-modal .formrow > label{
  font-size:13px!important;
}

/* PC上部スクロールと表の間も詰める */
@media (min-width:721px){
  .matrix-top-scroll{
    height:14px!important;
  }
}



/* ===== 支隊長ページ v8 ===== */

/* 班見出しは通常表示へ戻す */
.section-name-actions{
  display:contents!important;
}
.add-person-btn{
  display:none!important;
}

/* 各班の最下部に常時表示する「＋候補者」行 */
.person-add-row td{
  background:#fbfcfd!important;
  color:#9aa8b5!important;
  height:34px!important;
}
.person-add-row .sticky{
  background:#fbfcfd!important;
}
.add-person-cell{
  cursor:pointer;
}
.add-person-row-btn{
  border:0!important;
  background:transparent!important;
  color:#9aa8b5!important;
  font-size:12px!important;
  font-weight:400!important;
  padding:2px 4px!important;
  text-align:left!important;
  white-space:nowrap!important;
}
.add-person-row-btn:hover{
  color:#5f7386!important;
  text-decoration:underline;
}



/* ===== 支隊長ページ v8 ===== */

/* 横向きのみ：ブルーヘッダーとメインダッシュボードを少し圧縮 */
@media (orientation:landscape) and (min-width:521px){

  .topbar{
    padding-top:6px!important;
    padding-bottom:6px!important;
  }
  .brand .title{
    font-size:19px!important;
    line-height:1.05!important;
  }
  .brand .team{
    font-size:17px!important;
    line-height:1.05!important;
  }
  .header-asof{
    font-size:15px!important;
    line-height:1.05!important;
  }

  .summary-green-combined,
  .summary-side-stack,
  .summary-abc-single .sumall{
    min-height:50px!important;
    height:50px!important;
  }

  .summary-green-combined .green-main,
  .summary-green-combined .green-apply{
    padding-top:2px!important;
    padding-bottom:2px!important;
  }

  .green-rates{
    padding-top:1px!important;
    padding-bottom:1px!important;
  }

  .summary-side-stack .metric{
    min-height:50px!important;
    height:50px!important;
    padding-top:2px!important;
    padding-bottom:2px!important;
  }

  .summary-abc-single .sumall{
    padding-top:2px!important;
    padding-bottom:2px!important;
  }
}



/* ===== 支隊長ページ v8 ===== */

/* 「＋候補者」行の日付列も通常行と同じ曜日・祝日・試験日色を反映 */
.person-add-row td.day-sat{
  background:var(--sat)!important;
}
.person-add-row td.day-sun,
.person-add-row td.day-holiday{
  background:var(--sun)!important;
}
.person-add-row td.day-final{
  background:var(--yellow)!important;
}

/* 横向き：中段10ボード説明文字を19pxへ */
@media (orientation:landscape) and (min-width:521px){
  .status-grid .stat-title{
    font-size:19px!important;
    line-height:1.04!important;
  }
}



/* ===== 支隊長ページ 運用テスト ===== */

/* 個人ポップ：左下に削除、右下にキャンセル/保存 */
.person-modal-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}
.person-modal-actions-right{
  display:flex;
  gap:8px;
  align-items:center;
}
.danger-link{
  color:#b23a3a!important;
  border-color:#e1b2b2!important;
  background:#fffafa!important;
  font-weight:400!important;
}
.danger-link:hover{
  background:#fff0f0!important;
}
.danger-primary{
  background:#c74343!important;
  border-color:#c74343!important;
  color:#fff!important;
}
.delete-person-modal{
  width:min(390px,92vw)!important;
}
.delete-person-modal h3{
  margin-bottom:10px!important;
}
.delete-person-message{
  padding:10px 11px;
  border-radius:9px;
  background:#f8fafc;
  border:1px solid #e0e7ee;
  color:#52687b;
  font-size:13px;
  line-height:1.5;
}



/* ===== 支隊長ページ v81 ===== */

/* 支隊合計直前の「班の追加/削除」行 */
.add-section-row td{
  background:#eef8ef!important;
  color:#6f8e78!important;
  height:36px!important;
}
.add-section-row .sticky{
  background:#eef8ef!important;
}
.add-section-btn{
  border:0!important;
  background:transparent!important;
  color:#7d9a84!important;
  font-size:12px!important;
  font-weight:400!important;
  padding:2px 4px!important;
  text-align:left!important;
  white-space:nowrap!important;
}
.add-section-btn:hover{
  color:#3f6f4b!important;
  text-decoration:underline;
}

/* 班の追加/削除行も日付色を通常ルール通り維持 */
.add-section-row td.day-sat{
  background:var(--sat)!important;
}
.add-section-row td.day-sun,
.add-section-row td.day-holiday{
  background:var(--sun)!important;
}
.add-section-row td.day-final{
  background:var(--yellow)!important;
}

.add-section-modal{
  width:min(360px,92vw)!important;
}
.add-section-modal .formrow > label{
  font-size:13px!important;
}



/* ===== 支隊長ページ v82 ===== */
.section-permission-message{
  padding:14px 15px;
  border:1px solid #dbe4ec;
  background:#f8fafc;
  border-radius:10px;
  color:#52687b;
  font-size:14px;
  line-height:1.55;
}
.add-section-btn{
  color:#7d8f9f!important;
}



/* ===== 支隊長ページ v84 ===== */
/* 横向き中段ボード：12pxで固定 */
@media (orientation:landscape) and (min-width:521px){
  .reminders .status-grid .reminder .stat-title{
    font-size:12px!important;
    line-height:1.04!important;
  }
}



/* ===== 支隊長ページ v85 ===== */
@media (orientation:landscape) and (min-width:521px){
  .reminders .status-grid .reminder .stat-title{
    font-size:12px!important;
    line-height:1.08!important;
  }
}



/* ===== 支隊長ページ v88 ===== */
.goal-setting-trigger{
  cursor:pointer!important;
  text-decoration:underline dotted;
  text-underline-offset:3px;
}
.goal-setting-trigger:hover{
  background:#f3f8fb!important;
}
.goal-setting-modal{
  width:min(360px,92vw)!important;
}
.goal-setting-note{
  margin-bottom:10px;
  font-size:12px;
  line-height:1.45;
  color:#647789;
}
.goal-rate-row{
  align-items:center!important;
}
.percent-input-wrap{
  display:flex;
  align-items:center;
  gap:6px;
}
.percent-input-wrap input{
  width:110px!important;
  text-align:right;
}
.percent-input-wrap span{
  font-size:14px;
  color:#425a70;
}



/* ===== 支隊長ページ v81 ===== */
.person-detail-modal #personNameInput{
  font-weight:500;
}


/* ===== 支隊長ページ v81：共通支隊ページ基盤 ===== */
/* 見た目はv19を維持。branch_id切替・保存領域分離のみ実施。 */


/* ===== 123隊 隊長ページ v8 専用 ===== */
#unitMatrix{
  width:100%!important;
  min-width:1040px!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  table-layout:fixed!important;
}
#unitMatrix th,
#unitMatrix td{
  position:static!important;
  min-width:0!important;
  max-width:none!important;
  width:auto!important;
  padding:7px 6px!important;
  border-right:1px solid var(--line)!important;
  border-bottom:1px solid var(--line)!important;
  text-align:center!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
  font-size:13px!important;
  font-weight:400!important;
  background:#fff!important;
}
#unitMatrix thead th{
  position:sticky!important;
  top:0!important;
  z-index:6!important;
  background:#f8fbfd!important;
  color:#2d475e!important;
  font-weight:500!important;
}
#unitMatrix thead th.branch-head{
  text-align:center!important;
}
#unitMatrix tbody tr.branch-row td{
  background:#eef8ef!important;
}
#unitMatrix tbody tr.total-row td{
  background:#fffad5!important;
  font-weight:500!important;
}
#unitMatrix .branch-link{
  border:0!important;
  background:transparent!important;
  color:#244f72!important;
  padding:0!important;
  cursor:pointer!important;
  text-decoration:underline!important;
  text-underline-offset:2px!important;
  font-weight:500!important;
}
#unitMatrix .ratio-stack,
#unitMatrix .abc-stack{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:2px!important;
  line-height:1.05!important;
}
#unitMatrix .ratio-stack span,
#unitMatrix .abc-stack span{
  font-size:12px!important;
  font-weight:400!important;
}
#unitMatrix .warn-head,
#unitMatrix .warn-cell{
  width:68px!important;
  min-width:68px!important;
  max-width:68px!important;
}
#unitMatrix .warn-head{
  line-height:1.05!important;
}
#unitMatrix .warn-head span{
  display:block!important;
  white-space:nowrap!important;
}
#unitMatrix .branch-col{width:112px!important;}
#unitMatrix .grip-col{width:58px!important;}
#unitMatrix .goal-col{width:58px!important;}
#unitMatrix .prev-col{width:58px!important;}
#unitMatrix .ratio-col{width:76px!important;}
#unitMatrix .abc-col{width:108px!important;}
#unitMatrix .all-col{width:72px!important;}
#unitMatrix .apply-col{width:58px!important;}
#unitMatrix .goal-setting-trigger{
  cursor:pointer!important;
  text-decoration:underline dotted!important;
  text-underline-offset:3px!important;
}
.unit-matrix-tools{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  margin:3px 1px 2px!important;
  gap:10px!important;
  font-size:11px!important;
  color:#718497!important;
}
.unit-table-wrap{
  overflow:auto!important;
  border:1px solid var(--line)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:var(--shadow)!important;
}
.unit-goal-modal{
  width:min(360px,92vw)!important;
}
.unit-goal-modal .percent-input-wrap{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
}
.unit-goal-modal #goalRateInput{
  width:110px!important;
  text-align:right!important;
}
@media (max-width:720px){
  #unitMatrix{min-width:1020px!important;}
}



/* ===== 123隊 隊長ページ v8 ===== */
#unitMatrix{
  min-width:0!important;
  width:100%!important;
  table-layout:fixed!important;
}
#unitMatrix th,
#unitMatrix td{
  padding:5px 3px!important;
  font-size:12px!important;
}
#unitMatrix .branch-col{width:96px!important;}
#unitMatrix .grip-col{width:48px!important;}
#unitMatrix .goal-col{width:48px!important;}
#unitMatrix .prev-col{width:48px!important;}
#unitMatrix .ratio-col{width:62px!important;}
#unitMatrix .abc-col{width:92px!important;}
#unitMatrix .all-col{width:56px!important;}
#unitMatrix .apply-col{width:48px!important;}
#unitMatrix .warn-head,
#unitMatrix .warn-cell{
  width:52px!important;
  min-width:52px!important;
  max-width:52px!important;
}
#unitMatrix .ratio-stack span,
#unitMatrix .abc-stack span{
  font-size:11px!important;
}
.branch-name-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}
.branch-toggle{
  border:0;
  background:transparent;
  color:#536b7f;
  padding:0 1px;
  cursor:pointer;
  font-size:12px;
  line-height:1;
}
.branch-link{
  white-space:nowrap;
}
.group-summary-row td{
  background:#f7fbf7!important;
  font-size:11px!important;
  padding-top:4px!important;
  padding-bottom:4px!important;
}
.group-summary-row td:first-child{
  text-align:left!important;
  padding-left:22px!important;
  color:#4c6c57!important;
}
.group-summary-row .group-name{
  font-weight:500;
}
.group-summary-row.rowhide{
  display:none!important;
}
@media (orientation:landscape) and (max-width:1100px){
  .main{padding-left:4px!important;padding-right:4px!important;}
  .unit-table-wrap{
    overflow-x:hidden!important;
  }
  #unitMatrix{
    min-width:0!important;
    width:100%!important;
  }
  #unitMatrix th,
  #unitMatrix td{
    padding:4px 2px!important;
    font-size:11px!important;
  }
  #unitMatrix .branch-col{width:90px!important;}
  #unitMatrix .grip-col{width:42px!important;}
  #unitMatrix .goal-col{width:42px!important;}
  #unitMatrix .prev-col{width:42px!important;}
  #unitMatrix .ratio-col{width:56px!important;}
  #unitMatrix .abc-col{width:82px!important;}
  #unitMatrix .all-col{width:50px!important;}
  #unitMatrix .apply-col{width:42px!important;}
  #unitMatrix .warn-head,
  #unitMatrix .warn-cell{
    width:46px!important;
    min-width:46px!important;
    max-width:46px!important;
  }
  #unitMatrix .ratio-stack span,
  #unitMatrix .abc-stack span{
    font-size:10px!important;
  }
  .branch-link,.branch-toggle{font-size:11px!important;}
}



/* ===== 123隊 隊長ページ v8 ===== */
.unit-matrix-tools{
  min-height:54px!important;
  margin:0!important;
  padding:15px 8px 12px!important;
  justify-content:flex-start!important;
  font-size:14px!important;
  line-height:1.35!important;
  color:#5e7183!important;
}
.unit-matrix-tools b{
  color:#334c61!important;
  font-weight:500!important;
}
#unitMatrix th,
#unitMatrix td{
  font-size:14px!important;
  padding:6px 3px!important;
}
#unitMatrix thead th{
  font-size:13px!important;
}
#unitMatrix tbody .branch-col{
  text-align:left!important;
  padding-left:7px!important;
}
#unitMatrix thead .branch-col{
  text-align:center!important;
  padding-left:3px!important;
}
#unitMatrix .branch-name-wrap{
  justify-content:flex-start!important;
  gap:3px!important;
}
#unitMatrix .branch-link{
  font-size:14px!important;
}
#unitMatrix .branch-toggle{
  font-size:13px!important;
  width:17px!important;
  min-width:17px!important;
  text-align:center!important;
}
#unitMatrix .ratio-stack span,
#unitMatrix .abc-stack span{
  font-size:12px!important;
}
.group-summary-row td{
  font-size:13px!important;
}
@media (orientation:landscape) and (max-width:1100px){
  #unitMatrix th,
  #unitMatrix td{
    font-size:13px!important;
    padding:5px 2px!important;
  }
  #unitMatrix thead th{
    font-size:12px!important;
  }
  #unitMatrix .branch-link{
    font-size:13px!important;
  }
  #unitMatrix .branch-toggle{
    font-size:12px!important;
  }
  #unitMatrix .ratio-stack span,
  #unitMatrix .abc-stack span{
    font-size:11px!important;
  }
  .group-summary-row td{
    font-size:12px!important;
  }
  .unit-matrix-tools{
    min-height:50px!important;
    padding:13px 6px 10px!important;
    font-size:13px!important;
  }
}



/* ===== 123隊 隊長ページ v8 ===== */

/* 開閉ボタンと支隊リンクの誤タップ防止 */
#unitMatrix .branch-name-wrap{
  gap:8px!important;
}
#unitMatrix .branch-toggle{
  margin-right:1px!important;
}

/* 目標比／前回比・ABC／延を強調 */
#unitMatrix thead .ratio-col,
#unitMatrix thead .abc-col{
  font-size:15px!important;
  line-height:1.08!important;
  font-weight:500!important;
}
#unitMatrix .ratio-stack span,
#unitMatrix .abc-stack span{
  font-size:14px!important;
  line-height:1.08!important;
}
#unitMatrix tbody .ratio-col,
#unitMatrix tbody .abc-col{
  font-size:14px!important;
}

/* 横向き時は全体を一段階拡大 */
@media (orientation:landscape) and (max-width:1100px){
  #unitMatrix th,
  #unitMatrix td{
    font-size:14px!important;
  }
  #unitMatrix thead th{
    font-size:13px!important;
  }
  #unitMatrix .branch-link{
    font-size:14px!important;
  }
  #unitMatrix .branch-toggle{
    font-size:13px!important;
  }
  #unitMatrix thead .ratio-col,
  #unitMatrix thead .abc-col{
    font-size:14px!important;
  }
  #unitMatrix .ratio-stack span,
  #unitMatrix .abc-stack span{
    font-size:13px!important;
  }
  .group-summary-row td{
    font-size:13px!important;
  }
}



/* ===== 123隊 隊長ページ v8 ===== */
#unitMatrix thead .ratio-col .ratio-head span{
  font-size:13px!important;
  line-height:1.05!important;
  font-weight:500!important;
}
@media (orientation:landscape) and (max-width:1100px){
  #unitMatrix thead .ratio-col .ratio-head span{
    font-size:13px!important;
  }
}



/* ===== 123隊 隊長ページ v8 ===== */
#unitMatrix thead .abc-col .abc-head-inline span{
  color:inherit!important;
  font-weight:inherit!important;
  font-size:inherit!important;
  line-height:inherit!important;
}



/* ===== 中段12ボード 最終整理版 ===== */
.status-grid{
  display:grid!important;
  width:100%!important;
  gap:4px!important;
}
.status-grid .reminder{
  display:grid!important;
  grid-template-rows:1fr auto!important;
  align-items:end!important;
  justify-items:center!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  border:0!important;
  border-radius:11px!important;
  padding:4px 2px!important;
  box-sizing:border-box!important;
}
.status-grid .reminder .stat-title{
  width:100%!important;
  align-self:end!important;
  justify-self:center!important;
  text-align:center!important;
  font-weight:400!important;
  white-space:normal!important;
  word-break:keep-all!important;
  margin:0 0 2px!important;
}
.status-grid .reminder .n{
  align-self:end!important;
  justify-self:center!important;
  font-weight:400!important;
  line-height:1!important;
  margin:0!important;
}
.status-card[data-summary="all"]{
  background:var(--red-soft)!important;
  color:#b82e2e!important;
}
.status-card[data-summary="all"].active{
  background:#c62828!important;
  color:#fff!important;
  outline:none!important;
}
.status-card[data-summary="all"].active .stat-title,
.status-card[data-summary="all"].active .n{
  color:#fff!important;
}
@media (max-width:720px) and (orientation:portrait){
  .status-grid{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    grid-template-rows:repeat(2,auto)!important;
    gap:3px!important;
  }
  .status-grid .reminder{
    min-height:48px!important;
    height:48px!important;
    padding:3px 1px!important;
  }
  .status-grid .reminder .stat-title{
    font-size:11px!important;
    line-height:1.02!important;
    letter-spacing:-.1px!important;
  }
  .status-grid .reminder .n{
    font-size:17px!important;
  }
}
@media (min-width:721px), (max-width:720px) and (orientation:landscape){
  .status-grid{
    grid-template-columns:repeat(12,minmax(0,1fr))!important;
    grid-template-rows:1fr!important;
    gap:3px!important;
  }
  .status-grid .reminder{
    min-height:48px!important;
    height:48px!important;
    padding:3px 1px!important;
  }
  .status-grid .reminder .stat-title{
    font-size:9px!important;
    line-height:1.04!important;
    letter-spacing:0!important;
  }
  .status-grid .reminder .n{
    font-size:16px!important;
  }
}


/* ===== 隊長・総補系列：マトリクス縦横固定 ===== */

/* マトリクス領域を縦横スクロール可能にし、ヘッダー固定 */
.unit-table-wrap{
  position:relative!important;
  overflow:auto!important;
  max-height:calc(100vh - 170px)!important;
  max-height:calc(100dvh - 170px)!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;
}

#unitMatrix thead th{
  position:sticky!important;
  top:0!important;
  z-index:40!important;
  background:#fff!important;
  box-shadow:0 1px 0 #d9e2ea!important;
}

/* スマホ縦向きのみ「支隊」列を左固定 */
@media (max-width:720px) and (orientation:portrait){
  .unit-table-wrap{
    max-height:calc(100vh - 145px)!important;
    max-height:calc(100dvh - 145px)!important;
  }

  #unitMatrix .branch-col{
    position:sticky!important;
    left:0!important;
    z-index:25!important;
    background:#fff!important;
  }

  #unitMatrix thead .branch-col{
    z-index:60!important;
    background:#fff!important;
  }

  /* 行ごとの背景色は末尾の修正版CSSで明示 */
}

/* 横向きでは支隊列固定を解除し、一覧性を優先 */
@media (orientation:landscape){
  #unitMatrix .branch-col{
    position:static!important;
    left:auto!important;
  }
  #unitMatrix thead .branch-col{
    position:sticky!important;
    top:0!important;
  }
}


/* ===== スマホ縦：支隊固定列 背景・重なり修正版 ===== */
@media (max-width:720px) and (orientation:portrait){

  /* 固定列そのものは必ず不透明 */
  #unitMatrix thead th.branch-col,
  #unitMatrix tbody td.branch-col{
    position:sticky!important;
    left:0!important;
    background-clip:padding-box!important;
    opacity:1!important;
  }

  /* ヘッダー：元の薄い水色を維持 */
  #unitMatrix thead th.branch-col{
    z-index:80!important;
    background:#f8fbfd!important;
    box-shadow:1px 0 0 #cfd9e2!important;
  }

  /* 支隊行：元の淡緑 */
  #unitMatrix tbody tr.branch-row > td.branch-col{
    z-index:50!important;
    background:#eef8ef!important;
    box-shadow:1px 0 0 #cfd9e2!important;
  }

  /* 班別合計行：横向きと同様、班名セルは白 */
  #unitMatrix tbody tr.group-summary-row > td.branch-col{
    z-index:50!important;
    background:#fff!important;
    box-shadow:1px 0 0 #cfd9e2!important;
  }

  /* 合計行：元の淡黄 */
  #unitMatrix tbody tr.total-row > td.branch-col{
    z-index:50!important;
    background:#fffad5!important;
    box-shadow:1px 0 0 #cfd9e2!important;
  }

  /* 固定列内のリンク／開閉ボタンは透明のままでよいが、セル自体は不透明 */
  #unitMatrix tbody td.branch-col .branch-name-wrap,
  #unitMatrix tbody td.branch-col .branch-link,
  #unitMatrix tbody td.branch-col .branch-toggle{
    position:relative!important;
    z-index:2!important;
  }
}


/* 開閉操作を明示したボタン */
#unitMatrix .branch-toggle{width:auto!important;min-width:31px!important;max-width:none!important;flex:0 0 auto!important;border:1px solid #a4b8cb!important;border-radius:4px!important;background:#fff!important;color:#254760!important;padding:3px 2px!important;font-size:10px!important;line-height:1.15!important;white-space:nowrap!important;}
#unitMatrix .branch-toggle:hover{background:#e7f1fa!important;}
