:root {
  --bg: #edf3f5;
  --surface: #ffffff;
  --surface-soft: #f6fafb;
  --ink: #12212b;
  --muted: #657782;
  --line: #dbe6ea;
  --primary: #006d77;
  --primary-dark: #004f57;
  --good: #237a57;
  --warn: #9a5b00;
  --bad: #b42318;
  --bad-dark: #8f1d14;
  --shadow: 0 18px 45px rgba(22, 44, 54, 0.1);
  --shadow-soft: 0 8px 24px rgba(22, 44, 54, 0.07);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(0, 109, 119, 0.08), transparent 34%),
    linear-gradient(180deg, #f7fbfc 0, var(--bg) 260px);
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.7; }
:focus-visible { outline: 3px solid #f0b429; outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 14px; border-radius: 6px; background: #fff; color: var(--primary-dark); font-weight: 700; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
h2 { margin-bottom: 0; font-size: 1.1rem; }

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  width: min(440px, 100%);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-card form, .stack { display: grid; gap: 16px; }
.section-gap { height: 18px; }
.legal-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; font-size: 0.9rem; }
.legal-links a, .sidebar-legal a { text-underline-offset: 3px; }
.sidebar-legal { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.78rem; color: #c6dadd; }
.legal-page { min-height: 100vh; padding: 24px; }
.legal-shell { width: min(900px, 100%); margin: 0 auto; }
.legal-back { display: inline-flex; margin-bottom: 14px; background: var(--surface); }
.legal-content { padding: clamp(20px, 4vw, 38px); }
.legal-content > h1 { margin-bottom: 22px; }
.legal-content section { padding: 20px 0; border-top: 1px solid var(--line); }
.legal-content section h2 { margin-bottom: 10px; }
.legal-content section p { line-height: 1.65; }
.draft-notice { margin-bottom: 24px; padding: 14px 16px; border: 1px solid #e7b44a; border-radius: 8px; background: #fff6d9; color: #604400; line-height: 1.5; }
.legal-placeholder { padding: 1px 4px; background: #fff0b8; color: #654700; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.print-actions { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.personal-data-note { margin-top: 18px; }

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 24px 166px;
  background: linear-gradient(180deg, #153b43 0%, #102d34 100%);
  color: #eef9fb;
  overscroll-behavior: contain;
}

.brand { display: flex; gap: 10px; align-items: center; }
.brand-logo-shell {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 82px;
  min-height: 42px;
  padding: 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.16);
}
.brand-logo { display: block; width: 100%; height: auto; object-fit: contain; }

.brand div:last-child { min-width: 0; }
.brand strong { display: block; font-size: 0.98rem; letter-spacing: 0.01em; }
.brand span, .profile-card span { display: block; margin-top: 3px; color: #b8d1d6; font-size: 0.78rem; line-height: 1.3; }
.mobile-menu-button { display: none; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 8px; background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 700; }
.nav-list { display: grid; gap: 8px; }
.nav-item {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #d9eff3;
  text-decoration: none;
}
.nav-subitem {
  padding-left: 22px;
}
.nav-dropdown {
  display: grid;
  gap: 8px;
}
.nav-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(238, 249, 251, 0.14);
  border-radius: 8px;
  color: #d9eff3;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after {
  content: "v";
  color: #a9c6cc;
  font-size: 0.78rem;
}
.nav-dropdown[open] summary {
  background: rgba(238, 249, 251, 0.08);
}
.nav-dropdown[open] summary::after {
  transform: rotate(180deg);
}
.nav-sublist {
  display: grid;
  gap: 8px;
}
.nav-item.active { background: rgba(238, 249, 251, 0.15); border-color: rgba(238, 249, 251, 0.28); color: #fff; box-shadow: inset 3px 0 0 #67d4ca; }
.nav-item:hover { background: rgba(238, 249, 251, 0.1); border-color: rgba(238, 249, 251, 0.18); }
.profile-card {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  gap: 10px;
  width: 232px;
  padding: 14px;
  border: 1px solid rgba(238, 249, 251, 0.18);
  border-radius: 8px;
  background: #102a30;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}
.profile-card .ghost-button {
  background: #eef9fb;
  color: #15333a;
}

.content { width: 100%; max-width: 1600px; min-width: 0; margin: 0 auto; padding: 30px; }
.topbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(101, 119, 130, 0.16); }
.eyebrow, .muted, .metric span, .metric small { color: var(--muted); }
.eyebrow { margin: 0 0 5px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.status-pill, .badge { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; background: #e6f4f1; color: var(--primary-dark); font-size: 0.86rem; font-weight: 700; white-space: nowrap; }
.badge.warn { background: #fff4df; color: var(--warn); }
.badge.good { background: #e9f7ef; color: var(--good); }
.badge.bad { background: #fff0ee; color: var(--bad); }

.primary-button, .ghost-button, .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 700;
  text-decoration: none;
}
.primary-button { background: var(--primary); color: white; }
.primary-button:hover { background: var(--primary-dark); }
.ghost-button { background: var(--surface); border-color: var(--line); color: var(--ink); }
.text-button { background: transparent; color: var(--primary); padding-inline: 6px; }
.danger-button { background: var(--bad); color: #fff; }
.danger-button:hover { background: var(--bad-dark); }

.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric, .panel, .form-panel { border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.94); box-shadow: var(--shadow); }
.metric { display: grid; gap: 8px; align-content: start; min-height: 128px; padding: 18px; }
.metric strong { font-size: 1.65rem; }
.metric.alert { border-color: #f2d08b; }
.metric.highlight { border-color: rgba(0, 109, 119, 0.35); background: linear-gradient(145deg, #ffffff, #eef9f8); }
.metric.highlight strong { color: var(--primary-dark); }
.dashboard-layout, .admin-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; }
.tariff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tariff-grid table { min-width: 360px; }
.panel, .form-panel { padding: 20px; box-shadow: var(--shadow-soft); }
.subpanel { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.panel-header, .form-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.detail-list { display: grid; gap: 12px; }
.detail-item { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.detail-item:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-item span { color: var(--muted); }
.reading-review-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr); gap: 22px; align-items: start; }
.reading-review-form { padding-bottom: 72px; }
.reading-value-item { align-items: center; }
.reported-reading { display: grid; justify-items: end; gap: 8px; }
.reading-correction summary { color: var(--primary); font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.reading-correction[open] summary { margin-bottom: 8px; }
.reading-value-control { display: flex; align-items: center; gap: 8px; width: min(190px, 100%); }
.reading-value-control input { text-align: right; font-size: 1.05rem; font-weight: 800; }
.reading-value-control strong { color: var(--ink); }
.cost-preview { margin-top: 22px; padding: 18px; border: 1px solid rgba(0, 109, 119, 0.25); border-radius: 12px; background: linear-gradient(145deg, #fff, #f0faf9); }
.cost-preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cost-preview-grid > div { display: grid; gap: 6px; padding: 12px; border-radius: 9px; background: rgba(255, 255, 255, 0.82); }
.cost-preview-grid span { color: var(--muted); font-size: 0.82rem; }
.cost-preview-grid strong { font-size: 1.05rem; }
.cost-preview-grid .cost-total { background: #dff2ef; }
.cost-preview-grid .cost-total strong { color: var(--primary-dark); font-size: 1.2rem; }
.review-action-bar {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  padding: 12px 14px;
  border: 1px solid rgba(238, 249, 251, 0.2);
  border-radius: 12px;
  background: #102f36;
  color: #d9eff3;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.review-action-bar .primary-button { flex: 0 0 auto; background: #0b818b; }
.meter-photo-card { display: grid; gap: 8px; color: var(--muted); font-weight: 700; }
.meter-photo-card a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.meter-photo-card img { display: block; width: 100%; max-height: 360px; object-fit: contain; }
.meter-photo-card small { font-weight: 400; }
.empty-photo { display: grid; place-items: center; min-height: 150px; padding: 18px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface-soft); font-weight: 400; }

.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 54px minmax(120px, 1fr) 70px; gap: 12px; align-items: center; }
.bar-track { height: 12px; border-radius: 999px; background: #e3edf0; overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #42a5a1); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 7px; color: #33444d; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
input, select { min-height: 42px; padding: 0 11px; }
input[type="date"] { cursor: pointer; }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; }
textarea { padding: 11px; resize: vertical; }
input[readonly] { background: var(--surface-soft); color: var(--muted); }
.file-field { display: grid; justify-items: start; gap: 7px; color: #33444d; font-weight: 700; }
.compact-file-input {
  width: auto;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 400;
}
.compact-file-input::file-selector-button {
  min-height: 42px;
  margin-right: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.compact-file-input::file-selector-button:hover { border-color: var(--primary); color: var(--primary-dark); }
.selected-file { display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.selected-file span { min-width: 0; color: var(--muted); font-size: 0.84rem; font-weight: 400; overflow-wrap: anywhere; }
.compact-button { min-height: 36px; padding: 0 10px; white-space: nowrap; }
.price-note { margin: 16px 0 0; }
.hint { margin: 0; color: var(--muted); }
.hint.warn { color: var(--bad); font-weight: 700; }
.notification, .success, .error {
  position: relative;
  margin: 0 0 18px;
  padding: 14px 16px 14px 46px;
  border: 1px solid;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: var(--shadow-soft);
}
.notification::before { position: absolute; left: 16px; top: 12px; font-size: 1.25rem; }
.notification.success::before { content: "✓"; }
.notification.error::before { content: "!"; }
.success { background: #e9f7ef; border-color: #bfe5cd; color: var(--good); }
.error { background: #fff0ee; border-color: #f2c4bd; color: var(--bad); }
.upload-status { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid #b8d9dc; border-radius: 8px; background: #eef9f8; color: var(--primary-dark); font-weight: 700; }
.loading-spinner { width: 20px; height: 20px; border: 3px solid #b8d9dc; border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 0.83rem; text-transform: uppercase; }
tbody tr:hover { background: rgba(0, 109, 119, 0.035); }
.customer-link {
  display: inline-grid;
  justify-items: start;
  gap: 5px;
  min-width: 180px;
  padding: 3px 0;
  text-decoration: none;
}
.customer-number {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #c5e4e1;
  border-radius: 999px;
  background: #eaf7f5;
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.customer-name { color: var(--ink); font-size: 1rem; line-height: 1.25; }
.customer-link small { color: var(--muted); font-size: 0.76rem; font-weight: 600; }
.customer-link:hover .customer-name { color: var(--primary); text-decoration: underline; }
.customer-link:hover .customer-number { border-color: var(--primary); background: #dff2ef; }
.customer-list-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 190px) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}
.customer-search input { min-width: 0; }
.list-summary { display: flex; justify-content: flex-end; margin-bottom: 8px; color: var(--muted); font-size: 0.86rem; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 18px; }
.history-tools { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.history-tools form { display: flex; align-items: end; gap: 10px; }
.history-tools label { min-width: 170px; }
.history-tools select { min-width: 110px; }
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.page-link:hover { border-color: var(--primary); color: var(--primary-dark); }
.page-link.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.actions form { margin: 0; }
.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
}
.document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.document-card { min-height: 148px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.document-card strong { display: block; margin-bottom: 8px; }
.document-card p { color: var(--muted); margin-bottom: 16px; }
.document-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.message-history { margin: 14px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.message-history summary { color: var(--primary-dark); font-weight: 700; cursor: pointer; }
.message-history[open] summary { margin-bottom: 12px; }
.message-admin-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.page-actions { justify-content: flex-end; margin-bottom: 12px; }
.danger-zone { padding: 14px; border: 1px solid #efc4bf; border-radius: 9px; background: #fff7f5; }
.danger-zone summary { color: var(--bad); font-weight: 700; cursor: pointer; }
.danger-zone[open] summary { margin-bottom: 14px; }
.admin-grid { grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr); }
.admin-stats { display: grid; gap: 12px; }
.admin-stat { display: flex; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 8px; background: var(--surface-soft); }
.correction-reason { display: grid; gap: 7px; margin-top: 10px; }
.message-list { display: grid; gap: 12px; }
.message-card { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.message-card.global-message { border-color: rgba(0, 109, 119, 0.32); background: linear-gradient(145deg, #ffffff, #eef9f8); }
.message-card p { margin: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-card form { margin: 0; }
.message-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); }
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(0, 109, 119, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(22, 44, 54, .18);
  font-size: 1.25rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.back-to-top:hover { background: var(--primary); color: #fff; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    max-height: none;
    padding: 16px;
  }
  .js-enabled .mobile-menu-button { display: inline-flex; }
  .js-enabled .sidebar:not(.is-open) .nav-list,
  .js-enabled .sidebar:not(.is-open) .profile-card { display: none; }
  .profile-card {
    position: static;
    width: auto;
    margin-top: 0;
  }
  .nav-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-layout, .admin-grid, .document-grid { grid-template-columns: 1fr 1fr; }
  .review-action-bar { right: 16px; width: auto; }
}

@media (max-width: 680px) {
  .legal-page { padding: 12px; }
  .content { padding: 16px; }
  .brand-logo-shell { width: 72px; min-height: 38px; }
  .topbar, .panel-header, .form-footer { align-items: stretch; flex-direction: column; }
  .topbar-actions { justify-content: flex-start; }
  .sidebar {
    gap: 14px;
    padding: 14px 16px;
  }
  .nav-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .nav-item {
    flex: 0 0 auto;
    min-width: auto;
    white-space: nowrap;
  }
  .nav-dropdown {
    flex: 0 0 auto;
    min-width: 148px;
  }
  .nav-dropdown summary {
    white-space: nowrap;
  }
  .nav-sublist {
    margin-top: 8px;
  }
  .nav-subitem {
    padding-left: 12px;
  }
  .profile-card {
    margin-top: 0;
  }
  .summary-grid, .dashboard-layout, .admin-grid, .document-grid, .form-grid { grid-template-columns: 1fr; }
  .reading-review-layout { grid-template-columns: 1fr; }
  .reading-value-item { align-items: stretch; }
  .reported-reading { justify-items: start; width: 100%; }
  .cost-preview-grid { grid-template-columns: 1fr 1fr; }
  .review-action-bar { left: 16px; right: 16px; bottom: 14px; width: auto; }
  .review-action-bar .primary-button { width: 100%; }
  .customer-list-tools { grid-template-columns: 1fr; align-items: stretch; }
  .customer-list-tools .primary-button, .customer-list-tools .ghost-button { width: 100%; }
  .detail-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .bar-row {
    grid-template-columns: 48px minmax(90px, 1fr) 64px;
  }
  .status-pill { white-space: normal; }
  .metric { min-height: 0; }
  .message-footer { align-items: stretch; flex-direction: column; }
  .selected-file { align-items: stretch; flex-direction: column; }
  .selected-file .compact-button { width: 100%; }
  .history-tools, .history-tools form { align-items: stretch; flex-direction: column; }
  .history-tools label { min-width: 0; }
  .back-to-top { right: 16px; bottom: 76px; }
}

@media print {
  body { background: #fff; color: #000; }
  .sidebar, .topbar, .print-actions, .print-only-control, .review-action-bar, .skip-link, .back-to-top { display: none !important; }
  .app-shell { display: block; }
  .content { padding: 0; }
  .panel.personal-data-sheet { break-inside: avoid; margin-bottom: 14px; border: 1px solid #bbb; box-shadow: none; }
  .table-wrap { overflow: visible; }
  a { color: #000; text-decoration: none; }
  body.print-annual-summary .content > * { display: none !important; }
  body.print-annual-summary .content > .annual-print-section { display: block !important; margin: 0; border: 0; box-shadow: none; }
  body.print-annual-summary .annual-print-section table { min-width: 0; }
}

.transfer-list { display: grid; gap: 18px; }
.transfer-card { border-left: 4px solid var(--primary, #16725b); }
.transfer-details { margin-top: 18px; }
.reading-callout {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 16px;
  border: 1px solid #cbded8;
  border-radius: 12px;
  background: #f1f8f6;
}
.reading-callout span { color: var(--muted, #5f6f6b); font-size: .88rem; }
.reading-callout strong { font-size: 1.15rem; }
.transfer-dispute { margin-top: 20px; padding-top: 16px; border-top: 1px solid #dfe9e6; }
.transfer-dispute summary { cursor: pointer; font-weight: 700; }
.transfer-dispute form, .transfer-approval { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
