/* 시안 A의 형태 + 시안 B의 색 (2026-11-08 대표) */
:root {
  --brand: #0a6b66;
  --brand-deep: #085a56;
  --brand-tint: #cfe6e3;
  --ink: #111827;
  --sub: #4b5563;
  --placeholder: #667085;
  --line: #d1d5db;
  --bg: #f2f4f7;
  --card: #ffffff;
  --ok: #067647;
  --bad: #b42318;
  --warn: #b54708;
  --info: #175cd3;
  --s-a: #2a78d6; --s-b: #eb6834; --s-c: #1baf7a; --s-d: #eda100;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
button { font: inherit; }

/* 시연 표시 */
.demo-tag {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  background: #111827; color: #fff; font-size: 12px; font-weight: 500;
  padding: 6px 10px; border-radius: 6px; opacity: .85;
}

/* ===== 로그인 (A 형태: 왼쪽 소개 패널 + 오른쪽 양식) ===== */
.login { display: flex; min-height: 100vh; }
.login .intro {
  width: 620px; flex: none; background: var(--brand); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 56px 64px;
}
.login .intro .headline { font-size: 38px; font-weight: 700; line-height: 1.35; }
.login .intro .sub { color: var(--brand-tint); font-size: 16px; margin-top: 14px; }
.login .intro .foot { color: var(--brand-tint); font-size: 13px; }
.login .pane { flex: 1; background: #fff; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login form { width: 400px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.login h1 { font-size: 28px; font-weight: 700; }
.login .hint { color: var(--sub); font-size: 14px; margin-top: 4px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input {
  width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 6px; padding: 0 14px;
  font: inherit; font-size: 14px; color: var(--ink); background: #fff;
}
.field input::placeholder { color: var(--placeholder); }
.field input:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
.roles { display: flex; gap: 8px; flex-wrap: wrap; }
.roles .role {
  flex: 1; min-width: 100px; height: 40px; border: 1px solid var(--line); border-radius: 6px; background: #fff;
  color: var(--sub); font-size: 13px; font-weight: 500; cursor: pointer;
}
.roles .role[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); font-weight: 700; background: #f0f8f7; }
.login .meta { display: flex; justify-content: space-between; font-size: 13px; }
.login .meta a { color: var(--brand); font-weight: 500; }
.login .meta span { color: var(--sub); }

/* 로고 B (캡슐) */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.mark { display: inline-block; width: 30px; height: 14px; border-radius: 999px; position: relative; flex: none;
  background: linear-gradient(90deg, var(--brand) 0 48.5%, #fff 48.5% 51.5%, #9bd8ce 51.5%); }
.mark::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.wm { font-weight: 900; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.wm b { font-family: Manrope, "Noto Sans KR", sans-serif; font-weight: 800; color: var(--brand); }
.logo.dark .mark { background: linear-gradient(90deg, #fff 0 48.5%, var(--brand) 48.5% 51.5%, #9bd8ce 51.5%); }
.logo.dark .mark::after { background: var(--brand); }
.logo.dark .wm { color: #fff; } .logo.dark .wm b { color: #9bd8ce; }
.logo.lg .mark { width: 36px; height: 17px; } .logo.lg .mark::after { width: 5px; height: 5px; left: 6px; top: 4px; }
.logo.lg .wm { font-size: 22px; }

/* 시연·미리보기 */
.embed .demo-tag, .embed .switch { display: none !important; }
.panel { display: none; } .panel.on { display: flex; flex-direction: column; gap: 18px; }
.tabs a { cursor: pointer; }
select.sel { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
select.sel::after { display: none; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; padding: 12px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.danger { background: #fff; color: var(--bad); border-color: var(--bad); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; max-width: 760px; }
.form .full { grid-column: 1 / -1; }
.form input, .form select { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; font: inherit; font-size: 14px; background: #fff; }
.form input:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.hint { color: var(--sub); font-size: 13px; }
.login .meta .acct { color: var(--sub); }
.login .meta .acct b { color: var(--ink); font-family: Manrope, monospace; }
.err { color: var(--bad); font-size: 13px; display: none; } .err.show { display: block; }
.pager { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; }
.pager .pinfo { font-size: 13px; color: var(--sub); }
.pager .pbtns { display: flex; gap: 4px; }
.pager button { min-width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 6px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.pager button.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.pager button:disabled { color: #c3c8d1; cursor: default; }
tr.link { cursor: pointer; } tr.link:hover td { background: #f7faf9; }
.headl { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.backbtn { flex: none; width: 40px; height: 40px; margin-top: 2px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: var(--ink); }
.backbtn:hover { border-color: var(--brand); color: var(--brand); }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--sub); margin-bottom: 6px; }
.crumb a { color: var(--brand); font-weight: 500; } .crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumb .sep { color: #c3c8d1; } .crumb b { color: var(--ink); font-weight: 700; }
.box { overflow-x: auto; }
/* 두 단계 표 */
table.nested th.exp-col { width: 44px; }
table.nested th.act, table.nested td.act { width: 84px; text-align: right; padding-right: 8px; }
tr.exp { cursor: pointer; } tr.exp:hover td { background: #f7faf9; }
tr.exp td.caret { width: 44px; padding-right: 0; }
/* 펼침 버튼: 테두리 있는 둥근 단추 + 꺾쇠, 열리면 90도 회전 */
tr.exp .chev { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: #fff; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
tr.exp .chev::before { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: rotate(-45deg); margin-left: -2px; transition: border-color .18s ease; }
tr.exp:hover .chev { border-color: var(--brand); } tr.exp:hover .chev::before { border-color: var(--brand); }
tr.exp.open .chev { transform: rotate(90deg); border-color: var(--brand); background: var(--brand); } tr.exp.open .chev::before { border-color: #fff; }
tr.exp.open td { background: #f3f8f7; }
tr.exp .name { color: var(--ink); font-weight: 700; }
tr.exp a.detail { white-space: nowrap; }
tr.sub { display: none; } tr.sub.open { display: table-row; }
tr.sub > td { padding: 0 0 14px 38px; background: #fbfcfd; border-bottom: 1px solid var(--line); }
tr.sub table { width: 100%; }
tr.sub th { font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--sub); }
tr.sub td { font-size: 13px; padding: 8px 10px; border-bottom: 1px solid #eef1f4; }
tr.sub tr:last-child td { border-bottom: 0; }
tr.sub a.lnk2 { color: var(--brand); font-weight: 500; } tr.sub a.lnk2:hover { text-decoration: underline; text-underline-offset: 3px; }
.filter-note { color: var(--brand); font-weight: 500; }

/* ===== 업무 화면 ===== */
.shell { display: flex; min-height: 100vh; min-width: 1100px; }
.side {
  width: 232px; flex: none; background: var(--brand); color: #fff;
  display: flex; flex-direction: column; gap: 22px; padding: 22px 14px;
  position: sticky; top: 0; height: 100vh;
}
.menu { display: flex; flex-direction: column; gap: 4px; }
.menu a {
  display: block; padding: 10px 12px; border-radius: 6px;
  color: var(--brand-tint); font-size: 14px; font-weight: 500;
}
.menu a:hover { background: rgba(255,255,255,.1); color: #fff; }
.menu a.on { background: #fff; color: var(--brand); font-weight: 700; }
.side .grow { flex: 1; }
.side .who { color: var(--brand-tint); font-size: 13px; font-weight: 500; }
.side .switch { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18); }
.side .switch a { color: var(--brand-tint); font-size: 12px; padding: 4px 12px; border-radius: 4px; }
.side .switch a:hover { color: #fff; background: rgba(255,255,255,.1); }
.side .switch .lbl { color: rgba(255,255,255,.55); font-size: 11px; padding: 0 12px 2px; }

.main { flex: 1; min-width: 0; padding: 28px 32px; display: flex; flex-direction: column; gap: 18px; }
.userbar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); margin: 4px 0 2px; }
.userbar b { color: var(--ink); font-weight: 700; } .userbar .sep { color: #c3c8d1; }
.userbar a { color: var(--brand); font-weight: 500; } .userbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.embed .userbar { display: none; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.head h1 { font-size: 24px; font-weight: 700; }
.head .date { color: var(--sub); font-size: 14px; margin-top: 4px; }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tools .seg { height: 40px; } .tools .seg button { padding: 0 12px; }
.tools .dates input[type=date] { height: 40px; }

.sel {
  height: 40px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 0 12px;
  display: inline-flex; align-items: center; gap: 18px; font-weight: 500; font-size: 14px; cursor: default;
}
.sel::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-2px) rotate(45deg); }
.btn {
  height: 40px; padding: 0 16px; border-radius: 6px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-deep); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.kpi .k { color: var(--sub); font-size: 13px; font-weight: 500; }
.kpi .v { font-size: 26px; font-weight: 700; margin-top: 4px; }

.alert {
  background: #fff; border: 1.5px solid var(--warn); border-radius: 8px; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
}
.alert .ico { width: 22px; height: 22px; border-radius: 50%; background: var(--warn); color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.alert .t { font-size: 15px; font-weight: 700; }
.alert .d { color: var(--sub); font-size: 13px; margin-top: 2px; }
.alert .grow { flex: 1; }

.row { display: grid; gap: 20px; }
.row.w-764 { grid-template-columns: minmax(0, 764fr) minmax(0, 300fr); }
.row.w-719 { grid-template-columns: minmax(0, 719fr) minmax(0, 350fr); }

.box { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.box .bh { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.box .bt { font-size: 16px; font-weight: 700; }
.box .bd { color: var(--sub); font-size: 13px; margin-top: 2px; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 10px; text-align: left; font-size: 14px; white-space: nowrap; }
th { color: var(--sub); font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--ink); }
td { border-bottom: 1px solid var(--line); }
th.r, td.r { text-align: right; }
td.b, tr.sum td { font-weight: 700; }
.muted { color: var(--sub); }

.tag { display: inline-block; padding: 3px 8px; border-radius: 4px; border: 1px solid; font-size: 12px; font-weight: 500; background: #fff; line-height: 1.3; }
.tag.ok { color: var(--ok); border-color: var(--ok); }
.tag.bad { color: var(--bad); border-color: var(--bad); }
.tag.warn { color: var(--warn); border-color: var(--warn); }
.tag.info { color: var(--info); border-color: var(--info); }

.list .it { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list .it .t { font-size: 14px; font-weight: 700; }
.list .it .d { color: var(--sub); font-size: 13px; margin-top: 2px; }
.list .it .n { font-size: 18px; font-weight: 700; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 12px 16px; font-size: 15px; font-weight: 500; color: var(--sub); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--brand); font-weight: 700; border-bottom-color: var(--brand); }

.legend { display: flex; gap: 16px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--sub); font-size: 13px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.chart { width: 100%; height: 230px; display: block; }
.chart text { font-size: 12px; fill: var(--sub); font-family: inherit; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart polyline, .chart path.line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { stroke: #fff; stroke-width: 1.5; }

.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 8px; }
.bar .lbl { font-size: 14px; }
.bar .track { height: 14px; }
.bar .fill { height: 14px; background: var(--brand); border-radius: 0 4px 4px 0; }
.bar .num { font-size: 13px; font-weight: 700; }

a.lnk { color: var(--brand); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ===== 모바일 ===== */
/* 월별(기본) / 일별 토글 · 스파크라인 · KPI 보조 줄 (대표 11/8) */
.box .bh { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; flex: none; }
.seg button { border: 0; background: #fff; color: var(--sub); font: inherit; font-size: 13px; font-weight: 500; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button:hover { color: var(--brand); }
.seg button.on { background: var(--brand); color: #fff; font-weight: 700; }
.chart path.dash { stroke-dasharray: 4 4; stroke-width: 1.5; }
.spark { width: 96px; height: 26px; display: block; }
.spark polyline { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
table.nested th.sp, table.nested td.sp { width: 112px; }
.kpi .v small { display: block; font-size: 12px; font-weight: 500; color: var(--sub); margin-top: 4px; }
table.daily td, table.daily th { padding: 7px 10px; font-size: 13px; }
table.daily td .tag { padding: 1px 6px; font-size: 11px; }
table.daily tr.wkend td { color: var(--sub); background: #fafbfc; }
table.daily th a.lnk2 { color: var(--brand); font-weight: 600; white-space: nowrap; }
table.daily tr.sum td { font-weight: 700; border-top: 2px solid var(--ink); }

/* 좌측 메뉴 하위(처방 실적 › 품목별·CSO별·요양기관별·전체 추이): 원래 모양, 색만 — 점 표식 + 흰 글자 강조, 상자·선 없음 (대표 11/9) */
.menu .sub { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px 0; padding-left: 14px; }
.menu .sub a { position: relative; padding: 6px 12px 6px 20px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.62); border-radius: 6px; }
.menu .sub a::before { content: ''; position: absolute; left: 7px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: rgba(255,255,255,.35); }
.menu .sub a:hover { color: #fff; background: rgba(255,255,255,.08); }
.menu .sub a.on { color: #fff; font-weight: 700; background: transparent; } .menu .sub a.on::before { background: #fff; }
/* 엑셀 다운로드 선택(전체 자료 / 지금 보는 표) */
.dd { position: relative; }
.ddm { display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(17,24,39,.12); padding: 6px; z-index: 30; }
.ddm.show { display: block; }
.ddm button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 6px; background: #fff; font: inherit; cursor: pointer; color: var(--ink); }
.ddm button:hover { background: #f3f8f7; }
.ddm button b { display: block; font-size: 14px; font-weight: 700; } .ddm button span { display: block; font-size: 12px; color: var(--sub); margin-top: 2px; }
/* 합계 행을 표 맨 위에 */
tr.sum.top td { border-bottom: 2px solid var(--ink); background: #fafbfc; }
/* 전면 개편 11/8: 한 단계 표 + 공통 상세 */
table.flat tr.link td .go { color: var(--sub); font-size: 16px; } table.flat tr.link:hover td .go { color: var(--brand); }
table.flat th.go-col { width: 28px; }
.ctlbox { padding: 12px 20px; }
.ctl { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.ctl .lbl { color: var(--sub); font-size: 13px; font-weight: 500; }
.ctl .grow { flex: 1; }
.dates { display: none; gap: 6px; align-items: center; } .dates.show { display: inline-flex; }
.ctl input[type=date] { height: 34px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; font: inherit; font-size: 13px; color: var(--ink); background: #fff; }
.ctl .sel { height: 34px; font-size: 13px; max-width: 220px; }
/* 맥락 띠: 지금 보는 표가 무엇인지 — 진하고 크게, 틴트 없이 테두리와 굵기로 */
.ctxbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 10px 14px; border: 1px solid var(--ink); border-radius: 8px; background: #fff; margin-top: 12px; }
.ctxbar.filtered { border-left: 5px solid var(--brand); }
.ctxbar .cp b.f { color: var(--brand); }
.ctxbar .cp .ft { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.ctxbar .cl { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .02em; padding-right: 10px; border-right: 2px solid var(--brand); }
.ctxbar .cp { display: inline-flex; align-items: baseline; gap: 6px; }
.ctxbar .cp i { font-style: normal; font-size: 12px; color: var(--sub); font-weight: 500; }
.ctxbar .cp b { font-size: 16px; font-weight: 800; color: var(--ink); }
.ctxbar .cp b a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.kpis.k5 { grid-template-columns: repeat(5, 1fr); gap: 12px; }
.kpis.k5 .kpi { padding: 14px 16px; } .kpis.k5 .kpi .v { font-size: 22px; }

@media (max-width: 900px) {
  .login .intro { display: none; }
  .login .pane { padding: 32px 20px; align-items: flex-start; }
  .shell { min-width: 0; flex-direction: column; }
  .side { position: static; height: auto; width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; }
  .side .grow, .side .who, .side .switch .lbl { display: none; }
  .side .switch { order: 2; margin-left: auto; border: 0; padding: 0; flex-direction: row; gap: 4px; }
  .side .switch a { padding: 6px 8px; }
  .menu { order: 3; width: 100%; flex-direction: row; overflow-x: auto; gap: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { white-space: nowrap; padding: 8px 12px; }
  .menu .sub { flex-direction: row; margin: 0; padding: 0; }
  .menu .sub a { padding: 8px 10px 8px 18px; }
  .main { padding: 16px; gap: 14px; }
  .head { flex-direction: column; align-items: stretch; gap: 12px; }
  .head h1 { font-size: 20px; }
  .tools { flex-wrap: wrap; }
  .tools .sel, .tools .btn { height: 38px; font-size: 13px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px 14px; } .kpi .v { font-size: 20px; }
  .row.w-764, .row.w-719 { grid-template-columns: 1fr; gap: 14px; }
  .box { padding: 14px 16px; overflow-x: auto; }
  .box table { min-width: 620px; }
  .box table.flat { min-width: 880px; }
  .box table.daily { min-width: 560px; }
  .seg { flex-wrap: wrap; } .seg button { padding: 7px 9px; font-size: 12px; }
  .tools .seg { height: auto; } .tools .seg button { padding: 8px 9px; }
  .tools .dates { width: 100%; } .tools .dates input[type=date] { height: 36px; flex: 1; min-width: 0; }
  .ctl .grow { display: none; }
  .ctlbox { padding: 12px 14px; }
  .kpis.k5 { grid-template-columns: 1fr 1fr; } .kpis.k5 .kpi:first-child { grid-column: span 2; }
  .ctxbar { gap: 6px 12px; padding: 10px 12px; } .ctxbar .cp b { font-size: 14px; } .ctxbar .cl { width: 100%; border-right: 0; padding: 0; }
  .chart { height: auto; }
  tr.exp .chev { width: 32px; height: 32px; }
  tr.sub > td { padding-left: 16px; }
  .tabs { overflow-x: auto; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; }
  .tabs a { white-space: nowrap; padding: 10px 12px; font-size: 14px; }
  .alert { flex-wrap: wrap; } .alert .btn { width: 100%; }
  .form { grid-template-columns: 1fr; }
  .pager { flex-wrap: wrap; gap: 8px; }
  .demo-tag { right: 10px; bottom: 10px; font-size: 11px; }
  .toast { width: calc(100% - 32px); text-align: center; }
}
