﻿:root {
  --bg-main: #06080f;
  --bg-panel: #101622;
  --bg-card: #161e2d;
  --bg-card-soft: #1b2638;
  --bg-input: #0f1726;
  --border: #2a3a56;
  --border-soft: #22314a;
  --text-main: #e6edf7;
  --text-soft: #9eb0cc;
  --primary: #31c4ff;
  --primary-dark: #13a7e3;
  --secondary: #f2b718;
  --secondary-dark: #da9b00;
  --success: #1fbf63;
  --success-dark: #129c4e;
  --danger: #ff4b4b;
  --shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --mobile-strip-offset: 86px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: "Segoe UI Variable Display", "Bahnschrift", "Trebuchet MS", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% -5%, #1d324d 0, transparent 36%),
    radial-gradient(circle at 92% -5%, #2a1f1f 0, transparent 34%),
    linear-gradient(160deg, #05070d, var(--bg-main));
}

.scale-strip-mobile,
.mobile-tabs {
  display: none;
}

.scale-strip-mobile {
  margin: 8px 10px 0;
  padding: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 60;
}

.scale-strip-item {
  border: 1px solid #304769;
  background: linear-gradient(180deg, #111e34, #0d1728);
  border-radius: 10px;
  padding: 8px 10px;
  display: grid;
  gap: 2px;
}

.scale-strip-item span {
  font-size: 0.7rem;
  color: #9bb3d3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.scale-strip-item strong {
  font-family: "Consolas", "Courier New", monospace;
  color: #f8dd5a;
  font-size: 1.32rem;
  line-height: 1;
}

.scale-strip-item strong small {
  font-size: 0.72rem;
  color: #c5d5ec;
  font-weight: 700;
}

.mobile-tabs {
  margin: 8px 10px 0;
  padding: 6px;
  border: 1px solid #2e4464;
  border-radius: 12px;
  background: #0f1c31;
  position: sticky;
  top: var(--mobile-strip-offset);
  z-index: 55;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.mobile-tab {
  border: 1px solid #3a5478;
  border-radius: 10px;
  background: #13233a;
  color: #d6e7ff;
  min-height: 42px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.mobile-tab.is-active {
  border-color: #66c9ff;
  background: linear-gradient(180deg, #2f95c8, #2178a4);
  color: #f2fbff;
}

.app-shell {
  width: 100%;
  height: 100%;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(360px, 34vw) 1fr;
  gap: 10px;
  overflow: hidden;
}

.control-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
}

.card {
  background: linear-gradient(160deg, rgba(28, 40, 60, 0.92), rgba(18, 27, 42, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow {
  margin: 0 0 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7ec0ff;
  font-size: 0.72rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  color: #f1f5ff;
}

.hero-copy {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.hero-actions {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 280px;
}

.price-grid {
  display: grid;
  gap: 6px;
}

.price-control {
  display: grid;
  gap: 4px;
  color: #c4d7f3;
  font-size: 0.78rem;
  font-weight: 700;
}

.price-control input {
  min-width: 0;
  min-height: 40px;
  text-align: right;
  font-family: "Consolas", "Courier New", monospace;
  color: #f8dd5a;
  font-weight: 800;
}

.scale-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scale-card {
  padding: 12px;
  border-top: 5px solid #37c4ff;
}

.scale-card:nth-child(2) {
  border-top-color: #f0ae20;
}

.scale-card h2 {
  margin: 0;
  font-size: 1rem;
  color: #dfe9f7;
}

.scale-display {
  margin: 10px 0 12px;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-family: "Consolas", "Courier New", monospace;
  line-height: 1;
  font-weight: 800;
  color: #f6df57;
  text-shadow: 0 0 10px rgba(246, 223, 87, 0.16);
}

.scale-display span {
  font-size: 0.9rem;
  color: #bfd0e7;
}

.entry-section {
  padding: 12px;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

#cageForm {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 1rem;
  color: #f0f5ff;
}

.global-stats {
  margin: 0;
  color: #a8b8d1;
  font-size: 0.88rem;
  font-weight: 700;
}

.type-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.type-btn {
  border: 1px solid #415778;
  background: linear-gradient(180deg, #1f2b40, #172236);
  color: #dbe7f8;
  border-radius: 10px;
  font-weight: 700;
  min-height: 44px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.type-btn:hover {
  border-color: #7e97bb;
}

.type-btn.is-active {
  color: #fff;
  border-color: #b83a3a;
  background: linear-gradient(180deg, #8f2a2a, #6f2020);
  box-shadow: inset 0 0 0 1px rgba(255, 160, 160, 0.28);
}

.form-grid {
  align-content: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
  color: #ceddf2;
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  border: 1px solid var(--border);
  color: var(--text-main);
  background: var(--bg-input);
  border-radius: 10px;
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
}

input::placeholder {
  color: #7186a9;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 2px solid rgba(58, 198, 255, 0.38);
  outline-offset: 1px;
}

.inline-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.weight-preview {
  border: 1px dashed #3f5477;
  border-radius: 10px;
  background: #111a2b;
  min-height: 64px;
  padding: 8px 10px;
  display: grid;
  align-content: center;
  gap: 2px;
}

.weight-preview span {
  color: #8fa8c9;
  font-weight: 700;
  font-size: 0.76rem;
}

.weight-preview strong {
  color: #f8dd5a;
  font-size: 1.06rem;
}

.weight-preview small {
  color: #98b1d2;
  font-size: 0.72rem;
  font-weight: 700;
}

.form-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.form-message {
  margin: 0;
  color: #8ad5ff;
  font-size: 0.88rem;
  font-weight: 700;
}

.btn {
  border: 0;
  border-radius: 10px;
  min-height: 44px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary), #1cb6f2);
  color: #042132;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #58d1ff, var(--primary-dark));
}

.btn-secondary {
  background: linear-gradient(180deg, var(--secondary), #d99f18);
  color: #352200;
}

.btn-secondary:hover {
  background: linear-gradient(180deg, #ffd258, var(--secondary-dark));
}

.btn-success {
  background: linear-gradient(180deg, var(--success), #1aa658);
  color: #f2fff8;
}

.btn-success:hover {
  background: linear-gradient(180deg, #28d173, var(--success-dark));
}

.btn-ghost {
  background: #162338;
  border: 1px solid #2e4464;
  color: #c8ddfb;
}

.btn-ghost:hover {
  background: #1a2b45;
}

.columns-section {
  padding: 12px;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.truck-grid {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.truck-card {
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #111a2b, #0e1625);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: 0;
}

.truck-card.active {
  border-color: #39c2ff;
  box-shadow: 0 0 0 1px rgba(57, 194, 255, 0.25);
}

.truck-head {
  padding: 8px 10px;
  background: linear-gradient(135deg, #1b2f4f, #172742);
  border-bottom: 1px solid #274268;
  color: #dce9ff;
}

.truck-head h3 {
  margin: 0;
  font-size: 0.93rem;
}

.truck-metrics {
  padding: 8px 10px;
  border-bottom: 1px solid #1f3048;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  background: #0f1a2c;
}

.metric {
  display: grid;
  gap: 1px;
}

.metric span {
  font-size: 0.67rem;
  color: #7691b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric strong {
  color: #e7efff;
  font-size: 0.9rem;
}

.table-wrap {
  min-height: 0;
  height: 100%;
  overflow: auto;
}

.truck-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.truck-table th,
.truck-table td {
  border-bottom: 1px solid #1b2d45;
  padding: 6px;
  text-align: left;
  color: #d8e5fb;
}

.truck-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #1a2c48;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #aaccf5;
}

.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.tag-pollo-vivo {
  background: rgba(90, 190, 255, 0.16);
  color: #9ad9ff;
  border-color: rgba(90, 190, 255, 0.3);
}

.tag-pollo-pelado {
  background: rgba(110, 231, 183, 0.16);
  color: #b8f8dc;
  border-color: rgba(110, 231, 183, 0.3);
}

.truck-footer {
  border-top: 1px solid #1f3048;
  background: #0d1524;
  padding: 8px;
  display: grid;
  gap: 6px;
}

.truck-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.truck-total-line span {
  font-size: 0.68rem;
  color: #92a8c7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.truck-total-line strong {
  font-size: 0.7rem;
  color: #f2f7ff;
  text-align: right;
}

.truck-total-line-price span {
  color: #f3cd5f;
}

.truck-total-line-price strong {
  color: #f9e489;
}

.type-total-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.type-total-item {
  border: 1px solid #2a3c59;
  border-radius: 8px;
  background: #121d31;
  padding: 5px 6px;
  display: grid;
  gap: 1px;
}

.type-total-item span {
  font-size: 0.64rem;
  color: #a6bad7;
}

.type-total-item small {
  font-size: 0.6rem;
  color: #7f97bc;
}

.type-total-item strong {
  font-size: 0.66rem;
  color: #edf4ff;
}

.type-total-pollo-vivo {
  border-color: rgba(90, 190, 255, 0.35);
}

.type-total-pollo-pelado {
  border-color: rgba(110, 231, 183, 0.35);
}

.empty {
  margin: 0;
  padding: 18px 10px;
  text-align: center;
  color: #7d95b8;
  font-weight: 700;
  font-size: 0.84rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(8px, 2.2vw, 20px);
  background: rgba(4, 7, 14, 0.75);
  overflow: auto;
}

.modal[hidden] {
  display: none;
}

.modal-card {
  width: min(1100px, calc(100vw - 16px));
  width: min(1100px, calc(100dvw - 16px));
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  height: min(86vh, 760px);
  height: min(86dvh, 760px);
  padding: 14px;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.json-output {
  margin: 0;
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding: 12px;
  border-radius: 10px;
  background: #090d17;
  border: 1px solid #1f314f;
  color: #cfe2ff;
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 1450px) {
  .app-shell {
    grid-template-columns: minmax(350px, 40vw) 1fr;
  }

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

@media (max-width: 980px) {
  html,
  body {
    overflow: auto;
  }

  .scale-strip-mobile,
  .mobile-tabs {
    display: grid;
  }

  .app-shell {
    height: auto;
    min-height: 100%;
    grid-template-columns: 1fr;
    padding: 8px 10px 10px;
    gap: 8px;
  }

  .control-panel {
    grid-template-rows: auto;
  }

  #appShell[data-mobile-panel="registro"] [data-mobile-panel="camiones"],
  #appShell[data-mobile-panel="camiones"] [data-mobile-panel="registro"] {
    display: none;
  }

  .scale-section,
  .form-grid,
  .truck-grid,
  .type-total-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
  }

  .hero-actions {
    min-width: 0;
  }

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

  .truck-table {
    min-width: 760px;
  }

  .btn {
    min-height: 46px;
  }
}

@media (max-width: 640px) {
  :root {
    --mobile-strip-offset: 80px;
  }

  .scale-strip-mobile {
    margin: 6px 8px 0;
    padding: 6px;
    gap: 6px;
  }

  .scale-strip-item {
    padding: 7px 8px;
  }

  .scale-strip-item strong {
    font-size: 1.16rem;
  }

  .mobile-tabs {
    margin: 6px 8px 0;
    padding: 5px;
  }

  .mobile-tab {
    min-height: 40px;
    font-size: 0.8rem;
  }

  .app-shell {
    padding: 8px;
  }

  .hero h1 {
    font-size: 1.2rem;
  }

  .hero-copy {
    font-size: 0.84rem;
  }

  .section-head h2 {
    font-size: 0.96rem;
  }
}

/* Interaccion de filas */
.cage-row {
  cursor: pointer;
}

.cage-row:hover {
  background: rgba(57, 194, 255, 0.12);
}

.cage-row:focus {
  outline: 2px solid rgba(57, 194, 255, 0.6);
  outline-offset: -2px;
  background: rgba(57, 194, 255, 0.14);
}

/* Boton peligro */
.btn-danger {
  background: linear-gradient(180deg, #ff5e5e, #dc3030);
  color: #fff;
}

.btn-danger:hover {
  background: linear-gradient(180deg, #ff8484, #be2222);
}

/* Popup de edicion de jaula */
.item-modal-card {
  width: min(900px, calc(100vw - 16px));
  width: min(900px, calc(100dvw - 16px));
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  height: min(84vh, 720px);
  height: min(84dvh, 720px);
  padding: 16px;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  overflow: hidden;
}

.item-highlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.item-pill {
  border: 1px solid #2f4464;
  background: #111a2b;
  border-radius: 11px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.item-pill span {
  font-size: 0.78rem;
  color: #8ea6c6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.item-pill strong {
  font-size: 1.32rem;
  color: #f4f8ff;
  line-height: 1.05;
}

.item-form {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 10px;
}

.item-form-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.item-form-message {
  margin: 0;
  min-height: 20px;
  color: #8ad5ff;
  font-size: 0.9rem;
  font-weight: 700;
}

.item-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .item-highlight,
  .item-form-grid {
    grid-template-columns: 1fr;
  }

  .item-modal-card {
    width: min(98vw, 900px);
    width: min(98dvw, 900px);
    max-height: calc(100dvh - 12px);
    height: min(92dvh, 780px);
    padding: 12px;
    gap: 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .item-highlight {
    gap: 6px;
  }

  .item-pill {
    padding: 8px 10px;
  }

  .item-pill strong {
    font-size: 1.08rem;
  }

  .item-form {
    gap: 8px;
  }

  .item-form-message {
    min-height: 18px;
    font-size: 0.84rem;
  }

  .item-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .item-form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .item-modal-card {
    width: min(99vw, 900px);
    width: min(99dvw, 900px);
    max-height: calc(100dvh - 8px);
    height: min(96dvh, 780px);
    padding: 10px;
    gap: 8px;
  }

  .item-pill strong {
    font-size: 0.96rem;
  }
}

/* Cliente por camión */
.truck-head-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.assign-client-btn {
  border: 1px solid #3a567c;
  background: #10243f;
  color: #c8defc;
  border-radius: 8px;
  min-height: 30px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.assign-client-btn:hover {
  background: #173258;
  border-color: #5e89c2;
}

.truck-client-name {
  margin: 6px 0 0;
  color: #8fb0d7;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.truck-price-line {
  margin: 4px 0 0;
  color: #f8dd5a;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Popup de clientes */
.client-modal-card {
  width: min(760px, calc(100vw - 16px));
  width: min(760px, calc(100dvw - 16px));
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  height: min(80vh, 680px);
  height: min(80dvh, 680px);
  padding: 16px;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
}

.client-modal-truck {
  margin: 0;
  border: 1px solid #2f4464;
  background: #111a2b;
  border-radius: 10px;
  padding: 10px 12px;
  color: #dce9ff;
  font-size: 0.95rem;
  font-weight: 700;
}

.client-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 8px;
}

.client-option {
  border: 1px solid #2f4464;
  background: #0f1a2c;
  color: #d5e4fb;
  border-radius: 10px;
  min-height: 54px;
  padding: 8px 12px;
  text-align: left;
  display: grid;
  gap: 2px;
  cursor: pointer;
}

.client-option-name {
  font-size: 0.92rem;
  font-weight: 700;
}

.client-option-price {
  font-size: 0.74rem;
  color: #97b3d9;
  font-weight: 600;
}

.client-option:hover {
  border-color: #67a7ff;
  background: #132542;
}

.client-option.is-active {
  border-color: #2fd37e;
  background: #123125;
  color: #b9ffd9;
}

.client-option.is-active .client-option-price {
  color: #86efb5;
}

@media (max-width: 980px) {
  .client-modal-card {
    width: min(98vw, 760px);
    width: min(98dvw, 760px);
    max-height: calc(100dvh - 12px);
    height: min(92dvh, 760px);
    padding: 12px;
  }
}

/* Teclado numerico tactil */
input[type="number"][readonly] {
  cursor: pointer;
}

.numeric-pad-modal {
  z-index: 220;
  padding: clamp(8px, 2.2vw, 20px);
  place-items: center;
  overflow: auto;
}

.numeric-pad-card {
  width: min(620px, calc(100vw - 16px));
  width: min(620px, calc(100dvw - 16px));
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  height: auto;
  padding: 16px;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
}

.numeric-pad-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.numeric-pad-caption {
  margin: 0 0 4px;
  color: #8ea7c8;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.numeric-pad-head h2 {
  margin: 0;
  color: #eef4ff;
  font-size: 1.15rem;
}

.numeric-pad-value {
  margin: 0;
  min-height: 76px;
  border: 1px solid #2f4464;
  background: #111a2b;
  border-radius: 12px;
  padding: 10px 14px;
  color: #f8dd5a;
  font-size: clamp(2rem, 6vw, 3rem);
  font-family: "Consolas", "Courier New", monospace;
  font-weight: 800;
  text-align: right;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.numeric-pad-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.numeric-key {
  border: 1px solid #3b547b;
  border-radius: 12px;
  background: linear-gradient(180deg, #1a2b44, #142339);
  color: #eef4ff;
  min-height: 72px;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 800;
  cursor: pointer;
}

.numeric-key:hover {
  border-color: #6caeff;
  background: linear-gradient(180deg, #22406a, #18325a);
}

.numeric-key:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.numeric-pad-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.numeric-pad-actions .btn {
  min-height: 58px;
  font-size: 1.02rem;
}

@media (max-width: 980px) {
  .numeric-pad-card {
    width: min(98vw, 700px);
    width: min(98dvw, 700px);
    max-height: calc(100dvh - 12px);
    padding: 12px;
    gap: 8px;
  }

  .numeric-pad-grid {
    gap: 8px;
  }

  .numeric-key {
    min-height: 66px;
  }

  .numeric-pad-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .numeric-pad-actions .btn {
    min-height: 50px;
    font-size: 0.96rem;
  }
}






