:root {
  font-family: Inter, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eff4ff;
  background: #080e19;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.shell { min-height: 100vh; display: flex; }
.sidebar {
  width: 218px; flex-shrink: 0;
  border-right: 1px solid #223047;
  background: #0b1424;
  padding: 28px 22px;
  display: flex; flex-direction: column;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 43px; height: 43px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: #187aff;
  font-size: 25px; font-weight: 900;
}
.brand strong { display: block; letter-spacing: 2px; }
.brand small {
  color: #8c9eb8; font-size: 10px;
  letter-spacing: 3px;
}
.sidebar-bottom {
  font-size: 12px; color: #94a5bc;
}
.status-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: #31d4a0;
  margin-right: 7px;
}
.main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}
.topbar {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 26px 5%;
  border-bottom: 1px solid #19283d;
}
.eyebrow {
  color: #8fa2be; font-size: 11px;
  letter-spacing: 2px; font-weight: 700;
}
.environment {
  color: #b0c1d8;
  font-size: 11px; letter-spacing: 1px;
  border: 1px solid #2e405a;
  padding: 7px 11px; border-radius: 20px;
}
.auth-layout {
  width: 100%; max-width: 1150px;
  margin: auto; padding: 65px 5%;
  display: grid; grid-template-columns: 1fr 420px;
  gap: 65px; align-items: center;
}
.section-pill {
  display: inline-block;
  border: 1px solid #2c4f82;
  background: #10213c;
  color: #79b5ff;
  padding: 9px 14px;
  border-radius: 30px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 1px;
}
.intro h1 {
  margin: 25px 0 20px;
  font-size: clamp(35px, 4vw, 59px);
  line-height: 1.12; letter-spacing: -2px;
}
.intro em { color: #4b9dff; font-style: normal; }
.intro p {
  color: #9eacc2; line-height: 1.8;
  font-size: 16px; max-width: 430px;
}
.features {
  display: flex; flex-direction: column;
  gap: 14px; margin-top: 37px;
  color: #c7d5e8; font-size: 13px;
}
.auth-card, .panel, .metric {
  background: #101b2c;
  border: 1px solid #293850;
  border-radius: 20px;
}
.auth-card { padding: 28px; }
.tabs {
  display: flex; gap: 8px;
  border-bottom: 1px solid #293850;
  padding-bottom: 18px;
}
.tab {
  flex: 1; padding: 10px 4px;
  color: #96a7be; background: transparent;
  border: 0; border-radius: 8px;
  font-size: 12px;
}
.tab.active {
  background: #1d3554;
  color: white; font-weight: 750;
}
.form { display: flex; flex-direction: column; }
.form h2 { font-size: 23px; margin: 26px 0 4px; }
.form p {
  color: #96a7be; font-size: 13px;
  line-height: 1.6; margin-bottom: 23px;
}
.form label {
  font-size: 12px; font-weight: 700;
  margin: 13px 0 8px;
}
.form input {
  width: 100%; height: 46px;
  background: #0a1322;
  color: white;
  border: 1px solid #34445d;
  border-radius: 10px;
  padding: 0 13px;
  outline: none;
}
.form input:focus {
  border-color: #378aff;
  box-shadow: 0 0 0 3px #378aff22;
}
.form small { color: #91a2ba; margin-top: 7px; }
.primary {
  margin-top: 24px;
  padding: 15px; border: 0;
  border-radius: 10px;
  color: white; background: #187aff;
  font-weight: 800;
}
.primary:hover { background: #348eff; }
.primary:disabled { opacity: .55; cursor: wait; }
.message {
  padding: 14px; margin-top: 18px;
  border-radius: 10px;
  font-size: 13px; line-height: 1.6;
  background: #172d4d; color: #c0dcff;
}
.message.error {
  background: #4a2028; color: #ffd2d9;
}
.dashboard {
  width: 100%; max-width: 1150px;
  margin: 0 auto; padding: 55px 5%;
}
.dashboard-heading {
  display: flex; gap: 20px;
  align-items: center; justify-content: space-between;
}
.dashboard h1 { font-size: 37px; margin: 10px 0; }
.dashboard p, .panel p { color: #9cacbf; }
.outline {
  border: 1px solid #405571;
  background: transparent; color: #eff4ff;
  border-radius: 9px; padding: 12px 18px;
}
.summary-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px; margin: 32px 0;
}
.metric { padding: 24px; }
.metric span {
  display: block; color: #9bacbf; font-size: 13px;
}
.metric strong {
  display: block; font-size: 35px; margin-top: 15px;
}
.panel { padding: 28px; }
.panel h2 { margin: 0; }
.restaurant-list { margin-top: 20px; }
.restaurant {
  border: 1px solid #344660;
  border-radius: 12px; padding: 17px;
  margin-top: 12px; overflow-wrap: anywhere;
}
.restaurant strong { display: block; margin-bottom: 8px; }
.restaurant small { color: #a0b2ca; }
.notice {
  margin-top: 24px; padding: 19px;
  border: 1px solid #2d4868;
  background: #10223a;
  border-radius: 12px;
  color: #b7cbe4; font-size: 13px;
  line-height: 1.7;
}
footer {
  padding: 22px 5%;
  font-size: 11px; color: #687c98;
  margin-top: auto;
}
@media (max-width: 850px) {
  .sidebar { display: none; }
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 28px; padding: 35px 5%;
  }
  .intro h1 { font-size: 38px; }
  .intro p { font-size: 14px; }
  .features { display: none; }
  .auth-card { padding: 20px; }
  .topbar { padding: 19px 5%; }
  .environment { font-size: 9px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-heading { align-items: flex-start; }
  .dashboard h1 { font-size: 28px; }
}
@media (max-width: 430px) {
  .summary-grid { grid-template-columns: 1fr; }
  .dashboard-heading { flex-direction: column; }
  .intro h1 { font-size: 34px; }
}

/* OKU111_ORANGE_MOBILE_V1 */

:root {
  color-scheme: dark;
  background: #090b12;
}

body {
  background:
    radial-gradient(
      ellipse at 90% 5%,
      rgba(255,103,20,.13),
      transparent 40%
    ),
    #090b12;
}

.sidebar {
  background: #0d101b;
  border-right-color: #3b271f;
}

.logo {
  background: linear-gradient(135deg,#ffae23,#f04a12);
  box-shadow: 0 6px 22px #fa631b55;
}

.status-dot {
  background: #ff8527;
}

.section-pill {
  background: #351a13;
  border-color: #b95124;
  color: #ffab65;
}

.intro em {
  color: #ff862e;
}

.auth-card,
.panel,
.metric {
  background: #111722;
  border-color: #493027;
}

.auth-card {
  box-shadow: 0 20px 65px #0008;
}

.tab.active {
  background: linear-gradient(120deg,#ff9a19,#e84e17);
  color: white;
  box-shadow: 0 4px 16px #f46a2644;
}

.form input {
  background: #0b101a;
  border-color: #403c40;
}

.form input:focus {
  border-color: #ff862e;
  box-shadow: 0 0 0 3px #ff862e22;
}

.primary {
  background: linear-gradient(105deg,#ff9b16,#f05517);
  box-shadow: 0 8px 24px #ed631e33;
}

.primary:hover {
  background: linear-gradient(105deg,#ffad36,#ff6a22);
}

.environment {
  border-color: #9d492a;
  color: #ffaf77;
}

.restaurant {
  border-color: #75442e;
}

.notice {
  background: #241913;
  border-color: #764227;
  color: #f0c6aa;
}

/* Diseño prioritario para teléfonos */

@media (max-width:850px) {
  .main {
    width: 100%;
  }

  .topbar {
    padding: 21px 20px;
    background: #0d111c;
    border-bottom-color: #41271d;
  }

  .topbar .eyebrow {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .environment {
    font-size: 9px;
  }

  .auth-layout {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
    padding: 25px 16px 38px;
  }

  .intro {
    width: 100%;
  }

  .intro h1 {
    font-size: clamp(29px,8vw,39px);
    line-height: 1.13;
    letter-spacing: -1px;
    margin: 20px 0 12px;
  }

  .intro p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
  }

  .auth-card {
    width: 100%;
    padding: 20px 17px;
    border-radius: 22px;
    box-shadow: 0 16px 55px #0009;
  }

  .tabs {
    gap: 4px;
  }

  .tab {
    font-size: 11px;
    min-height: 42px;
  }

  .form input {
    min-height: 49px;
    font-size: 16px;
  }

  .primary {
    min-height: 52px;
    font-size: 15px;
  }

  .dashboard {
    padding: 26px 16px 90px;
  }

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

  .metric {
    padding: 16px;
  }

  .metric strong {
    font-size: 27px;
  }

  .panel {
    padding: 19px;
  }
}

/* OKU111_MOBILE_PANEL_V1 */

.mobile-bottom-nav {
  display: none;
}

.mobile-detail {
  margin-top: 22px;
  padding: 23px;
  background: #111720;
  border: 1px solid #603521;
  border-radius: 20px;
}

.mobile-detail h2 {
  margin: 0 0 12px;
  font-size: 23px;
}

.mobile-detail p {
  color: #abb5c3;
  font-size: 13px;
  line-height: 1.6;
}

.mobile-detail-icon {
  color: #ff8b2a;
  margin-bottom: 15px;
}

.mobile-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid #2f3540;
  font-size: 13px;
}

.mobile-detail-row span {
  color: #9facbf;
}

.mobile-detail-row strong {
  color: #ffad69;
  text-align: right;
}

.mobile-logout {
  width: 100%;
  margin-top: 23px;
  padding: 16px;
  color: #fff;
  background: #9b3618;
  border: 1px solid #ff8137;
  border-radius: 12px;
}

@media (max-width: 850px) {

  .dashboard {
    padding-bottom: 115px;
  }

  .dashboard-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dashboard-heading h1 {
    font-size: clamp(23px, 6vw, 31px);
    line-height: 1.2;
    letter-spacing: -.6px;
  }

  .dashboard-heading .outline {
    display: none;
  }

  .summary-grid {
    margin: 24px 0 18px;
  }

  .metric {
    background:
      linear-gradient(
        145deg,
        #19212d,
        #10141f
      );
    border: 1px solid #553021;
    border-radius: 17px;
  }

  .metric span {
    font-size: 12px;
    line-height: 1.5;
  }

  .metric strong {
    color: #ff9d47;
  }

  .panel {
    border-radius: 18px;
  }

  .panel h2 {
    font-size: 21px;
  }

  .restaurant {
    padding: 17px;
    background: #141a25;
    border-radius: 14px;
    border-color: #854b2d;
  }

  .restaurant strong {
    color: #fff;
    font-size: 16px;
  }

  .restaurant small {
    font-size: 12px;
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 30;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(12, 15, 25, .97);
    border-top: 1px solid #61351f;
    padding: 9px 5px max(12px, env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
    box-shadow: 0 -10px 35px #0008;
  }

  .mobile-bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 51px;
    background: transparent;
    border: 0;
    color: #8e9aab;
    font-size: 10px;
    cursor: pointer;
  }

  .mobile-bottom-nav button.active {
    color: #ff963e;
    font-weight: 750;
  }

  .mobile-nav-icon {
    font-size: 23px;
    line-height: 1;
  }

  .notice {
    font-size: 12px;
  }
}

/* OKU111_SALES_STYLE_V1 */

.sales-overview {
  margin: 25px 0;
}

.sales-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.sales-title h2 {
  font-size: 23px;
  margin: 7px 0 0;
}

.sales-kicker {
  color: #ff9950;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

#salesDate {
  font-size: 12px;
  color: #a7b1c1;
}

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

.sales-card {
  min-width: 0;
  padding: 21px;
  background: #111722;
  border: 1px solid #613822;
  border-radius: 18px;
}

.sales-card span {
  display: block;
  color: #a5afbf;
  font-size: 12px;
}

.sales-card strong {
  display: block;
  margin-top: 15px;
  color: #fff;
  font-size: clamp(20px,2.5vw,30px);
  overflow-wrap: anywhere;
}

.sales-primary {
  background:
    linear-gradient(145deg,#3d2118,#171821);
}

.sales-primary strong {
  color: #ff9f48;
}

.sales-sync {
  margin-top: 12px;
  padding: 13px 15px;
  background: #221a17;
  border: 1px solid #51331f;
  border-radius: 12px;
  color: #efbd93;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 850px) {
  .sales-overview {
    margin: 19px 0;
  }

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

  .sales-primary {
    grid-column: 1 / -1;
  }

  .sales-card {
    padding: 18px;
  }

  .sales-primary strong {
    font-size: 34px;
  }

  .sales-card strong {
    font-size: 25px;
  }
}


/* OKU111_HISTORICAL_DATE_LAB_V1 */

.sales-date-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.sales-date-tools label {
  color: #ffab57;
  font-size: 11px;
  font-weight: 700;
}

.sales-date-tools input {
  font: inherit;
  background: #17202b;
  color: #f5f7fa;
  color-scheme: dark;
  border: 1px solid #f18a28;
  border-radius: 10px;
  padding: 9px;
  max-width: 180px;
}

.sales-date-tools input:focus-visible {
  outline: 2px solid #ff9a35;
  outline-offset: 2px;
}

@media (max-width: 460px) {
  .sales-title {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .sales-date-tools {
    align-items: flex-start;
  }
}

.sales-overview::after {
  content: "CLOUD LAB · VENTAS SINCRONIZADAS DESDE RUDYS";
  display: block;
  color: #ffab57;
  font-size: 10px;
  letter-spacing: .09em;
  margin-top: 12px;
}


/* OKU111_REFUNDS_PENDING_PILOT_V1 */
.oku111-refunds-notice {
  padding: 14px 16px;
  margin: 14px 0 18px;
  border: 1px solid rgba(255, 153, 51, 0.3);
  border-left: 3px solid #f59e0b;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.07);
  color: inherit;
}
.oku111-refunds-notice strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.4;
}
.oku111-refunds-notice p {
  margin: 7px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.85;
}


/* OKU111_P153B_DASHBOARD_PRIORIDAD_VENTAS */
.sales-overview {
  margin-top: 16px;
}

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

.sales-primary {
  grid-column: 1 / -1;
  padding: 28px;
}

.sales-primary strong {
  font-size: clamp(34px, 5vw, 49px);
  line-height: 1.15;
}

.sales-sync {
  overflow-wrap: anywhere;
}

@media (max-width: 850px) {
  .sales-primary {
    padding: 22px;
  }

  .sales-primary strong {
    font-size: clamp(30px, 8vw, 43px);
  }

  .sales-date-tools input {
    min-height: 44px;
  }
}

@media (max-width: 460px) {
  .sales-overview {
    margin-top: 10px;
  }

  .sales-card:not(.sales-primary) {
    padding: 15px;
  }

  .sales-card:not(.sales-primary) strong {
    font-size: 23px;
  }
}
