@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-var.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #1a1a18;
  --muted: #6f6f6b;
  --faint: #9a9a95;
  --line: #e7e7e4;
  --line-strong: #d4d4cf;
  --panel: #ffffff;
  --page: #fbfbfa;
  --teal: #1c7a68;
  --teal-dark: #145f50;
  --teal-soft: #e7f2ef;
  --green: #2f8a4e;
  --gold: #a3720c;
  --red: #b23a2e;
  --blue: #3568b0;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 18, 0.05);
  --shadow-md: 0 6px 20px rgba(20, 20, 18, 0.09);
  --shadow-lg: 0 16px 40px rgba(20, 20, 18, 0.16);
}

* {
  box-sizing: border-box;
}

.icon-sprite {
  display: none;
}

.icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--ink);
  background: var(--page);
}

button,
input,
select {
  font: inherit;
}

button,
.upload-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  min-height: 36px;
  padding: 7px 13px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-weight: 500;
  box-shadow: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

button:hover,
.upload-control:hover {
  background: #f4f4f2;
  border-color: var(--line-strong);
  box-shadow: none;
  transform: none;
}

button:active,
.upload-control:active {
  background: #ececea;
  transform: none;
  box-shadow: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
  transform: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
.upload-control:focus-within {
  outline: 2px solid rgba(28, 122, 104, 0.35);
  outline-offset: 2px;
}

button[type="submit"] {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  font-weight: 500;
}

button[type="submit"]:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.language-select {
  width: auto;
  min-width: 116px;
  background: #fff;
  border: 1px solid var(--line-strong);
}

.secondary-button-light {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

.secondary-button-light:hover {
  background: #f4f4f2;
}

.user-menu {
  position: relative;
}

.user-menu-toggle {
  min-height: 36px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.user-menu-toggle:hover {
  background: #f4f4f2;
  color: var(--ink);
  transform: none;
  box-shadow: none;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.user-menu-dropdown button {
  justify-content: flex-start;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: none;
  font-weight: 400;
}

.user-menu-dropdown button:hover {
  background: #f4f4f2;
  color: var(--ink);
  transform: none;
  box-shadow: none;
}

/* Oculto salvo en movil (ver @media max-width:1040px), donde el menu de
   secciones deja de ir siempre visible y pasa a un cajon que se abre con
   este boton en vez de una fila que hay que deslizar. */
.hamburger-button {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--line);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(26, 26, 24, 0.45);
}

.app-shell {
  width: min(1600px, calc(100% - 32px));
  margin: 20px auto 40px;
}

.app-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-top: 20px;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.app-main {
  min-width: 0;
  flex: 1;
  width: 100%;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 0 0 20px;
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}

.brand-logo {
  display: block;
  height: 30px;
  width: auto;
}

#periodLabel {
  margin: 0 16px 16px;
  color: var(--muted);
  font-size: 13px;
}

.upload-control input {
  display: none;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.data-import-actions {
  justify-content: flex-start;
  padding: 16px;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(26, 26, 24, 0.45);
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.login-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-card h1 {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.login-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 400;
}

.login-error {
  margin: 0;
  padding: 9px 10px;
  color: #8a271e;
  background: #fbeeec;
  border: 1px solid #f1d3ce;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 13px;
}

/* Equipo nuevo (p. ej. un movil recien instalado): aun no conoce los usuarios hasta conectar Drive.
   ".login-card p" pesa mas que una clase suelta, por eso el selector doble. */
.login-card .login-sync-hint {
  margin: 0;
  padding: 9px 10px;
  color: #8a5a0c;
  background: #fdf3df;
  border: 1px solid #ecdcb8;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 400;
}

/* Sin servidor local (app instalada en el movil o hosting estatico) no se pueden importar Excel:
   el boton no sirve de nada, se cambia por una nota. */
.import-needs-pc {
  display: none;
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 13px;
}

body.no-server .import-needs-pc {
  display: block;
}

body.no-server #dataImportPanel .data-import-actions {
  display: none;
}

/* Panel que se desliza desde el borde derecho (detalle de una categoria al
   tocarla en movil), a diferencia de .login-overlay que centra su tarjeta. */
.side-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  background: rgba(26, 26, 24, 0.45);
}

.side-panel {
  width: min(320px, 88vw);
  height: 100%;
  overflow-y: auto;
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.side-panel-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.icon-only-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
}

.side-panel-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-panel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.side-panel-row span:first-child {
  color: var(--muted);
  font-size: 13px;
}

.side-panel-row span:last-child {
  font-weight: 500;
}

.drive-assistant-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--page);
}

