/* Уралагропрод · Зарплата — интерфейс PWA */
:root {
  --navy: #173f5f;
  --navy-2: #245b7c;
  --blue: #2f75b5;
  --blue-soft: #eaf4fb;
  --ink: #172331;
  --muted: #697786;
  --line: #dfe6eb;
  --surface: #ffffff;
  --canvas: #f3f6f8;
  --green: #18864b;
  --green-soft: #e9f6ee;
  --amber: #d88700;
  --amber-soft: #fff4d9;
  --red: #c43b45;
  --red-soft: #fcebed;
  --purple: #7756a5;
  --shadow-sm: 0 2px 10px rgba(23, 63, 95, .08);
  --shadow-md: 0 12px 40px rgba(23, 63, 95, .14);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body {
  min-height: 100%; margin: 0; color: var(--ink); background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
[hidden] { display: none !important; }

/* Login */
.login-page {
  min-height: 100vh; min-height: 100dvh; position: relative; overflow: hidden;
  display: grid; place-items: center; padding: 28px 18px 70px;
  background:
    radial-gradient(circle at 15% 15%, rgba(255,255,255,.15), transparent 28%),
    linear-gradient(145deg, #102e48 0%, #1b5377 58%, #2d7997 100%);
}
.login-card {
  width: min(100%, 440px); position: relative; z-index: 2; padding: 30px;
  border: 1px solid rgba(255,255,255,.55); border-radius: 28px;
  background: rgba(255,255,255,.97); box-shadow: 0 24px 70px rgba(5, 26, 44, .35);
}
.login-brand { display: flex; align-items: center; gap: 15px; margin-bottom: 28px; }
.company-brand { flex-direction: column; gap: 9px; text-align: center; }
.login-logo {
  width: 146px; height: 146px; object-fit: contain; border-radius: 50%;
  filter: drop-shadow(0 9px 17px rgba(23,63,95,.14));
}
.login-brand h1 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.4px; }
.login-brand p { margin: 0; color: var(--muted); font-size: 13px; }
.login-foot { position: absolute; z-index: 2; bottom: 22px; color: rgba(255,255,255,.75); font-size: 12px; }
.login-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .25; }
.orb-one { width: 280px; height: 280px; top: -100px; right: -70px; background: #85d2e5; }
.orb-two { width: 220px; height: 220px; bottom: -60px; left: -60px; background: #d7e980; }
.stack-lg { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; }
.field > span, .field-label { color: #3c4b58; font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea, .input {
  width: 100%; min-height: 47px; padding: 11px 13px; color: var(--ink); outline: none;
  border: 1.5px solid #d5dfe6; border-radius: 12px; background: #fff; transition: .18s ease;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,117,181,.1);
}
.pin-wrap { position: relative; }
.pin-wrap input { padding-right: 48px; font-size: 20px; letter-spacing: 5px; }
.pin-toggle { position: absolute; right: 5px; top: 5px; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px;
  color: var(--muted); background: transparent;
}
.icon-btn:hover { background: var(--canvas); }
.form-error { margin: -5px 0 0; color: var(--red); font-size: 13px; }
.demo-access { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.demo-access summary { color: var(--muted); font-size: 12px; cursor: pointer; text-align: center; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.demo-grid button {
  padding: 10px; text-align: left; border: 1px solid var(--line); border-radius: 11px; background: #f8fafb;
}
.demo-grid button:hover { border-color: #a9c9dc; background: var(--blue-soft); }
.demo-grid strong, .demo-grid span { display: block; }
.demo-grid strong { font-size: 12px; }
.demo-grid span { margin-top: 3px; color: var(--muted); font-size: 11px; }

/* Buttons */
.btn {
  min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 15px; border: 1px solid transparent; border-radius: 11px; font-weight: 750;
  text-decoration: none; transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy-2)); box-shadow: 0 7px 17px rgba(47,117,181,.22); }
.btn-primary:hover { box-shadow: 0 9px 24px rgba(47,117,181,.3); }
.btn-success { color: #fff; background: var(--green); }
.btn-danger { color: #fff; background: var(--red); }
.btn-outline { color: var(--navy); border-color: #b9cbd8; background: #fff; }
.btn-outline:hover { background: var(--blue-soft); }
.btn-soft { color: var(--navy); background: var(--blue-soft); }
.btn-ghost { color: var(--muted); background: transparent; }
.btn-large { min-height: 51px; border-radius: 13px; font-size: 15px; }
.btn-compact { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.btn-full { width: 100%; }
.btn-arrow { margin-left: auto; font-size: 19px; }
.action-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.action-row.right { justify-content: flex-end; }

/* Shell */
.app-shell { min-height: 100vh; }
.topbar {
  position: sticky; z-index: 30; top: 0; color: #fff;
  background: rgba(23,63,95,.97); box-shadow: 0 2px 12px rgba(16,46,72,.17);
  backdrop-filter: blur(12px);
}
.topbar-inner { height: 64px; max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.brand-button { display: flex; align-items: center; gap: 10px; padding: 0; color: inherit; border: 0; background: transparent; }
.topbar-logo {
  width: 43px; height: 43px; object-fit: contain; flex: 0 0 auto; border-radius: 50%;
  filter: drop-shadow(0 3px 7px rgba(0,0,0,.18));
}
.brand-copy { display: grid; text-align: left; line-height: 1.05; }
.brand-copy strong { font-size: 14px; }
.brand-copy small { color: #bcd3e3; font-size: 10px; text-transform: uppercase; letter-spacing: 1.6px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.sync-status { display: inline-flex; align-items: center; gap: 6px; color: #d8e8f1; font-size: 11px; }
.sync-status i { width: 7px; height: 7px; border-radius: 50%; background: #66d39a; box-shadow: 0 0 0 3px rgba(102,211,154,.12); }
.sync-status.offline i { background: #ffca62; }
.avatar-button {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
  color: #fff; background: rgba(255,255,255,.12); font-weight: 800;
}
.main-content { max-width: 1240px; min-height: calc(100vh - 64px); margin: 0 auto; padding: 26px 20px 104px; outline: none; }
.bottom-nav {
  position: fixed; z-index: 25; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 7px; border: 1px solid rgba(212,224,232,.9); border-radius: 18px;
  background: rgba(255,255,255,.96); box-shadow: var(--shadow-md); backdrop-filter: blur(14px);
}
.nav-item {
  min-width: 82px; padding: 7px 11px; display: grid; place-items: center; gap: 3px;
  color: var(--muted); border: 0; border-radius: 12px; background: transparent; font-size: 10px; font-weight: 700;
}
.nav-item .nav-icon { font-size: 18px; line-height: 1; }
.nav-item.active { color: var(--navy); background: var(--blue-soft); }
.nav-badge { position: absolute; margin: -7px 0 0 18px; min-width: 17px; height: 17px; padding: 1px 4px; color: #fff; border-radius: 9px; background: var(--red); font-size: 9px; }

/* Layout */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.page-header h1 { margin: 0 0 5px; font-size: clamp(23px, 3vw, 31px); line-height: 1.15; letter-spacing: -.6px; }
.page-header p { margin: 0; color: var(--muted); font-size: 13px; }
.eyebrow { margin-bottom: 7px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 19px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-title h2, .card-title h3 { margin: 0; font-size: 16px; }
.card-title p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.kpi { padding: 18px; position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; width: 70px; height: 70px; right: -23px; bottom: -30px; border-radius: 50%; background: currentColor; opacity: .055; }
.kpi-label { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; }
.kpi-value { margin-top: 7px; font-size: clamp(21px, 3vw, 29px); font-weight: 850; letter-spacing: -.5px; }
.kpi-foot { margin-top: 6px; color: var(--muted); font-size: 11px; }
.kpi.green { color: var(--green); background: linear-gradient(145deg,#fff,var(--green-soft)); }
.kpi.blue { color: var(--blue); background: linear-gradient(145deg,#fff,var(--blue-soft)); }
.kpi.amber { color: var(--amber); background: linear-gradient(145deg,#fff,var(--amber-soft)); }
.kpi.purple { color: var(--purple); background: linear-gradient(145deg,#fff,#f3eef9); }
.hero-card {
  padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  color: #fff; border: 0; background: linear-gradient(125deg, #173f5f, #2f75b5); overflow: hidden; position: relative;
}
.hero-card::after { content: "₽"; position: absolute; right: 28px; bottom: -45px; color: rgba(255,255,255,.08); font-size: 160px; font-weight: 900; }
.hero-card h2 { position: relative; z-index: 1; margin: 0 0 7px; font-size: 23px; }
.hero-card p { position: relative; z-index: 1; margin: 0; color: #d3e6f2; font-size: 13px; max-width: 560px; }
.hero-card .btn { position: relative; z-index: 2; flex: 0 0 auto; color: var(--navy); background: #fff; }
.section { margin-top: 22px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 18px; }
.section-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

/* Lists, statuses */
.list { display: grid; }
.list-item { padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #edf1f3; }
.list-item:last-child { border-bottom: 0; }
.list-main { min-width: 0; display: flex; align-items: center; gap: 12px; }
.date-box { width: 45px; height: 45px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: var(--blue-soft); color: var(--navy); line-height: 1; }
.date-box strong { font-size: 17px; }
.date-box small { font-size: 9px; text-transform: uppercase; }
.list-copy { min-width: 0; }
.list-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.list-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-side { flex: 0 0 auto; text-align: right; }
.amount { font-weight: 850; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending { color: #9c6500; background: var(--amber-soft); }
.status-approved { color: var(--green); background: var(--green-soft); }
.status-rejected { color: var(--red); background: var(--red-soft); }
.comment-box { margin-top: 9px; padding: 9px 11px; color: #8c3038; border-left: 3px solid var(--red); border-radius: 4px 9px 9px 4px; background: var(--red-soft); font-size: 11px; }
.empty-state { padding: 42px 20px; text-align: center; }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 18px; background: var(--blue-soft); font-size: 26px; }
.empty-state h3 { margin: 0 0 6px; font-size: 16px; }
.empty-state p { max-width: 360px; margin: 0 auto; color: var(--muted); font-size: 12px; line-height: 1.5; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
.number-field { position: relative; }
.number-field input { padding-right: 50px; }
.number-field em { position: absolute; right: 12px; bottom: 14px; color: var(--muted); font-size: 11px; font-style: normal; }
.rate-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.form-section { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.form-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section h3 { margin: 0 0 12px; font-size: 14px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card { padding: 16px; display: flex; align-items: center; gap: 11px; border: 1.5px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; }
.choice-card .choice-icon { font-size: 22px; }
.choice-card strong, .choice-card small { display: block; }
.choice-card small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.choice-input:checked + .choice-card { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(47,117,181,.08); }
.calc-preview { margin-top: 16px; padding: 15px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #cfe4d7; border-radius: 13px; background: var(--green-soft); }
.calc-preview span { color: #466353; font-size: 12px; }
.calc-preview strong { color: var(--green); font-size: 20px; }
.switch-row { min-height: 54px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; }
.switch-copy strong, .switch-copy small { display: block; }
.switch-copy strong { font-size: 13px; }
.switch-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.switch { width: 48px; height: 28px; position: relative; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; }
.switch i { display: block; width: 48px; height: 28px; border-radius: 20px; background: #cbd4da; transition: .2s; }
.switch i::after { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: .2s; }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); }
.helper { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.4; }

/* Employer */
.month-control { display: flex; align-items: center; gap: 8px; }
.month-control input { width: 150px; min-height: 40px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.filter-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.filter-tabs button { padding: 7px 12px; color: var(--muted); border: 0; border-radius: 9px; background: transparent; font-size: 11px; font-weight: 750; }
.filter-tabs button.active { color: var(--navy); background: var(--blue-soft); }
.review-card { padding: 17px; }
.review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.review-user { display: flex; align-items: center; gap: 11px; }
.user-dot { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: #fff; background: linear-gradient(145deg,var(--blue),var(--navy)); font-weight: 850; }
.review-user h3 { margin: 0 0 3px; font-size: 14px; }
.review-user p { margin: 0; color: var(--muted); font-size: 11px; }
.review-details { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.detail-chip { padding: 6px 9px; border-radius: 8px; color: #455564; background: #f2f5f7; font-size: 10px; }
.detail-chip strong { color: var(--ink); }
.review-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 13px; border-top: 1px solid var(--line); }
.review-actions .btn { min-height: 37px; }

/* Tables */
.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 11px 12px; color: #536575; background: #f4f7f9; text-align: left; white-space: nowrap; font-size: 10px; letter-spacing: .25px; text-transform: uppercase; }
td { padding: 12px; border-top: 1px solid #edf1f3; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: #fafcfd; }
tfoot td { font-weight: 850; background: var(--green-soft); }
.employee-cell strong, .employee-cell small { display: block; }
.employee-cell small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.table-action { padding: 5px 8px; color: var(--blue); border: 1px solid #c8dce9; border-radius: 8px; background: #fff; font-size: 10px; }
.attendance-pills { display: flex; gap: 4px; }
.att-pill { padding: 3px 6px; border-radius: 6px; font-size: 9px; }
.att-work { color: var(--green); background: var(--green-soft); }
.att-absent { color: var(--red); background: var(--red-soft); }

/* Settings */
.settings-list { display: grid; gap: 9px; }
.settings-row { min-height: 58px; padding: 10px 12px; display: grid; grid-template-columns: minmax(0,1fr) 130px auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; }
.settings-row strong, .settings-row small { display: block; }
.settings-row strong { font-size: 13px; }
.settings-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.settings-row input { width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; text-align: right; }

/* Modal, toast, loader */
.modal-root:empty { display: none; }
.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(10,29,44,.58); backdrop-filter: blur(3px); }
.modal { width: min(100%, 590px); max-height: min(90vh, 820px); overflow: auto; border-radius: 20px; background: #fff; box-shadow: 0 25px 80px rgba(3,20,34,.35); animation: modal-in .18s ease-out; }
.modal-sm { width: min(100%, 430px); }
.modal-head { position: sticky; z-index: 2; top: 0; padding: 18px 19px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-body { padding: 19px; }
.modal-foot { position: sticky; bottom: 0; padding: 13px 19px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.toast-root { position: fixed; z-index: 120; top: 76px; right: 16px; display: grid; gap: 8px; pointer-events: none; }
.toast { max-width: 360px; padding: 12px 14px; color: #fff; border-radius: 12px; background: #253a4b; box-shadow: var(--shadow-md); font-size: 12px; animation: toast-in .2s ease; }
.toast.success { background: #187448; }
.toast.error { background: #a8333d; }
.toast.warning { background: #946100; }
@keyframes toast-in { from { opacity: 0; transform: translateX(15px); } }
.global-loader { position: fixed; z-index: 150; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; background: rgba(14,42,62,.52); backdrop-filter: blur(2px); font-size: 13px; }
.spinner { width: 25px; height: 25px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.offline-banner { position: fixed; z-index: 200; top: 0; left: 0; width: 100%; padding: 7px 12px; color: #604200; background: #ffd87f; text-align: center; font-size: 11px; font-weight: 700; }
body.is-offline .topbar { top: 28px; }

/* Profile */
.profile-summary { text-align: center; padding: 6px 0 18px; }
.profile-avatar { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 11px; color: #fff; border-radius: 22px; background: linear-gradient(145deg,var(--blue),var(--navy)); font-size: 25px; font-weight: 850; }
.profile-summary h3 { margin: 0; }
.profile-summary p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.divider { height: 1px; margin: 17px 0; background: var(--line); }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .login-card { padding: 24px 20px; border-radius: 22px; }
  .demo-grid { grid-template-columns: 1fr; }
  .topbar-inner { height: 58px; padding: 0 14px; }
  .brand-copy { display: none; }
  .sync-status span { display: none; }
  .main-content { padding: 19px 12px 104px; }
  .page-header { display: block; }
  .page-header .month-control, .page-header .action-row { margin-top: 14px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .kpi-grid-mobile { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-card { display: block; padding: 20px; }
  .hero-card .btn { margin-top: 18px; width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .choice-grid { grid-template-columns: 1fr; }
  .review-actions { align-items: flex-end; }
  .review-actions > .action-row { justify-content: flex-end; }
  .settings-row { grid-template-columns: minmax(0,1fr) 105px; }
  .settings-row .btn { grid-column: span 2; }
  .bottom-nav { width: calc(100% - 16px); bottom: calc(8px + var(--safe-bottom)); justify-content: space-around; padding: 5px; border-radius: 16px; }
  .nav-item { min-width: 0; flex: 1; padding: 7px 4px; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: 94vh; border-radius: 20px 20px 0 0; }
  .toast-root { left: 12px; right: 12px; top: 68px; }
  .toast { max-width: none; }
  .list-item { padding: 13px; }
  .list-side .amount { font-size: 13px; }
  .filter-tabs { width: 100%; overflow-x: auto; }
  .filter-tabs button { flex: 1; }
}

@media print {
  .topbar, .bottom-nav, .btn, .filter-tabs { display: none !important; }
  .main-content { max-width: none; padding: 0; }
  .card { box-shadow: none; }
}
