:root {
  --yellow:#f5cc19;
  --black:#171819;
  --muted:#686b70;
  --line:#e3e4e7;
  --bg:#f5f6f8;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  font:15px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--black);
  background:var(--bg);
}
a {
  color:inherit;
}
button,input {
  font:inherit;
}
button,a,input {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
}
button:focus-visible,a:focus-visible,input:focus-visible {
  outline:3px solid #9c7800;
  outline-offset:3px;
}
button:disabled {
  cursor:wait;
}
.skip {
  position:fixed;
  left:12px;
  top:-100px;
  background:var(--yellow);
  padding:12px;
  z-index:20;
}
.skip:focus {
  top:12px;
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:42px;
  font-weight:950;
  letter-spacing:-4px;
  text-decoration:none;
  color:var(--yellow);
  line-height:1;
}
.brand>span {
  font-size:16px;
  color:#fff;
  letter-spacing:2px;
  line-height:1.3;
}
.brand small {
  display:block;
  font-size:8px;
  font-weight:500;
  letter-spacing:1.6px;
  color:#aaa;
}
.eyebrow {
  font-size:11px;
  letter-spacing:2px;
  font-weight:750;
  margin:0 0 12px;
}
.muted {
  color:var(--muted);
}
h1,h2,h3,p {
  margin-top:0;
}
h1 {
  font-size:34px;
  line-height:1.2;
  letter-spacing:-1px;
  margin-bottom:12px;
}
h2 {
  font-size:23px;
  line-height:1.3;
  letter-spacing:-.5px;
}
h3 {
  font-size:18px;
}
.login-layout {
  min-height:100dvh;
  display:grid;
  grid-template-columns:1fr 1fr;
}
.brand-story {
  padding:50px 10%;
  background:var(--black);
  color:white;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:100dvh;
  background-image:radial-gradient(ellipse at 0 100%,#52471955,transparent 65%);
}
.brand-story h1 {
  font-size:clamp(32px,4vw,58px);
  margin-bottom:28px;
}
.brand-story .eyebrow {
  color:var(--yellow);
}
.intro {
  color:#b5b6b9;
  font-size:18px;
}
.brand-footer {
  color:#999;
  font-size:12px;
  margin-bottom:0;
}
.login-panel {
  display:grid;
  place-items:center;
  padding:48px 28px;
  background:#fff;
}
.login-card {
  width:100%;
  max-width:380px;
}
.login-card h2 {
  font-size:30px;
  margin-bottom:10px;
}
.login-card>.muted {
  margin-bottom:32px;
}
label:not(.check) {
  display:block;
  font-size:13px;
  font-weight:650;
  margin:18px 0 8px;
}
input:not([type=checkbox]) {
  width:100%;
  border:1px solid #c6c9cf;
  border-radius:8px;
  padding:12px 14px;
  background:#fff;
  min-height:48px;
}
.password-field {
  position:relative;
}
.password-field input {
  padding-right:86px;
}
.password-field button {
  position:absolute;
  right:6px;
  top:5px;
  bottom:5px;
  border:0;
  background:transparent;
  font-size:12px;
  font-weight:650;
  padding:0 10px;
}
.check {
  display:flex;
  align-items:center;
  gap:9px;
  margin:20px 0;
  font-size:13px;
}
.check input {
  width:18px;
  height:18px;
  accent-color:#171819;
}
.primary,.secondary {
  border:0;
  padding:12px 18px;
  border-radius:8px;
  font-weight:700;
  min-height:44px;
}
.primary {
  display:flex;
  justify-content:space-between;
  background:var(--yellow);
  width:100%;
  color:var(--black);
}
.primary:hover {
  background:#e8bd08;
}
.secondary {
  border:1px solid #c6c9cf;
  background:#fff;
  color:var(--black);
}
.help {
  font-size:12px;
  text-align:center;
  margin:24px 0;
  color:var(--muted);
}
.alert {
  padding:14px;
  background:#fff0ee;
  border:1px solid #efb7af;
  border-radius:8px;
  font-size:14px;
}
.shell {
  display:flex;
  min-height:100dvh;
}
.sidebar {
  width:250px;
  background:var(--black);
  color:#ccc;
  display:flex;
  flex-direction:column;
  padding:30px 22px;
  position:fixed;
  inset:0 auto 0 0;
}
.sidebar .brand {
  font-size:38px;
  margin-bottom:50px;
}
.sidebar .brand>span {
  font-size:14px;
}
.nav-label {
  font-size:10px;
  color:#a0a0a0;
  letter-spacing:1.6px;
}
.sidebar nav a {
  display:flex;
  gap:12px;
  align-items:center;
  padding:13px;
  border-radius:7px;
  text-decoration:none;
  font-weight:650;
  font-size:14px;
}
.sidebar nav .active {
  background:var(--yellow);
  color:var(--black);
}
.sidebar-note {
  margin-top:auto;
  padding-top:40px;
  font-size:12px;
}
.sidebar-note p {
  color:#96999d;
  font-size:11px;
  margin-top:6px;
}
.status-dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--yellow);
  margin-right:5px;
}
.account {
  border-top:1px solid #393a3c;
  margin-top:22px;
  padding-top:20px;
  overflow-wrap:anywhere;
}
.account strong,.account>span {
  display:block;
  font-size:13px;
}
.account>span {
  color:#a6a6a6;
  font-size:11px;
  margin-top:3px;
}
.account button {
  padding:12px 0 0;
  background:none;
  border:0;
  color:var(--yellow);
  font-size:12px;
  min-height:44px;
}
.workspace {
  margin-left:250px;
  flex:1;
  min-width:0;
}
.topbar {
  height:72px;
  padding:0 40px;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:16px;
  font-size:12px;
  color:var(--muted);
}
.role-badge {
  margin-left:auto;
  border:1px solid var(--line);
  padding:5px 12px;
  border-radius:20px;
  font-size:11px;
  color:#3f4247;
}
.dashboard {
  max-width:1300px;
  margin:auto;
  padding:40px;
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:20px;
}
.page-heading .muted {
  font-size:14px;
}
.phase-tag {
  border:1px solid #d8dadd;
  font-size:10px;
  letter-spacing:1px;
  border-radius:4px;
  padding:5px 8px;
  white-space:nowrap;
}
.welcome-banner {
  background:var(--yellow);
  border-radius:12px;
  padding:32px 36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  overflow:hidden;
}
.welcome-banner h2 {
  font-size:28px;
  margin-bottom:10px;
}
.welcome-banner p {
  margin:0;
  font-size:14px;
  max-width:450px;
}
.battery {
  border:5px solid var(--black);
  border-radius:12px;
  font-size:42px;
  font-weight:950;
  padding:10px 22px;
  position:relative;
  transform:rotate(-8deg);
  letter-spacing:-3px;
}
.battery:after {
  content:"";
  position:absolute;
  right:-13px;
  top:25%;
  width:9px;
  height:50%;
  background:var(--black);
  border-radius:0 4px 4px 0;
}
.battery span {
  font-size:20px;
  vertical-align:top;
  margin-left:8px;
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:34px 0 16px;
}
.section-heading h2 {
  font-size:18px;
  margin:0;
}
.section-heading>span {
  font-size:11px;
  color:var(--muted);
}
.module-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.module-card {
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  padding:24px;
  display:flex;
  flex-direction:column;
}
.module-number {
  font-size:12px;
  color:#6b6e73;
  border:1px solid var(--line);
  border-radius:7px;
  padding:7px 10px;
  align-self:flex-start;
  margin-bottom:22px;
}
.module-card h3 {
  margin-bottom:8px;
}
.module-card p {
  font-size:13px;
  color:var(--muted);
  margin-bottom:24px;
}
.upcoming {
  font-size:10px;
  color:#62666b;
  border-top:1px solid #eee;
  padding-top:14px;
  margin-top:auto;
}
.notice {
  margin-top:24px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:24px;
  display:flex;
  align-items:center;
  gap:24px;
  background:white;
}
.notice h2,.install-box h2 {
  font-size:16px;
  margin-bottom:6px;
}
.notice p {
  font-size:13px;
  color:var(--muted);
  margin:0;
}
.notice>span {
  margin-left:auto;
  background:#edf6ef;
  color:#29753d;
  padding:6px 12px;
  border-radius:50%;
}
.install-box {
  margin-top:24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
}
.install-box p {
  font-size:12px;
  margin-bottom:0;
}
.install-help {
  font-size:12px;
}
.install[hidden] {
  display:none;
}
footer {
  margin-top:38px;
  padding-top:20px;
  border-top:1px solid var(--line);
  font-size:11px;
  color:var(--muted);
  display:flex;
  justify-content:space-between;
}
.mobile-menu {
  display:none;
}
.simple-page {
  max-width:550px;
  margin:12vh auto;
  padding:30px;
}
.simple-page a {
  display:inline-block;
  background:var(--yellow);
  padding:10px 18px;
  border-radius:8px;
  text-decoration:none;
}
@media(min-width:1500px) {
  .dashboard {
    padding-top:55px;
  }
}
@media(max-width:1100px) {
  .sidebar {
    width:220px;
  }
  .workspace {
    margin-left:220px;
  }
  .dashboard {
    padding:28px;
  }
  .module-grid {
    gap:12px;
  }
  .module-card {
    padding:18px;
  }
  .topbar {
    padding:0 28px;
  }
  .welcome-banner {
    padding:28px;
  }
  .battery {
    font-size:30px;
    padding:10px 15px;
  }
}
@media(max-width:760px) {
  .login-layout {
    grid-template-columns:1fr;
  }
  .brand-story {
    min-height:auto;
    padding:28px;
  }
  .brand-story>div {
    margin-top:40px;
  }
  .brand-story h1 {
    font-size:34px;
  }
  .brand-story .intro,.brand-footer {
    display:none;
  }
  .login-panel {
    padding:36px 24px;
  }
  .sidebar {
    transform:translateX(-100%);
    z-index:10;
    transition:transform .2s;
    width:250px;
    top:72px;
  }
  .sidebar.open {
    transform:translateX(0);
  }
  .sidebar .brand {
    margin-bottom:30px;
  }
  .workspace {
    margin-left:0;
  }
  .mobile-menu {
    display:block;
    font-size:12px;
    padding:8px 12px;
  }
  .topbar {
    padding:0 18px;
    position:sticky;
    top:0;
    z-index:11;
  }
  .dashboard {
    padding:28px 18px;
  }
  h1 {
    font-size:28px;
  }
  .welcome-banner {
    padding:24px;
  }
  .welcome-banner h2 {
    font-size:23px;
  }
  .battery {
    display:none;
  }
  .module-grid {
    grid-template-columns:1fr;
  }
  .module-card {
    padding:22px;
  }
  .module-number {
    margin-bottom:16px;
  }
  .module-card p {
    margin-bottom:18px;
  }
  .install-box {
    align-items:flex-start;
    flex-direction:column;
  }
  .phase-tag {
    margin-left:10px;
  }
  footer {
    gap:12px;
    flex-wrap:wrap;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important;
  }
}
.page-heading>div {
  min-width:0;
}
.page-heading h1 {
  overflow-wrap:anywhere;
}
.notice>div {
  min-width:0;
}
.sidebar {
  overflow-y:auto;
}
@media(max-width:760px) {
  .sidebar {
    visibility:hidden;
  }
  .sidebar.open {
    visibility:visible;
  }
}
/* Formularios de administración */
.management-layout { display:grid; grid-template-columns:minmax(260px, 340px) minmax(0, 1fr); gap:24px; align-items:start; }
.management-card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:24px; min-width:0; }
.management-card h2 { font-size:19px; }
.management-card select { width:100%; min-height:48px; border:1px solid #c6c9cf; border-radius:8px; padding:10px; font:inherit; background:#fff; }
.field-help { font-size:12px; color:var(--muted); margin:8px 0 16px; }
.success { padding:14px; border:1px solid #a3ceb0; background:#edf6ef; border-radius:8px; margin-bottom:22px; }
.table-scroll { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th, td { text-align:left; padding:14px 10px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
th { color:var(--muted); font-size:11px; }
td small { display:block; color:var(--muted); margin-top:4px; }
.state { font-size:11px; padding:4px 7px; border-radius:5px; background:#eee; }
.state.enabled { background:#edf6ef; color:#29623c; }
.edit-link { display:inline-block; padding:10px 4px; font-weight:650; }
.cancel-link { display:inline-block; margin-top:16px; }
.record-count { color:var(--muted); font-size:14px; }
.admin-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)); }
a.primary,a.secondary { text-decoration:none; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:1100px) { .management-layout { grid-template-columns:1fr; } }
@media(max-width:760px) { .admin-shortcuts { grid-template-columns:1fr; } .page-heading { gap:12px; flex-wrap:wrap; } .management-card { padding:18px; } }
.state, .edit-link { white-space:nowrap; }
@media(max-width:760px) {
  .table-scroll table, .table-scroll tbody { display:block; }
  .table-scroll thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
  .table-scroll tbody tr { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 14px; padding:18px 0; border-bottom:1px solid var(--line); }
  .table-scroll td { display:block; border:0; padding:0; }
  .table-scroll td:first-child { grid-column:1; grid-row:1; font-weight:650; }
  .table-scroll td:nth-child(2) { grid-column:1; grid-row:2; }
  .table-scroll td:nth-child(3) { grid-column:2; grid-row:1; }
  .table-scroll td:nth-child(4) { grid-column:2; grid-row:2; align-self:center; }
}
.spaced { margin-top:24px; }
.trip-card { border-top:1px solid var(--line); margin-top:20px; padding-top:20px; overflow-wrap:anywhere; }
.trip-card h3 { font-size:17px; }
.trip-card small { display:block; color:var(--muted); }
fieldset { border:1px solid var(--line); border-radius:8px; margin:18px 0; padding:12px; min-width:0; }
fieldset label { overflow-wrap:anywhere; }
fieldset input[type=checkbox] { flex-shrink:0; }
legend { font-size:13px; font-weight:650; }
textarea { width:100%; border:1px solid #c6c9cf; border-radius:8px; padding:12px; font:inherit; }
.management-card form>button { margin-top:16px; }
.filter-form { display:flex; align-items:end; gap:12px; flex-wrap:wrap; }
.filter-form input,.filter-form select { flex:1; width:auto; min-width:180px; }
.filter-form label { width:100%; }
summary { cursor:pointer; padding:12px 0; font-weight:650; }
.preview { border:2px solid var(--yellow); border-radius:8px; padding:20px; margin-top:24px; overflow-wrap:anywhere; }
.order-line { display:grid; grid-template-columns:minmax(0,2fr) minmax(100px,1fr) minmax(130px,1fr); gap:12px; padding:18px 0; border-bottom:1px solid var(--line); }
.order-line label { margin:0!important; min-width:0; }
.order-line input { margin-top:8px; }
.order-line p { margin:0; align-self:center; }
.order-line .remove-line { justify-self:start; }
.pagination,.share-actions { display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin-top:18px; }
.gps-controls { border-top:1px solid var(--line); margin-top:24px; padding-top:18px; }
#order-message { font-family:ui-monospace,monospace; font-size:13px; }
#order-lines+button { margin:16px 0; }
@media(max-width:760px) { .order-line { grid-template-columns:minmax(0,1fr) minmax(0,1fr); } .order-line label:first-child { grid-column:1/-1; } }
.admin-alerts { margin-top:16px; padding:12px; border:1px solid #3e4044; border-radius:8px; font-size:11px; }
.sidebar nav .admin-alerts a { padding:0; color:var(--yellow); font-size:12px; }
.admin-alerts p { margin:8px 0 0; font-size:10px; color:#c4c6c9; }
.admin-alerts button { background:transparent; border:1px solid #666; color:#eee; border-radius:5px; padding:8px; margin-top:8px; font-size:11px; }
/* Revisión de solicitudes: secciones amplias y jerarquía visible. */
.order-detail-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin:28px 0 22px; }
.order-detail-heading h2 { font-size:28px; margin-bottom:8px; }
.order-detail-heading p { margin-bottom:0; }
.order-state { display:inline-block; padding:7px 12px; border-radius:20px; font-size:12px; font-weight:700; white-space:nowrap; }
.order-state-pending { background:#fff1b9; color:#644c00; }
.order-state-accepted { background:#e1f3e7; color:#226237; }
.order-state-rejected { background:#fae5e3; color:#8d302a; }
.order-summary-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:16px; margin-bottom:24px; }
.order-summary { border:1px solid var(--line); border-radius:10px; padding:22px; background:#fff; min-width:0; }
.order-summary:first-child { background:var(--black); color:#fff; }
.order-summary span { display:block; font-size:12px; margin-bottom:8px; }
.order-summary strong { font-size:24px; overflow-wrap:anywhere; }
.order-info-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.order-info { padding:28px; }
.order-info h3 { font-size:21px; overflow-wrap:anywhere; }
.order-facts { display:grid; grid-template-columns:minmax(100px,1fr) minmax(0,2fr); gap:14px 18px; font-size:14px; margin:20px 0 0; }
.order-facts dt { color:var(--muted); }
.order-facts dd { margin:0; overflow-wrap:anywhere; }
.order-location { border-top:1px solid var(--line); margin-top:24px; padding-top:18px; font-size:13px; }
.order-location .secondary { display:inline-block; }
.order-items { padding:28px; }
.order-items .section-heading { margin-top:0; }
.order-items th,.order-items td { padding:20px 14px; font-size:14px; }
.order-items th { font-size:12px; }
.order-grand-total { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; background:var(--bg); padding:22px; border-radius:8px; margin-top:20px; }
.order-grand-total strong { font-size:26px; }
.order-decision { border-top:4px solid var(--yellow); padding:28px; }
.order-decision>.primary,.order-decision form .primary { max-width:420px; justify-content:center; }
.order-decision details { margin-top:18px; border-top:1px solid var(--line); padding-top:10px; }
.order-notes { white-space:pre-wrap; overflow-wrap:anywhere; }
.request-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.request-card { padding:24px; border:1px solid var(--line); border-radius:10px; min-width:0; }
.request-card-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:20px; flex-wrap:wrap; }
.request-card h3 { margin-bottom:6px; font-size:20px; overflow-wrap:anywhere; }
.request-ruc { color:var(--muted); font-size:13px; }
.request-card .order-facts { font-size:13px; }
.request-card-total { display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.request-card-total strong { font-size:20px; }
.request-card .primary { justify-content:center; margin-top:18px; }
@media(max-width:1100px) { .request-grid { grid-template-columns:1fr; } .order-info-grid { gap:18px; } .order-facts { grid-template-columns:1fr; gap:5px; } .order-facts dd { margin-bottom:10px; } }
@media(max-width:760px) {
  .order-detail-heading { flex-wrap:wrap; }
  .order-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .order-summary:first-child { grid-column:1/-1; }
  .order-summary strong { font-size:22px; }
  .order-info-grid { grid-template-columns:1fr; }
  .order-info,.order-items,.order-decision,.request-card { padding:22px; }
  .order-items .table-scroll tbody tr { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; }
  .order-items .table-scroll td:first-child { grid-column:1/-1; grid-row:1; }
  .order-items .table-scroll td:nth-child(2) { grid-column:1; grid-row:2; }
  .order-items .table-scroll td:nth-child(3) { grid-column:2; grid-row:2; }
  .order-items .table-scroll td:nth-child(4) { grid-column:1/-1; grid-row:3; }
  .order-items td:before { content:attr(data-label); display:block; color:var(--muted); font-size:11px; font-weight:400; margin-bottom:5px; }
  .order-grand-total { padding:18px; }
  .order-grand-total strong { font-size:23px; }
}
@media(min-width:761px) and (max-width:1100px) {
  .order-info-grid { grid-template-columns:1fr; }
  .order-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .order-summary:first-child { grid-column:1/-1; }
}
.customer-picker { padding:20px; border:1px solid var(--line); border-radius:10px; margin:20px 0; }
.customer-search-controls { display:flex; gap:12px; align-items:center; }
.customer-search-controls input { min-width:0; flex:1; }
.customer-search-results { display:grid; gap:8px; margin:12px 0; }
.customer-result { text-align:left; padding:14px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--black); overflow-wrap:anywhere; }
.customer-result:hover { border-color:#947700; background:#fffbed; }
.customer-preview { background:#f6f7f9; border-radius:8px; padding:20px; }
.customer-preview[hidden] { display:none; }
.customer-preview h3 { overflow-wrap:anywhere; }
.simple-page pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; }
@media(max-width:760px) { .customer-picker { padding:16px; } .customer-search-controls { flex-wrap:wrap; } .customer-search-controls input { flex-basis:100%; } }
.customer-picker .edit-link { white-space:normal; max-width:100%; overflow-wrap:anywhere; }
