:root {
    --bg: #f3f7f8;
    --panel: #ffffff;
    --ink: #17202a;
    --muted: #6b7886;
    --line: #dce5e8;
    --primary: #096b72;
    --primary-2: #0f8f8a;
    --accent: #d4823f;
    --danger: #b53b4b;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
input, button { font: inherit; }
.shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    background: #102326;
    color: #e7f2f1;
    padding: 24px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
}
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--primary-2);
    border-radius: 8px;
    font-weight: 800;
}
.brand small { display: block; color: #a9c1c0; margin-top: 2px; }
.nav { display: grid; gap: 4px; }
.nav-block { display: grid; gap: 4px; }
.nav a {
    padding: 10px 12px;
    border-radius: 8px;
    color: #c9dcdb;
}
.nav a.active, .nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-submenu {
    display: grid;
    gap: 2px;
    margin: -1px 0 6px 12px;
    padding-left: 10px;
    border-left: 2px solid rgba(255,255,255,.16);
}
.nav-submenu a {
    padding: 7px 10px;
    color: #a9c1c0;
    font-size: 14px;
}
.nav-submenu a.active {
    background: rgba(15,143,138,.35);
    color: #fff;
}
.main { padding: 28px; min-width: 0; }
.topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}
.topbar h1, h2, h3 { margin: 0; letter-spacing: 0; }
.topbar h1 { font-size: 28px; }
.eyebrow {
    margin: 0 0 4px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.topbar form { display: flex; align-items: center; gap: 10px; }
.user { color: var(--muted); }
.button {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 14px;
    background: #fff;
    cursor: pointer;
}
.button.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.button.ghost { background: transparent; }
.kpi-grid, .module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.kpi-grid article, .module-card, .table-panel, .form-card, .module-hero, .empty-state {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.kpi-grid article { padding: 18px; }
.kpi-grid span { color: var(--muted); display: block; }
.kpi-grid strong { display: block; margin-top: 8px; font-size: 30px; }
.module-grid { margin-top: 18px; }
.module-card { padding: 18px; min-height: 128px; }
.module-card span { font-weight: 800; }
.module-card p { color: var(--muted); margin: 8px 0 0; }
.module-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 18px;
    padding: 18px;
    margin-bottom: 16px;
}
.module-hero p { color: var(--muted); margin-bottom: 0; }
.quick-action, .form-card { display: grid; gap: 10px; }
.quick-action { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
.quick-action .button { grid-column: 1 / -1; }
label { display: grid; gap: 6px; color: var(--muted); font-weight: 650; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
}
textarea { min-height: 84px; resize: vertical; }
.table-panel { overflow: hidden; }
.table-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table-toolbar input { max-width: 260px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.auth-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: center;
    max-width: 960px;
    margin: 10vh auto;
}
.form-card { padding: 18px; }
.alert { background: #fff1f2; color: var(--danger); border: 1px solid #f3c3ca; padding: 10px 12px; border-radius: 8px; }
.admin-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; }
.empty-state { padding: 24px; }
.fichas-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.fichas-summary article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}
.fichas-summary span { display: block; color: var(--muted); font-size: 13px; }
.fichas-summary strong { display: block; margin-top: 5px; font-size: 24px; }
.tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 14px;
}
.tabs a {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 12px;
    color: var(--muted);
    background: #fff;
    white-space: nowrap;
}
.tabs a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.fichas-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
    align-items: start;
}
.fichas-main { min-width: 0; display: grid; gap: 14px; }
.filter-panel {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}
.filter-panel input:first-of-type { grid-column: span 2; }
.side-panel {
    position: sticky;
    top: 20px;
}
.compact-form h3 { margin-bottom: 4px; }
.compact-form select, .compact-form input, .compact-form textarea { min-width: 0; }
.checkline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
}
.checkline input { width: auto; }
.dense-table { min-width: 1040px; }
.dense-table td { font-size: 14px; }
.depor-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7f7f7;
    border: 1px solid #e7e7e7;
    color: #337ab7;
    padding: 10px 14px;
    margin-bottom: 30px;
}
.depor-breadcrumb strong { color: #333; font-weight: 600; }
.breadcrumb-menu { margin-left: auto; }
.depor-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 14px;
}
.title-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.title-cluster h2 {
    font-size: 38px;
    line-height: 1.08;
    max-width: 420px;
}
.title-icon {
    display: inline-block;
    color: #333;
    font-size: 34px;
    line-height: 1;
}
.success-button {
    background: #5cb85c;
    border-color: #4cae4c;
    color: #fff;
}
.card-search {
    display: grid;
    grid-template-columns: auto minmax(120px, 180px) 42px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    align-items: center;
    min-height: 36px;
}
.card-search label {
    padding: 8px 10px;
    color: #555;
    font-weight: 600;
    white-space: nowrap;
}
.card-search input {
    border: 0;
    border-left: 1px solid #ccc;
    border-radius: 0;
    min-height: 36px;
}
.card-search button {
    border: 0;
    border-left: 1px solid #ccc;
    background: #f7f7f7;
    min-height: 36px;
}
.depor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
    align-items: start;
}
.depor-layout-wide { grid-template-columns: minmax(0, 1fr); }
.depor-content { min-width: 0; }
.depor-filter {
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 18px;
}
.depor-filter summary {
    padding: 11px 14px;
    font-weight: 700;
    cursor: pointer;
    color: #333;
    list-style: none;
}
.depor-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border-top: 1px solid #ddd;
    background: #fff;
}
.depor-filter-grid label {
    color: #555;
    font-size: 13px;
}
.filter-note { margin: 0; padding: 14px; background: #fff; color: var(--muted); }
.depor-list-panel {
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
.depor-list-panel > header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: #428bca;
    color: #fff;
    padding: 14px 15px;
}
.depor-list-panel > header strong { font-size: 15px; }
.depor-list-panel > header span { color: #fff; }
.export-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
    align-items: center;
}
.export-actions a {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 4px;
    padding: 6px 9px;
}
.data-controls {
    display: grid;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid #ddd;
}
.data-controls label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #333;
    font-weight: 400;
}
.data-controls select { width: 76px; padding: 6px; }
.data-controls input { width: 205px; padding: 7px; }
.depor-table {
    min-width: 1060px;
    width: 100%;
    border-collapse: collapse;
}
.depor-table th {
    background: #fff;
    color: #333;
    font-size: 14px;
    text-transform: none;
    text-decoration: underline;
    border: 1px solid #ddd;
    vertical-align: bottom;
}
.depor-table td {
    border: 1px solid #ddd;
    padding: 10px 8px;
    background: #fafafa;
    color: #333;
}
.depor-table tr:nth-child(even) td { background: #f4f4f4; }
.avatar-cell {
    display: block;
    width: 36px;
    height: 36px;
    margin: auto;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, #d2d2d2 0 22%, transparent 23%), radial-gradient(circle at 50% 80%, #d2d2d2 0 38%, transparent 39%), #efefef;
}
.contact-lines { color: #333; }
.row-actions {
    display: grid;
    gap: 5px;
    min-width: 70px;
}
.mini-button {
    display: block;
    border-radius: 3px;
    color: #fff;
    padding: 4px 7px;
    text-align: center;
    font-size: 12px;
}
.mini-button.success { background: #5cb85c; }
.mini-button.info { background: #337ab7; }
.table-footer {
    padding: 11px 14px;
    color: #555;
    border-top: 1px solid #ddd;
}
.depor-side-menu {
    display: grid;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
.depor-side-menu a {
    padding: 11px 13px;
    border-bottom: 1px solid #ddd;
    color: #555;
}
.depor-side-menu a:last-child { border-bottom: 0; }
.depor-side-menu a.active {
    background: #337ab7;
    color: #fff;
}
.depor-side-menu span { float: right; }
.depor-create-panel {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    padding: 14px;
    margin-bottom: 16px;
}
.depor-create-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.depor-create-form h3 {
    grid-column: 1 / -1;
    margin: 0 0 4px;
}
.depor-create-form textarea { grid-column: span 2; }
.depor-create-form button { grid-column: 1 / -1; justify-self: start; }
.section-source {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}
.segmented-control {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.segmented-control button,
.product-categories button {
    border: 1px solid #ccd7db;
    background: #fff;
    color: #40505a;
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
}
.segmented-control button.active,
.product-categories button.active {
    background: #337ab7;
    border-color: #337ab7;
    color: #fff;
}
.section-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.section-dashboard-grid article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}
.section-dashboard-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}
.section-dashboard-grid strong {
    display: block;
    margin-top: 8px;
    font-size: 26px;
}
.schedule-board {
    display: grid;
    grid-template-columns: 80px repeat(4, minmax(150px, 1fr));
    gap: 1px;
    overflow: auto;
    border: 1px solid #d8d8d8;
    background: #d8d8d8;
    margin-bottom: 16px;
}
.schedule-time,
.schedule-board article {
    min-height: 72px;
    background: #fff;
    padding: 10px;
}
.schedule-time {
    display: grid;
    place-items: center;
    color: #555;
    font-weight: 700;
}
.schedule-board article {
    border-left: 4px solid #5bc0de;
}
.schedule-board small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}
.schedule-board strong {
    display: block;
    margin-top: 6px;
    color: #333;
}
.reservation-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.reservation-summary article {
    background: #fff;
    border: 1px solid #d9e4e6;
    border-radius: 8px;
    padding: 14px 16px;
}
.reservation-summary span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}
.reservation-summary strong {
    display: block;
    margin-top: 6px;
    font-size: 26px;
}
.reservation-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    align-items: start;
    margin-bottom: 16px;
}
.reservation-agenda-panel,
.reservation-side section {
    background: #fff;
    border: 1px solid #d7e1e4;
    border-radius: 8px;
    overflow: hidden;
}
.reservation-daybar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #d7e1e4;
    background: #f9fbfb;
}
.reservation-daybar strong {
    display: block;
    font-size: 18px;
}
.reservation-daybar span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}
.reservation-daybar nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.reservation-daybar a,
.reservation-side a {
    border: 1px solid #ccd7db;
    border-radius: 6px;
    padding: 7px 10px;
    color: #31535c;
    background: #fff;
    font-weight: 650;
}
.reservation-calendar-head {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    text-align: center;
}
.reservation-calendar-head a {
    padding: 5px 0;
}
.reservation-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}
.reservation-calendar-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}
.reservation-calendar-grid a {
    padding: 7px 0;
    text-align: center;
    border-radius: 6px;
}
.reservation-calendar-grid a.muted {
    color: #9aa7ad;
    background: #f7f9fa;
}
.reservation-calendar-grid a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.reservation-agenda {
    display: grid;
    grid-template-columns: 74px repeat(var(--resource-count), minmax(168px, 1fr));
    min-width: calc(74px + var(--resource-count) * 168px);
    max-height: 760px;
    overflow: auto;
    background: #d8e1e4;
    gap: 1px;
}
.agenda-corner,
.agenda-resource,
.agenda-time {
    position: sticky;
    z-index: 2;
    background: #eef4f5;
    color: #34464c;
    font-weight: 750;
}
.agenda-corner {
    top: 0;
    left: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    min-height: 44px;
}
.agenda-resource {
    top: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
}
.agenda-time {
    left: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    min-height: 56px;
    font-size: 13px;
}
.agenda-slot {
    min-height: 56px;
    background: #fff;
    padding: 6px;
}
.agenda-slot:not(.has-event) {
    display: grid;
    place-items: center;
}
.slot-add {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px dashed #b4c5ca;
    color: #809198;
    background: #f8fbfb;
    cursor: pointer;
}
.reservation-card {
    display: grid;
    gap: 4px;
    border-left: 4px solid #337ab7;
    border-radius: 7px;
    padding: 8px;
    background: #f7fbff;
    box-shadow: inset 0 0 0 1px rgba(51, 122, 183, .16);
}
.reservation-card + .reservation-card { margin-top: 6px; }
.reservation-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #50616a;
    font-size: 12px;
}
.reservation-card-top b {
    border-radius: 999px;
    padding: 2px 7px;
    background: #e9f3f1;
    color: #27665d;
}
.reservation-card strong {
    color: #17202a;
    line-height: 1.2;
}
.reservation-card small {
    color: #52636b;
    line-height: 1.25;
}
.reservation-slots {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.reservation-slots span {
    border-radius: 5px;
    background: rgba(9, 107, 114, .1);
    color: #31535c;
    padding: 3px 6px;
    font-size: 12px;
    font-weight: 700;
}
.reservation-card.status-attended { border-left-color: #3d8b40; background: #f6fbf6; }
.reservation-card.status-done { border-left-color: #3d8b40; background: #f6fbf6; }
.reservation-card.status-cancelled { border-left-color: #b53b4b; background: #fff8f8; }
.reservation-card.status-no_show { border-left-color: #d4823f; background: #fffaf3; }
.reservation-side {
    display: grid;
    gap: 14px;
}
.reservation-side section {
    padding: 14px;
}
.reservation-side h3 {
    margin-bottom: 10px;
    font-size: 16px;
}
.reservation-side article {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 9px 0;
    border-top: 1px solid #edf2f3;
}
.reservation-side article:first-of-type { border-top: 0; }
.reservation-side time {
    color: var(--primary);
    font-weight: 800;
}
.reservation-side article strong,
.reservation-side article span {
    display: block;
    min-width: 0;
}
.reservation-side article span {
    color: var(--muted);
    font-size: 13px;
}
.reservation-side section:last-child {
    display: grid;
    gap: 8px;
}
.reservation-menu h3 {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #edf2f3;
}
.reservation-menu h3:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.reservation-menu a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}
.reservation-menu a.active {
    background: #337ab7;
    border-color: #337ab7;
    color: #fff;
}
.reservation-menu a span {
    color: currentColor;
    opacity: .7;
}
.reservation-modal[hidden] { display: none; }
.reservation-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
}
.reservation-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 19, 22, .46);
}
.reservation-modal-dialog {
    position: relative;
    width: min(920px, calc(100vw - 28px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(10, 25, 30, .28);
}
.reservation-modal-dialog header,
.reservation-modal-dialog footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.reservation-modal-dialog footer {
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    border-bottom: 0;
}
.reservation-modal-dialog header strong {
    display: block;
    font-size: 20px;
}
.reservation-modal-dialog header span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}
.reservation-modal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
}
.reservation-modal-grid .modal-wide {
    grid-column: span 2;
}
.icon-button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}
.tpv-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    margin-bottom: 16px;
}
.tpv-products,
.tpv-ticket,
.settings-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.tpv-products header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}
.tpv-products header span {
    color: #2c6b30;
    font-weight: 700;
}
.product-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 10px;
    padding: 16px;
}
.product-grid article {
    display: grid;
    gap: 8px;
    min-height: 116px;
    border: 1px solid #dfe8ea;
    border-radius: 8px;
    padding: 12px;
    background: #f8fbfb;
}
.product-grid small {
    color: var(--muted);
}
.product-grid span {
    color: var(--primary);
    font-weight: 800;
}
.empty-inline {
    margin: 0;
    color: var(--muted);
}
.tpv-ticket {
    padding: 16px;
    align-self: start;
}
.tpv-ticket p {
    color: var(--muted);
}
.settings-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.settings-panel h3 {
    grid-column: 1 / -1;
    padding-top: 4px;
}
.settings-panel button {
    justify-self: start;
}

