:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172027;
  background: #f4f7f8;
  line-height: 1.45;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button {
  border: 0; border-radius: 8px; background: #315969; color: #fff; cursor: pointer;
  font-weight: 650; padding: .72rem 1rem;
}
button:hover { background: #244955; }
button:disabled { cursor: wait; opacity: .7; }
button.secondary { background: #e5edef; color: #244955; }
button.secondary:hover { background: #d5e2e5; }
.page-shell { margin: 0 auto; max-width: 1120px; padding: 2.2rem 1rem 4rem; }
.auth-card { margin: 8vh auto; max-width: 420px; }
.app-shell { display: grid; gap: 1rem; }
.hidden { display: none; }
.topbar, .section-heading, .toolbar {
  align-items: center; display: flex; gap: 1rem; justify-content: space-between;
}
.toolbar { align-items: end; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.7rem, 4vw, 2.35rem); margin-bottom: .2rem; }
h2 { font-size: 1.05rem; margin-bottom: .75rem; }
h3 { font-size: 1rem; margin-bottom: .7rem; }
.card {
  background: #fff; border: 1px solid #dfe8ea; border-radius: 12px;
  box-shadow: 0 4px 14px rgb(17 48 57 / 5%); padding: 1.3rem;
}
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.group-cards { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.group-card { background: #f7fafb; border: 1px solid #e1eaed; border-radius: 9px; padding: 1rem; }
.eyebrow { color: #557985; font-size: .82rem; font-weight: 700; letter-spacing: .06em; margin-bottom: .35rem; text-transform: uppercase; }
.muted { color: #66767c; }
.message { min-height: 1.4rem; margin: 0; }
.message.error { color: #a33732; }
form { display: grid; gap: .9rem; margin-top: 1.4rem; }
label { display: grid; font-size: .9rem; font-weight: 650; gap: .4rem; }
.month-control { min-width: 180px; }
input { border: 1px solid #bacdd2; border-radius: 7px; min-height: 2.65rem; padding: .6rem .7rem; }
input:focus { border-color: #315969; outline: 3px solid rgb(49 89 105 / 15%); }
.definition-list, .mini-list { display: grid; gap: .55rem; margin: 0; }
.definition-list div { display: grid; grid-template-columns: 1fr 1.2fr; gap: .5rem; }
.mini-list div { display: flex; justify-content: space-between; gap: .5rem; }
.definition-list dt, .mini-list dt { color: #66767c; }
.definition-list dd, .mini-list dd { font-weight: 650; margin: 0; text-align: right; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; min-width: 720px; width: 100%; }
th, td { border-bottom: 1px solid #e6edef; padding: .7rem .55rem; text-align: left; }
th { color: #557985; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.empty { color: #66767c; text-align: center; }
@media (max-width: 650px) {
  .grid { grid-template-columns: 1fr; }
  .topbar, .section-heading, .toolbar { align-items: stretch; flex-direction: column; }
  .topbar button, .section-heading button, .toolbar button, .month-control { width: 100%; }
}
select {
  border: 1px solid #bacdd2;
  border-radius: 7px;
  background: #fff;
  min-height: 2.65rem;
  padding: .6rem .7rem;
}
select:focus { border-color: #315969; outline: 3px solid rgb(49 89 105 / 15%); }
.editor { border-color: #cbdde1; }
.editor-fields { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1rem 0; }
.small-button { font-size: .85rem; padding: .45rem .65rem; }
@media (max-width: 650px) { .editor-fields { grid-template-columns: 1fr; } }


/* Línea visual azul grisácea, en continuidad con LS Export SPA. */
:root {
  --ls-navy: #183f4c;
  --ls-steel: #315969;
  --ls-blue-gray: #5d7a87;
  --ls-cloud: #edf2f4;
  --ls-line: #d5e1e5;
  --ls-soft: #f7fafb;
  --ls-text: #172b34;
}

body {
  background:
    linear-gradient(180deg, #e7eef1 0, #f5f8f9 270px, #f4f7f8 100%);
  color: var(--ls-text);
}

.page-shell { max-width: 1180px; padding-top: 1.6rem; }
.card {
  border-color: var(--ls-line);
  border-radius: 10px;
  box-shadow: 0 7px 18px rgb(24 63 76 / 6%);
}

.auth-card {
  border-top: 5px solid var(--ls-steel);
  box-shadow: 0 12px 30px rgb(24 63 76 / 12%);
}

.topbar {
  background: var(--ls-navy);
  border: 1px solid #13343f;
  border-radius: 10px;
  box-shadow: 0 7px 18px rgb(24 63 76 / 14%);
  color: #fff;
  padding: 1.15rem 1.3rem;
}
.topbar .eyebrow { color: #c4d9df; }
.topbar h1 { color: #fff; }

button {
  background: var(--ls-steel);
  border-radius: 7px;
  box-shadow: inset 0 -1px 0 rgb(0 0 0 / 16%);
}
button:hover { background: var(--ls-navy); }
button.secondary {
  background: #dce7ea;
  color: #244955;
  box-shadow: none;
}
button.secondary:hover { background: #cbdce1; }

.eyebrow { color: #486f7e; }
.group-card {
  background: var(--ls-soft);
  border-color: #d9e5e8;
  border-top: 3px solid #7895a0;
}
.toolbar { background: #fff; border-left: 4px solid var(--ls-steel); }
th { color: #486f7e; }
input, select { border-color: #b7cbd1; background: #fff; }
input:focus, select:focus { border-color: var(--ls-steel); outline-color: rgb(49 89 105 / 17%); }
.editor { border-left: 4px solid var(--ls-steel); }


/* Ajuste solicitado: paleta azul grisácea mucho más clara y pastel. */
:root {
  --ls-navy: #d9e9ef;
  --ls-steel: #86aebb;
  --ls-blue-gray: #6f96a3;
  --ls-cloud: #f3f8fa;
  --ls-line: #d3e3e8;
  --ls-soft: #f8fbfc;
  --ls-text: #28434d;
}
body { background: linear-gradient(180deg, #edf5f7 0, #f8fbfc 300px, #f5f8f9 100%); }
.card { border-color: #d9e6ea; box-shadow: 0 5px 15px rgb(102 145 160 / 7%); }
.auth-card { border-top-color: #9cc1cb; box-shadow: 0 9px 24px rgb(102 145 160 / 10%); }
.topbar {
  background: #dcecf1;
  border-color: #c7dce3;
  box-shadow: 0 5px 15px rgb(102 145 160 / 10%);
  color: #294955;
}
.topbar .eyebrow { color: #557b89; }
.topbar h1 { color: #294955; }
button { background: #86aebb; color: #183f4c; box-shadow: none; }
button:hover { background: #719da9; color: #153a46; }
button.secondary { background: #edf4f6; color: #466976; }
button.secondary:hover { background: #dcebef; }
.eyebrow, th { color: #638a97; }
.toolbar { border-left-color: #a9c8d1; }
.group-card { border-top-color: #b3cfd7; background: #f8fbfc; }
.editor { border-left-color: #a9c8d1; }
