/* ===========================================================
   OnRoute — Employee dashboard mockup ("Reservas realizadas")
   Theme-aware recreation of the real web app screen.
   =========================================================== */

:root { --dash-active-bg: #1B1B1B; --dash-active-fg: #ffffff; }
[data-theme="dark"] { --dash-active-bg: #232C25; --dash-active-fg: #ECEEE9; }

.dashwin {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ---- top bar ---- */
.dash-topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.dash-chips { display: flex; gap: 8px; }
.dash-topbar .pill { padding: 6px 13px 6px 9px; font-size: 12.5px; }
.dash-topbar .pill .dot { width: 13px; height: 13px; border-radius: 4px; }
.dash-top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.dash-fx {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-bg); color: var(--green-700);
  border: 1px solid color-mix(in srgb, var(--green) 28%, transparent);
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
}
[data-theme="dark"] .dash-fx { color: var(--green); }
.dash-fx svg { width: 13px; height: 13px; }
.dash-shift { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.dash-shift b { color: var(--text); font-weight: 600; }
.dash-bell {
  position: relative; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2);
  display: grid; place-items: center;
}
.dash-bell svg { width: 17px; height: 17px; }
.dash-bell .n {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px;
  background: #E5484D; color: #fff; border-radius: 999px; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--surface);
}
.dash-salir {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 600;
}
.dash-salir svg { width: 15px; height: 15px; }

/* ---- body grid ---- */
.dash-body { display: grid; grid-template-columns: 200px 1fr; }
.dash-side {
  border-right: 1px solid var(--border); padding: 20px 14px;
  background: var(--surface); display: flex; flex-direction: column; gap: 4px;
}
.dash-side .lbl {
  font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3); font-weight: 500; padding: 0 8px; margin-bottom: 8px;
}
.dash-side .lbl.mt { margin-top: 22px; }
.dash-navitem {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 11px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  color: var(--text-2); cursor: default;
}
.dash-navitem svg { width: 17px; height: 17px; opacity: .85; flex: none; }
.dash-navitem .num {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--green); color: #fff; border-radius: 7px;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.dash-navitem.active {
  background: var(--dash-active-bg); color: var(--dash-active-fg);
  box-shadow: 0 0 0 1.5px var(--green); font-weight: 600;
}
.dash-navitem.active svg { opacity: 1; }

/* ---- main ---- */
.dash-main { padding: 20px 20px 0; min-width: 0; }
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.dash-head h3 { color: var(--green); font-size: 25px; letter-spacing: -.02em; }
[data-theme="dark"] .dash-head h3 { color: var(--green); }
.dash-head p { color: var(--text-2); font-size: 13.5px; margin-top: 4px; }
.dash-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-obtn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  padding: 9px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.dash-obtn svg { width: 15px; height: 15px; opacity: .8; }

.dash-tabs { display: flex; gap: 8px; margin: 20px 0 14px; flex-wrap: wrap; }
.dash-tab {
  padding: 9px 15px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.dash-tab.active { background: var(--dash-active-bg); color: var(--dash-active-fg); border-color: var(--dash-active-bg); }

/* ---- table ---- */
.dash-scroll { overflow-x: auto; padding-bottom: 2px; }
.dash-table { min-width: 880px; }
.dash-tr {
  display: grid;
  grid-template-columns: 48px 86px minmax(112px,1.4fr) minmax(104px,1.3fr) minmax(82px,1fr) 84px 70px 96px 104px;
  align-items: center; gap: 10px; padding: 14px 12px;
}
.dash-thead { background: var(--surface-2); border-radius: 12px; }
.dash-thead .dash-tr { padding: 11px 12px; }
.dash-th {
  font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-3); font-weight: 500;
}
.dash-row { border-bottom: 1px solid var(--border); }
.dash-id { font-weight: 700; font-size: 12.5px; letter-spacing: -.01em; color: var(--text); }
.dash-cell .m { font-weight: 600; font-size: 12.5px; line-height: 1.3; color: var(--text); }
.dash-cell .s { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.dash-cell .s.mono { font-family: 'Geist Mono', monospace; letter-spacing: -.03em; }
.dash-cost { font-weight: 600; font-size: 12.5px; color: var(--text); white-space: nowrap; }
.dash-pay { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.dash-pay.pend { color: var(--text-3); }
.dash-pay.paid { color: var(--green-700); }
[data-theme="dark"] .dash-pay.paid { color: var(--green); }
.dash-pay svg { width: 14px; height: 14px; }
.dash-sol {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 9px; border-radius: 9px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
}
.dash-sol svg { width: 13px; height: 13px; flex: none; }
.dash-sol.dark { background: var(--dash-active-bg); color: var(--dash-active-fg); border-color: var(--dash-active-bg); }
.dash-sol.off { color: var(--text-3); opacity: .55; }

/* fade out at bottom to imply more rows */
.dash-fade { position: relative; }
.dash-fade::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
}

/* ---- supporting captions ---- */
.dash-caps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 34px; }
.dash-cap { display: flex; gap: 14px; }
.dash-cap .ic {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: var(--green-bg); color: var(--green-700); display: grid; place-items: center;
}
[data-theme="dark"] .dash-cap .ic { color: var(--green); }
.dash-cap .ic svg { width: 21px; height: 21px; }
.dash-cap h4 { font-size: 16px; letter-spacing: -.01em; }
.dash-cap p { font-size: 13.5px; color: var(--text-2); margin-top: 4px; }

@media (max-width: 920px) {
  .dash-side { display: none; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-caps { grid-template-columns: 1fr; gap: 16px; }
  .dash-shift { display: none; }
}
@media (max-width: 600px) {
  .dash-topbar { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .dash-top-right { width: 100%; margin-left: 0; justify-content: flex-start; flex-wrap: wrap; gap: 10px; }
  .dash-salir span { display: none; }
  .dash-salir { padding: 8px 10px; }
  .dash-main { padding: 18px 14px 0; }
  .dash-head h3 { font-size: 21px; }
  .dash-head-actions { width: 100%; }
  .dash-obtn { flex: 1; justify-content: center; }
  .dash-fade::after { height: 60px; }
}