@media (max-width: 980px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; padding: 12px; }
    .brand { margin-bottom: 10px; }
    .nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
    .nav-block { flex: 0 0 auto; }
    .nav a { flex: 0 0 auto; white-space: nowrap; padding: 8px 10px; }
    .nav-submenu {
        display: flex;
        gap: 5px;
        margin: 4px 0 0;
        padding-left: 0;
        border-left: 0;
    }
    .nav-submenu a { font-size: 13px; padding: 6px 8px; }
    .main { padding: 18px 14px; }
    .topbar { margin-bottom: 18px; }
    .kpi-grid, .module-grid, .module-hero, .auth-panel, .admin-layout, .fichas-summary, .fichas-layout, .filter-panel, .depor-layout, .depor-filter-grid, .depor-create-form, .section-dashboard-grid, .tpv-layout, .settings-panel, .reservation-summary, .reservation-workbench, .reservation-modal-grid { grid-template-columns: 1fr; }
    .filter-panel input:first-of-type { grid-column: auto; }
    .side-panel { position: static; }
    .depor-heading { display: grid; }
    .title-cluster h2 { font-size: 32px; }
    .card-search { grid-template-columns: auto minmax(80px, 1fr) 42px; max-width: 280px; }
    .export-actions { margin-left: 0; width: 100%; flex-wrap: wrap; }
    .depor-create-form textarea { grid-column: auto; }
    .schedule-board { grid-template-columns: 72px repeat(4, minmax(140px, 1fr)); }
    .reservation-daybar { display: grid; }
    .reservation-agenda { max-height: 620px; }
    .product-grid { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
}

@media (max-width: 560px) {
    .card-search {
        grid-template-columns: 1fr;
        max-width: none;
    }
    .card-search input, .card-search button {
        border-left: 0;
        border-top: 1px solid #ccc;
    }
    .product-grid { grid-template-columns: 1fr; }
}