.drive-assistant-status .icon {
  color: var(--faint);
}

.drive-assistant-status.is-ok .icon {
  color: var(--teal);
}

.drive-assistant-tip {
  margin: 0;
  padding: 9px 10px;
  color: #8a5a0c;
  background: #fdf3df;
  border: 1px solid #ecdcb8;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 400;
}

.modal-actions {
  display: flex;
  gap: 8px;
}

.modal-actions button {
  flex: 1;
}

.section-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: none;
  border-radius: 0;
}

.section-tabs::-webkit-scrollbar {
  height: 6px;
}

.section-tabs::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}

.section-tab {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  min-width: 104px;
  white-space: nowrap;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  box-shadow: none;
  border-radius: var(--radius-sm);
  font-weight: 400;
}

.section-tab:hover {
  background: #f0f0ee;
  color: var(--ink);
  box-shadow: none;
  transform: none;
}

.section-tab.active {
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 500;
  box-shadow: none;
}

.section-tab[data-badge]::after {
  content: attr(data-badge);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.status-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: stretch;
  margin: 0;
}

.status-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  text-align: left;
  justify-content: flex-start;
  cursor: pointer;
  box-shadow: none;
  border-radius: var(--radius-sm);
  transition: background 0.12s ease, border-color 0.12s ease;
}

.status-item:hover {
  background: #f0f0ee;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.status-item-static {
  cursor: default;
}

.status-item-static:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.status-item .icon {
  width: 18px;
  height: 18px;
  color: var(--faint);
}

.status-item-body {
  min-width: 0;
  flex: 1;
}

.status-item.is-attention .icon {
  color: var(--gold);
}

.status-item.is-ok .icon {
  color: var(--teal);
}

.status-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 2px;
}

.status-item strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#resetAllFilters {
  min-width: 0;
  justify-content: flex-start;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

#resetAllFilters:hover {
  background: #f0f0ee;
  color: var(--ink);
}

.app-section {
  display: none;
}

.app-section.active {
  display: block;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px 18px;
  min-height: 80px;
  border-radius: var(--radius-md);
  box-shadow: none;
  transition: border-color 0.12s ease;
}

.kpi:hover {
  border-color: var(--line-strong);
  box-shadow: none;
  transform: none;
}

.kpi .icon {
  width: 20px;
  height: 20px;
  color: var(--faint);
}

.kpi-body {
  min-width: 0;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  margin-bottom: 6px;
}

.kpi strong {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.kpi.income .icon {
  color: var(--green);
}

.kpi.expense .icon {
  color: var(--red);
}

.kpi.takeaway .icon {
  color: var(--gold);
}

.kpi.mainshare .icon {
  color: var(--teal);
}

.kpi.cash .icon {
  color: var(--green);
}

.kpi-wide {
  grid-column: 1 / -1;
}

.next-action-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.next-action-panel.is-attention {
  border-color: #ecdcb8;
  background: #fdf9f0;
}

.next-action-copy {
  min-width: 0;
}

.next-action-copy span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.next-action-copy h2,
.next-action-copy p {
  margin: 0;
}

.next-action-copy h2 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.next-action-copy p {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.4;
  font-size: 13.5px;
}

.next-action-panel button {
  flex: 0 0 auto;
  min-width: 140px;
}

.workbench,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(360px, 0.75fr);
  gap: 20px;
}

.manual-workbench {
  grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1.2fr);
}

.daily-entry-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.85fr) minmax(0, 1.15fr);
  gap: 20px;
}

.daily-entry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manual-advanced {
  display: none;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  min-width: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: none;
}

.hidden {
  display: none;
}

/* .chart-controls y .filter-bar fijan su propio display:flex mas abajo en
   este archivo, con la misma especificidad que .hidden: sin esto ganaria
   el que este mas tarde en la hoja de estilos y el panel plegable no
   llegaria a ocultarse. */
.chart-controls.hidden,
.filter-bar.hidden {
  display: none;
}

.notice-panel {
  margin-bottom: 20px;
  border-color: #ecdcb8;
}

.uncategorized-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 16px;
  padding: 16px;
  align-items: end;
}

