/* ==========================================================================
   GSR Finance ERP 1.3 · Modern Light
   색상·간격은 아래 토큰(:root)만 바꾸면 전체 화면에 반영됩니다.
   ========================================================================== */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #f1f3f8;
  --line: #e6e8f0;
  --line-2: #d5d9e4;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --faint: #9ca3af;

  --accent: #4f46e5;
  --accent-2: #4338ca;
  --accent-soft: #eef0ff;
  --accent-ink: #3730a3;
  --accent-ring: rgba(79, 70, 229, 0.18);

  --green: #047857;
  --green-soft: #ecfdf5;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --red: #b91c1c;
  --red-soft: #fef2f2;
  --blue: #1d4ed8;
  --blue-soft: #eff6ff;

  /* 차트: 수익(인디고)·비용(오렌지) — 색각 이상 검증 통과 조합 */
  --series-1: #4f46e5;
  --series-2: #eb6834;
  /* 상태: 채권 연령 등 (항상 글자 라벨과 함께 사용) */
  --good: #16a34a;
  --warn: #f59e0b;
  --serious: #ea580c;
  --critical: #dc2626;
  --severe: #991b1b;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.07), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, 0.28);
  --sidebar-w: 248px;

  font-family:
    'Pretendard Variable',
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Malgun Gothic',
    '맑은 고딕',
    'Apple SD Gothic Neo',
    'Noto Sans KR',
    'Noto Sans CJK KR',
    system-ui,
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid var(--accent-ring);
  outline-offset: 2px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 4px;
}
h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 22px 0 10px;
}
p {
  line-height: 1.7;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 12px;
}
.mono,
.num {
  font-variant-numeric: tabular-nums;
}
.mono {
  color: var(--ink-2);
}
.num {
  text-align: right;
  white-space: nowrap;
}
td.date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.negative {
  color: var(--red);
}
.good {
  color: var(--green);
}
.gap-top {
  margin-top: 16px;
}
[hidden] {
  display: none !important;
}
.preserve-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #d7dbe5;
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #c3c8d5;
}

