:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #687385;
  --line: #dfe5ec;
  --brand: #126c7a;
  --brand-strong: #0c4d57;
  --accent: #efb036;
  --danger: #b42318;
  --ok: #177245;
  --shadow: 0 10px 30px rgba(21, 36, 50, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

h1 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

p {
  margin: 0;
}

input,
select,
textarea,
button {
  width: 100%;
  font: inherit;
}

input,
select,
textarea {
  min-height: 46px;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 74px;
  resize: vertical;
}

label {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.app-header span,
.app-header small,
.muted {
  color: var(--muted);
}

.app-header strong {
  display: block;
  margin-top: 2px;
}

.app-main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 14px;
  padding-bottom: 96px;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  align-content: center;
  gap: 24px;
  padding: 18px;
  background-image: url('../../img/Fondo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.login-card {
  width: min(520px, 100%);
  font-size: 1.2rem;
  padding: 28px;
}

.login-card label {
  font-size: 1rem;
}

.login-card input {
  min-height: 54px;
  font-size: 1.1rem;
}

.login-card .btn {
  min-height: 54px;
  font-size: 1.1rem;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  text-align: center;
}

.login-brand .hd-logo {
  height: 80px;
}

.login-brand .app-header-title {
  font-size: 1.8rem;
}

.login-brand .app-header-sub {
  font-size: 1rem;
}

.panel,
.card,
.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 16px;
  margin-bottom: 14px;
}

.card {
  padding: 14px;
}

.cards,
.product-list {
  display: grid;
  gap: 12px;
}

.toolbar,
.capture-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
}

.tabs a {
  flex: 0 0 auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
}

.tabs a.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 14px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.btn.primary {
  background: var(--brand);
  color: #fff;
}

.btn.primary:hover {
  background: var(--brand-strong);
}

.btn.secondary {
  background: #e9eef3;
  color: var(--ink);
}

.btn.full {
  width: 100%;
}

.icon-link {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 1.8rem;
}

.store-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}















.app-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hd-logo {
    height: 40px;
    width: auto;
}
.app-header-title {
    display: block;
    font-weight: 900;
    font-size: 1rem;
    line-height: 1.1;
	color: #fff;
}
.app-header-sub {
    display: block;
	font-weight: 700;
    font-size: 1rem;
    opacity: 1;
	color: #fff;
}







.store-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.score {
  color: var(--brand);
  font-size: 1.3rem;
  font-weight: 900;
}

.product-card {
  display: grid;
  gap: 12px;
}

.excel-wrap {
  overflow: auto;
  border: 2px solid #2d7c4f;
  background: #d7d7d7;
  box-shadow: var(--shadow);
}

.capture-table {
  min-width: 980px;
  border-collapse: collapse;
  background: #cfcfcf;
  table-layout: fixed;
  box-shadow: none;
}

.capture-table th,
.capture-table td {
  border: 1px dotted #2e2e2e;
  border-bottom: 1px dotted #2e2e2e;
  padding: 3px 5px;
  color: #000;
  vertical-align: middle;
}

.capture-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 44px;
  background: #a8a8a8;
  border: 1px solid #000;
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.capture-table tbody tr:nth-child(even) {
  background: #bebebe;
}

.capture-table tbody tr:focus-within {
  background: #fff4c6;
}

.capture-table .col-num {
  width: 44px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.capture-table .col-code {
  width: 145px;
  font-variant-numeric: tabular-nums;
}

.capture-table .col-desc {
  width: 390px;
  text-transform: uppercase;
}

.capture-table .col-qty {
  width: 122px;
  text-align: center;
}

.capture-table .col-score {
  width: 92px;
  text-align: center;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.capture-table .col-score.good {
  color: var(--ok);
}

.capture-table .col-score.bad {
  color: var(--danger);
}

.capture-table .col-comment {
  width: 220px;
}

.table-input,
.table-comment {
  min-height: 30px;
  margin: 0;
  padding: 4px 6px;
  border: 1px solid #8b8b8b;
  border-radius: 0;
  background: #fff;
  color: #000;
  font-size: 0.92rem;
  font-weight: 700;
}

.table-comment {
  display: block;
  height: 30px;
  min-height: 30px;
  resize: vertical;
  font-weight: 400;
}

.capture-table .pill {
  margin-left: 6px;
  height: 20px;
  min-width: auto;
  padding: 0 6px;
  border-radius: 3px;
  font-size: 0.68rem;
}

.product-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 10px;
}

.product-top p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.32;
}

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.badge {
  background: #e7f3f5;
  color: var(--brand-strong);
}

.pill.ok {
  background: #e9f7ef;
  color: var(--ok);
}

.pill.warn {
  background: #fff3d6;
  color: #8a5a00;
}

.pill.info {
  background: #e7f3f5;
  color: var(--brand-strong);
}

.grid {
  display: grid;
  gap: 10px;
}

.grid.two,
.metrics {
  grid-template-columns: 1fr 1fr;
}

.metrics {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.metric {
  min-height: 92px;
  padding: 14px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.metric span {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
}

.metric small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.line span {
  color: var(--muted);
}

.notice {
  margin: 10px 0 14px;
  padding: 12px 14px;
}

.notice.ok {
  border-color: #bfe5cf;
  color: var(--ok);
}

.notice.error {
  border-color: #f3b8b2;
  color: var(--danger);
}

.table-wrap {
  overflow-x: auto;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin: 14px -14px -96px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(244, 246, 248, 0.94);
  border-top: 1px solid var(--line);
}

.compact-form,
.inline-form,
.filter-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.inline-form {
  grid-template-columns: minmax(120px, 1fr) auto;
  align-items: end;
}

.filter-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
  align-items: end;
}

.report-panel {
  min-height: 70vh;
}

.report-frame {
  display: block;
  width: 100%;
  min-height: 70vh;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.report-placeholder {
  display: grid;
  min-height: 52vh;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}

.report-placeholder code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #eef3f7;
}

blockquote {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 4px solid var(--accent);
  background: #fff9ec;
}

@media (min-width: 760px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
	
}

@media (max-width: 430px) {
  .grid.two,
  .store-card {
    grid-template-columns: 1fr;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .filter-form {
    grid-template-columns: 1fr;
  }

  .product-top {
    grid-template-columns: auto 1fr;
  }

  .product-top .pill {
    grid-column: 2;
    justify-self: start;
  }
	
}
