/* 시안 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); }

/* 로고 */
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo .mark {
  width: 26px; height: 26px; border-radius: 6px; background: #fff; color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.logo .name { color: #fff; font-weight: 700; font-size: 18px; }
.logo.lg .mark { width: 30px; height: 30px; font-size: 17px; }
.logo.lg .name { font-size: 22px; }

/* ===== 업무 화면 ===== */
.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; }
.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; }

.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 { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

.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; }

@media (max-width: 900px) {
  .login .intro { display: none; }
}