.uncategorized-body p {
  margin: 6px 0 0;
  color: var(--muted);
}

.quick-category-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.panel-head-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.panel-head-title .icon {
  color: var(--faint);
}

.chart-controls {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chart-filter-extra {
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  justify-content: flex-start;
}

.panel-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-toggle {
  min-height: 30px;
  padding: 5px 11px;
  font-size: 12.5px;
}

.chart-controls label {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  min-width: 124px;
}

.chart-controls label span {
  font-size: 12px;
  color: var(--muted);
}

.chart-controls select {
  min-width: 240px;
}

.chart-controls button {
  min-height: 34px;
}

.chart-canvas-wrap {
  position: relative;
}

.chart-panel canvas {
  display: block;
  width: 100%;
  height: 360px;
  padding: 12px;
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  min-width: 190px;
  max-width: 260px;
  padding: 9px 11px;
  background: #262622;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 12px;
  line-height: 1.45;
  z-index: 3;
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 500;
}

.chart-tooltip span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.chart-tooltip-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: #fff;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: inherit;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(28, 122, 104, 0.14);
  outline: none;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--faint);
}

.wide {
  grid-column: 1 / -1;
}

.category-code-field {
  max-width: 90px;
}

td.category-code-field input {
  min-width: 0;
}

.table-panel {
  margin: 0 0 20px;
}

.table-actions {
  display: flex;
  gap: 8px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: end;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 3;
}

.filter-bar > label {
  flex: 1 1 140px;
  min-width: 0;
  /* Sin esto la pista implicita del grid de la etiqueta no baja del ancho
     minimo del <input type="date">, y el campo se sale por la derecha en
     pantallas estrechas (se veia cortado en Mensual, Banco y Caja diaria). */
  grid-template-columns: minmax(0, 1fr);
}

.filter-bar input {
  min-width: 0;
}

.filter-bar > label:first-child {
  flex: 2 1 200px;
}

.filter-bar > button,
.filter-bar > .check-label {
  flex: 0 0 auto;
}

.filter-bar .check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}

.filter-bar .check-label input {
  width: auto;
  min-height: auto;
}

.table-wrap {
  overflow: auto;
  background: var(--panel);
}

.full-height {
  max-height: calc(100vh - 250px);
  min-height: 360px;
}

.summary-height {
  max-height: 340px;
}

.category-summary-panel {
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  white-space: nowrap;
}

th,
td {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 9px 12px;
  text-align: right;
}

th {
  background: var(--page);
  color: var(--muted);
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--line-strong);
}

tbody tr td {
  transition: background 0.1s ease;
}

tbody tr:hover:not(.month-group-row) td {
  background: #f7f7f5;
}

.empty-row td,
tbody tr.empty-row:hover td {
  height: 96px;
  color: var(--muted);
  background: transparent;
  text-align: center;
  font-weight: 400;
}

td:first-child,
th:first-child,
td:nth-child(2),
th:nth-child(2) {
  text-align: left;
}

tfoot td {
  background: var(--page);
  font-weight: 500;
  border-top: 1px solid var(--line-strong);
  border-bottom: none;
}

.month-group-row td {
  background: var(--teal-soft);
  font-weight: 500;
  cursor: pointer;
  border-top: 1px solid var(--line);
}

.month-toggle {
  display: inline-block;
  min-width: 22px;
  color: var(--teal);
}

.summary-row {
  cursor: pointer;
}

.summary-detail-row td {
  background: #fafaf8;
  padding: 12px 16px 16px 40px;
}

/* Solo se usa en movil (ver max-width:1040px), donde la fila del mes no
   tiene sitio para todas las columnas; en escritorio ya estan en la tabla. */
.summary-detail-metrics {
  display: none;
}

.summary-detail-table {
  width: 100%;
  font-size: 12.5px;
}

.summary-detail-table th,
.summary-detail-table td {
  padding: 6px 10px;
}

.summary-detail-table tbody tr:last-child td {
  border-bottom: none;
}

.reference-row td {
  font-style: italic;
}

.reference-row td:first-child,
.reference-row td:nth-child(2),
.reference-row td:nth-child(3),
.reference-row td:nth-child(4) {
  color: var(--muted);
}

.reference-tag {
  font-size: 11px;
  font-style: normal;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}

.editing-row td {
  background: var(--teal-soft);
}