/* ---------- Buttons ---------- */
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}
button:hover {
  background: var(--surface-2);
  border-color: #c5cad8;
}
button:active {
  transform: translateY(0.5px);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button .icon {
  width: 16px;
  height: 16px;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow:
    0 1px 2px rgba(79, 70, 229, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}
.danger {
  color: var(--red);
}
.danger:hover {
  background: var(--red-soft);
  border-color: #fecaca;
}
.primary.danger {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.small {
  height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
  border-radius: 8px;
}
.ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--muted);
}
.ghost:hover {
  background: var(--surface-3);
  border-color: transparent;
  color: var(--ink);
}
.icon-btn {
  width: 36px;
  padding: 0;
}

/* ---------- Form fields ---------- */
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input::placeholder,
textarea::placeholder {
  color: var(--faint);
}
input:hover,
select:hover,
textarea:hover {
  border-color: #c5cad8;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
select:disabled,
input:disabled {
  background-color: var(--surface-3);
  color: var(--muted);
  cursor: not-allowed;
}
textarea {
  height: auto;
  min-height: 84px;
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.6;
}
input[type='number'] {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
input[readonly] {
  background: var(--surface-2);
  color: var(--ink-2);
}
input[type='checkbox'] {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--accent);
  box-shadow: none;
}
input[type='file'] {
  height: auto;
  padding: 8px;
}
input[type='date'],
input[type='month'] {
  font-variant-numeric: tabular-nums;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}
label.check {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  font-size: 13px;
}
.field-hint {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px 18px;
  margin: 18px 0 0;
  background: var(--surface-2);
}
fieldset legend {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 6px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.span2 {
  grid-column: 1 / -1;
}
.form-grid > label.check {
  align-self: end;
  min-height: 38px;
}
.error-text {
  color: var(--red);
  font-size: 13px;
  font-weight: 500;
}
.error-text:not(:empty) {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--red-soft);
  border: 1px solid #fecaca;
  border-radius: 9px;
}

/* ---------- App shell ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
  /* 사이드바 열의 흰 배경과 경계선을 페이지 끝까지 유지 */
  background: linear-gradient(
    90deg,
    var(--surface) calc(var(--sidebar-w) - 1px),
    var(--line) calc(var(--sidebar-w) - 1px),
    var(--line) var(--sidebar-w),
    transparent var(--sidebar-w)
  );
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 18px 12px 12px;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 8px 16px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  box-shadow:
    0 4px 10px -2px rgba(79, 70, 229, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.brand-text strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.brand-text {
  min-width: 0;
}
.brand-text small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar nav {
  flex: 1;
  overflow-y: auto;
  margin: 0 -6px;
  padding: 0 6px 8px;
  scrollbar-width: thin;
}
.nav-group {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--faint);
  padding: 12px 10px 5px;
}
.nav-group:first-child {
  padding-top: 4px;
}
.nav-item {
  width: 100%;
  height: 32px;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 10px;
  margin: 1px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
}
.nav-item .icon {
  width: 17px;
  height: 17px;
  color: var(--faint);
  transition: color 0.15s;
}
.nav-item:hover {
  background: var(--surface-3);
  color: var(--ink);
}
.nav-item:hover .icon {
  color: var(--ink-2);
}
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 650;
}
.nav-item.active .icon {
  color: var(--accent);
}
.side-foot {
  border-top: 1px solid var(--line);
  padding: 12px 4px 0;
}
.company-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.company-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink-2);
}
.company-chip div {
  min-width: 0;
}
.company-chip strong {
  display: block;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.company-chip small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.sidebar-scrim {
  display: none;
}
.main {
  min-width: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  min-width: 0;
}
.breadcrumb strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crumb-sep {
  color: var(--line-2);
}
.user-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-block .pill .icon {
  width: 13px;
  height: 13px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 12px 3px 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 12.5px;
}
.user-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.user-name small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.mobile-menu {
  display: none;
}
.content {
  padding: 28px 32px 36px;
  max-width: 1600px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
}
.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 6px;
}
.subtitle {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.actions > a:hover {
  text-decoration: none;
}
.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}
.loading {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- Toolbar & filters ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.period {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}
.period select,
.period input {
  height: 32px;
  border: 0;
  box-shadow: none;
  width: auto;
}
.period select {
  background-color: var(--surface-3);
  border-radius: 8px;
  font-weight: 600;
  padding-left: 10px;
}
.period input {
  padding: 0 6px;
  width: 132px;
}
.period input:focus,
.period select:focus {
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.period > span {
  color: var(--faint);
}
.period button {
  height: 32px;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: none;
}
.period button:hover {
  background: #1f2937;
}
.filter {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.filter > label {
  min-width: 150px;
}
.filter > button {
  align-self: flex-end;
}
.filter input[type='search'] {
  width: 240px;
  padding-left: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 11px center;
}
.filter select {
  width: auto;
  min-width: 130px;
}
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  background: var(--surface-3);
  border-radius: 11px;
}
.tab {
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-weight: 600;
}
.tab:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
}
.tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

/* ---------- Cards (KPI) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--ink-2);
}
.card-icon .icon {
  width: 17px;
  height: 17px;
}
.card-value {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 10px 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-foot {
  font-size: 12.5px;
  color: var(--muted);
}
.card.hero,
.card.dark {
  border: 0;
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, #7c3aed 0%, transparent 55%),
    linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 10px 24px -10px rgba(79, 70, 229, 0.6);
}
.card.hero .card-head,
.card.hero .card-foot,
.card.dark .card-head,
.card.dark .card-foot {
  color: rgba(255, 255, 255, 0.8);
}
.card.hero .card-icon,
.card.dark .card-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.card.hero .negative {
  color: #fecaca;
}

/* ---------- Panels & grids ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  margin: 0;
}
.panel-head p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.panel-head > .icon {
  color: var(--faint);
}
.panel-body {
  padding: 18px 20px;
}
.panel-body > p:last-child {
  margin-bottom: 0;
}
.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.grid-equal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.grid-two > .panel,
.grid-equal > .panel,
.stack > .panel {
  margin-bottom: 0;
}
.grid-equal > .notice {
  margin-bottom: 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.stack > .notice {
  margin: 0;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.settings-grid > .panel {
  margin-bottom: 0;
}
.settings-grid h3 {
  margin-top: 0;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr {
  transition: background 0.1s;
}
tbody tr:hover td {
  background: #fafbff;
}
tfoot td {
  background: var(--surface-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 0;
  font-weight: 700;
}
td .secondary {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
td .pill + .pill {
  margin-left: 4px;
}
td a {
  font-weight: 600;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 42px 16px !important;
  background: transparent !important;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Pills & notices ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: middle;
}
.pill.green {
  background: var(--green-soft);
  color: var(--green);
}
.pill.amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.pill.red {
  background: var(--red-soft);
  color: var(--red);
}
.pill.blue {
  background: var(--blue-soft);
  color: var(--blue);
}
.notice {
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.7;
}
.notice .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.notice.warn {
  background: var(--amber-soft);
  border-color: #fde68a;
  border-left-color: var(--warn);
  color: #78350f;
}
.notice.error {
  background: var(--red-soft);
  border-color: #fecaca;
  border-left-color: var(--critical);
  color: #7f1d1d;
}
.notice.ok {
  background: var(--green-soft);
  border-color: #a7f3d0;
  border-left-color: var(--good);
  color: #065f46;
}
.check-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.check-card strong {
  display: block;
  font-size: 13.5px;
  margin: 3px 0 2px;
}
.check-card span:not(.check-icon) {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}
.check-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.check-icon .icon {
  width: 16px;
  height: 16px;
}
.check-card.ok .check-icon {
  background: var(--green-soft);
  color: var(--green);
}
.check-card.warn .check-icon {
  background: var(--amber-soft);
  color: var(--amber);
}
.check-card.bad .check-icon {
  background: var(--red-soft);
  color: var(--red);
}

/* ---------- Dashboard chart ---------- */
.legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
  background: var(--series-1);
}
.legend i.alt {
  background: var(--series-2);
}
.chart {
  position: relative;
  height: 250px;
  margin: 8px 0 0 48px;
}
.chart-grid {
  position: absolute;
  inset: 0 0 24px 0;
}
.gridline {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid #eef0f5;
}
.gridline:first-child {
  border-top-color: var(--line-2);
}
.gridline span {
  position: absolute;
  right: calc(100% + 8px);
  top: -8px;
  font-size: 11px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bars {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 4px;
}
.bar-col {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  outline: none;
  cursor: default;
}
.bar-pair {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  border-radius: 8px 8px 0 0;
  transition: background 0.15s;
}
.bar-col:hover .bar-pair,
.bar-col:focus-visible .bar-pair {
  background: rgba(79, 70, 229, 0.05);
}
.bar {
  width: 38%;
  max-width: 18px;
  min-height: 0;
  background: var(--series-1);
  border-radius: 4px 4px 0 0;
}
.bar.alt {
  background: var(--series-2);
}
.bar-label {
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.tip {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -6px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
}
.tip strong {
  font-size: 12px;
  margin-bottom: 2px;
}
.tip i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
  background: var(--series-1);
  box-shadow:
    0 0 0 1.5px #111827,
    0 0 0 2.5px rgba(255, 255, 255, 0.6);
}
.tip i.alt {
  background: var(--series-2);
}
.tip-net {
  color: #c7d2fe;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 4px;
  margin-top: 2px;
}
.bar-col:hover .tip,
.bar-col:focus .tip {
  opacity: 1;
}
.bar-col:nth-child(-n + 2) .tip {
  left: 0;
  transform: translate(0, -6px);
}
.bar-col:nth-last-child(-n + 2) .tip {
  left: auto;
  right: 0;
  transform: translate(0, -6px);
}
.chart-table {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.chart-table summary {
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  width: max-content;
}
.chart-table summary:hover {
  color: var(--ink);
}
.chart-table .table-wrap {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.chart-table table {
  font-size: 12.5px;
}
.chart-table td,
.chart-table th {
  padding: 8px 12px;
}

/* ---------- Aging ---------- */
.aging-hero {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.aging-hero span {
  flex: 1;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}
.aging-hero strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.aging-hero small {
  color: var(--muted);
  font-size: 12px;
}
.aging-row {
  margin: 14px 0 0;
}
.aging-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.aging-label span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
}
.aging-label strong {
  font-variant-numeric: tabular-nums;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: var(--accent);
}
.track {
  height: 6px;
  margin-top: 7px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
}
.track > div {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  min-width: 0;
}
.dot.good,
.track > .good {
  background: var(--good);
}
.dot.warn,
.track > .warn {
  background: var(--warn);
}
.dot.serious,
.track > .serious {
  background: var(--serious);
}
.dot.critical,
.track > .critical {
  background: var(--critical);
}
.dot.severe,
.track > .severe {
  background: var(--severe);
}
.aging-total {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

/* ---------- Report lines & statements ---------- */
.result-lines {
  padding: 4px 0;
}
.result-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.result-row:last-child {
  border-bottom: 0;
}
.result-row strong {
  font-variant-numeric: tabular-nums;
}
.result-row.major {
  background: var(--surface-2);
  font-weight: 700;
}
.result-row.total {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 14.5px;
}
.statement td {
  padding: 10px 16px;
}
.statement td:first-child {
  width: 60%;
}
.stmt-no {
  display: inline-block;
  width: 26px;
  color: var(--faint);
  font-weight: 600;
}
.stmt-group td {
  font-weight: 650;
  border-top: 1px solid var(--line);
}
.stmt-account td {
  font-size: 13px;
  color: var(--ink-2);
  padding-top: 7px;
  padding-bottom: 7px;
  border-bottom: 1px dashed #edf0f5;
}
.stmt-account td:first-child {
  padding-left: 42px;
}
.stmt-account a {
  color: var(--ink-2);
  font-weight: 500;
}
.stmt-account a:hover {
  color: var(--accent);
}
.stmt-subtotal td {
  background: var(--surface-2);
  font-weight: 750;
}
.stmt-total td {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 15px;
}
.ratios {
  padding-top: 6px;
  padding-bottom: 6px;
}
.ratio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ratio:last-child {
  border-bottom: 0;
}
.ratio span {
  display: block;
  font-weight: 650;
}
.ratio small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.ratio strong {
  font-size: 19px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
  overflow-y: auto;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(3px);
  animation: fade-in 0.15s ease-out;
}
.modal {
  width: min(660px, 100%);
  margin: auto;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 96px);
  overflow: hidden;
  animation: pop-in 0.18s ease-out;
}
.modal.wide {
  width: min(1120px, 100%);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 16px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 16px;
  margin: 0;
}
.modal-head .ghost {
  width: 34px;
  height: 34px;
  padding: 0;
}
.modal-body {
  padding: 22px 24px 20px;
  overflow-y: auto;
}
.modal-body > .notice:first-child,
.modal form > .notice:first-child {
  margin-bottom: 18px;
}
.modal form {
  margin: 0;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.modal .table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
}
.modal h3 {
  margin-top: 24px;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.detail-grid > div {
  background: var(--surface);
  padding: 12px 14px;
  min-width: 0;
}
.detail-grid span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 4px;
}
.detail-grid .pill {
  display: inline-flex;
  font-size: 12px;
  margin: 0 4px 0 0;
}
.detail-grid strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.journal-table {
  margin-top: 18px;
}
.journal-table td {
  padding: 6px;
}
.journal-table th {
  padding: 9px 8px;
}
.journal-table input,
.journal-table select {
  height: 34px;
}
.journal-table .account-col {
  min-width: 220px;
}
.journal-table .party-col {
  min-width: 170px;
}
.journal-table .amount-col {
  min-width: 140px;
}
.journal-totals {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  padding: 16px 4px 0;
}
.journal-totals span {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
  color: var(--muted);
}
.journal-totals strong {
  font-size: 18px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.journal-totals .negative strong {
  color: var(--red);
}
.journal-totals .good strong {
  color: var(--green);
}
.expense-line input {
  min-width: 125px;
}
.pl-line input {
  min-width: 130px;
}

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: 420px;
  padding: 12px 16px;
  border-radius: 11px;
  background: #111827;
  color: #fff;
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.show {
  opacity: 1;
  transform: none;
}

/* ---------- Auth ---------- */
.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--surface);
}
.auth-art {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 44px 56px;
  color: #fff;
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(99, 102, 241, 0.9) 0%, transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(124, 58, 237, 0.55) 0%, transparent 60%),
    linear-gradient(160deg, #312e81 0%, #1e1b4b 100%);
}
.auth-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  pointer-events: none;
}
.auth-art > * {
  position: relative;
}
.auth-art .brand {
  padding: 0;
}
.auth-art .brand-mark {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
}
.auth-art .brand-text small {
  color: #c7d2fe;
}
.tagline {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #c7d2fe;
  margin-bottom: 18px;
}
.auth-art h1 {
  font-size: 40px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
}
.auth-art p {
  color: #c7d2fe;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}
.auth-list {
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin-top: 30px;
}
.auth-list span {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.auth-list .icon {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #e0e7ff;
}
.auth-list b {
  font-size: 14px;
}
.auth-list small {
  font-size: 12px;
  color: #a5b4fc;
}
.auth-foot {
  font-size: 12px;
  color: #a5b4fc;
}
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.auth-form {
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-form h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}
.auth-form > p {
  color: var(--muted);
  margin: -6px 0 6px;
}
.auth-form .eyebrow {
  margin-bottom: -8px;
}
.auth-form input {
  height: 44px;
}
.auth-form .primary {
  height: 46px;
  font-size: 15px;
  margin-top: 4px;
}
.auth-note {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.75;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ---------- Help & misc ---------- */
.help-list {
  padding-left: 20px;
  margin: 0;
}
.help-list li {
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--ink-2);
}
.help-list li::marker {
  color: var(--accent);
  font-weight: 700;
}
.help-list strong {
  color: var(--ink);
}
details summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}
pre {
  max-width: 560px;
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 9px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.55;
  overflow: auto;
}
code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-3);
  color: var(--accent-ink);
}
pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.form-row {
  display: flex;
  gap: 12px;
}
.form-row label {
  flex: 1;
}
.clickable {
  cursor: pointer;
}
.clickable:hover {
  background: var(--surface-2);
}

