:root {
  --ink: #292b2f;
  --panel: #34363b;
  --panel-2: #3b3d43;
  --line: #4a4d54;
  --muted: #a5a8af;
  --text: #e2e3e6;
  --amber: #c7a34d;
  --amber-soft: #484238;
  --red: #bf706f;
  --red-soft: #493b3e;
  --teal: #79aa9a;
  --teal-soft: #3c4845;
  --blue: #5f8fda;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 85% 0, #2b210d 0, transparent 28rem), var(--ink); color: var(--text); font: 14px/1.5 "Arial Narrow", "Yu Gothic UI", "Yu Gothic", sans-serif; }
a { color: inherit; text-decoration: none; }
.topbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(7,9,12,.92); padding: 0 4vw; position: sticky; top: 0; z-index: 3; backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .08em; }
.brand-mark { color: var(--ink); background: var(--amber); padding: 3px 5px; font-size: 18px; font-weight: 900; line-height: 1; letter-spacing: -.1em; }
nav { display: flex; align-items: center; gap: 18px; color: var(--muted); }
nav a:hover { color: var(--amber); }.logout { color: var(--red); }.user-tag { border-left: 1px solid var(--line); padding-left: 18px; font-size: 12px; }
.shell { width: min(1500px, 92vw); margin: 0 auto; padding: 36px 0 64px; }.hero,.month-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }.hero h1,.month-head h1,.auth-panel h1 { margin: 2px 0 8px; font-size: clamp(28px, 4vw, 46px); line-height: 1; letter-spacing: -.04em; }.hero p,.month-head p,.auth-panel p { color: var(--muted); max-width: 680px; }.eyebrow { color: var(--amber); margin: 0; letter-spacing: .18em; font-size: 11px; font-weight: 700; }
.panel { background: linear-gradient(150deg, rgba(255,255,255,.04), transparent 38%), var(--panel); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.22); padding: 22px; margin-bottom: 22px; }.panel.slim { padding: 14px 18px; }.panel-title { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 18px; }.panel-title h2,.panel h2 { margin: 2px 0; font-size: 20px; }.panel-title p { color: var(--muted); margin: 0; max-width: 430px; }.form-panel { max-width: 900px; }.auth-panel { width: min(760px, 100%); margin: 8vh auto; background: linear-gradient(140deg, rgba(255,176,0,.12), transparent 42%), var(--panel); padding: 34px; border: 1px solid var(--line); }.auth-panel.compact { width: min(480px, 100%); }
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }.kpi { min-height: 126px; padding: 18px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; justify-content: space-between; }.kpi span,.kpi small { color: var(--muted); }.kpi strong { font-size: 27px; letter-spacing: -.04em; }.kpi.amber { border-color: #6f5010; }.kpi.alert { border-color: var(--red); background: linear-gradient(135deg, var(--red-soft), var(--panel)); }.kpi.safe { border-color: var(--teal); background: linear-gradient(135deg, var(--teal-soft), var(--panel)); }
.form-stack { display: grid; gap: 16px; }.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }.form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }.form-grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); align-items: end; }fieldset { margin: 0; border: 1px solid var(--line); padding: 16px; }legend { color: var(--amber); padding: 0 6px; }label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }label + label { margin-top: 12px; }input,select,textarea { width: 100%; min-width: 0; border: 1px solid #36414c; background: #0b0e12; color: var(--text); padding: 9px 10px; font: inherit; border-radius: 2px; }input:focus,select:focus,textarea:focus { outline: 2px solid var(--amber); border-color: var(--amber); }small { color: var(--muted); }.inline-form { display: flex; align-items: center; gap: 10px; }.inline-form input { width: auto; }.button { display: inline-flex; justify-content: center; align-items: center; min-height: 36px; padding: 8px 13px; border: 1px solid var(--line); background: #161c23; color: var(--text); font-weight: 700; cursor: pointer; white-space: nowrap; }.button:hover { border-color: var(--amber); color: var(--amber); }.button.primary { background: var(--amber); border-color: var(--amber); color: #151008; }.button.primary:hover { background: #ffd166; color: #151008; }.button.danger,.text-danger { border-color: var(--red); color: var(--red); background: transparent; }.button:disabled { opacity: .4; cursor: not-allowed; }.actions { padding-top: 16px; }
.table-scroll { overflow-x: auto; }table { width: 100%; border-collapse: collapse; }th { color: var(--amber); text-align: left; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; background: #0b0e12; }th,td { border-bottom: 1px solid var(--line); padding: 10px 9px; vertical-align: top; }td small,td em { display: block; }.daily-table { min-width: 1200px; }.daily-table th { text-align: center; }.daily-table td { padding: 6px 4px; }.daily-table td:first-child { min-width: 70px; text-align: center; }.daily-table input,.daily-table select { padding: 6px; font-size: 12px; }.daily-table .weekend { opacity: .7; }.daily-table .company-holiday { background: rgba(255,76,66,.08); }.daily-table em { color: var(--red); font-size: 10px; font-style: normal; }.status { display: inline-block; border: 1px solid var(--line); color: var(--muted); padding: 2px 7px; font-size: 11px; font-weight: 700; }.status-approved { color: var(--teal); border-color: var(--teal); }.status-draft { color: var(--amber); border-color: var(--amber); }.status-voided { color: var(--red); border-color: var(--red); }.two-col { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }.history-list,.balance-list { padding: 0; margin: 12px 0 0; list-style: none; }.history-list li { display: grid; grid-template-columns: 80px 1fr; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }.history-list small { grid-column: 2; }.balance-list div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }.balance-list span { color: var(--amber); font-size: 18px; font-weight: 800; }.text-alert { color: var(--red); }.text-safe { color: var(--teal); }.error-text { color: var(--red); }.flash { padding: 12px 15px; margin-bottom: 18px; border-left: 4px solid; background: var(--panel); }.flash-success { border-color: var(--teal); }.flash-error { border-color: var(--red); }
@media (max-width: 960px) { .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.form-grid.four,.form-grid.three { grid-template-columns: repeat(2,minmax(0,1fr)); } }.topbar nav { gap: 10px; }@media (max-width: 680px) { .topbar { padding: 0 4vw; }.topbar nav a:not(.logout) { display: none; }.user-tag { display: none; }.hero,.month-head,.panel-title { align-items: start; flex-direction: column; }.kpi-grid,.two-col,.form-grid,.form-grid.three,.form-grid.four { grid-template-columns: 1fr; }.inline-form { align-items: stretch; flex-direction: column; }.inline-form input { width: 100%; } }

/* Muted editor-style surfaces and a calm calendar-like daily table. */
body { background: radial-gradient(circle at 86% 0, #3b3d43 0, transparent 34rem), var(--ink); }
.topbar { background: rgba(43,45,49,.94); }
.brand-mark { color: #f0f1f4; background: #4a4d54; border: 1px solid #5b5e66; }
nav a:hover { color: #e3e5e9; }
.eyebrow { color: #b8bbc2; }
.panel { background: linear-gradient(150deg, rgba(255,255,255,.025), transparent 38%), var(--panel); box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.auth-panel { background: linear-gradient(140deg, rgba(255,255,255,.04), transparent 42%), var(--panel); }
.kpi.amber { border-color: #70654a; }
.kpi.alert { border-color: #7b5759; }
.kpi.safe { border-color: #587168; }
legend { color: #c7c9cf; }
input,select,textarea { border-color: #555860; background: #27292e; }
input:focus,select:focus,textarea:focus { outline-color: rgba(95,143,218,.5); border-color: var(--blue); }
.button { border-color: #555860; background: #414349; }
.button:hover { border-color: #6d8fc5; color: #e3e7ef; }
.button.primary { background: #587fbd; border-color: #6b93d4; color: #f3f5f8; }
.button.primary:hover { background: #638dce; color: #fff; }
.button.danger,.text-danger { border-color: #8f6264; color: #d08a88; }
th { color: #c7c9cf; background: #2c2e33; }

/* 月表示: 平日 / 土日 / 会社休日を行全体で区別する。 */
.daily-table tbody tr { background: rgba(255,255,255,.012); }
.daily-table tbody tr:nth-child(even) { background: rgba(255,255,255,.027); }
.daily-table tbody tr.weekend { opacity: 1; border-left: 3px solid #65758e; }
.daily-table tbody tr.weekend td { background: rgba(96,111,135,.20); }
.daily-table tbody tr.weekend td:first-child strong,
.daily-table tbody tr.weekend td:first-child small { color: #b8c6dd; }
.daily-table tbody tr.saturday { border-left-color: #5f789d; }
.daily-table tbody tr.saturday td { background: rgba(77,103,140,.23); }
.daily-table tbody tr.sunday { border-left-color: #9a6869; }
.daily-table tbody tr.sunday td { background: rgba(133,76,78,.23); }
.daily-table tbody tr.sunday td:first-child strong,
.daily-table tbody tr.sunday td:first-child small { color: #dfb2b1; }
.daily-table tbody tr.company-holiday { border-left: 3px solid #936567; }
.daily-table tbody tr.company-holiday td { background: rgba(139,87,88,.27); }
.daily-table tbody tr.company-holiday td:first-child strong,
.daily-table tbody tr.company-holiday td:first-child small { color: #e0b2b1; }
.daily-table .company-holiday { background: transparent; }
.daily-table em { color: #d8a2a1; }
.status-approved,.text-safe { color: #9bc4b6; border-color: #668d80; }
.status-draft { color: #d1b66e; border-color: #816f42; }
.status-voided,.text-alert,.error-text { color: #d08a88; border-color: #8f6264; }
.balance-list span { color: #d1b66e; }

/* Light-gray working surface: inputs are light with dark text. */
:root { --ink: #e5e7e9; --panel: #f6f7f8; --panel-2: #ffffff; --line: #cbd0d5; --muted: #626a72; --text: #2f3439; --amber: #9a7c2e; --amber-soft: #f1ead9; --red: #a95f60; --red-soft: #f3e3e4; --teal: #4f8472; --teal-soft: #e4efeb; --blue: #587db5; }
body { background: linear-gradient(180deg, #f1f2f3 0, var(--ink) 340px); color: var(--text); font-family: "IBM Plex Sans JP", "IBM Plex Sans", "Yu Gothic UI", sans-serif; }
.topbar { background: rgba(244,245,246,.94); box-shadow: 0 1px 10px rgba(25,29,33,.06); }
.brand { color: #34383d; }
.brand-logo { width: 34px; height: 34px; object-fit: contain; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.panel { background: linear-gradient(150deg, rgba(255,255,255,.72), transparent 38%), var(--panel); box-shadow: 0 10px 24px rgba(36,42,48,.08); }
.auth-panel { background: linear-gradient(140deg, rgba(255,255,255,.7), transparent 42%), var(--panel); }
.eyebrow { color: #69727c; }
nav { color: #59616a; }
nav a:hover { color: #2f3439; }
legend,th { color: #4b5560; }
th { background: #e9ecef; }
input,select,textarea { border-color: #c4c9cf; background: #fbfbfc; color: #30353a; }
input:focus,select:focus,textarea:focus { outline-color: rgba(88,125,181,.32); border-color: #7698c8; }
.button { border-color: #c4c9cf; background: #eef0f2; color: #394149; }
.button:hover { border-color: #91a7c7; color: #2c405a; background: #f7f8f9; }
.button.primary { background: #5b7eaf; border-color: #5b7eaf; color: #fff; }
.button.primary:hover { background: #4d709f; }
.button.danger,.text-danger { border-color: #c79b9c; color: #a95f60; }
.kpi.alert { border-color: #cbb0b0; background: linear-gradient(135deg, #f6eeee, var(--panel)); }
.kpi.safe { border-color: #adc8bd; background: linear-gradient(135deg, #edf5f1, var(--panel)); }
.kpi.amber { border-color: #d5c79e; }
.status-approved,.text-safe { color: #36705d; border-color: #92b9aa; }
.status-draft { color: #80671f; border-color: #c9b46e; }
.status-voided,.text-alert,.error-text { color: #a65759; border-color: #caa0a1; }
.balance-list span { color: #80671f; }

/* 日別ゲージ: 上段は実績時間を 8h の閾値線で比較、下段は開始〜終了の時刻帯。 */
.daily-table { min-width: 1420px; }
.gauge-cell { min-width: 180px; padding: 6px 9px !important; }
.gauge-values { display: flex; align-items: baseline; justify-content: space-between; font-size: 11px; color: var(--muted); }
.gauge-values strong { color: #37414b; font-size: 13px; }
.duration-gauge.is-over .gauge-values span { color: #9a5d25; }
.duration-gauge.is-under .gauge-values span { color: #687582; }
.duration-gauge.is-even .gauge-values span { color: #4f8472; }
.gauge-track { position: relative; height: 8px; margin: 4px 0 6px; overflow: visible; border-radius: 1px; background: #dfe3e6; }
.gauge-fill { display: block; height: 100%; max-width: 100%; border-radius: 1px; background: #71859a; }
.duration-gauge.is-over .gauge-fill { background: #c18a42; }
.duration-gauge.is-even .gauge-fill { background: #5f9a84; }
.threshold { position: absolute; z-index: 1; left: 50%; top: -3px; width: 2px; height: 14px; background: #59636c; }
.time-lane { position: relative; height: 17px; border-top: 1px solid #c9ced3; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), #d8dde1 calc(25% - 1px), #d8dde1 25%); }
.time-range { position: absolute; top: 3px; height: 6px; border-radius: 1px; background: #5b7eaf; }
.time-lane small { position: absolute; right: 0; top: 7px; padding-left: 4px; font-size: 9px; line-height: 1.2; color: #59616a; background: rgba(246,247,248,.9); }
.daily-table tbody tr { background: rgba(255,255,255,.58); }
.daily-table tbody tr:nth-child(even) { background: rgba(231,234,237,.52); }
.daily-table tbody tr.weekend td { background: #e8edf3; }
.daily-table tbody tr.saturday td { background: #e5edf7; }
.daily-table tbody tr.sunday td { background: #f5e8e8; }
.daily-table tbody tr.company-holiday td { background: #f1dddd; }
.daily-table tbody tr.weekend td:first-child strong,
.daily-table tbody tr.weekend td:first-child small { color: #536b8d; }
.daily-table tbody tr.sunday td:first-child strong,
.daily-table tbody tr.sunday td:first-child small,
.daily-table tbody tr.company-holiday td:first-child strong,
.daily-table tbody tr.company-holiday td:first-child small { color: #9a595b; }

/* 実績と勤務サービス候補を明確に二分した、31時間レンジの入力面。 */
.daily-table { min-width: 1140px; table-layout: fixed; }
.daily-table .actual-head { background: #edf1f5; }
.daily-table .candidate-head { background: #e7eef7; border-left: 3px solid #8da5c2; }
.daily-table tbody td:nth-child(5) { border-left: 3px solid #9bb0c9; }
.actual-cell { background-clip: padding-box; }
.candidate-cell { background: transparent !important; color: #405064; font-size: 11px; }
.candidate-cell strong { color: #344d6e; }
.range-cell { width: 420px; min-width: 420px; padding: 8px 12px !important; }
.range-scale { position: relative; height: 18px; color: #69737d; font-size: 9px; line-height: 1; }
.range-scale span { position: absolute; top: 0; }
.range-scale span:nth-child(1) { left: 0; }
.range-scale span:nth-child(2) { left: 77.42%; transform: translateX(-50%); }
.range-scale span:nth-child(3) { right: 0; text-align: right; }
.range-scale small { color: #8a939c; font-size: 8px; }
.range-control { position: relative; height: 24px; background: repeating-linear-gradient(90deg, #dce1e5 0, #dce1e5 1px, transparent 1px, transparent 12.9%); border-top: 1px solid #aeb7c0; border-bottom: 1px solid #d6dbe0; }
.range-control::before { content: ""; position: absolute; left: 77.42%; top: -5px; bottom: -5px; border-left: 1px dashed #8a949e; }
.range-segment { position: absolute; top: 6px; height: 10px; border-radius: 2px; background: #5b7eaf; box-shadow: inset 0 0 0 1px rgba(255,255,255,.34); }
.range-control input[type="range"] { appearance: none; -webkit-appearance: none; position: absolute; inset: 0; z-index: 2; width: 100%; height: 24px; margin: 0; background: transparent; pointer-events: none; }
.range-control input[type="range"]::-webkit-slider-runnable-track { height: 24px; background: transparent; }
.range-control input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 14px; height: 24px; margin-top: 0; border: 2px solid #fff; border-radius: 3px; background: #314d71; box-shadow: 0 1px 3px rgba(28,41,56,.28); cursor: ew-resize; pointer-events: auto; }
.range-control input[type="range"]::-moz-range-track { height: 24px; background: transparent; }
.range-control input[type="range"]::-moz-range-thumb { width: 11px; height: 20px; border: 2px solid #fff; border-radius: 3px; background: #314d71; box-shadow: 0 1px 3px rgba(28,41,56,.28); cursor: ew-resize; pointer-events: auto; }
.range-control input[type="range"]:disabled::-webkit-slider-thumb { background: #9aa5b0; cursor: default; }
.range-control input[type="range"]:disabled::-moz-range-thumb { background: #9aa5b0; cursor: default; }
.range-output { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: #58636f; font-size: 11px; }
.range-output strong { color: #2f3b47; }
.range-output small { color: #6e7781; font-size: 9px; white-space: nowrap; }
.range-editor.is-disabled { opacity: .5; }
.candidate-cell input[type="number"] { min-width: 0; width: 100%; text-align: right; }
.col-date { width: 68px; }
.col-actual-type { width: 92px; }
.col-actual-range { width: 420px; }
.col-actual-memo { width: 160px; }
.col-candidate-type { width: 62px; }
.col-candidate-time { width: 58px; }
.col-candidate-break { width: 60px; }
.col-candidate-hours { width: 60px; }

/* 参考イメージに合わせた、灰色レールと開始・終了カーソル。 */
.range-control { height: 43px; border: 0; background: transparent; }
.range-control::after { content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: 15px; height: 8px; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(77,83,89,.42) 0 1px, transparent 1px 3.225806%), #afb2b6; }
.range-control::before { z-index: 1; top: 5px; bottom: 18px; border-left: 2px solid #777d83; }
.range-segment { z-index: 1; top: 0; height: 30px; display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; background: rgba(82,113,158,.24); box-shadow: none; }
.range-total { color: #304f76; font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; }
.range-control input[type="range"] { z-index: 4; height: 30px; opacity: 0; pointer-events: none; }
.range-control input[type="range"] { background: transparent !important; color: transparent; accent-color: transparent; }
.range-control input[type="range"]::-webkit-slider-runnable-track { height: 30px; background: transparent !important; border: 0; }
.range-control input[type="range"]::-webkit-slider-thumb { width: 7px; height: 30px; margin-top: 0; border: 0; border-radius: 1px; background: #244cff; box-shadow: none; }
.range-control input.range-end::-webkit-slider-thumb { background: #d88f84; }
.range-control input[type="range"]::-moz-range-track { height: 30px; background: transparent; border: 0; }
.range-control input[type="range"]::-moz-range-progress { background: transparent; }
.range-control input[type="range"]::-moz-range-thumb { width: 5px; height: 28px; border: 0; border-radius: 1px; background: #244cff; box-shadow: none; }
.range-control input.range-end::-moz-range-thumb { background: #d88f84; }
.range-cursor { position: absolute; z-index: 4; top: 0; width: 7px; height: 30px; transform: translateX(-50%); border-radius: 1px; cursor: ew-resize; touch-action: none; }
.range-cursor.start { background: #244cff; }
.range-cursor.end { background: #d88f84; }
.range-editor.is-disabled .range-cursor { cursor: default; }
.range-flag { position: absolute; z-index: 3; top: 28px; transform: translateX(-50%); font-size: 9px; font-weight: 700; letter-spacing: .02em; pointer-events: none; white-space: nowrap; }
.range-flag.start { color: #244cff; }
.range-flag.end { color: #c47d73; }
.range-output { display: none; }

/* 実績と勤務サービス入力を同じ月内で独立して扱うタブ。 */
.month-tabs { display: flex; gap: 4px; margin: 0 0 12px; border-bottom: 1px solid #c4c9cf; }
.month-tab { margin: 0 0 -1px; padding: 9px 15px; border: 1px solid transparent; border-bottom: 0; background: transparent; color: #69727c; font: inherit; font-weight: 700; cursor: pointer; }
.month-tab:hover { color: #40566f; }
.month-tab.is-active { border-color: #c4c9cf; background: #f6f7f8; color: #2f4e70; }
.tab-panel[hidden] { display: none; }
.actual-tab .candidate-head,
.actual-tab .daily-table th:nth-child(n+7),
.actual-tab .daily-table td:nth-child(n+7),
.actual-tab .daily-table col:nth-child(n+7) { display: none; }
.actual-tab .daily-table { min-width: 760px; table-layout: auto; }
.actual-tab .daily-table tbody td:nth-child(5),
.actual-tab .daily-table tbody td:nth-child(6) { border-left: 0; }
.actual-total-cell { width: 74px; min-width: 74px; text-align: center; vertical-align: middle !important; }
.actual-total-cell strong { color: #35577f; font-size: 13px; white-space: nowrap; }
.actual-overtime-cell { width: 74px; min-width: 74px; text-align: center; vertical-align: middle !important; }
.actual-overtime-cell strong { color: #9b6b35; font-size: 13px; white-space: nowrap; }
.actual-overtime-cell.is-zero strong { color: #8a929a; }
.daily-table tbody tr.has-weekend-work .range-segment { background: rgba(180, 74, 74, .34); }
.daily-table tbody tr.has-weekend-work .range-total,
.daily-table tbody tr.has-weekend-work .actual-total-cell strong,
.daily-table tbody tr.has-weekend-work .actual-overtime-cell:not(.is-zero) strong,
.daily-table tbody tr.has-weekend-work .range-output strong { color: #a34f4f; }
.memo-tag-editor { display: flex; align-items: center; gap: 4px; min-height: 34px; padding: 4px 5px; border: 1px solid #c4c9cf; border-radius: 2px; background: #fbfbfc; }
.memo-tags { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 3px; min-width: 0; }
.memo-tag { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: 2px 5px; border: 1px solid #cbd6e4; border-radius: 10px; background: #e7eef7; color: #405a79; font-size: 10px; line-height: 1.25; white-space: nowrap; }
.memo-tag-remove { display: inline-flex; width: 13px; height: 13px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #61738b; font-size: 13px; line-height: 1; cursor: pointer; }
.memo-tag-remove:hover { background: #cfdbea; color: #344e6c; }
.memo-tag-entry { flex: 1 1 66px; width: auto !important; min-width: 66px !important; padding: 2px !important; border: 0 !important; outline: 0 !important; background: transparent !important; font-size: 11px !important; }
.memo-tag-entry:focus { box-shadow: none; }
.memo-tag-picker { flex: 0 0 46px; width: 46px !important; min-width: 46px !important; padding: 3px 1px; border: 0; border-left: 1px solid #d7dbe0; border-radius: 0; background: transparent; color: #536270; font-size: 10px; }
.memo-tag-picker:disabled { color: #9ba3aa; opacity: 1; }
.service-grid { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(440px, 1.3fr); gap: 22px; }
.service-grid section { min-width: 0; }
.service-grid h3 { margin: 0 0 4px; font-size: 15px; }
.tab-help { min-height: 38px; margin: 0 0 10px; color: #66707a; font-size: 11px; }
.service-map-table, .service-entry-table { min-width: 100%; }
.service-entry-table { width: 100%; table-layout: fixed; }
.service-entry-table .service-date-col { width: 14%; }
.service-entry-table .service-type-col { width: 25%; }
.service-entry-table .service-hours-col { width: 12%; }
.service-entry-table .service-time-col { width: 25%; }
.service-entry-table .service-break-col { display: none; }
.service-entry-table .service-cap-col { width: 24%; }
.service-map-table th, .service-entry-table th { text-align: center; }
.service-map-table td, .service-entry-table td { padding: 7px 6px; vertical-align: middle; }
.service-entry-table td { text-align: center; }
.service-entry-table th:nth-child(5), .service-entry-table td:nth-child(5) { display: none; }
.service-entry-table .service-blank td { height: 39px; background: #edf0f3; }
.service-entry-table .service-blank.saturday td { background: #e6eef8; }
.service-entry-table .service-blank.sunday td { background: #f5e8e8; }
.service-entry-table .service-blank.company-holiday td { background: #f1dddd; }
.service-entry-table .service-blank td:first-child { color: #697789; text-align: center; }
.service-entry-table .service-blank.sunday td:first-child,
.service-entry-table .service-blank.company-holiday td:first-child { color: #9a595b; }
.service-map-table select, .service-entry-table select, .service-entry-table input { padding: 6px; font-size: 12px; }
.service-entry-table input[type="number"] { width: 66px; text-align: right; }
.service-entry-table select { width: 100%; }
.service-entry-table input[type="number"], .service-entry-table select { text-align: center; }
.service-entry-table .service-time { color: #5e6c78; font-variant-numeric: tabular-nums; white-space: nowrap; }
.service-entry-table .cap-toggle, .service-entry-table .readonly-value { justify-content: center; }
.service-entry-table .readonly-number { justify-content: center; }
.service-allocation-summary { display: grid; grid-template-columns: repeat(3, minmax(104px, max-content)) minmax(160px, 1fr) auto; align-items: end; gap: 8px 18px; margin: 0 0 10px; padding: 10px 12px; border: 1px solid #cbd1d8; background: #eef1f4; }
.service-allocation-summary div { display: grid; gap: 2px; }
.service-allocation-summary span { color: #6d7780; font-size: 10px; }
.service-allocation-summary strong { color: #35577f; font-size: 16px; }
.service-allocation-summary .is-match strong { color: #52705b; }
.service-allocation-summary .is-mismatch strong { color: #9b6b35; }
.service-allocation-summary p { margin: 0; color: #62707c; font-size: 11px; }
.service-allocation-summary p.is-error { color: #a15f43; }
.cap-toggle { display: inline-flex; align-items: center; gap: 3px; color: #626d78; font-size: 11px; white-space: nowrap; }
.cap-toggle input { width: auto !important; margin: 0; }
.readonly-value { display: inline-flex; align-items: center; min-height: 28px; color: #43515d; font-size: 12px; line-height: 1.2; }
.readonly-number { min-width: 42px; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.readonly-cap { color: #536e8a; font-size: 11px; }
@media (max-width: 960px) { .service-grid { grid-template-columns: 1fr; } .tab-help { min-height: 0; } }
@media (max-width: 960px) { .service-allocation-summary { grid-template-columns: repeat(3, minmax(90px, 1fr)); } .service-allocation-summary p { grid-column: 1 / -1; } .service-allocation-summary .button { justify-self: start; } }