.history-toggle {
  font-size: 11px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}

.manual-history-row td {
  background: #fafaf8;
  padding: 8px 16px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-entry {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.history-meta {
  color: var(--muted);
}

.history-changes {
  color: var(--ink);
}

.month-good {
  background: #eaf5ec;
}

.month-warn {
  background: #fbf1de;
}

.month-bad {
  background: #fbeae8;
}

.money-negative {
  color: #a3392e;
}

.money-positive {
  color: #1f7a45;
}

.compact {
  max-height: 430px;
}

.compact td,
.compact th {
  font-size: 12px;
}

.badge {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 500;
  font-size: 13px;
}

.current-user-row td {
  background: var(--teal-soft);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  white-space: nowrap;
  justify-content: flex-end;
}

.manual-edit-cell {
  padding: 0;
  text-align: left;
}

.manual-edit-grid {
  white-space: normal;
  text-align: left;
}

.manual-edit-actions {
  justify-content: flex-start;
}

.wide-panel {
  grid-column: 1 / -1;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: #262622;
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-weight: 400;
  font-size: 13.5px;
}

@media (min-width: 1041px) {
  .app-layout {
    flex-direction: row;
  }

  .app-sidebar {
    width: 232px;
    flex: 0 0 232px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding-right: 2px;
  }

  .section-tabs {
    flex-direction: column;
    align-items: stretch;
    overflow-x: visible;
    position: static;
  }

  .section-tabs::-webkit-scrollbar {
    width: 6px;
    height: auto;
  }

  .section-tab {
    justify-content: flex-start;
    min-width: 0;
  }

  .full-height {
    max-height: calc(100vh - 140px);
  }

  /* Mensual tiene 11 columnas (1333px): en un portatil de 1440px se pasaba
     ~180px y las ultimas columnas (Caja acumulada, Rendimiento) obligaban a
     deslizar. Cabeceras en dos lineas y un poco menos de relleno lateral la
     dejan en ~1110px. */
  #summaryTable th {
    white-space: normal;
    line-height: 1.25;
    vertical-align: bottom;
  }

  #summaryTable th,
  #summaryTable > tbody > tr > td {
    padding-left: 9px;
    padding-right: 9px;
  }
}