/* ---------- Print documents (지출결의서·손익 작성본·자금 보고서) ---------- */
.print-document {
  background: #fff;
  color: #111827;
  padding: 24px 20px;
  max-width: 900px;
  margin: auto;
  font-size: 13px;
}
.doc-company {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.doc-title {
  text-align: center;
  font-size: 29px;
  letter-spacing: 6px;
  margin: 24px 0;
}
.doc-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  margin-bottom: 18px;
}
.doc-sign {
  width: 310px;
  margin: 0 0 20px auto;
  table-layout: fixed;
}
.doc-sign th,
.doc-sign td {
  border: 1px solid #8b93a7;
  text-align: center;
  padding: 7px;
  background: #fff;
  color: #111827;
}
.doc-sign td {
  height: 70px;
}
.doc-info {
  margin-bottom: 18px;
}
.doc-info th {
  width: 110px;
  color: #374151;
}
.doc-info th,
.doc-info td {
  border: 1px solid #c3c8d5;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}
.doc-unit {
  text-align: right;
  font-size: 11px;
  margin: 10px 0;
}
.print-document .table-wrap {
  overflow: visible;
  border-radius: 0;
}
.print-document table {
  font-size: 12px;
}
.print-document table td {
  overflow-wrap: anywhere;
}
.doc-note {
  border: 1px solid #c3c8d5;
  margin: 20px 0;
  padding: 14px;
  min-height: 110px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.doc-note p {
  margin: 10px 0;
}
.doc-declaration {
  text-align: center;
  font-size: 15px;
  margin-top: 28px;
}
.doc-bottom {
  text-align: right;
  line-height: 2.4;
  margin: 28px 0;
}
.treasury-doc-title {
  font-size: 25px;
  margin: 20px 0;
  letter-spacing: -0.5px;
}
.treasury-print table {
  font-size: 10px;
}
.treasury-print th,
.treasury-print td {
  padding: 7px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.treasury-print .panel-head {
  padding: 12px 10px;
}
.treasury-print .card-value {
  font-size: 20px;
}
.treasury-print .card {
  padding: 12px;
}
.treasury-print .table-wrap {
  overflow: visible;
}
.treasury-print .panel {
  break-inside: auto;
  overflow: visible;
}

/* ---------- Responsive ---------- */
@media (min-width: 1600px) {
  .content {
    padding: 32px 44px 40px;
  }
  .card-value {
    font-size: 28px;
  }
}
@media (max-width: 1280px) {
  .grid-two {
    grid-template-columns: minmax(0, 1fr);
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  :root {
    --sidebar-w: 220px;
  }
  .content {
    padding: 24px 22px 32px;
  }
  .topbar {
    padding: 0 22px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .page-head {
    align-items: flex-start;
  }
}
@media (max-width: 860px) {
  .shell {
    display: block;
    background: none;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 272px;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open {
    transform: none;
  }
  .sidebar.open ~ .sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(17, 24, 39, 0.4);
  }
  .mobile-menu {
    display: inline-flex;
    width: 36px;
    padding: 0;
    margin-left: -8px;
  }
  .topbar {
    padding: 0 16px;
  }
  .crumb-group,
  .crumb-sep,
  .user-block .pill,
  .user-name {
    display: none;
  }
  .user-chip {
    padding: 3px;
  }
  .content {
    padding: 20px 16px 28px;
  }
  .page-head {
    flex-direction: column;
    gap: 14px;
  }
  h1 {
    font-size: 21px;
  }
  .grid-equal,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span2 {
    grid-column: auto;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .period {
    flex-wrap: wrap;
  }
  .period input {
    width: 124px;
  }
  .filter input[type='search'] {
    width: 100%;
  }
  .card-value {
    font-size: 22px;
  }
  .footer-note {
    flex-direction: column;
  }
  .modal-overlay {
    padding: 12px;
  }
  .modal {
    max-height: calc(100vh - 24px);
  }
  .modal-body {
    padding: 18px;
  }
  .auth-page {
    display: block;
  }
  .auth-art {
    display: none;
  }
  .auth-main {
    min-height: 100vh;
  }
  .chart {
    margin-left: 40px;
  }
  .bar-label {
    font-size: 10.5px;
  }
}
@media (max-width: 520px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Print ---------- */
@media print {
  :root,
  body {
    background: #fff;
    font-size: 11px;
  }
  .sidebar,
  .sidebar-scrim,
  .topbar,
  .actions,
  .toolbar,
  .tabs,
  .footer-note,
  #toast,
  .no-print,
  .modal-overlay,
  .chart-table {
    display: none !important;
  }
  .shell {
    display: block;
    background: none;
  }
  .content {
    padding: 0;
    max-width: none;
  }
  .panel,
  .card,
  .check-card {
    box-shadow: none;
    break-inside: avoid;
  }
  .panel {
    overflow: visible;
  }
  .card.hero,
  .card.dark {
    background: #fff;
    color: #111827;
    border: 1px solid #c3c8d5;
  }
  .card.hero .card-head,
  .card.hero .card-foot {
    color: #4b5563;
  }
  .table-wrap {
    overflow: visible;
  }
  table {
    font-size: 10px;
  }
  th,
  td {
    padding: 6px 8px;
  }
  .cards {
    gap: 8px;
  }
  .card-value {
    font-size: 18px;
  }
  .page-head {
    margin-bottom: 14px;
  }
  .grid-two {
    grid-template-columns: 1.5fr 1fr;
  }
  .notice {
    font-size: 10px;
  }
  .tip {
    display: none;
  }
  body.print-management {
    background: #fff;
  }
  body.print-management .shell {
    display: none !important;
  }
  body.print-management .modal-overlay {
    display: block !important;
    position: static !important;
    background: none !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    animation: none;
  }
  body.print-management .modal {
    display: block !important;
    width: auto;
    max-width: none;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    animation: none;
  }
  body.print-management .modal-head,
  body.print-management .modal-footer {
    display: none !important;
  }
  body.print-management .modal-body {
    padding: 0;
    overflow: visible;
  }
  body.print-management .print-document {
    padding: 0;
    max-width: none;
  }
  body.print-management th,
  body.print-management td {
    padding: 7px 8px;
  }
  body.print-management table {
    break-inside: auto;
  }
  body.print-management tr {
    break-inside: avoid;
  }
  body.print-management thead {
    display: table-header-group;
  }
  body.print-management .doc-sign,
  body.print-management .doc-note {
    break-inside: avoid;
  }
  body.print-management .doc-title {
    font-size: 25px;
  }
  body.print-management .doc-sign td {
    height: 55px;
  }
  body.print-management .modal .table-wrap {
    border: 0;
  }
  .treasury-print .panel {
    break-inside: auto !important;
  }
  .treasury-print td .secondary {
    font-size: 8px;
  }
  .treasury-print th {
    font-size: 9px;
  }
  .treasury-print td.num {
    white-space: nowrap;
  }
  .treasury-print button {
    display: none !important;
  }
  .treasury-print a {
    color: inherit;
    text-decoration: none;
  }
}

/* ==========================================================================
   1.4 · 외화 · 자금 캘린더 · 자금수지표 · 계정 계층
   ========================================================================== */
:root {
  --in: #047857;
  --in-soft: #e7f7ef;
  --out: #c2410c;
  --out-soft: #fff1e8;
}
.fx-amt {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
td .secondary .fx-amt,
.card-foot .fx-amt {
  color: var(--blue);
}
.fx-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.fx-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  font-variant-numeric: tabular-nums;
}
.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.row-actions button {
  white-space: nowrap;
}
.acct-code {
  display: inline-block;
}
.acct-code.depth-1 {
  padding-left: 16px;
}
.acct-code.depth-2 {
  padding-left: 32px;
}
.acct-code.depth-3 {
  padding-left: 48px;
}
.acct-code.depth-1::before,
.acct-code.depth-2::before,
.acct-code.depth-3::before {
  content: '└ ';
  color: var(--faint);
}
.journal-table .cur-col {
  min-width: 100px;
}
.journal-table .fx-col {
  min-width: 230px;
  white-space: nowrap;
}
.journal-table .fx-col input {
  width: calc(50% - 3px);
  display: inline-block;
}
.journal-table .fx-col input + input {
  margin-left: 6px;
}
.journal-table input:disabled {
  background: var(--surface-3);
  color: var(--faint);
}
.field-note {
  color: var(--muted);
  font-weight: 400;
}
.rate-form {
  align-items: flex-end;
}
.rate-form > label {
  min-width: 170px;
}
.rate-form .error-text {
  flex-basis: 100%;
}
.month-nav {
  min-width: 34px;
  height: 36px;
  font-size: 18px;
  line-height: 1;
}
.in-text {
  color: var(--in);
}
.out-text {
  color: var(--out);
}

/* ---------- 자금 캘린더 ---------- */
.legend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.legend::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--in);
}
.legend.out::before {
  background: var(--out);
}
.legend.done::before {
  background: var(--faint);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)) minmax(120px, 0.9fr);
  gap: 6px;
}
.cal-head {
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}
.cal-head.sun {
  color: var(--red);
}
.cal-head.sat {
  color: var(--blue);
}
.cal-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 132px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition:
    border-color 0.12s,
    box-shadow 0.12s,
    transform 0.12s;
  min-width: 0;
}
.cal-cell:hover,
.cal-cell:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  outline: none;
}
.cal-cell.blank {
  background: transparent;
  border: 1px dashed var(--line);
  cursor: default;
  box-shadow: none;
}
.cal-cell.weekend {
  background: var(--surface-2);
}
.cal-cell.past {
  background: #fcfcfd;
}
.cal-cell.past .cal-day {
  color: var(--muted);
}
.cal-cell.today {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.cal-cell.today .cal-day {
  background: var(--accent);
  color: #fff;
}
.cal-cell.short {
  background: var(--red-soft);
  border-color: #fecaca;
}
.cal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.cal-day {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}
.cal-cell.sun .cal-day {
  color: var(--red);
}
.cal-cell.sat .cal-day {
  color: var(--blue);
}
.cal-count {
  font-size: 11px;
  color: var(--muted);
}
.cal-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cal-flow .in,
.cal-week .in,
.cal-actual .in {
  color: var(--in);
}
.cal-flow .out,
.cal-week .out,
.cal-actual .out {
  color: var(--out);
}
.cal-chips {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.cal-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 6px;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 2px 6px;
  border: 0;
  border-left: 3px solid var(--in);
  border-radius: 5px;
  background: var(--in-soft);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: none;
  text-align: left;
}
.cal-chip.out {
  border-left-color: var(--out);
  background: var(--out-soft);
}
.cal-chip.done {
  border-left-color: var(--faint);
  background: var(--surface-3);
  color: var(--muted);
}
.cal-chip:hover {
  filter: brightness(0.97);
  background-color: inherit;
}
.cal-chip .chip-name {
  flex: 1 1 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.cal-chip b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  flex-shrink: 0;
}
.cal-more {
  font-size: 11px;
  color: var(--muted);
  padding-left: 4px;
}
.cal-actual {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cal-bal {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px;
  padding-top: 5px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.cal-bal small {
  color: var(--muted);
  font-size: 10.5px;
}
.cal-bal.negative b,
.cal-week b.negative {
  color: var(--red);
}
.cal-week {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.cal-week > div {
  display: flex;
  flex-direction: column;
}
.cal-week small {
  color: var(--accent-ink);
  font-size: 10.5px;
  opacity: 0.8;
}
.cal-week span,
.cal-week b {
  font-weight: 700;
}
.cal-week-head {
  color: var(--accent-ink);
}
.cat-sum-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.cat-sum h3 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 10px;
  font-size: 13.5px;
}
.cat-sum.in h3 b {
  color: var(--in);
}
.cat-sum.out h3 b {
  color: var(--out);
}
.cat-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) minmax(90px, auto);
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.cat-row.zero {
  color: var(--faint);
}
.cat-name {
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-bar {
  height: 7px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
}
.cat-bar i {
  display: block;
  height: 100%;
  background: var(--in);
  border-radius: 99px;
}
.cat-sum.out .cat-bar i {
  background: var(--out);
}
.cat-row .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- 자금수지표 ---------- */
.mx-wrap {
  max-height: calc(100vh - 140px);
}
.mx-table {
  font-size: 12px;
  border-collapse: separate;
  border-spacing: 0;
}
.mx-table th,
.mx-table td {
  padding: 6px 8px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.mx-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: right;
}
.mx-table .mx-label {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 190px;
  max-width: 260px;
  text-align: left;
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
  border-right: 1px solid var(--line-2);
  white-space: normal;
}
.mx-table thead .mx-label {
  z-index: 3;
  background: var(--surface-2);
}
.mx-table td.weekend,
.mx-table th.weekend {
  background: #fafafc;
}
.mx-table thead th.sun {
  color: var(--red);
}
.mx-table thead th.sat {
  color: var(--blue);
}
.mx-table th.today {
  color: var(--accent);
}
.mx-table .mx-total {
  background: var(--surface-2);
  font-weight: 700;
  border-left: 1px solid var(--line-2);
}
.mx-table tr.mx-section th,
.mx-table tr.mx-section td {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
}
.mx-table tr.mx-bank th {
  padding-left: 22px;
  color: var(--muted);
  font-weight: 500;
}
.mx-table tr.mx-bank td {
  color: var(--muted);
}
.mx-table tr.mx-subtotal th,
.mx-table tr.mx-subtotal td {
  background: var(--surface-3);
  font-weight: 700;
  border-top: 1px solid var(--line-2);
}
.mx-table tr.mx-net th,
.mx-table tr.mx-net td {
  font-weight: 700;
}
.mx-table tr.mx-actual th {
  color: var(--muted);
  font-weight: 500;
}
.mx-table tr.mx-balance th,
.mx-table tr.mx-balance td {
  background: #f7f7ff;
  font-weight: 700;
}
.mx-table tr.mx-end th,
.mx-table tr.mx-end td {
  border-top: 2px solid var(--ink-2);
}
.mx-table td.negative {
  color: var(--red);
}
tbody tr.mx-section:hover td,
tbody tr.mx-subtotal:hover td {
  background: inherit;
}

@media (max-width: 1280px) {
  .cal-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .cal-week,
  .cal-week-head {
    display: none;
  }
}
@media (max-width: 860px) {
  .cal-grid {
    grid-template-columns: 1fr;
  }
  .cal-head,
  .cal-cell.blank {
    display: none;
  }
  .cal-cell {
    min-height: 0;
  }
  .cal-cell:not(.has-plan):not(.today) .cal-chips {
    display: none;
  }
  .cat-sum-grid {
    grid-template-columns: 1fr;
  }
}
@media print {
  .treasury-print .cal-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr)) 90px;
    gap: 2px;
  }
  .treasury-print .cal-cell {
    min-height: 90px;
    padding: 3px;
    break-inside: avoid;
  }
  .treasury-print .mx-table th,
  .treasury-print .mx-table td {
    padding: 2px 3px;
    font-size: 7px;
  }
  .treasury-print .mx-wrap {
    max-height: none;
  }
}

/* ---------- 언어 선택 · 기타 ---------- */
.lang-select {
  width: auto;
  height: 32px;
  padding: 0 28px 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  background-color: var(--surface-2);
}
.auth-lang {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.auth-main {
  position: relative;
}
[data-lang='vi'] .cal-chip .chip-name {
  flex-basis: 80px;
}

.sidebar nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.bar-label small {
  display: block;
  font-size: 10px;
  opacity: 0.7;
}

/* 캘린더: 예상 잔액은 라벨 한 줄 + 금액 한 줄 */
.cal-bal {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.cal-bal small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cal-bal b {
  text-align: right;
}
.cal-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--surface-3);
  font-weight: 700;
}

/* 일반 분개장 */
.journal-book td {
  padding-top: 7px;
  padding-bottom: 7px;
  vertical-align: top;
}
.journal-book tr.jb-first td {
  border-top: 1px solid var(--line-2);
}
.journal-book tr.jb-cont td {
  border-top: 0;
}
.journal-book tbody tr td {
  border-bottom: 0;
}

/* ==========================================================================
   1.5 · 디자인 개선 (기존 인디고 색감 유지)
   참고한 원칙: 명확한 위계, 인지 부하 감소, 한 가지 강조색, 넉넉한 여백,
   표 숫자 정렬(tabular numerals), 키보드 초점 표시(WCAG 2.2 · 2.4.7)
   ========================================================================== */
:root {
  --sidebar-w: 264px;
  --nav-h: 34px;
  --row-h: 40px;
  --radius: 12px;
  --ring: 0 0 0 3px var(--accent-ring);
  --font-latin:
    'Segoe UI Variable Text', 'Segoe UI', Inter, Roboto, 'Helvetica Neue', 'Noto Sans', Arial, 'Pretendard Variable',
    Pretendard, 'Malgun Gothic', sans-serif;
}
/* 베트남어·영어: 성조 부호가 완전한 라틴 글꼴을 먼저 사용 */
html:lang(vi),
html:lang(en) {
  font-family: var(--font-latin);
}
html:lang(vi) body,
html:lang(en) body {
  letter-spacing: -0.005em;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: none;
}
.num,
td.num,
th.num,
.card-value,
.big-num {
  font-variant-numeric: tabular-nums;
}

/* ---------- 사이드바: 로고 · 2단 메뉴 ---------- */
.sidebar {
  padding: 16px 12px 10px;
  gap: 4px;
}
.brand {
  gap: 12px;
  padding: 4px 8px 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.brand-logo {
  width: 84px;
  height: auto;
  flex-shrink: 0;
  display: block;
}
.brand-text strong {
  font-size: 13.5px;
  letter-spacing: 0.02em;
}
.brand-text small {
  font-size: 11px;
}
.sidebar nav {
  padding-top: 4px;
}
.nav-item,
.nav-head {
  width: 100%;
  height: var(--nav-h);
  justify-content: flex-start;
  gap: 10px;
  padding: 0 10px;
  margin: 1px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 550;
  text-align: left;
}
.nav-head span,
.nav-item span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-head .icon,
.nav-item .icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--faint);
}
.nav-head:hover,
.nav-item:hover {
  background: var(--surface-3);
  color: var(--ink);
}
.nav-head > .icon:last-child {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}
.nav-head[aria-expanded='true'] > .icon:last-child {
  transform: rotate(90deg);
}
.nav-section.current > .nav-head {
  color: var(--ink);
  font-weight: 700;
}
.nav-section.current > .nav-head > .icon:first-child {
  color: var(--accent);
}
.nav-children {
  position: relative;
  margin: 2px 0 6px 18px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.nav-children[hidden] {
  display: none;
}
.nav-item.nav-sub {
  height: 31px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.nav-item.nav-sub:hover {
  color: var(--ink);
}
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 650;
}
.nav-item.nav-sub.active::before {
  content: '';
  position: absolute;
  left: -1px;
  width: 3px;
  height: 18px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.nav-system {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.nav-caption {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--faint);
  padding: 2px 10px 4px;
  text-transform: uppercase;
}

/* ---------- 상단 바 ---------- */
.topbar {
  height: 56px;
  padding: 0 28px;
}
.lang-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  gap: 0;
  font-weight: 500;
}
.lang-wrap > .icon {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}
.lang-wrap .lang-select {
  padding-left: 30px;
  min-width: 132px;
}
.crumb-group {
  font-weight: 500;
}

/* ---------- 본문 머리글 · 탭 ---------- */
.content {
  padding: 24px 28px 36px;
}
.page-head {
  margin-bottom: 18px;
  align-items: center;
}
.page-head h1 {
  font-size: 22px;
  letter-spacing: -0.025em;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
}
.view-tabs {
  margin-bottom: 14px;
}

/* ---------- 카드 · 패널 ---------- */
.card {
  padding: 16px 18px;
}
.card-value {
  font-size: 23px;
  margin: 8px 0 2px;
}
.panel-head {
  padding: 14px 18px;
}
.panel-head h2 {
  font-size: 15px;
  letter-spacing: -0.01em;
}
.big-num {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}

/* ---------- 표: 40px 행, 머리글 고정, 숫자 오른쪽 정렬 ---------- */
th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px 14px;
  font-size: 11.5px;
  letter-spacing: 0.01em;
}
td {
  padding: 9px 14px;
  height: var(--row-h);
}
td.center,
th.center {
  text-align: center;
}
tbody tr:hover td {
  background: #f7f8ff;
}
.table-wrap {
  max-height: none;
}
.wide-table {
  overflow-x: auto;
}
table.monthly {
  min-width: 1180px;
}
table.monthly td,
table.monthly th {
  padding: 8px 10px;
  font-size: 12.5px;
}
.sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface);
  min-width: 220px;
}
th.sticky-col {
  z-index: 3;
  background: var(--surface-2);
}
.total-col {
  background: var(--surface-2);
  font-weight: 700;
}
tr.stmt-group td {
  font-weight: 700;
  background: var(--surface-2);
}
tr.stmt-subtotal td {
  font-weight: 700;
  border-top: 1px solid var(--line-2);
}
tr.stmt-net td {
  font-weight: 800;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
tr.stmt-account td:first-child {
  padding-left: 28px;
  color: var(--ink-2);
}
.indent {
  padding-left: 14px;
}
table.daybook th,
table.trial th {
  text-align: center;
}
table.daybook td.center,
table.trial td:nth-child(3) {
  background: var(--surface-2);
  font-weight: 600;
  white-space: nowrap;
}
table.line-table td {
  padding: 6px 8px;
  height: auto;
}
table.line-table input,
table.line-table select {
  height: 34px;
}

/* ---------- 새 구성 요소 ---------- */
.quick-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.quick-card {
  height: auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius);
  text-align: left;
  white-space: normal;
  box-shadow: var(--shadow-sm);
}
.quick-card strong {
  font-size: 15px;
}
.quick-card span:last-child {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.quick-card:hover {
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.quick-icon.green {
  background: var(--green-soft);
  color: var(--green);
}
.quick-icon.amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.quick-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.segmented label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.segmented label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.segmented input {
  width: auto;
  height: auto;
}
.inline-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ack-box {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ack-box label {
  font-weight: 500;
}
.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.detail-head h3 {
  display: inline;
  margin: 0 10px 0 0;
}
dl.detail-list {
  display: grid;
  grid-template-columns: minmax(140px, max-content) 1fr;
  gap: 6px 18px;
  margin: 12px 0 18px;
  font-size: 13px;
}
dl.detail-list dt {
  color: var(--muted);
}
dl.detail-list dd {
  margin: 0;
}
.empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 56px 16px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
}
.empty-state .icon {
  width: 28px;
  height: 28px;
  color: var(--faint);
}
fieldset + fieldset {
  margin-top: 12px;
}
.modal fieldset legend {
  font-size: 12.5px;
}

/* ---------- 반응형 ---------- */
@media (max-width: 1100px) {
  :root {
    --sidebar-w: 236px;
  }
  .quick-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .topbar {
    padding: 0 14px;
  }
  .content {
    padding: 18px 14px 28px;
  }
  .lang-wrap .lang-select {
    min-width: 0;
  }
  dl.detail-list {
    grid-template-columns: 1fr;
  }
}
@media print {
  .brand-logo {
    width: 72px;
  }
  th {
    position: static;
  }
  .sticky-col {
    position: static;
  }
}
.auth-art .brand-logo.auth-logo {
  width: 112px;
  border-bottom: 0;
}
.auth-art .brand {
  border-bottom: 0;
}
/* 인쇄: 로고 머리글 */
.print-brand {
  display: none;
}
.doc-company {
  display: flex;
  align-items: center;
  gap: 12px;
}
.doc-logo {
  width: 90px;
  height: auto;
}
html:lang(vi) th,
html:lang(en) th {
  white-space: normal;
  line-height: 1.3;
}
@media print {
  .print-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 1.5px solid #111;
    font-size: 12px;
  }
  .print-brand img {
    width: 84px;
    height: auto;
  }
}

/* ==========================================================================
   1.5.1 · 다크 사이드바 콘솔
   - 한국어 글꼴: a고딕16 (AsiaSoft KoreanGD16R, 사용자가 제공한 글꼴 파일)
   - 어두운 남색 사이드바 + 흰 로고, 메뉴 번호(1~9, 2-1 형식)
   - 위 명령 바(메뉴 검색 Ctrl+K), 화면 제목 띠, 대시보드 요약 띠
   - 강조색은 기존 인디고(#4f46e5) 유지
   ========================================================================== */
/* a고딕16은 한글 · 한자 · 기본 영문 · 숫자에만 씁니다.
   - 가운뎃점(·) · 글머리표(•) · 화살표는 이 글꼴에서 전각 폭이라 다음 글꼴(라틴)을 씁니다.
   - 베트남어 성조 문자(ề · ợ · đ 등)가 없으므로 라틴 확장 영역도 다음 글꼴로 넘깁니다. */
@font-face {
  font-family: 'A Gothic16';
  src:
    local('a고딕16'),
    local('KoreanGD16R'),
    local('KoreanGD16-R'),
    url('/fonts/a-gothic16.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-007E, U+1100-11FF, U+3000-303F, U+3130-318F, U+3200-33FF, U+4E00-9FFF, U+AC00-D7AF, U+F900-FAFF, U+FF01-FF60;
}
:root {
  --bg: #f2f4f8;
  --surface-2: #f7f8fb;
  --line: #e3e7ee;
  --nav-bg: #0c1322;
  --nav-bg-2: #121b30;
  --nav-ink: #c2cadb;
  --nav-dim: #7a879f;
  --nav-line: rgba(148, 163, 184, 0.14);
  --nav-hover: rgba(148, 163, 184, 0.1);
  --nav-active: rgba(99, 102, 241, 0.24);
  --nav-accent: #818cf8;
  --sidebar-w: 268px;
  --topbar-h: 60px;
  --font-ko:
    'A Gothic16', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic',
    '맑은 고딕', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Noto Sans CJK KR', system-ui, sans-serif;
  /* 베트남어·영어: 성조 부호가 있는 라틴 글꼴이 먼저, 한글(사용자 입력 이름 등)은 a고딕16 */
  --font-latin:
    'Segoe UI Variable Text', 'Segoe UI', Inter, Roboto, 'Helvetica Neue', 'Noto Sans', Arial, 'A Gothic16',
    'Pretendard Variable', Pretendard, 'Malgun Gothic', sans-serif;
  font-family: var(--font-ko);
}
html:lang(vi),
html:lang(en) {
  font-family: var(--font-latin);
}
/* a고딕16은 한 가지 굵기(보통)만 있고 획이 이미 두꺼우므로, 한국어 화면에서는 굵게 합성되는 정도를 낮춥니다. */
html:lang(ko) body {
  letter-spacing: -0.01em;
}
html:lang(ko) h1,
html:lang(ko) .auth-art h1,
html:lang(ko) .auth-form h2 {
  letter-spacing: -0.02em;
}

/* ---------- 레이아웃 ---------- */
.shell {
  background: linear-gradient(90deg, var(--nav-bg) var(--sidebar-w), transparent var(--sidebar-w));
}
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.content {
  flex: 1;
  width: 100%;
  max-width: 1664px;
  padding: 24px 32px 36px;
}

/* ---------- 사이드바 ---------- */
.sidebar {
  padding: 18px 12px 12px;
  gap: 2px;
  color: var(--nav-ink);
  border-right: 0;
  background:
    radial-gradient(140% 50% at 0% 0%, rgba(79, 70, 229, 0.2) 0%, transparent 62%),
    linear-gradient(180deg, var(--nav-bg-2) 0%, var(--nav-bg) 100%);
}
.sidebar .brand {
  gap: 12px;
  padding: 6px 10px 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--nav-line);
}
.sidebar .brand-logo {
  width: 90px;
}
.sidebar .brand-text strong {
  color: #fff;
  font-size: 13.5px;
  letter-spacing: 0.04em;
}
.sidebar .brand-text small {
  color: var(--nav-dim);
}
.sidebar nav {
  scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
}
.sidebar ::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.28);
}
.sidebar .nav-item,
.sidebar .nav-head {
  height: 34px;
  gap: 9px;
  padding: 0 10px;
  color: var(--nav-ink);
  font-weight: 500;
}
.sidebar .nav-item .icon,
.sidebar .nav-head .icon {
  color: var(--nav-dim);
}
.sidebar .nav-item:hover,
.sidebar .nav-head:hover {
  background: var(--nav-hover);
  color: #fff;
}
.sidebar .nav-item:hover .icon,
.sidebar .nav-head:hover .icon {
  color: #cbd5e1;
}
.sidebar .nav-item:focus-visible,
.sidebar .nav-head:focus-visible {
  outline-color: var(--nav-accent);
}
/* 메뉴 번호 */
.nav-no {
  flex: none;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.nav-head .nav-no,
.nav-top .nav-no {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.14);
  color: #aeb8cc;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.nav-sub .nav-no {
  min-width: 30px;
  color: var(--nav-dim);
  font-size: 11.5px;
  font-weight: 600;
  text-align: left;
}
.sidebar .nav-section.current > .nav-head {
  color: #fff;
  font-weight: 600;
}
.sidebar .nav-section.current > .nav-head > .icon:first-child,
.sidebar .nav-top.active .icon {
  color: #a5b4fc;
}
.sidebar .nav-section.current > .nav-head .nav-no,
.sidebar .nav-top.active .nav-no {
  background: var(--accent);
  color: #fff;
}
.sidebar .nav-children {
  margin: 2px 0 8px 19px;
  padding-left: 9px;
  border-left: 1px solid var(--nav-line);
}
.sidebar .nav-item.nav-sub {
  height: 30px;
  padding: 0 10px 0 8px;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #a9b2c5;
}
.sidebar .nav-item.nav-sub:hover {
  color: #fff;
}
.sidebar .nav-item.active {
  background: var(--nav-active);
  color: #fff;
  font-weight: 600;
}
.sidebar .nav-item.nav-sub.active .nav-no {
  color: #c7d2fe;
}
.sidebar .nav-item.nav-sub.active::before {
  left: -1px;
  width: 3px;
  height: 20px;
  background: var(--nav-accent);
}
.sidebar .nav-item.active .icon {
  color: #a5b4fc;
}
.sidebar .nav-system {
  border-top: 1px solid var(--nav-line);
  padding-top: 10px;
  margin-top: 4px;
}
.sidebar .nav-caption {
  color: #5c6982;
}

