/*root_css*/
:root{
  --bg:#0b1220;
  --card:#0f1a2f;
  --alt:#0c162a;
  --text:#eef4ff;
  --muted:#b7c4db;
  --primary:#1b7cff;
  --primary2:#20c997;
  --border:rgba(255,255,255,.10);
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius:18px;

  /* iOS safe areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif; color:var(--text); background:linear-gradient(180deg, #071026 0%, #050b18 100%); }
a{ color:inherit; }
.container{ width:min(1120px, calc(100% - 32px)); margin:0 auto; }

.topbar{
  position:sticky; top:0; z-index:9999;
  background:rgba(7,16,38,.88);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
  padding-top: var(--safe-top);
}
.topbar__inner{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding:10px 0; }
.topbar__contact{ display:flex; align-items:center; gap:10px; min-width:0; }
.dot{ width:10px; height:10px; border-radius:999px; background:linear-gradient(90deg,var(--primary),var(--primary2)); box-shadow:0 0 0 6px rgba(27,124,255,.14); }
.topbar__text{ font-size:13px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.topbar__actions{ display:flex; gap:10px; align-items:center; white-space:nowrap; }

.header{
  position:sticky; top: calc(48px + var(--safe-top)); z-index:9998;
  background:rgba(5,11,24,.72);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.header__inner{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 0; }
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand__logo{ height:44px; width:auto; border-radius:10px; box-shadow:0 6px 16px rgba(0,0,0,.25); background:#fff; padding:2px; }

.nav{ display:flex; gap:18px; align-items:center; }
.nav a{ text-decoration:none; color:var(--muted); font-weight:600; font-size:14px; }
.nav a:hover{ color:var(--text); }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  border-radius:14px;
  padding:10px 14px;
  font-weight:800;
  text-decoration:none;
  border:1px solid var(--border);
  background:rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
}
.btn--primary{
  border:none;
  background:linear-gradient(90deg,var(--primary), var(--primary2));
  box-shadow:0 10px 24px rgba(27,124,255,.18);
}
.btn--ghost:hover{ background:rgba(255,255,255,.09); }
.btn--danger{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,80,80,.12);
}
.btn--danger:hover{ background:rgba(255,80,80,.18); }
.btn--lg{ padding:12px 16px; border-radius:16px; }

.main{ padding:18px 0 44px; }

.pill{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(27,124,255,.12);
  border:1px solid rgba(27,124,255,.25);
  color:var(--text);
  font-weight:800;
  font-size:12px;
}

h1{ font-size:44px; line-height:1.06; margin:14px 0 12px; }
h2{ margin:0 0 10px; font-size:28px; }
h3{ margin:0 0 10px; font-size:16px; }
.muted{ color:var(--muted); }
hr{ border:none; border-top:1px solid var(--border); margin:14px 0; }

.grid{ display:grid; gap:14px; }
.grid-2{ display:grid; gap:14px; grid-template-columns: 1.2fr .8fr; }

.card{
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:0 10px 24px rgba(0,0,0,.20);
}
.card--highlight{
  border:1px solid rgba(32,201,151,.35);
  box-shadow: 0 0 0 1px rgba(32,201,151,.10), 0 18px 34px rgba(0,0,0,.22);
}

.badge{
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius:999px;
  padding:8px 10px;
  font-weight:900;
  font-size:12px;
  color:var(--muted);
}

.toast{
  display:none;
  padding:10px 12px;
  border-radius:14px;
  margin:10px 0 14px;
  border:1px solid rgba(32,201,151,.25);
  background:rgba(32,201,151,.10);
  color:var(--text);
  font-weight:800;
}

/* Modal */
.modal{
  position:fixed; inset:0;
  display:none;
  align-items:center; justify-content:center;
  background:rgba(0,0,0,.55);
  z-index:10000;
  padding:16px;
}
.modal__panel{
  width:min(520px, 100%);
  background:rgba(10,16,34,.98);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
.modal__actions{ margin-top:14px; display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; }

/* New: Dashboard chooser tiles */
.tiles{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top:14px;
}
.tile{
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:0 10px 24px rgba(0,0,0,.20);
}
.tile h3{ margin:10px 0 8px; font-size:16px; }
.tile p{ margin:0 0 12px; color:var(--muted); line-height:1.6; font-size:13px; }
.tile .btn{ width:100%; }

/* Tables (simple) */
.tableWrap{
  margin-top:14px;
  overflow:auto;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
}
.table{
  width:100%;
  border-collapse:collapse;
  min-width: 720px;
}
.table th, .table td{
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  vertical-align:top;
  color:var(--muted);
  font-weight:700;
  font-size:13px;
}
.table th{
  color:var(--text);
  font-weight:900;
  text-align:left;
  position:sticky;
  top:0;
  background:rgba(10,16,34,.98);
}

/* Responsive */
@media (max-width: 980px){
  h1{ font-size:36px; }
  .grid-2{ grid-template-columns: 1fr; }
  .tiles{ grid-template-columns: 1fr; }
  .nav{ display:none; }
}
@media (max-width: 560px){
  .topbar__inner{ flex-direction:column; align-items:flex-start; gap:10px; }
  .topbar__actions{ width:100%; flex-wrap:wrap; justify-content:flex-start; }
  .table{ min-width: 560px; }
}

/* ------------------------------------------------------------
   Inputs + helpers (added)
------------------------------------------------------------ */
.input{
  width:100%;
  border-radius:14px;
  padding:10px 12px;
  border:1px solid var(--border);
  background: rgb(28, 28, 28) !important;
  color: rgb(155, 230, 0) !important;
  font-weight:700;
  outline:none;
}
.input:focus{
  border-color: rgba(32,201,151,.45);
  box-shadow: 0 0 0 3px rgba(32,201,151,.12);
}
textarea.input{ resize:vertical; }

.btn[disabled], .input[disabled], select[disabled], textarea[disabled]{
  opacity:.55;
  cursor:not-allowed;
}
.btn[disabled]{ filter:saturate(.7); }

.label{
  display:block;
  font-size:12px;
  font-weight:800;
  color:var(--muted);
  margin:6px 0 6px;
}

.toast{
  position: sticky;
  top: calc(var(--safe-top) + 10px);
  z-index: 50;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(32,201,151,.25);
  background: rgba(32,201,151,.08);
  border-radius: 14px;
  color: var(--text);
  box-shadow: var(--shadow);
}

/* =====================================================
   DASHBOARD TABS -> MATCH .pill STYLE
   Buttons: <button class="tab ..."> (data-tab)
   Goal: visually match the "Portal Login / Help" pill look
   ===================================================== */
.tab{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(27,124,255,.12);
  border:1px solid rgba(27,124,255,.25);
  color:var(--text);
  font-weight:800;
  font-size:12px;
  cursor:pointer;
  user-select:none;
  transition: filter .12s ease, transform .12s ease, background .12s ease, border-color .12s ease;
}
.tab:hover{ filter: brightness(1.05); }
.tab:active{ transform: translateY(1px); }

/* Active tab: subtle emphasis (still same family as pill) */
.tab--active{
  background:rgba(27,124,255,.22);
  border-color: rgba(27,124,255,.45);
}

/* Tabs container should wrap on mobile instead of forcing zoom */
.tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* =====================================================
   PORTAL HEADER CLARITY + BRAND SUB HIDE
   - Underline header/banner links so users know they're clickable
   - Hide brand_sub (e.g., "portal.cleancurbside.com") while keeping routing intact
   ===================================================== */

/* Underline common header/navigation links */
.header a,
.header__inner a,
.nav a,
.mobileNav a,
.topbar a{
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

/* Hide the "brand_sub" line (keep brand_title as-is) */
.brand_sub,
.brand__sub,
#brand_sub,
#brandSub{
  display:none !important;
}

/* =====================================================
   PORTAL PATCH (MINIMAL) — MOBILE READABILITY + WRAP
   ===================================================== */
html{ -webkit-text-size-adjust: 100%; }
body{ overflow-x:hidden; }

@media (max-width: 820px){
  .topbar__text{
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:unset !important;
  }
  .topbar__actions{
    white-space:normal !important;
    flex-wrap:wrap;
  }
}

@media (max-width: 560px){
  .table{ min-width: 0 !important; }
  .table th, .table td{ white-space:normal; }
  h1{ font-size:30px !important; line-height:1.15; }
  h2{ font-size:22px !important; line-height:1.2; }
}


/* =====================================================
   CC BUTTONS — HARD LOCK (ALL VARIANTS)
   Ensures EVERY button looks identical across the portal.
   Scope: .btn / .cc-pill-button only (does not affect nav toggles)
   ===================================================== */
.cc-pill-button,
.btn,
a.btn,
button.btn,
.btn--primary,
.btn--ghost,
.btn--danger,
.btn--lg,
.btn--sm{
  appearance: none !important;
  border: none !important;
  cursor: pointer !important;

  /* Size & shape */
  padding: 14px 34px !important;
  border-radius: 999px !important;

  /* Color & gradient */
  background: linear-gradient(
    to bottom,
    #9be600 0%,
    #6fc400 45%,
    #5db100 100%
  ) !important;

  /* Subtle inner highlight */
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.15),
    0 4px 10px rgba(0, 0, 0, 0.25) !important;

  /* Text */
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  text-transform: none !important;
  text-decoration: none !important;

  /* Layout */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;

  /* Smooth interaction */
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease !important;

  /* Allow labels to wrap on mobile */
  white-space: normal !important;
  text-align: center !important;
}

.cc-pill-button:hover,
.btn:hover,
a.btn:hover{
  filter: brightness(1.05) !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 6px 14px rgba(0, 0, 0, 0.3) !important;
}

.cc-pill-button:active,
.btn:active,
a.btn:active{
  transform: translateY(1px) !important;
  box-shadow:
    inset 0 3px 4px rgba(0, 0, 0, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.cc-pill-button:disabled,
.btn:disabled,
button.btn:disabled{
  cursor: not-allowed !important;
  opacity: 0.55 !important;
  filter: grayscale(30%) !important;
}

/* =====================================================
   CC PILL INPUTS — HARD LOCK (ALL VARIANTS)
   Matches the design spec provided by Michael.
   ===================================================== */
.cc-pill-input,
.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="datetime-local"],
textarea,
select{
  appearance: none;
  width: 100%;
  height: 56px;
  padding: 0 22px;

  background: #1c1c1c;
  border: 2px solid #ffffff;
  border-radius: 999px;

  color: #ffffff;
  font-size: 16px;
  font-weight: 500;

  outline: none;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

textarea,
textarea.cc-pill-input{
  min-height: 170px;
  padding: 14px 22px;
  border-radius: 24px;
}

.cc-pill-input::placeholder,
.input::placeholder,
input::placeholder,
textarea::placeholder{
  color: rgba(255, 255, 255, 0.55);
}

.cc-pill-input:hover,
.input:hover,
input:hover,
textarea:hover,
select:hover{
  background: #202020;
}

.cc-pill-input:focus,
.input:focus,
input:focus,
textarea:focus,
select:focus{
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
  background: #1e1e1e;
}

.cc-pill-input:disabled,
.input:disabled,
input:disabled,
textarea:disabled,
select:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

/* =====================================================
   DISPLAY LISTS / TABLES — ALTERNATING INVERTED ROW COLORS
   If row 1 is dark w/ light text, row 2 is light w/ dark text.
   ===================================================== */
.table tbody tr:nth-child(odd){
  background: rgba(255,255,255,.03);
}
.table tbody tr:nth-child(even){
  background: #ffffff;
}
.table tbody tr:nth-child(even) td{
  color: #000000 !important;
}
.table tbody tr:nth-child(even) a{
  color: #000000 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =====================================================
   CC BUTTONS — DASHBOARD SMALL BUTTONS
   Make table/action buttons match the size of tab buttons.
   ===================================================== */
.btn--sm{
  padding: 8px 12px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
}

/* Dashboard/input color alignment */
select, textarea, input{ background: rgb(28, 28, 28) !important; color: rgb(155, 230, 0) !important; }

.sortBtns{ font-size: 10px; opacity:.7; margin-left:6px; }


/* ============================================================
   DASHBOARD REDESIGN (ServiceNow x Stripe hybrid)
   File: styles.live-20260110-01.css
   Scope: post-auth dashboards only (auth UI untouched)
   ============================================================ */

/* Layout */
.cc-app{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items:start;
}
.cc-sidebar{
  position: sticky;
  top: calc(108px + var(--safe-top)); /* below topbar+header */
  max-height: calc(100vh - (128px + var(--safe-top)));
  overflow:auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
}
.cc-main{
  min-width: 0;
}
.cc-sideTitle{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin-bottom: 10px;
}
.cc-sideTitle h3{ margin:0; font-size: 14px; letter-spacing:.2px; }
.cc-sideGroup{ margin-top: 10px; }
.cc-sideItem{
  display:flex; gap:10px; align-items:center;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration:none;
  border: 1px solid transparent;
  color: var(--muted);
}
.cc-sideItem:hover{ background: rgba(255,255,255,.05); color: var(--text); }
.cc-sideItem--active{
  background: rgba(155,230,0,.10);
  border-color: rgba(155,230,0,.25);
  color: var(--text);
}
.cc-sideIcon{
  width: 30px; height: 30px; border-radius: 10px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  flex: 0 0 auto;
}
.cc-sideMeta{ display:flex; flex-direction:column; min-width:0; }
.cc-sideMeta b{ font-size: 13px; color: var(--text); }
.cc-sideMeta span{ font-size: 12px; color: var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.cc-topRow{
  display:flex; gap: 12px; align-items:center; justify-content:space-between;
  flex-wrap:wrap;
}
.cc-chip{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

/* "Stripe-ish" section headers */
.cc-section{
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  overflow:hidden;
}
.cc-sectionHead{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cc-sectionHead h2{
  font-size: 16px !important;
  margin: 0 !important;
}
.cc-sectionBody{ padding: 14px; }

.cc-split{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap: 14px;
}
.cc-panel{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding: 14px;
  min-width: 0;
}
.cc-panel h3{ margin: 0 0 8px; font-size: 14px; }

.cc-kpis2{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cc-kpiTile{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding: 12px;
  min-width: 0;
}
.cc-kpiTile b{ display:block; font-size: 12px; color: var(--muted); }
.cc-kpiTile .num{ font-size: 22px; font-weight: 900; color: var(--text); margin-top: 6px; }
.cc-kpiTile a{ text-decoration:none; }
.cc-kpiTile:hover{ background: rgba(255,255,255,.05); }

.cc-filterBar{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
}
.cc-filterBar > *{ flex: 0 0 auto; }
.cc-filterBar .grow{ flex: 1 1 260px; min-width: 220px; }

.cc-tableWrap{ overflow:auto; border-radius: var(--radius); border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.02); }
.cc-table{ width:100%; border-collapse:collapse; min-width: 760px; }
.cc-table th, .cc-table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}
.cc-table th{
  position: sticky;
  top: 0;
  background: rgba(10,16,34,.98);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  user-select:none;
}
.cc-rowActions{
  display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end;
}

/* Mobile nav toggle for the header since .nav is hidden on small screens */
.cc-navToggle{
  display:none;
}
@media (max-width: 980px){
  .cc-app{ grid-template-columns: 1fr; }
  .cc-sidebar{
    position: relative;
    top: auto;
    max-height: none;
  }
  .cc-split{ grid-template-columns: 1fr; }
  .cc-kpis2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-table{ min-width: 640px; }
  .cc-navToggle{ display:inline-flex; }
}
@media (max-width: 560px){
  .cc-kpis2{ grid-template-columns: 1fr; }
  .cc-table{ min-width: 0; }
  .cc-table th, .cc-table td{ white-space: normal; }
}

/* Ensure datetime-local doesn't zoom weirdly on iOS */
input[type="datetime-local"]{ font-size:16px; }

/* Small helper for inline dividers */
.cc-dot{ width:6px; height:6px; border-radius:999px; background: rgba(255,255,255,.28); display:inline-block; }


/* Dashboard header right slot */
.cc-headRight{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}

/* Chip links (dashboard switcher) */
.cc-chip--link{cursor:pointer;text-decoration:none;}
.cc-chip--link:hover{filter:brightness(1.05);}

/* Reports criteria builder */
.cc-critRow{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
