@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --olive-900: #34402c;
  --olive-700: #596648;
  --olive-600: #687654;
  --olive-100: #e7eadf;
  --bone: #f4f1e8;
  --paper: #fcfbf7;
  --ink: #20241e;
  --muted: #756b59;
  --line: #ddd8ca;
  --amber: #b67a32;
  --amber-soft: #f6ead8;
  --danger: #9f3f36;
  --danger-soft: #fae8e5;
  --success: #41623c;
  --success-soft: #e5efe2;
  --blue: #426b78;
  --table-row-hover: rgb(231 235 219 / 60%);
  --shadow: 0 10px 30px rgb(50 54 42 / 8%);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgb(182 122 50 / 35%);
  outline-offset: 2px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .editorial { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.03; letter-spacing: -.025em; }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); line-height: 1.1; }
h3 { font-size: 1rem; }

.app-shell { min-height: 100dvh; }
.sidebar { display: none; }
.page-wrap { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 68px; padding: 10px 16px;
  background: rgb(252 251 247 / 94%); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.brand-title { display: block; font-weight: 800; letter-spacing: .09em; font-size: .8rem; }
.brand-sub { display: block; color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-pill { border: 1px solid var(--line); background: var(--bone); padding: 5px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.icon-btn { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); cursor: pointer; }
.content { width: min(100%, 1280px); margin: 0 auto; padding: 22px 16px 112px; }
.page-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.page-heading > .btn { width: 100%; }
.page-heading h1 { margin-bottom: 6px; }
.page-heading p { margin: 0; color: var(--muted); max-width: 62ch; }
.eyebrow { color: var(--olive-700); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .72rem; }
.bottom-nav {
  position: fixed; z-index: 40; bottom: 0; left: 0; right: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: rgb(252 251 247 / 97%); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgb(50 54 42 / 6%);
}
.bottom-nav a { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); border-radius: 12px; font-size: .65rem; font-weight: 700; }
.bottom-nav a .nav-icon { font-size: 1.1rem; line-height: 1; }
.bottom-nav a.active { background: var(--olive-100); color: var(--olive-900); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.soft-card { background: rgb(255 255 255 / 45%); border: 1px solid var(--line); border-radius: 15px; padding: 15px; }
.grid { display: grid; gap: 14px; }
.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { padding: 16px; }
.stat-value { display: block; font-family: "DM Serif Display", Georgia, serif; font-size: 2rem; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: .78rem; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2, .section-head h3 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .78rem; }
.strong { font-weight: 800; }

.btn { min-height: 46px; border: 1px solid transparent; border-radius: 13px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; cursor: pointer; transition: transform .12s, background .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--olive-700); color: white; }
.btn-primary:hover { background: var(--olive-900); }
.btn-secondary { background: var(--paper); color: var(--olive-900); border-color: var(--line); }
.btn-amber { background: var(--amber); color: white; }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #e9bcb6; }
.btn-ghost { background: transparent; color: var(--olive-900); }
.btn-block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sticky-actions { position: sticky; bottom: 76px; z-index: 20; display: flex; justify-content: flex-end; gap: 10px; padding: 12px; margin: 24px -4px 0; background: rgb(244 241 232 / 92%); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(12px); }

.field-grid { display: grid; gap: 15px; }
.field { display: grid; gap: 6px; }
.field label, .label { font-size: .78rem; font-weight: 800; color: var(--olive-900); }
.required::after { content: " *"; color: var(--danger); }
.control { width: 100%; min-height: 48px; border: 1px solid #cfc9ba; border-radius: 12px; padding: 10px 12px; color: var(--ink); background: white; }
textarea.control { min-height: 100px; resize: vertical; }
.control:focus { border-color: var(--olive-600); outline: 3px solid rgb(104 118 84 / 15%); }
.hint { font-size: .72rem; color: var(--muted); }
.check-row { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; cursor: pointer; }
.check-row input { width: 20px; height: 20px; accent-color: var(--olive-700); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch-ui { width: 46px; height: 26px; border-radius: 999px; background: #c9c4b7; padding: 3px; transition: .2s; }
.switch-ui::after { content: ""; display: block; width: 20px; height: 20px; border-radius: 50%; background: white; transition: .2s; box-shadow: 0 2px 5px #0002; }
.switch input:checked + .switch-ui { background: var(--olive-600); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }

.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; background: #e9e5db; border-radius: 14px; margin-bottom: 18px; scrollbar-width: none; }
.tab { min-height: 42px; flex: 1 0 auto; border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 11px; font-weight: 800; cursor: pointer; }
.tab.active { background: var(--paper); color: var(--olive-900); box-shadow: 0 2px 8px #3331; }
.tab-panel[hidden] { display: none !important; }
.filter-bar { display: grid; gap: 10px; padding: 12px; margin-bottom: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; }
.search { position: relative; }
.search .control { padding-left: 40px; }
.search::before { content: "⌕"; position: absolute; top: 8px; left: 13px; font-size: 1.35rem; color: var(--muted); }

.list { display: grid; gap: 10px; }
.list-card { display: grid; gap: 12px; padding: 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; }
.list-main { min-width: 0; }
.list-main h3 { margin: 0 0 3px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: .78rem; }
.list-actions { display: flex; gap: 8px; align-items: center; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 14px 12px; border-bottom: 1px solid #ebe7dd; vertical-align: middle; }
.data-table tbody tr { transition: background-color .15s; }
.data-table tbody tr:hover { background: var(--table-row-hover); }
.data-table tr:last-child td { border: 0; }
.table-scroll { overflow-x: auto; }
.desktop-table { display: none; }

.badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; min-height: 27px; padding: 4px 9px; border-radius: 999px; font-size: .68rem; font-weight: 800; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--amber-soft); color: #87591f; }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-neutral { background: #ece9e1; color: #5f5a50; }
.badge-blue { background: #e3eef0; color: var(--blue); }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--olive-900); font-size: .76rem; font-weight: 700; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border-radius: 13px; background: var(--olive-100); color: var(--olive-900); font-size: .82rem; }
.notice.warning { background: var(--amber-soft); color: #714718; }
.notice.danger { background: var(--danger-soft); color: var(--danger); }
.inline-confirm { display: none; margin-top: 12px; padding: 14px; border: 1px solid #e6b6ae; background: var(--danger-soft); border-radius: 13px; }
.inline-confirm.open { display: block; }
.inline-editor { display: none; margin-top: 16px; padding: 18px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.inline-editor.open { display: block; }
#recipe-form, #user-form, #person-form, #expense-form, #new-provider { border-color: var(--line); background: var(--paper); color: var(--ink); }

.hero { min-height: 100dvh; display: grid; align-items: center; padding: 24px 16px; position: relative; overflow: hidden; background: var(--paper); }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--olive-100); right: -230px; top: -180px; }
.hero-inner { width: min(100%, 1120px); margin: auto; position: relative; z-index: 1; }
.hero-brand { display: flex; align-items: center; gap: 15px; margin-bottom: 42px; }
.hero-brand img { width: 72px; height: 72px; border-radius: 50%; }
.hero-grid { display: grid; gap: 28px; }
.hero-photo { display: none; margin-top: 24px; height: 180px; overflow: hidden; border-radius: 18px; position: relative; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; filter: saturate(.65) contrast(.92); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(52 64 44 / 45%), transparent); }
.hero-copy p { color: var(--muted); font-size: 1rem; max-width: 54ch; }
.role-grid { display: grid; gap: 10px; }
.role-card { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: white; cursor: pointer; transition: .2s; box-shadow: 0 6px 16px #36382d0a; }
.role-card:hover { border-color: var(--olive-600); transform: translateY(-2px); }
.role-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; display: grid; place-items: center; background: var(--olive-100); color: var(--olive-900); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; }
.role-card p { margin: 2px 0 0; color: var(--muted); font-size: .75rem; }
.role-arrow { margin-left: auto; font-size: 1.2rem; }

.quick-grid { grid-template-columns: repeat(2, 1fr); }
.quick-action { min-height: 112px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.quick-action .qa-icon { font-size: 1.25rem; color: var(--olive-700); }
.agenda-item { display: grid; grid-template-columns: 58px 1fr; gap: 13px; }
.agenda-time { font-weight: 800; color: var(--olive-900); }
.progress { height: 8px; border-radius: 999px; background: #e4dfd4; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--olive-600); }

.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 18px; }
.step { height: 7px; border-radius: 99px; background: #ddd8ca; }
.step.done, .step.current { background: var(--olive-600); }
.step-label { margin: -7px 0 14px; color: var(--olive-700); font-weight: 800; font-size: .78rem; }
.wizard-panel[hidden] { display: none; }
.select-card { position: relative; display: block; border: 1px solid var(--line); background: white; border-radius: 15px; padding: 14px; cursor: pointer; }
.select-card:has(input:checked) { border-color: var(--olive-600); box-shadow: inset 0 0 0 1px var(--olive-600); background: #f5f7f1; }
.select-card input { position: absolute; right: 14px; top: 14px; width: 20px; height: 20px; accent-color: var(--olive-700); }
.price { font-family: "DM Serif Display", Georgia, serif; font-size: 1.2rem; }

.calendar-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.calendar-toolbar > .tabs { flex: 1 0 100%; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(46px, 1fr)); min-width: 560px; }
.calendar-shell { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.cal-dayname { padding: 10px 6px; color: var(--muted); text-align: center; font-size: .68rem; font-weight: 800; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.cal-day { min-height: 92px; padding: 7px; border-right: 1px solid #ece8df; border-bottom: 1px solid #ece8df; background: white; }
.cal-day.muted-day { color: #aaa397; background: #faf8f3; }
.cal-number { font-size: .75rem; font-weight: 700; }
.cal-event { display: block; width: 100%; margin-top: 5px; padding: 6px; border: 0; border-left: 4px solid var(--olive-600); border-radius: 7px; background: var(--olive-100); color: var(--olive-900); text-align: left; font-size: .63rem; line-height: 1.25; cursor: pointer; }
.cal-event.staff-pink { border-left-color: #d990a4; }
.cal-event.staff-sky { border-left-color: #68aaca; }
.event-detail { margin-top: 14px; }

.summary-bar { position: sticky; top: 78px; z-index: 12; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; background: var(--olive-900); color: white; border-radius: 14px; box-shadow: var(--shadow); }
.summary-bar .muted { color: #d8ddcf; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: white; }
.qty button { width: 42px; height: 42px; border: 0; background: #f3f0e8; font-weight: 900; cursor: pointer; }
.qty output { width: 38px; text-align: center; font-weight: 800; }

.task-row { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.task-row:last-child { border: 0; }
.task-row input { margin-top: 3px; width: 21px; height: 21px; accent-color: var(--olive-700); }
.task-row:has(input:checked) .task-title { text-decoration: line-through; color: var(--muted); }

.staff-subnav { display: flex; overflow-x: auto; gap: 6px; margin: -4px 0 18px; padding-bottom: 3px; scrollbar-width: none; }
.staff-subnav button { min-height: 42px; flex: 0 0 auto; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--paper); font-weight: 800; cursor: pointer; }
.staff-subnav button.active { color: white; background: var(--olive-700); border-color: var(--olive-700); }
.staff-panel[hidden] { display: none !important; }
@media (max-width:639px) {
  /* El ancho de la mesa y el tamaño de sus sillas los fija el slider de la
     vista (setMesaZoom en app.js escribe --mesa-w y --mesa-silla; 50% ≈ 9rem).
     Los laterales se reparten lo que sobre. La mesa lleva `self-start`, así
     que no se estira cuando los laterales quedan más altos que ella. */
  .mesa-layout { grid-template-columns:minmax(0,1fr) var(--mesa-w,9rem) minmax(0,1fr) !important; }
  .mesa-layout .mesa-silla { width:var(--mesa-silla,1.75rem); height:var(--mesa-silla,1.75rem); }
}
.seat-scroll { overflow-x: auto; padding: 8px 0; }
.worktable { min-width: 620px; width: 620px; margin: 0 auto; display: grid; grid-template-columns: 88px 1fr 88px; grid-template-rows: 76px 1fr 76px; gap: 10px; padding: 15px; border: 6px solid #aab39a; border-radius: 24px; background: #e9eddf; }
.seat-side { display: flex; gap: 7px; align-items: center; justify-content: center; }
.seat-side.vertical { flex-direction: column; }
.seat { width: 64px; height: 58px; border: 2px dashed var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; font-size: .68rem; line-height: 1.2; }
.seat.assigned { border-style: solid; border-color: #a48e57; background: #eee8d5; }
.seat.confirmed { border-style: solid; border-color: var(--olive-700); background: var(--olive-600); color: white; }
.table-center { grid-column: 2; grid-row: 2; display: grid; place-items: center; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.seat-top { grid-column: 2; grid-row: 1; }
.seat-left { grid-column: 1; grid-row: 2; }
.seat-right { grid-column: 3; grid-row: 2; }
.seat-bottom { grid-column: 2; grid-row: 3; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 10px; font-size: .72rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 5px; border-radius: 4px; background: var(--paper); border: 1px dashed var(--line); vertical-align: -2px; }
.legend .leg-assigned::before { background: #eee8d5; border: 1px solid #a48e57; }
.legend .leg-confirmed::before { background: var(--olive-600); border: 1px solid var(--olive-600); }

.bar-chart { display: flex; align-items: end; gap: 12px; height: 190px; padding: 15px 8px 0; border-bottom: 1px solid var(--line); }
.bar { flex: 1; min-width: 24px; height: var(--h); position: relative; background: var(--olive-600); border-radius: 8px 8px 0 0; }
.bar::after { content: attr(data-label); position: absolute; bottom: -25px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .68rem; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 90px; width: calc(100% - 32px); max-width: 460px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 14px 16px; color: white; background: var(--olive-900); border-radius: 14px; box-shadow: 0 15px 40px #0003; transition: .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.empty { padding: 30px; text-align: center; color: var(--muted); }
.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; }
#skip-link:focus { position: fixed; z-index: 200; top: 8px; left: 8px; width: auto; height: auto; padding: 10px 14px; margin: 0; overflow: visible; clip: auto; white-space: normal; color: white; background: var(--olive-900); border-radius: 10px; }

@media (min-width: 700px) {
  .content { padding: 30px 28px 100px; }
  .page-heading { flex-direction: row; align-items: end; justify-content: space-between; }
  .page-heading > .btn { width: auto; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .field-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-bar { grid-template-columns: minmax(230px, 1fr) auto auto; align-items: center; }
  .list-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .hero-photo { display: block; }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .sticky-actions { bottom: 82px; }
  .calendar-toolbar > .tabs { flex: 0 1 auto; }
}

@media (min-width: 1024px) {
  .app-shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); }
  .sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 24px 16px; color: white; background: var(--olive-900); overflow-y: auto; }
  .side-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 25px; border-bottom: 1px solid #ffffff26; }
  .side-brand img { width: 52px; height: 52px; border-radius: 50%; }
  .side-brand strong { display: block; letter-spacing: .1em; }
  .side-brand small { color: #cdd4c5; }
  .side-role { padding: 20px 8px 8px; color: #abb6a2; text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; font-weight: 800; }
  .side-nav { display: grid; gap: 4px; }
  .side-nav a { min-height: 46px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; color: #dbe0d6; font-weight: 700; font-size: .85rem; }
  .side-nav a.active { background: #ffffff17; color: white; }
  .side-nav a:hover { background: #ffffff0d; }
  .side-footer { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid #ffffff26; color: #cdd4c5; font-size: .75rem; }
  .topbar { position: relative; padding: 14px 32px; }
  .topbar .brand { display: none; }
  .bottom-nav { display: none; }
  .content { padding: 38px 38px 60px; }
  .sticky-actions { bottom: 20px; }
  .desktop-table { display: block; }
  .mobile-list { display: none; }
  .toast { bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Integración del motor funcional de Vero con la identidad visual multipágina
   de Entredos. Estas reglas complementan las utilidades Tailwind del motor. */
#app { background: var(--bone); }
#sidebar { background: var(--olive-900) !important; }
#app > main > header {
  min-height: 68px; background: rgb(252 251 247 / 94%) !important;
  backdrop-filter: blur(14px); border-color: var(--line) !important;
}
#view { width: min(100%, 1280px); padding-bottom: 104px; }
#view > .bg-white,
#view .bg-white.border.border-line.rounded-xl {
  background: var(--paper) !important; border-radius: var(--radius) !important;
  box-shadow: var(--shadow);
}
#view input:not([type="checkbox"]):not([type="radio"]),
#view select, #view textarea {
  min-height: 48px; border-radius: 12px !important; border-color: #cfc9ba;
}
#login input:not(:disabled):not([readonly]),
#view input:not([type="checkbox"]):not([type="radio"]):not(:disabled):not([readonly]),
#view select:not(:disabled),
#view textarea:not(:disabled):not([readonly]) {
  background-color: #fff !important;
}
#view input:not([type="checkbox"]):not([type="radio"]):disabled,
#view input:not([type="checkbox"]):not([type="radio"])[readonly],
#view select:disabled,
#view textarea:disabled,
#view textarea[readonly] {
  background-color: var(--color-surface2, #f4f2e9) !important;
  color: var(--muted);
  cursor: not-allowed;
}
#view input:focus, #view select:focus, #view textarea:focus {
  outline: 3px solid rgb(104 118 84 / 15%); outline-offset: 0;
}
#view table tbody tr {
  transition: background-color .15s;
}
#view table tbody tr:hover {
  background-color: var(--table-row-hover) !important;
}
#view button, #nav a { border-radius: 12px; }
#view .font-serif, #viewTitle { font-family: "DM Serif Display", Georgia, serif !important; font-weight: 400; }
#topRole { border-radius: 999px; background: var(--olive-100) !important; color: var(--olive-900) !important; }
#login { background: var(--bone) !important; position: relative; overflow: hidden; }
#login::after { content:""; position:absolute; width:420px; height:420px; border-radius:50%; background:var(--olive-100); right:-230px; top:-180px; }
#login > div { position:relative; z-index:1; background:var(--paper); border-radius:24px !important; border-color:var(--line); box-shadow:var(--shadow); }
#login img { width: 132px; height:132px; box-shadow:none; }

.vero-bottom-nav {
  position:fixed; z-index:45; left:0; right:0; bottom:0; display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr)); padding:7px 8px calc(7px + env(safe-area-inset-bottom));
  background:rgb(252 251 247 / 97%); border-top:1px solid var(--line); box-shadow:0 -10px 30px rgb(50 54 42 / 6%);
}
.vero-bottom-nav a { min-width:0; min-height:52px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; color:var(--muted); font-size:.62rem; font-weight:700; text-align:center; }
.vero-bottom-nav .nav-icon { font-size:1.05rem; line-height:1; }
.vero-bottom-nav a.active { color:var(--olive-900) !important; background:var(--olive-100) !important; }

.workshop-stepper { display:grid; grid-template-columns:repeat(4,1fr); gap:5px; margin-bottom:8px; }
.workshop-step { height:7px; border-radius:99px; background:#ddd8ca; }
.workshop-step.done,.workshop-step.current { background:var(--olive-600); }
.workshop-step-label { margin-bottom:18px; color:var(--olive-700); font-weight:800; font-size:.78rem; }
.workshop-panel[hidden] { display:none !important; }
.workshop-actions { position:sticky; z-index:20; bottom:74px; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; padding:12px; margin:24px -4px -4px; background:rgb(244 241 232 / 92%); border:1px solid var(--line); border-radius:16px; backdrop-filter:blur(12px); }

.calendar-view-tabs { display:flex; gap:4px; padding:4px; background:#e9e5db; border-radius:14px; }
.calendar-view-tabs button { min-height:42px; padding:8px 14px; border-radius:11px; color:var(--muted); font-weight:800; }
.calendar-view-tabs button.active { background:var(--paper); color:var(--olive-900); box-shadow:0 2px 8px #3331; }
.agenda-time { min-width:64px; color:var(--olive-900); font-weight:800; }
.per-cal-grid { gap:0 !important; }
.per-cal-cell { min-height:0; overflow:hidden; }
.per-cal-day { min-height:96px; }
.per-cal-count { display:grid; place-items:center; width:2rem; height:2rem; margin:10px auto 0; border-radius:999px; background:var(--olive-100); color:var(--olive-900); font-weight:800; font-size:.95rem; }
.per-pagos-table { width:100%; table-layout:fixed; }
.compras-tickets-table { width:100% !important; min-width:100%; table-layout:fixed; }

/* En celular aprovechamos todo el ancho útil para formularios, tablas y
   tarjetas de datos. Los controles conservan su área táctil propia. */
@media (max-width:699px) {
  #view { padding-left:2px !important; padding-right:2px !important; }
  #view > .p-4, #view > .p-5, #view > .p-6,
  #view .bg-white.border.border-line.rounded-xl,
  #view .rounded-xl.border.border-line.bg-white { padding-left:2px !important; padding-right:2px !important; }
  #view table th, #view table td { padding-left:2px !important; padding-right:2px !important; }
  .per-pagos-table th, .per-pagos-table td { white-space:normal; overflow-wrap:anywhere; }
  .per-pagos-table th:nth-child(1), .per-pagos-table td:nth-child(1) { width:21%; }
  .per-pagos-table th:nth-child(2), .per-pagos-table td:nth-child(2) { width:30%; }
  .per-pagos-table th:nth-child(4), .per-pagos-table td:nth-child(4) { width:19%; }
  .per-pagos-table th:nth-child(5), .per-pagos-table td:nth-child(5) { width:30%; }
  .compras-tickets-table th:nth-child(1), .compras-tickets-table td:nth-child(1) { width:24%; }
  .compras-tickets-table th:nth-child(2), .compras-tickets-table td:nth-child(2) { width:48%; }
  .compras-tickets-table th:nth-child(3), .compras-tickets-table td:nth-child(3) { width:28%; }
  .compras-tickets-table td { overflow-wrap:anywhere; }
  #view input, #view select, #view textarea, #view button { /* no quitar el padding táctil de los controles */ }
  .per-cal-day { padding-left:0 !important; padding-right:0 !important; }
  .per-cal-activity { display:none !important; }
  .per-cal-day > span { font-size:.62rem !important; }
  .per-cal-day button { padding-left:1px !important; padding-right:1px !important; border-radius:5px !important; }
  .per-cal-day button strong { font-size:.56rem !important; line-height:1.1; white-space:normal; overflow-wrap:anywhere; }
  .per-cal-cell { aspect-ratio:1 / 1; }
  .per-cal-day { min-height:0; }
  .per-cal-count { width:1.45rem; height:1.45rem; margin-top:5px; font-size:.75rem; }
}

@media (min-width:1024px) {
  .vero-bottom-nav { display:none; }
  #view { padding-bottom:60px; }
  .workshop-actions { bottom:20px; }
}

/* =========================================================
   Reporte principal administrativo
   ========================================================= */
.report-center { display: grid; gap: 16px; }
.report-principal-kpis { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.report-principal-kpi { display:flex; flex-direction:column; align-items:center; gap:3px; min-width:0; padding:14px; border:1px solid var(--line); border-top:3px solid var(--olive-600); border-radius:14px; background:var(--paper); text-align:center; }
.report-principal-kpi small { color:var(--muted); font-size:.72rem; font-weight:800; }
.report-principal-kpi strong { font-family:"DM Serif Display",Georgia,serif; font-size:1.45rem; line-height:1.1; overflow-wrap:anywhere; }
.report-principal-kpi span { color:var(--muted); font-size:.7rem; }
.report-principal-lines { display:grid; gap:0; }
.report-principal-lines > div { display:grid; grid-template-columns:1fr auto; gap:8px; padding:9px 0; border-bottom:1px solid var(--line); }
.report-principal-lines small { grid-column:1 / -1; color:var(--muted); font-size:.68rem; }
.report-principal-lines .total { font-weight:800; border-bottom:0; }
.report-principal-waterfall { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.report-principal-waterfall span,.report-principal-waterfall > strong { display:flex; flex-direction:column; gap:2px; padding:10px 12px; border-radius:10px; background:var(--surface2,#f4f2e9); font-size:.75rem; }
.report-principal-waterfall b { font-size:1rem; }
.report-principal-waterfall > strong { background:var(--olive-100); color:var(--olive-900); }
.report-payroll-group { display:grid; gap:3px; color:var(--muted); font-size:.66rem; font-weight:800; white-space:nowrap; }
.report-payroll-group select { min-height:40px; padding:7px 9px; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:#fff; font-size:.78rem; }
.report-payroll-people { display:grid; gap:6px; min-width:190px; }
.report-payroll-person { display:inline-flex; align-items:center; gap:7px; min-width:0; }
.report-payroll-person i { display:inline-block; width:10px; height:10px; flex:0 0 10px; border-radius:999px; box-shadow:0 0 0 1px #fff,0 0 0 2px var(--line); }
.report-payroll-person span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.report-payroll-person b { margin-left:auto; white-space:nowrap; }
.report-payroll-total { background:var(--olive-100); font-weight:800; }
.admin-cal-grid { gap:0 !important; }
.admin-cal-cell { border-radius:0 !important; }
.admin-cal-wrap { padding:0 !important; }
.admin-cal-cell button { font-size:.64rem !important; }
.admin-cal-cell > .text-\[11px\] { font-size:.64rem !important; }
.report-center section { min-width: 0; }
.report-tabs {
  display: flex; gap: 5px; overflow-x: auto; padding: 5px; margin-bottom: -4px;
  background: #e8e4d9; border: 1px solid var(--line); border-radius: 15px; scrollbar-width: thin;
}
.report-tabs button {
  flex: 1 0 auto; min-height: 44px; padding: 8px 12px; border: 0; background: transparent;
  color: var(--muted); font-size: .76rem; font-weight: 800; white-space: nowrap; cursor: pointer;
}
.report-tabs button.active { color: var(--olive-900); background: var(--paper); box-shadow: 0 2px 8px #3331; }
.report-tab-wide { display: none; }
.report-global {
  position: sticky; z-index: 24; top: 68px; display: grid; gap: 9px; padding: 11px;
  background: rgb(252 251 247 / 96%); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 26px #32362a14;
  backdrop-filter: blur(14px);
}
.report-global-main { display: flex; align-items: end; gap: 9px; overflow-x: auto; padding-bottom: 1px; }
.report-global label, .report-filter-grid label, .report-directory-filters label, .report-inline-filters label, .report-be-inputs label {
  display: grid; gap: 3px; color: var(--muted); font-size: .66rem; font-weight: 800; white-space: nowrap;
}
.report-global select, .report-global input, .report-filter-grid select, .report-directory-filters select,
.report-directory-filters input, .report-inline-filters select, .report-be-inputs input, .report-pager select {
  min-height: 40px !important; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px !important;
  color: var(--ink); background: white; font-size: .78rem;
}
.report-check { display: flex !important; flex-direction: row; align-items: center; align-self: center; gap: 7px !important; }
.report-check input { min-height: auto !important; width: 18px; height: 18px; accent-color: var(--olive-700); }
.report-filter-details summary, .report-chart-table summary, .report-insufficient summary {
  width: fit-content; color: var(--olive-900); font-size: .76rem; font-weight: 800; cursor: pointer;
}
.report-filter-grid { display: grid; gap: 9px; grid-template-columns: repeat(2,minmax(0,1fr)); padding-top: 10px; }
.report-filter-grid label, .report-filter-grid button { min-width: 0; }
.report-chips { display: flex; gap: 6px; align-items: center; overflow-x: auto; min-height: 35px; }
.report-chip {
  flex: 0 0 auto; min-height: 31px; padding: 5px 9px; color: var(--olive-900); background: white;
  border: 1px solid var(--line); border-radius: 999px !important; font-size: .68rem; font-weight: 750;
}
.report-chip.fixed { background: var(--olive-100); }
.report-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.report-section-head h3 { margin: 0 0 3px; font-family: "DM Serif Display", Georgia, serif; font-size: 1.25rem; font-weight: 400; }
.report-section-head p { margin: 0; max-width: 68ch; color: var(--muted); font-size: .76rem; }
.report-kpi-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.report-kpi {
  min-height: 135px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 13px;
  border: 1px solid var(--line); border-top: 3px solid var(--olive-600); border-radius: 15px !important;
  color: var(--ink); background: var(--paper); box-shadow: var(--shadow); text-align: left; cursor: pointer;
}
.report-kpi.negative { border-top-color: var(--danger); }
.report-kpi > span { color: var(--muted); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.report-kpi strong { font-family: "DM Serif Display", Georgia, serif; font-size: clamp(1.12rem,4vw,1.7rem); font-weight: 400; line-height: 1.1; }
.report-kpi em { margin-top: auto; color: var(--olive-700); font-size: .67rem; font-style: normal; font-weight: 800; }
.report-delta { display: block; color: var(--muted); font-size: .62rem; font-weight: 700; }
.report-delta.up { color: var(--success); }
.report-delta.down { color: var(--danger); }
.report-source { display: inline-flex; width: fit-content; padding: 2px 7px; border-radius: 999px; font-size: .6rem; font-weight: 900; }
.source-real { color: var(--success); background: var(--success-soft); }
.source-mixed { color: #7a501f; background: var(--amber-soft); }
.source-estimated { color: var(--blue); background: #e3eef0; }
.report-grid-2 { display: grid; gap: 14px; margin-top: 14px; }
.report-chart { min-width: 0; margin: 0; }
.report-chart figcaption { margin-bottom: 8px; color: var(--ink); font-family: "DM Serif Display", Georgia, serif; font-size: 1rem; }
.report-chart svg { display: block; width: 100%; height: auto; max-height: 390px; overflow: visible; }
.report-axis { stroke: #c8c3b7; stroke-width: 1; }
.report-svg-label, .report-svg-value { fill: var(--muted); font: 10px Manrope, sans-serif; }
.report-svg-value { fill: var(--ink); font-weight: 700; }
.report-bar { fill: var(--olive-600); }
.report-dot { fill: var(--amber); stroke: var(--paper); stroke-width: 2; }
.report-legend { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-bottom: 6px; color: var(--muted); font-size: .67rem; }
.report-legend span { display: inline-flex; align-items: center; gap: 5px; }
.report-legend i { width: 14px; height: 7px; display: inline-block; border-radius: 99px; }
.report-axis-label { margin-bottom: 4px; color: var(--muted); font-size: .65rem; }
.report-chart-table { margin-top: 8px; }
.report-chart-table > .overflow-x-auto { margin-top: 8px; max-height: 360px; overflow: auto; }
.report-empty { padding: 30px 12px; color: var(--muted); background: var(--bone); border-radius: 12px; text-align: center; font-size: .78rem; }
.report-alerts { display: grid; gap: 8px; margin-top: 12px; }
.report-alerts button { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 12px !important; background: white; text-align: left; }
.report-alerts button > span:first-child { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--success-soft); color: var(--success); font-weight: 900; }
.report-alerts button.warning > span:first-child { color: #7a501f; background: var(--amber-soft); }
.report-alerts strong, .report-alerts small { display: block; }
.report-alerts small { color: var(--muted); font-size: .68rem; }
.report-alerts em { color: var(--olive-700); font-size: .65rem; font-style: normal; font-weight: 800; }
.report-stack-chart { display: grid; gap: 7px; }
.report-stack-row { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 7px; color: var(--muted); font-size: .62rem; }
.report-stack-row > div { height: 16px; display: flex; overflow: hidden; border-radius: 5px; background: #e7e3d9; }
.report-stack-row i { display: block; height: 100%; }
.stack-new { background: var(--olive-600) !important; }.stack-known { background: var(--amber) !important; }.stack-react { background: var(--blue) !important; }
.report-segment-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.report-segment-grid article { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.report-segment-grid span, .report-segment-grid strong, .report-segment-grid small { display: block; }
.report-segment-grid span { color: var(--muted); font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.report-segment-grid strong { margin: 3px 0; font-size: 1rem; }
.report-segment-grid small { color: var(--muted); font-size: .62rem; }
.report-kpi-strip { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; overflow: hidden; margin: 12px 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.report-kpi-strip > span { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 11px; background: var(--paper); color: var(--muted); font-size: .65rem; font-weight: 700; }
.report-kpi-strip b { color: var(--ink); font-family: "DM Serif Display", Georgia, serif; font-size: 1.05rem; font-weight: 400; }
.report-kpi-strip small { color: var(--muted); font-size: .6rem; }
.report-directory-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-bottom: 12px; }
.report-directory-filters .report-search { grid-column: 1 / -1; }
.report-link { padding: 0; border: 0; color: var(--olive-900); background: transparent; text-align: left; cursor: pointer; }
.report-link strong, .report-link small { display: block; }
.report-link small { color: var(--muted); font-size: .68rem; }
.report-desktop-table { display: none; }
.report-mobile-list { display: grid; gap: 8px; }
.report-mobile-row { border: 1px solid var(--line); border-radius: 12px; background: white; }
.report-mobile-row summary { display: flex; justify-content: space-between; gap: 8px; padding: 11px; cursor: pointer; list-style: none; }
.report-mobile-row summary strong, .report-mobile-row summary small { display: block; }
.report-mobile-row summary small { color: var(--muted); font-size: .65rem; }
.report-mobile-row > div { display: grid; gap: 7px; padding: 0 11px 11px; }
.report-mobile-row > div span { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .7rem; }
.report-mobile-row > div b { color: var(--ink); }
.report-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; color: var(--muted); font-size: .68rem; }
.report-pager label { display: flex; align-items: center; gap: 5px; }
.report-pager div { display: flex; gap: 5px; }
.report-pager button { min-width: 40px; min-height: 38px; border: 1px solid var(--line); background: white; font-weight: 900; }
.report-pager button:disabled { opacity: .4; }
.report-ranking-grid { display: grid; gap: 14px; }
.report-ranking-grid h4 { margin: 0 0 7px; font-size: .78rem; }
.report-ranking { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.report-ranking li { min-height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: .7rem; }
.report-ranking li > span { min-width: 0; display: flex; align-items: center; gap: 7px; }
.report-ranking li > span > b { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--olive-100); font-size: .6rem; }
.report-ranking li small { display: block; color: var(--muted); font-size: .57rem; }
.report-ranking li strong { flex: 0 0 auto; }
.report-mini-kpis { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.report-mini-kpis > span { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.report-mini-kpis small, .report-mini-kpis b { display: block; }
.report-mini-kpis small { color: var(--muted); font-size: .62rem; }
.report-mini-kpis b { overflow: hidden; font-family: "DM Serif Display", Georgia, serif; font-size: 1rem; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
.report-secondary-metric, .report-loss-note, .report-privacy-note { margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--bone); font-size: .7rem; }
.report-inline-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.report-insufficient { margin-top: 13px; padding-top: 10px; border-top: 1px solid var(--line); }
.report-insufficient p { margin: 7px 0 0; color: var(--muted); font-size: .7rem; }
.report-be-inputs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.report-be-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 14px; margin: 12px 0; padding: 12px; border-radius: 12px; background: var(--olive-100); }
.report-be-result strong { font-family: "DM Serif Display", Georgia, serif; font-size: 1.35rem; font-weight: 400; }
.report-be-result span { color: var(--muted); font-size: .7rem; }
.report-subtabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 12px; padding: 4px; border-radius: 13px; background: #e8e4d9; }
.report-subtabs button { flex: 1 0 auto; min-height: 40px; padding: 7px 10px; border: 0; color: var(--muted); background: transparent; font-size: .7rem; font-weight: 800; }
.report-subtabs button.active { color: var(--olive-900); background: var(--paper); box-shadow: 0 2px 7px #3331; }
.report-forecast { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; padding: 12px; border: 1px dashed #b9ae96; border-radius: 13px; background: #f7f3e8; color: var(--muted); font-size: .68rem; }
.report-forecast div { margin-right: auto; }.report-forecast div span,.report-forecast div strong { display: block; }.report-forecast strong { color: var(--ink); }
.report-loss-note { color: var(--danger); background: var(--danger-soft); border-color: #e9bcb6; }
.report-ops-alerts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 12px 0; }
.report-ops-alerts article { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--success-soft); color: var(--success); }
.report-ops-alerts article.warning { color: #7a501f; background: var(--amber-soft); }
.report-ops-alerts b, .report-ops-alerts span { display: block; }.report-ops-alerts b { font-size: 1.2rem; }.report-ops-alerts span { font-size: .62rem; }
.report-findings { max-height: 330px; overflow: auto; }
.report-findings p { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.report-heatmap { display: grid; grid-template-columns: minmax(76px,auto) repeat(var(--weeks),minmax(34px,1fr)); gap: 4px; min-width: max-content; overflow-x: auto; }
.report-heatmap b, .report-heatmap strong { padding: 4px; color: var(--muted); font-size: .58rem; }
.report-heatmap i { min-width: 34px; min-height: 30px; display: grid; place-items: center; border-radius: 6px; color: color-mix(in srgb, var(--ink) calc((1 - var(--heat)) * 100%), white); background: color-mix(in srgb, var(--olive-600) calc(var(--heat) * 100%), var(--bone)); font-size: .58rem; font-style: normal; }

@media (min-width:700px) {
  .report-tab-wide { display: inline; }.report-tab-short { display: none; }
  .report-filter-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .report-kpi-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .report-grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-segment-grid article { padding: 15px; }.report-segment-grid strong { font-size: 1.2rem; }
  .report-kpi-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .report-directory-filters { grid-template-columns: minmax(210px,1.5fr) repeat(5,minmax(115px,1fr)); }
  .report-directory-filters .report-search { grid-column: auto; }
  .report-desktop-table { display: block; }.report-mobile-list { display: none; }
  .report-ranking-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-mini-kpis { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .report-be-inputs { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (min-width:1100px) {
  .report-tabs button { font-size: .8rem; }
  .report-kpi-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .report-kpi-strip.finance { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .report-ranking-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .report-mini-kpis { grid-template-columns: repeat(6,minmax(0,1fr)); }
}
@media (max-width:699px) {
  .report-principal-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .report-principal-kpi { padding:9px 6px; }
  .report-principal-kpi strong { font-size:1.15rem; }
  .admin-cal-cell { font-size:.68rem; }
  .admin-cal-cell button { font-size:.55rem !important; padding-left:1px !important; padding-right:1px !important; }
  .admin-cal-cell button > span:first-child { white-space:normal; overflow-wrap:anywhere; line-height:1.05; }
  .report-global { top: 68px; }
  .report-global-main { flex-wrap: wrap; }
  .report-global-main .report-export-csv { order: 3; flex: 1 0 100%; width: 100%; }
  .report-global-main .inline-flex { flex: 0 0 auto; }
  .report-kpi { min-height: 122px; padding: 11px; }
  .report-kpi > .report-source { margin-top: 1px; }
  .report-chart svg { min-height: 180px; }
  .report-section-head { align-items: flex-start; }
}
