/* =====================================================================
   NUESTRO HOGAR — Hoja de estilos principal
   Paleta: verde bosque · beige claro · blanco roto · dorado suave
   ===================================================================== */
:root {
  --nh-primary: #2F5D46;
  --nh-primary-dark: color-mix(in srgb, var(--nh-primary) 78%, #000);
  --nh-primary-soft: color-mix(in srgb, var(--nh-primary) 12%, #fff);
  --nh-accent: #C9A13B;
  --nh-accent-soft: color-mix(in srgb, var(--nh-accent) 16%, #fff);
  --nh-bg: #F5F0E6;
  --nh-surface: #FFFDF9;
  --nh-surface-2: #FBF7EF;
  --nh-border: #E8E0D2;
  --nh-text: #2A2D2B;
  --nh-muted: #6E6A63;
  --nh-positive: #4E9A6B;
  --nh-danger: #B5524A;
  --nh-warning: #C98A2B;
  --nh-radius: 16px;
  --nh-radius-sm: 10px;
  --nh-shadow: 0 1px 2px rgba(40, 35, 25, .04), 0 6px 20px rgba(40, 35, 25, .06);
  --nh-sidebar-w: 264px;

  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --bs-body-color: var(--nh-text);
  --bs-body-bg: var(--nh-bg);
  --bs-border-color: var(--nh-border);
  --bs-link-color: var(--nh-primary);
  --bs-link-color-rgb: 47, 93, 70;
  --bs-link-hover-color: var(--nh-primary-dark);
  --bs-primary: var(--nh-primary);
  --bs-secondary-color: var(--nh-muted);
  --bs-border-radius: .65rem;
  --bs-border-radius-lg: .9rem;
  --bs-focus-ring-color: color-mix(in srgb, var(--nh-primary) 25%, transparent);
}

html { -webkit-text-size-adjust: 100%; }
body { background: var(--nh-bg); color: var(--nh-text); font-size: .95rem; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 650; letter-spacing: -.01em; color: var(--nh-text); }
.text-primary { color: var(--nh-primary) !important; }
.text-muted, .form-text { color: var(--nh-muted) !important; }
.bg-primary { background: var(--nh-primary) !important; }
a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }
.tabular, .money { font-variant-numeric: tabular-nums; }
.money-pos { color: var(--nh-positive); }
.money-neg { color: var(--nh-danger); }

/* ---------- Botones ---------- */
.btn { --bs-btn-font-weight: 550; border-radius: .7rem; }
.btn-primary {
  --bs-btn-bg: var(--nh-primary); --bs-btn-border-color: var(--nh-primary);
  --bs-btn-hover-bg: var(--nh-primary-dark); --bs-btn-hover-border-color: var(--nh-primary-dark);
  --bs-btn-active-bg: var(--nh-primary-dark); --bs-btn-active-border-color: var(--nh-primary-dark);
  --bs-btn-disabled-bg: var(--nh-primary); --bs-btn-disabled-border-color: var(--nh-primary);
}
.btn-outline-primary {
  --bs-btn-color: var(--nh-primary); --bs-btn-border-color: color-mix(in srgb, var(--nh-primary) 45%, #fff);
  --bs-btn-hover-bg: var(--nh-primary); --bs-btn-hover-border-color: var(--nh-primary);
  --bs-btn-active-bg: var(--nh-primary-dark); --bs-btn-active-border-color: var(--nh-primary-dark);
}
.btn-accent { background: var(--nh-accent); border-color: var(--nh-accent); color: #2a2208; }
.btn-accent:hover { background: color-mix(in srgb, var(--nh-accent) 85%, #000); color: #fff; }
.btn-light { background: var(--nh-surface-2); border-color: var(--nh-border); }
.btn-icon { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--nh-text); font-size: 1.2rem; border: 0; background: transparent; }
.btn-icon:hover, .btn-icon:focus-visible { background: var(--nh-primary-soft); color: var(--nh-primary); }
.btn-sm { border-radius: .55rem; }
.form-check-input:checked { background-color: var(--nh-primary); border-color: var(--nh-primary); }
.form-control:focus, .form-select:focus { border-color: color-mix(in srgb, var(--nh-primary) 55%, #fff); box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }
.form-control, .form-select { border-color: #DDD3C3; background-color: #fff; min-height: 44px; }
.form-control-color { min-height: 44px; }
.form-label { font-weight: 550; font-size: .88rem; margin-bottom: .3rem; }
.input-group-text { background: var(--nh-surface-2); border-color: #DDD3C3; }

/* ---------- Layout ---------- */
.nh-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--nh-sidebar-w); z-index: 1030;
  background: linear-gradient(180deg, var(--nh-primary) 0%, var(--nh-primary-dark) 100%);
  color: #EAF1EC; flex-direction: column; overflow-y: auto;
}
.nh-offcanvas { background: linear-gradient(180deg, var(--nh-primary) 0%, var(--nh-primary-dark) 100%); color: #EAF1EC; width: 290px !important; }
.nh-brand { padding: 1.25rem 1.25rem .75rem; }
.nh-brand a { color: #fff; }
.nh-logo { width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,.12); display: grid; place-items: center; padding: 8px; color: #fff; flex: none; }
.nh-brand-name { display: block; font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.nh-brand-sub { display: block; font-size: .75rem; opacity: .75; }
.nh-nav { padding: .25rem .75rem 1rem; flex: 1; }
.nh-nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; opacity: .6; margin: 1rem .75rem .35rem; }
.nh-nav-link { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: 11px; color: #E3ECE6; text-decoration: none; font-size: .92rem; margin-bottom: 2px; }
.nh-nav-link i { font-size: 1.1rem; opacity: .9; width: 1.2rem; text-align: center; }
.nh-nav-link:hover { background: rgba(255,255,255,.09); color: #fff; }
.nh-nav-link.active { background: rgba(255,255,255,.95); color: var(--nh-primary-dark); font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.nh-sidebar-foot { padding: 1rem 1.25rem; opacity: .55; }

.nh-main { min-height: 100vh; display: flex; flex-direction: column; }
@media (min-width: 992px) { .nh-main { margin-left: var(--nh-sidebar-w); } }
.nh-topbar {
  position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.25rem; background: color-mix(in srgb, var(--nh-bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--nh-border) 70%, transparent);
}
.nh-page-title { font-size: 1.15rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.nh-search { position: relative; align-items: center; width: min(340px, 34vw); }
.nh-search i { position: absolute; left: .85rem; color: var(--nh-muted); }
.nh-search input { padding-left: 2.3rem; border-radius: 999px; background: var(--nh-surface); min-height: 40px; }
.nh-top-actions { display: flex; align-items: center; gap: .25rem; }
.nh-dot { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--nh-danger); color: #fff; font-size: .65rem; font-weight: 700; display: grid; place-items: center; }
.nh-content { padding: 1.25rem; flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; outline: none; }
@media (max-width: 991.98px) { .nh-content { padding: 1rem .85rem calc(88px + env(safe-area-inset-bottom)); } }

.nh-toasts .alert { border: 0; border-radius: 12px; }

/* Barra inferior en celulares */
.nh-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--nh-surface); border-top: 1px solid var(--nh-border); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(0,0,0,.05);
}
.nh-bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--nh-muted); font-size: .7rem; min-height: 50px; border-radius: 12px; }
.nh-bottomnav a i { font-size: 1.3rem; }
.nh-bottomnav a.active { color: var(--nh-primary); font-weight: 600; }
.nh-bottomnav .nh-fab { width: 56px; height: 56px; min-height: 0; margin: -22px auto 0; border-radius: 50%; background: var(--nh-primary); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--nh-primary) 40%, transparent); }
.nh-bottomnav .nh-fab i { font-size: 1.6rem; }

/* ---------- Tarjetas y componentes ---------- */
.card { background: var(--nh-surface); border: 1px solid var(--nh-border); border-radius: var(--nh-radius); box-shadow: var(--nh-shadow); }
.card-header { background: transparent; border-bottom: 1px solid var(--nh-border); padding: .9rem 1.1rem; font-weight: 600; }
.card-header:first-child { border-radius: var(--nh-radius) var(--nh-radius) 0 0; }
.card-title-sm { font-size: .95rem; font-weight: 650; margin: 0; display: flex; align-items: center; gap: .5rem; }
.card-title-sm i { color: var(--nh-primary); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.page-head h2 { display: flex; align-items: center; }
.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--nh-muted); font-weight: 650; margin: 1.5rem 0 .6rem; }

.stat-card { padding: 1rem 1.1rem; height: 100%; position: relative; overflow: hidden; }
.stat-card .stat-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--nh-primary-soft); color: var(--nh-primary); font-size: 1.2rem; margin-bottom: .6rem; }
.stat-card .stat-icon.gold { background: var(--nh-accent-soft); color: color-mix(in srgb, var(--nh-accent) 70%, #000); }
.stat-card .stat-icon.red { background: #F8E7E4; color: var(--nh-danger); }
.stat-card .stat-icon.blue { background: #E5EEF5; color: #3E6E8E; }
.stat-label { color: var(--nh-muted); font-size: .8rem; font-weight: 550; }
.stat-value { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-sub { font-size: .76rem; color: var(--nh-muted); margin-top: .15rem; }
.stat-card a.stretched-link:hover ~ * { color: inherit; }
.tag-estimate { display: inline-block; font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; padding: .1rem .4rem; border-radius: 6px; background: var(--nh-accent-soft); color: #7A5E14; vertical-align: middle; }
.tag-real { display: inline-block; font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; padding: .1rem .4rem; border-radius: 6px; background: #E3F1E8; color: #2E6B47; vertical-align: middle; }

.badge { font-weight: 600; border-radius: 999px; padding: .32em .65em; }
.badge-soft-primary { background: var(--nh-primary-soft); color: var(--nh-primary-dark); }
.badge-soft-success { background: #E3F1E8; color: #2E6B47; }
.badge-soft-warning { background: #FBF0D9; color: #7A5513; }
.badge-soft-danger { background: #F8E3E0; color: #8E3A33; }
.badge-soft-info { background: #E4EEF5; color: #2F5A78; }
.badge-soft-secondary { background: #EEEAE3; color: #5D5850; }

.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex: none; }
.avatar-sm { width: 26px; height: 26px; font-size: .68rem; }
.avatar-md { width: 36px; height: 36px; font-size: .82rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.4rem; }
.avatar-both { background: var(--nh-accent); color: #3B2E0A; }

.progress { height: .6rem; border-radius: 999px; background: #EDE6D8; }
.progress-bar { background: var(--nh-primary); border-radius: 999px; }
.progress-bar.gold { background: linear-gradient(90deg, var(--nh-accent), color-mix(in srgb, var(--nh-accent) 70%, #fff)); }
.progress-bar.warn { background: var(--nh-warning); }
.progress-bar.over { background: var(--nh-danger); }

.list-clean { list-style: none; padding: 0; margin: 0; }
.agenda-item { display: flex; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid var(--nh-border); align-items: flex-start; }
.agenda-item:last-child { border-bottom: 0; }
.agenda-time { min-width: 52px; font-variant-numeric: tabular-nums; font-weight: 650; font-size: .85rem; color: var(--nh-primary); }
.agenda-bar { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }
.agenda-title { font-weight: 550; }
.agenda-meta { font-size: .78rem; color: var(--nh-muted); }
.is-done .agenda-title { text-decoration: line-through; color: var(--nh-muted); }
.is-overdue .agenda-time, .is-overdue .agenda-meta { color: var(--nh-danger); }

.empty-state { text-align: center; padding: 2.25rem 1rem; color: var(--nh-muted); }
.empty-state .empty-icon { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 1rem; display: grid; place-items: center; font-size: 1.8rem; background: var(--nh-primary-soft); color: var(--nh-primary); }
.empty-mini { padding: 1.25rem 1rem; text-align: center; color: var(--nh-muted); font-size: .88rem; }

.goal-card .goal-amount { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.goal-thumb { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; }

.filter-bar { background: var(--nh-surface-2); box-shadow: none; }
.form-card { max-width: 920px; }
.form-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--nh-border); }
@media (max-width: 575.98px) {
  .form-actions { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); background: var(--nh-surface); margin: 1.25rem -1rem -1rem; padding: .75rem 1rem; border-radius: 0 0 var(--nh-radius) var(--nh-radius); }
  .form-actions .btn { flex: 1; min-height: 48px; }
}

/* Tablas */
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .7rem .9rem; border-color: var(--nh-border); }
.table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--nh-muted); font-weight: 650; background: var(--nh-surface-2); white-space: nowrap; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: color-mix(in srgb, var(--nh-primary) 4%, transparent); }
.table tfoot td, .table tfoot th { font-weight: 700; background: var(--nh-surface-2); }
.sort-link { color: inherit; text-decoration: none; }

/* Tabla → tarjetas en celulares */
@media (max-width: 767.98px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { padding: .65rem .9rem; border-bottom: 1px solid var(--nh-border); }
  .table-cards td { border: 0 !important; padding: .18rem 0 !important; display: flex; justify-content: space-between; gap: 1rem; text-align: right !important; }
  .table-cards td::before { content: attr(data-label); color: var(--nh-muted); font-size: .78rem; font-weight: 600; text-align: left; flex: none; max-width: 45%; }
  .table-cards td.actions-cell { justify-content: flex-end; padding-top: .5rem !important; }
  .table-cards td.actions-cell::before { content: none; }
  .table-cards tfoot { display: block; }
}

/* Calendario */
.cal-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--nh-border); border-left: 1px solid var(--nh-border); border-radius: 12px; overflow: hidden; background: var(--nh-surface); }
.cal-head { background: var(--nh-surface-2); text-align: center; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--nh-muted); padding: .45rem; border-right: 1px solid var(--nh-border); border-bottom: 1px solid var(--nh-border); font-weight: 650; }
.cal-cell { min-height: 112px; border-right: 1px solid var(--nh-border); border-bottom: 1px solid var(--nh-border); padding: .3rem; position: relative; }
.cal-cell.out { background: #F7F3EC; }
.cal-cell.out .cal-day { opacity: .45; }
.cal-cell.today { background: color-mix(in srgb, var(--nh-accent) 9%, #fff); }
.cal-day { font-size: .8rem; font-weight: 650; display: flex; justify-content: space-between; align-items: center; margin-bottom: .2rem; }
.cal-day a { color: inherit; text-decoration: none; }
.cal-cell.today .cal-day-num { background: var(--nh-primary); color: #fff; border-radius: 999px; padding: 0 .45rem; }
.cal-add { opacity: 0; color: var(--nh-primary); font-size: 1rem; line-height: 1; text-decoration: none; }
.cal-cell:hover .cal-add, .cal-add:focus { opacity: 1; }
.cal-ev { display: block; font-size: .72rem; line-height: 1.25; padding: .12rem .35rem; border-radius: 6px; margin-bottom: 2px; color: #fff; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev:hover { filter: brightness(.92); color: #fff; }
.cal-ev.done { opacity: .5; text-decoration: line-through; }
.cal-ev.light { background: var(--nh-surface-2) !important; color: var(--nh-text); border-left: 3px solid; }
.cal-more { font-size: .7rem; color: var(--nh-muted); }
@media (max-width: 767.98px) {
  .cal-cell { min-height: 64px; padding: .15rem; }
  .cal-ev { font-size: 0; height: 6px; padding: 0; margin-bottom: 2px; border-radius: 3px; }
  .cal-ev.light { height: 6px; }
  .cal-head { font-size: .62rem; padding: .3rem 0; }
  .cal-add { display: none; }
}
.week-col { min-height: 140px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .3rem; }

/* Kanban de tareas */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 1rem; overflow-x: auto; padding-bottom: .5rem; }
.kanban-col { background: var(--nh-surface-2); border: 1px solid var(--nh-border); border-radius: var(--nh-radius); padding: .75rem; min-height: 200px; }
.kanban-col h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--nh-muted); display: flex; justify-content: space-between; }
.task-card { background: var(--nh-surface); border: 1px solid var(--nh-border); border-radius: 12px; padding: .65rem .75rem; margin-bottom: .55rem; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.task-card .task-title { font-weight: 600; font-size: .9rem; }
.task-check { width: 1.4rem; height: 1.4rem; cursor: pointer; }

/* Shopping */
.shop-item { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid var(--nh-border); }
.shop-item.bought .shop-name { text-decoration: line-through; color: var(--nh-muted); }
.shop-item .form-check-input { width: 1.6rem; height: 1.6rem; margin: 0; }
.shop-name { font-weight: 550; }

/* Notas */
.note-card { border-top: 4px solid var(--nh-primary); }
.note-card.pinned { border-top-color: var(--nh-accent); }
.note-content { white-space: pre-wrap; font-size: .9rem; }

/* Auth */
.nh-auth { min-height: 100vh; background:
  radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--nh-primary) 22%, transparent), transparent 60%),
  radial-gradient(900px 500px at 110% 110%, color-mix(in srgb, #C9A13B 20%, transparent), transparent 60%), var(--nh-bg); }
.nh-auth-wrap { min-height: 100vh; display: grid; place-content: center; padding: 1.5rem; gap: 1rem; }
.auth-card { width: min(440px, 92vw); border: 0; border-radius: 24px; }
.install-card { width: min(620px, 94vw); }
.auth-logo { width: 72px; height: 72px; border-radius: 22px; background: var(--nh-primary); color: #fff; padding: 14px; box-shadow: 0 10px 24px color-mix(in srgb, var(--nh-primary) 35%, transparent); }

/* Modal de confirmación */
.confirm-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; background: #F8E3E0; color: var(--nh-danger); font-size: 1.5rem; }
.modal-content { border: 0; border-radius: 20px; background: var(--nh-surface); }

/* Accesos rápidos */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.quick-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: .9rem .5rem; border-radius: 14px; border: 1px solid var(--nh-border); background: var(--nh-surface); color: var(--nh-text); text-decoration: none; font-weight: 600; font-size: .85rem; min-height: 86px; text-align: center; }
.quick-btn i { font-size: 1.4rem; color: var(--nh-primary); }
.quick-btn:hover, .quick-btn:focus-visible { border-color: var(--nh-primary); background: var(--nh-primary-soft); color: var(--nh-primary-dark); }

.chart-box { position: relative; height: 260px; }
.chart-box.sm { height: 200px; }
.chart-box canvas { max-width: 100%; }

.calc-box { background: var(--nh-primary-soft); border-radius: 14px; padding: 1rem; }
.calc-box .calc-total { font-size: 1.5rem; font-weight: 750; color: var(--nh-primary-dark); font-variant-numeric: tabular-nums; }

.nav-pills .nav-link { color: var(--nh-text); border-radius: 999px; font-weight: 550; font-size: .9rem; }
.nav-pills .nav-link.active { background: var(--nh-primary); }
.nav-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: .25rem; padding-bottom: .25rem; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll .nav-link { white-space: nowrap; }

.dl-grid { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; font-size: .9rem; }
.dl-grid dt { color: var(--nh-muted); font-weight: 550; }
.dl-grid dd { margin: 0; }

/* Impresión */
@media print {
  .nh-sidebar, .nh-topbar, .nh-bottomnav, .no-print, .nh-toasts, .btn { display: none !important; }
  .nh-main { margin: 0 !important; }
  .nh-content { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  body { background: #fff; font-size: 11pt; }
  .print-only { display: block !important; }
  a { color: inherit; text-decoration: none; }
}
.print-only { display: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.tabular, .money { white-space: nowrap; }
@media (max-width: 575.98px) {
  .quick-actions { grid-template-columns: repeat(3, 1fr); gap: .45rem; }
  .quick-btn { min-height: 74px; font-size: .74rem; padding: .6rem .3rem; }
  .quick-btn i { font-size: 1.25rem; }
  .stat-value { font-size: 1.12rem; }
  .stat-card { padding: .85rem .9rem; }
  .page-head h2 { font-size: 1.1rem; }
}
@media (max-width: 767.98px) {
  .cal-cell .cal-day > a:first-child::after { content: ""; position: absolute; inset: 0; z-index: 1; }
}