@media (max-width: 1040px) {
  .kpi-grid,
  .workbench,
  .split,
  .settings-grid,
  .daily-entry-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .next-action-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .next-action-panel button {
    width: 100%;
  }

  /* En movil el sidebar (nav + estado) se apila encima del contenido: el
     estado (Datos/Filtros/Drive) pasa a fila compacta para no empujar los
     KPIs varias pantallas hacia abajo antes de que se vean. */
  .status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .status-strip .status-item,
  .status-strip #resetAllFilters {
    width: auto;
    flex: 1 1 140px;
    min-height: 0;
    padding: 6px 10px;
  }

  /* El menu de secciones deja de ser una fila que se desliza en horizontal
     (no gustaba) y pasa a un cajon vertical, oculto fuera de la pantalla por
     la izquierda hasta que se abre con el boton de hamburguesa. */
  .hamburger-button {
    display: grid;
  }

  /* .hidden por si sola perderia contra la regla de arriba (misma
     especificidad, esta va despues): compuesta para ganar siempre, para el
     rol "user" que no tiene cajon que abrir. */
  .hamburger-button.hidden {
    display: none;
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .section-tabs {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 60;
    width: min(260px, 82vw);
    flex-direction: column;
    align-items: stretch;
    overflow-x: visible;
    overflow-y: auto;
    background: #fff;
    padding: 16px 12px;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

  body.sidebar-open .section-tabs {
    transform: translateX(0);
  }

  .section-tab {
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
  }

  /* Ninguna tabla se desliza ya en horizontal en movil (cada una se
     reorganiza en lineas, ver mas abajo), asi que no hay desvanecido de
     "hay mas a la derecha": recortaba la ultima columna sin necesidad. */

  /* Menos relleno para ganar sitio, pero el tamano de letra de cada celda
     se queda como estaba (el mismo que en escritorio) - no se reduce solo
     para que quepa mas, eso hace dificil de leer en movil. */
  th, td {
    padding: 7px 8px;
  }

  .uncategorized-body,
  .quick-category-form,
  .daily-entry-layout {
    grid-template-columns: 1fr;
  }

  /* "Resumen por categorias" tiene 6 columnas (3 de dinero): deslizar en
     horizontal para leer una sola fila no iba bien, y una tarjeta con las 6
     por categoria tampoco (107 categorias = demasiado que bajar para
     comparar dos). Cada fila se queda en una sola linea compacta (categoria
     + neto, lo que hace falta para ojear muchas de un vistazo) y el resto
     del desglose se ve al tocarla, en el panel lateral (#categoryDetailOverlay). */
  #categorySummaryTable thead {
    display: none;
  }

  #categorySummaryTable,
  #categorySummaryTable tbody,
  #categorySummaryTable tfoot {
    display: block;
    width: 100%;
  }

  #categorySummaryTable tbody tr {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--line);
  }

  #categorySummaryTable tbody tr[data-category-row] {
    cursor: pointer;
  }

  #categorySummaryTable tbody tr[data-category-row]:active {
    background: #f0f0ee;
  }

  /* Solo categoria (1) y neto (4) se ven en la fila; ingresos/gastos/%/movs
     (2,3,5,6) viven en el panel lateral, no aqui. */
  #categorySummaryTable tbody td:nth-child(2),
  #categorySummaryTable tbody td:nth-child(3),
  #categorySummaryTable tbody td:nth-child(5),
  #categorySummaryTable tbody td:nth-child(6) {
    display: none;
  }

  #categorySummaryTable tbody td:first-child {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    border-bottom: none;
    padding: 0;
  }

  #categorySummaryTable tbody td:nth-child(4) {
    flex: 0 0 auto;
    font-weight: 500;
    border-bottom: none;
    padding: 0;
  }

  /* Flechita para que "se puede tocar" se note sin tener que probarlo. */
  #categorySummaryTable tbody tr[data-category-row]::after {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--faint);
    border-bottom: 1.5px solid var(--faint);
    transform: rotate(-45deg);
    margin-left: 2px;
  }

  /* El total sigue como tarjeta (solo hay uno, no hay nada que ojear en
     cantidad) con el mismo desglose completo de antes. */
  #categorySummaryTable tfoot tr {
    display: block;
    background: var(--teal-soft);
    font-weight: 500;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-top: 4px;
  }

  #categorySummaryTable tfoot td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 4px 0;
    border-bottom: none;
    text-align: right;
    font-size: 13.5px;
  }

  #categorySummaryTable tfoot td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    text-align: left;
  }

  #categorySummaryTable tfoot td:first-child {
    display: block;
    text-align: left;
    font-size: 14px;
    padding-bottom: 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
  }

  #categorySummaryTable tfoot td:first-child::before {
    content: none;
  }

  /* Caja diaria (日结): 6 columnas no caben en movil, y Diferencia + Nota
     (donde estan los 小费) quedaban fuera de pantalla obligando a deslizar.
     Cada dia pasa a dos lineas sin tocar el marcado: fecha / caja / tarjeta /
     dif. arriba, y persona + nota (小费) debajo si las hay. Las filas de mes
     (agrupar por mes) encajan solas: su 2a celda es "N filas" y las 3-5 son
     caja/tarjeta/dif. igual que en un dia. */
  #dailyTable,
  #dailyTable thead,
  #dailyTable tbody {
    display: block;
    width: 100%;
  }

  #dailyTable thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--page);
  }

  #dailyTable thead tr,
  #dailyTable tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.85fr);
    column-gap: 8px;
    align-items: baseline;
    padding: 8px 4px;
    border-bottom: 1px solid var(--line);
  }

  #dailyTable th,
  #dailyTable td {
    min-width: 0;
    padding: 0;
    border-bottom: none;
    position: static;
  }

  #dailyTable td:empty {
    display: none;
  }

  /* El fondo va en la fila (rejilla), no en cada celda: con column-gap, un
     fondo por celda dejaba huecos blancos entre ellas en la fila de mes. */
  #dailyTable td {
    background: transparent;
  }

  #dailyTable .month-group-row {
    background: var(--teal-soft);
  }

  /* Linea 1: fecha | caja | tarjeta | dif. */
  #dailyTable th:nth-child(1), #dailyTable td:nth-child(1) { grid-column: 1; grid-row: 1; text-align: left; }
  #dailyTable th:nth-child(3), #dailyTable td:nth-child(3) { grid-column: 2; grid-row: 1; }
  #dailyTable th:nth-child(4), #dailyTable td:nth-child(4) { grid-column: 3; grid-row: 1; }
  #dailyTable th:nth-child(5), #dailyTable td:nth-child(5) { grid-column: 4; grid-row: 1; }

  /* Persona y Nota no llevan cabecera propia: van en la linea de debajo. */
  #dailyTable th:nth-child(2),
  #dailyTable th:nth-child(6) {
    display: none;
  }

  #dailyTable td:nth-child(2),
  #dailyTable td:nth-child(6) {
    grid-row: 2;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    text-align: left;
    white-space: normal;
  }

  #dailyTable td:nth-child(2) {
    grid-column: 1;
  }

  #dailyTable td:nth-child(6) {
    grid-column: 2 / -1;
  }

  /* Sin persona, la nota ocupa desde el principio de la linea. */
  #dailyTable td:nth-child(2):empty + td + td + td + td {
    grid-column: 1 / -1;
  }

  /* Mensual: 11 columnas (1245px) no caben en movil y Dif. banco (小费)
     quedaba fuera de pantalla. Cada mes es una linea con lo que mas se mira -
     mes, rendimiento, margen y Dif. banco (小费) - y el resto de cifras salen
     al abrir el mes (tocarlo), en .summary-detail-metrics. Columnas del
     marcado: 1 mes, 5 dif. banco, 9 margen, 11 rendimiento. */
  /* Todo acotado con ">" para no tocar la tabla anidada del desglose por
     categorias (.summary-detail-table), que tiene sus propios th/td. */
  #summaryTable,
  #summaryTable > thead,
  #summaryTable > tbody {
    display: block;
    width: 100%;
  }

  #summaryTable > thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--page);
  }

  #summaryTable > thead > tr,
  #summaryTable > tbody > tr.summary-row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: 8px;
    align-items: baseline;
    padding: 8px 4px;
    border-bottom: 1px solid var(--line);
  }

  #summaryTable > thead > tr > th,
  #summaryTable > tbody > tr.summary-row > td {
    min-width: 0;
    padding: 0;
    border-bottom: none;
    position: static;
    background: transparent;
  }

  /* Las cabeceras largas ("Dif. banco (小费)") pasan a dos lineas en vez de
     salirse de su columna. */
  #summaryTable > thead > tr > th {
    white-space: normal;
    line-height: 1.25;
    align-self: end;
  }

  #summaryTable > thead > tr > th:nth-child(2),
  #summaryTable > thead > tr > th:nth-child(3),
  #summaryTable > thead > tr > th:nth-child(4),
  #summaryTable > thead > tr > th:nth-child(6),
  #summaryTable > thead > tr > th:nth-child(7),
  #summaryTable > thead > tr > th:nth-child(8),
  #summaryTable > thead > tr > th:nth-child(10),
  #summaryTable > tbody > tr.summary-row > td:nth-child(2),
  #summaryTable > tbody > tr.summary-row > td:nth-child(3),
  #summaryTable > tbody > tr.summary-row > td:nth-child(4),
  #summaryTable > tbody > tr.summary-row > td:nth-child(6),
  #summaryTable > tbody > tr.summary-row > td:nth-child(7),
  #summaryTable > tbody > tr.summary-row > td:nth-child(8),
  #summaryTable > tbody > tr.summary-row > td:nth-child(10) {
    display: none;
  }

  /* grid-row explicito: el orden del marcado (1, 5, 9, 11) no es el de las
     columnas, y sin fila fija el autoflujo reparte cada celda en una fila. */
  #summaryTable > thead > tr > th:nth-child(1),
  #summaryTable > tbody > tr.summary-row > td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }

  #summaryTable > thead > tr > th:nth-child(11),
  #summaryTable > tbody > tr.summary-row > td:nth-child(11) {
    grid-column: 2;
    grid-row: 1;
  }

  #summaryTable > thead > tr > th:nth-child(9),
  #summaryTable > tbody > tr.summary-row > td:nth-child(9) {
    grid-column: 3;
    grid-row: 1;
  }

  #summaryTable > thead > tr > th:nth-child(5),
  #summaryTable > tbody > tr.summary-row > td:nth-child(5) {
    grid-column: 4;
    grid-row: 1;
  }

  /* El margen lleva un fondo de color segun el mes: con relleno cero quedaba
     como un bloque pegado al texto. */
  #summaryTable > tbody > tr.summary-row > td:nth-child(9) {
    padding: 2px 4px;
    border-radius: var(--radius-sm);
  }

  /* Fila del mes abierta: cifras que no caben en la linea + desglose por
     categorias, a todo el ancho (con el hueco de 40px de escritorio a la
     izquierda, la tabla de categorias no cabria). */
  #summaryTable > tbody > tr.summary-detail-row {
    display: block;
  }

  #summaryTable > tbody > tr.summary-detail-row > td {
    display: block;
    padding: 8px 4px 12px;
  }

  #summaryTable .summary-detail-metrics {
    display: block;
    margin-bottom: 10px;
  }

  #summaryTable .summary-detail-table th:nth-child(5),
  #summaryTable .summary-detail-table td:nth-child(5) {
    display: none;
  }

  #summaryTable .summary-detail-table td:first-child {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* Movimiento diario: 6 columnas (492px) no caben en movil, y es la pantalla
     que mas usa el personal desde el telefono. Cada movimiento: linea 1 fecha /
     canal / categoria / importe; linea 2 persona (si hay) y botones. Las filas
     de edicion, observacion, historial y vacia se quedan como bloque normal. */
  #manualTable,
  #manualTable > thead,
  #manualTable > tbody {
    display: block;
    width: 100%;
  }

  #manualTable > thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--page);
  }

  #manualTable > thead > tr,
  #manualTable > tbody > tr:not(.editing-row):not(.manual-history-row):not(.empty-row) {
    display: grid;
    grid-template-columns: 84px 64px minmax(0, 1fr) auto;
    column-gap: 8px;
    align-items: baseline;
    padding: 8px 4px;
    border-bottom: 1px solid var(--line);
  }

  #manualTable > tbody > tr.editing-row,
  #manualTable > tbody > tr.manual-history-row,
  #manualTable > tbody > tr.empty-row {
    display: block;
  }

  #manualTable > tbody > tr.editing-row > td,
  #manualTable > tbody > tr.manual-history-row > td,
  #manualTable > tbody > tr.empty-row > td {
    display: block;
  }

  #manualTable > thead > tr > th,
  #manualTable > tbody > tr:not(.editing-row):not(.manual-history-row):not(.empty-row) > td {
    min-width: 0;
    padding: 0;
    border-bottom: none;
    position: static;
    background: transparent;
  }

  #manualTable > thead > tr > th:nth-child(2),
  #manualTable > thead > tr > th:nth-child(6),
  #manualTable > tbody > tr > td:empty {
    display: none;
  }

  /* grid-row explicito en cada celda: sin el, el autoflujo las reparte. */
  #manualTable > thead > tr > th:nth-child(1),
  #manualTable > tbody > tr:not(.month-group-row) > td:nth-child(1) { grid-column: 1; grid-row: 1; text-align: left; }
  #manualTable > thead > tr > th:nth-child(3),
  #manualTable > tbody > tr:not(.month-group-row) > td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: left; }
  #manualTable > thead > tr > th:nth-child(4),
  #manualTable > tbody > tr:not(.month-group-row) > td:nth-child(4) { grid-column: 3; grid-row: 1; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  #manualTable > thead > tr > th:nth-child(5),
  #manualTable > tbody > tr:not(.month-group-row) > td:nth-child(5) { grid-column: 4; grid-row: 1; }

  /* Linea 2: persona a la izquierda, botones (o la etiqueta "Del Excel") a la
     derecha; sin persona, los botones ocupan toda la linea. */
  #manualTable > tbody > tr:not(.month-group-row) > td:nth-child(2) {
    grid-column: 1 / 3;
    grid-row: 2;
    margin-top: 6px;
    color: var(--muted);
    text-align: left;
  }

  #manualTable > tbody > tr:not(.month-group-row) > td:nth-child(6) {
    grid-column: 3 / -1;
    grid-row: 2;
    margin-top: 6px;
    justify-content: flex-end;
  }

  #manualTable > tbody > tr:not(.month-group-row) > td:nth-child(2):empty + td + td + td + td {
    grid-column: 1 / -1;
  }

  /* Fila de mes ("Agrupar por mes"): mes y neto arriba, filas e
     ingresos/gastos debajo. */
  #manualTable > tbody > tr.month-group-row {
    background: var(--teal-soft);
  }

  #manualTable > tbody > tr.month-group-row > td:nth-child(1) { grid-column: 1 / 4; grid-row: 1; text-align: left; }
  #manualTable > tbody > tr.month-group-row > td:nth-child(5) { grid-column: 4; grid-row: 1; }
  #manualTable > tbody > tr.month-group-row > td:nth-child(3) { grid-column: 1 / 3; grid-row: 2; margin-top: 4px; color: var(--muted); text-align: left; }
  #manualTable > tbody > tr.month-group-row > td:nth-child(4) { grid-column: 3 / -1; grid-row: 2; margin-top: 4px; color: var(--muted); }

  /* Banco: 5 columnas (676px). Cada movimiento: fecha / importe / saldo arriba,
     el concepto debajo (puede ocupar varias lineas) y el selector de categoria
     a todo el ancho. */
  #bankTable,
  #bankTable > thead,
  #bankTable > tbody {
    display: block;
    width: 100%;
  }

  #bankTable > thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--page);
  }

  #bankTable > thead > tr,
  #bankTable > tbody > tr:not(.empty-row) {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 8px;
    align-items: baseline;
    padding: 8px 4px;
    border-bottom: 1px solid var(--line);
  }

  #bankTable > tbody > tr.empty-row,
  #bankTable > tbody > tr.empty-row > td {
    display: block;
  }

  #bankTable > thead > tr > th,
  #bankTable > tbody > tr:not(.empty-row) > td {
    min-width: 0;
    padding: 0;
    border-bottom: none;
    position: static;
    background: transparent;
  }

  #bankTable > thead > tr > th:nth-child(2),
  #bankTable > thead > tr > th:nth-child(3) {
    display: none;
  }

  #bankTable > thead > tr > th:nth-child(1),
  #bankTable > tbody > tr > td:nth-child(1) { grid-column: 1; grid-row: 1; text-align: left; }
  #bankTable > thead > tr > th:nth-child(4),
  #bankTable > tbody > tr > td:nth-child(4) { grid-column: 2; grid-row: 1; }
  #bankTable > thead > tr > th:nth-child(5),
  #bankTable > tbody > tr > td:nth-child(5) { grid-column: 3; grid-row: 1; color: var(--muted); }

  #bankTable > tbody > tr:not(.month-group-row) > td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 4px;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #bankTable > tbody > tr:not(.month-group-row) > td:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 6px;
    text-align: left;
  }

  #bankTable > tbody > tr.month-group-row {
    background: var(--teal-soft);
  }

  #bankTable > tbody > tr.month-group-row > td:nth-child(2) { grid-column: 1; grid-row: 2; margin-top: 4px; color: var(--muted); text-align: left; }
  #bankTable > tbody > tr.month-group-row > td:nth-child(3) { grid-column: 2 / -1; grid-row: 2; margin-top: 4px; color: var(--muted); }

  /* Categorias: la tabla de reglas y la de categorias se pasaban por unos
     pocos pixeles; con permitir que el texto salte de linea (la tabla global
     lo prohibe) caben sin deslizar. */
  #ruleTable td,
  #categoryManagerTable td {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* ...pero los botones de la ultima celda no: "Editar" no debe partirse. */
  #ruleTable td.row-actions,
  #categoryManagerTable td.row-actions {
    white-space: nowrap;
    overflow-wrap: normal;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 16px, 1480px);
  }

  .entry-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    height: 24px;
  }

  .status-item strong,
  .kpi strong {
    font-size: 20px;
  }

  /* El titulo y los controles (selector de modo, filtro) se peleaban por el
     mismo renglon y el select de ancho fijo se comia el sitio del titulo,
     dejandolo partido a la mitad. Se apilan en vez de forzar una sola fila. */
  .panel-head {
    flex-wrap: wrap;
  }

  .chart-controls {
    justify-content: flex-start;
    width: 100%;
  }

  .chart-controls select {
    min-width: 0;
    flex: 1 1 auto;
  }

  /* En telefonos de 320px la tabla de categorias (4 columnas) se pasaba 14px:
     menos relleno lateral en las tablas de configuracion. */
  #categoryManagerTable th,
  #categoryManagerTable td,
  #ruleTable th,
  #ruleTable td {
    padding-left: 5px;
    padding-right: 5px;
  }
}