/* ---------- 위 명령 바 ---------- */
.topbar {
  height: var(--topbar-h);
  padding: 0 28px;
  gap: 18px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  flex: 0 1 auto;
  min-width: 0;
  gap: 8px;
}
.crumb-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.breadcrumb strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.breadcrumb strong > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crumb-no {
  flex: none;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.crumb-group .crumb-no {
  background: var(--surface-3);
  color: var(--muted);
}
.cmd {
  position: relative;
  flex: 1 1 360px;
  max-width: 520px;
  min-width: 0;
  margin: 0 auto;
}
.cmd-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: var(--faint);
  pointer-events: none;
}
.cmd-icon .icon {
  width: 16px;
  height: 16px;
}
.cmd input {
  height: 38px;
  padding: 0 68px 0 38px;
  background: var(--surface-3);
  border-color: transparent;
  border-radius: 10px;
}
.cmd input:hover {
  border-color: var(--line-2);
}
.cmd input:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.cmd input::-webkit-search-cancel-button {
  display: none;
}
.cmd kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font: 600 10.5px/1.2 var(--font-latin);
  pointer-events: none;
}
.cmd input:focus ~ kbd {
  display: none;
}
.cmd-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 45;
  max-height: min(470px, 70vh);
  overflow: auto;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow:
    0 20px 44px -14px rgba(15, 23, 42, 0.3),
    0 2px 6px rgba(15, 23, 42, 0.06);
}
.cmd-item {
  transition: none;
  width: 100%;
  height: 40px;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-weight: 500;
  text-align: left;
}
.cmd-item .icon {
  width: 16px;
  height: 16px;
  color: var(--faint);
}
.cmd-item .nav-no {
  min-width: 32px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.cmd-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cmd-item small {
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.cmd-item:hover,
.cmd-item.active {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-ink);
}
.cmd-item.active .icon {
  color: var(--accent);
}
.cmd-empty {
  padding: 14px 12px;
  color: var(--muted);
  font-size: 13px;
}
.user-block {
  flex: none;
  gap: 8px;
}
.lang-wrap > .icon {
  top: 50%;
  transform: translateY(-50%);
}
.sidebar .nav-system .nav-item {
  height: 32px;
}

/* ---------- 화면 제목 띠 ---------- */
.page-band {
  padding: 22px 32px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.page-band.has-tabs {
  padding-bottom: 0;
}
.page-band .page-head {
  max-width: 1600px;
  margin: 0;
  align-items: flex-end;
}
.page-band.has-tabs .page-head {
  margin-bottom: 12px;
}
.page-band h1 {
  margin: 0 0 4px;
  font-size: 23px;
}
.page-band .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.page-band .eyebrow b {
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.page-band .view-tabs {
  display: flex;
  gap: 22px;
  padding: 0;
  margin: 0;
  background: none;
  border-radius: 0;
}
.page-band .view-tabs .tab {
  height: 40px;
  padding: 0 2px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: none;
  box-shadow: none;
  color: var(--muted);
}
.page-band .view-tabs .tab:hover {
  color: var(--ink);
  background: none;
}
.page-band .view-tabs .tab.active {
  color: var(--accent-ink);
  border-bottom-color: var(--accent);
  background: none;
  box-shadow: none;
}

/* ---------- 대시보드 요약 띠 ---------- */
.dash-band {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 22px 26px 20px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(129, 140, 248, 0.34) 0%, transparent 55%),
    radial-gradient(60% 120% at 0% 100%, rgba(79, 70, 229, 0.32) 0%, transparent 60%),
    linear-gradient(135deg, #1c2448 0%, #131b35 55%, #0e1528 100%);
  box-shadow: 0 20px 40px -22px rgba(15, 23, 42, 0.6);
}
.dash-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse at 85% 10%, #000 0%, transparent 65%);
  mask-image: radial-gradient(ellipse at 85% 10%, #000 0%, transparent 65%);
  pointer-events: none;
}
.dash-band > * {
  position: relative;
}
.band-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px 20px;
}
.band-kicker {
  display: block;
  color: #a5b4fc;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.band-title h2 {
  margin: 4px 0 6px;
  color: #fff;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.band-title p {
  margin: 0;
  color: #aeb8d0;
  font-size: 12.5px;
  line-height: 1.5;
}
.band-title p b {
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.band-sep {
  margin: 0 8px;
  color: #56627f;
}
.dash-band .period {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  color-scheme: dark;
}
.dash-band .period select,
.dash-band .period input {
  color: #fff;
  background-color: transparent;
}
.dash-band .period select {
  background-color: rgba(255, 255, 255, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c7d2fe' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.dash-band .period option {
  color: var(--ink);
  background: var(--surface);
}
.dash-band .period > span {
  color: #6b7794;
}
.dash-band .period button {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.dash-band .period button:hover {
  background: #e0e7ff;
}
.band-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.band-kpi {
  min-width: 0;
  padding: 16px 20px 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.band-kpi:first-child {
  padding-left: 0;
  border-left: 0;
}
.band-kpi-head {
  display: flex;
  align-items: center;
  min-height: 36px;
  gap: 8px;
  color: #c3cadd;
  font-size: 12.5px;
  font-weight: 600;
}
.band-kpi-icon {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #c7d2fe;
}
.band-kpi.lead .band-kpi-icon {
  background: var(--accent);
  color: #fff;
}
.band-kpi-icon .icon {
  width: 15px;
  height: 15px;
}
.band-kpi strong {
  display: block;
  margin: 10px 0 3px;
  overflow: hidden;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.band-kpi strong.negative {
  color: #fca5a5;
}
.band-kpi small {
  display: block;
  color: #95a1bd;
  font-size: 12px;
}
.band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.band-btn {
  height: 34px;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  color: #e3e8f4;
}
.band-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}
.band-btn.primary {
  background: var(--accent);
  border-color: #6366f1;
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(99, 102, 241, 0.9);
}
.band-btn.primary:hover {
  background: #5b53f3;
}

/* ---------- 카드 · 패널 · 표 · 창 ---------- */
.panel,
.card,
.check-card {
  border-radius: 14px;
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.panel-head {
  padding: 15px 20px;
}
.card.hero,
.card.dark {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(129, 140, 248, 0.35) 0%, transparent 55%),
    linear-gradient(135deg, #1c2448 0%, #0f1629 100%);
  box-shadow: 0 14px 28px -16px rgba(15, 23, 42, 0.6);
}
th {
  background: #f6f7fa;
  color: #5b6475;
}
tbody tr:hover td {
  background: #f5f6ff;
}
.toolbar .period {
  box-shadow: none;
}
.notice {
  border-radius: 12px;
}
.modal {
  border-radius: 18px;
}
.footer-note {
  border-top-color: var(--line);
}

/* ---------- 로그인 화면: 사이드바와 같은 남색 ---------- */
.auth-art {
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(79, 70, 229, 0.55) 0%, transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(129, 140, 248, 0.28) 0%, transparent 60%),
    linear-gradient(160deg, #1a2244 0%, #0c1322 100%);
}
.auth-art h1 {
  margin-bottom: 0;
}
.auth-form .eyebrow {
  margin-bottom: 4px;
}

/* ---------- 반응형 ---------- */
@media (max-width: 1280px) {
  .user-block .pill {
    display: none;
  }
  .user-name {
    display: none;
  }
  .user-chip {
    padding: 3px;
  }
}
@media (max-width: 1100px) {
  :root {
    --sidebar-w: 244px;
  }
  .band-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .band-kpi:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .band-kpi:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 12px;
  }
  .content {
    padding: 22px 22px 32px;
  }
  .page-band {
    padding-left: 22px;
    padding-right: 22px;
  }
  .topbar {
    padding: 0 22px;
  }
}
@media (max-width: 860px) {
  .shell {
    background: none;
  }
  .sidebar {
    width: 280px;
  }
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }
  .breadcrumb {
    flex: none;
  }
  .breadcrumb > strong,
  .breadcrumb .crumb-group,
  .breadcrumb .crumb-sep {
    display: none;
  }
  .cmd {
    flex: 1 1 auto;
    max-width: none;
    margin: 0;
  }
  .cmd kbd {
    display: none;
  }
  .cmd input {
    padding-right: 12px;
  }
  .page-band {
    padding: 18px 16px 16px;
  }
  .page-band.has-tabs {
    padding-bottom: 0;
  }
  .page-band h1 {
    font-size: 21px;
  }
  .page-band .page-head {
    align-items: stretch;
  }
  .content {
    padding: 18px 16px 28px;
  }
  .dash-band {
    padding: 18px 18px 16px;
    border-radius: 16px;
  }
  .dash-band .period {
    width: 100%;
  }
  /* 좁은 화면: 표를 찌그러뜨리지 않고 가로로 밀어 봅니다. */
  .panel > .table-wrap > table {
    min-width: 640px;
  }
}
@media (max-width: 600px) {
  .user-chip {
    display: none;
  }
  .topbar .lang-wrap .lang-select {
    width: 38px;
    min-width: 0;
    padding: 0;
    color: transparent;
    background-image: none;
  }
  .topbar .lang-wrap .lang-select option {
    color: var(--ink);
  }
  .topbar .lang-wrap > .icon {
    left: 11px;
  }
  .band-kpis {
    grid-template-columns: 1fr;
  }
  .band-kpi,
  .band-kpi:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .band-kpi + .band-kpi {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 12px;
  }
  .band-kpi strong {
    font-size: 23px;
  }
}
@media print {
  .page-band {
    padding: 0 0 10px;
    border: 0;
    background: none;
  }
  .page-band .eyebrow,
  .page-band .subtitle,
  .page-band .view-tabs,
  .cmd {
    display: none !important;
  }
  .dash-band {
    color: #111827;
    background: #fff;
    border: 1px solid #c3c8d5;
    box-shadow: none;
  }
  .dash-band::before,
  .band-actions,
  .dash-band .period {
    display: none !important;
  }
  .band-title h2,
  .band-kpi strong,
  .band-title p b {
    color: #111827;
  }
  .band-kpi-head,
  .band-kpi small,
  .band-title p,
  .band-kicker {
    color: #4b5563;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.doc-link {
  white-space: nowrap;
}
