/* User panel uses dashboard.css; keep only small extras */
body.itsl-dashboard-body .itsl-user-dash {
    min-height: 100vh !important;
    width: 100% !important;
}
.itsl-user-auth-wrap {
    min-height: 100vh !important;
}
.itsl-up-notice,
.itsl-up-success,
.itsl-up-error {
    margin-bottom: 1rem;
    padding: .75rem 1rem;
    border-radius: 10px;
    font-size: .9rem;
}
.itsl-up-success {
    background: rgba(16,185,129,.12);
    color: #6ee7b7;
    border: 1px solid rgba(16,185,129,.25);
}
.itsl-up-error {
    background: rgba(239,68,68,.12);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,.25);
}


/* OTP digit boxes – compact, override dash-input width */
.itsl-otp-inputs {
    display: flex !important;
    gap: 0.4rem !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0.75rem 0 1rem !important;
    direction: ltr !important;
}
.itsl-otp-digit,
input.itsl-otp-digit,
.itsl-auth-digit.itsl-otp-digit,
.itsl-sign-digit.itsl-otp-digit {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    background: rgba(255,255,255,0.05) !important;
    color: #f8fafc !important;
    box-sizing: border-box !important;
    flex: 0 0 38px !important;
    line-height: 42px !important;
}
.itsl-otp-digit:focus {
    outline: none !important;
    border-color: #A6D936 !important;
    box-shadow: 0 0 0 3px rgba(166,217,54,0.18) !important;
}
.itsl-auth-card {
    max-width: 380px !important;
    width: 100% !important;
    padding: 1.5rem !important;
}
.itsl-user-auth-wrap .itsl-dash-login {
    padding: 1.5rem 1rem !important;
}
.itsl-user-auth-wrap .itsl-dash-btn {
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem !important;
}

@media (max-width: 420px) {
    .itsl-otp-digit,
    input.itsl-otp-digit {
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        height: 40px !important;
        flex: 0 0 34px !important;
        font-size: 0.95rem !important;
    }
}

/* ========== User Panel Dashboard UI ========== */
.itsl-user-panel-wrap .itsl-dash {
  min-height: 100vh;
  background: #0d0f14 !important;
}
.itsl-user-panel-wrap .itsl-dash-sidebar {
  background: #111318 !important;
  backdrop-filter: none;
  border-left: 1px solid rgba(255,255,255,0.06) !important;
}
.itsl-user-panel-wrap .itsl-dash-main {
  padding: 1.25rem 1.5rem 2rem !important;
}
.itsl-user-panel-wrap .itsl-dash-brand strong {
  letter-spacing: -0.02em;
}

/* Mobile top bar */
.itsl-up-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1rem;
  background: #111318;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: 0;
  z-index: 40;
}
.itsl-up-topbar strong { color: #ffffff; font-size: .95rem; }
.itsl-up-menu-btn {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  color: #e2e8f0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

/* Home */
.itsl-up-home { max-width: none; width: 100%; }
.itsl-up-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.35rem;
  padding: 0 0 1.1rem;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: none;
}
.itsl-up-greet { margin: 0 0 .2rem; color: #C5E86A; font-size: .85rem; font-weight: 600; }
.itsl-up-hero h2 { margin: 0 0 .35rem; font-size: 1.45rem; color: #f8fafc; letter-spacing: -.02em; }
.itsl-up-hero-sub { margin: 0; color: #94a3b8; font-size: .88rem; line-height: 1.6; }
.itsl-up-hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.itsl-up-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
  margin-bottom: 1.25rem;
}
.itsl-up-stat {
  display: flex; flex-direction: column; gap: .55rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit;
  border: 1px solid rgba(255,255,255,.1);
  background: transparent;
  transition: border-color .18s ease;
  min-height: 110px;
}
a.itsl-up-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(147,197,253,.35);
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
}
.itsl-up-stat-blue { background: transparent; }
.itsl-up-stat-amber { background: transparent; }
.itsl-up-stat-emerald { background: transparent; }
.itsl-up-stat-rose { background: transparent; }
.itsl-up-stat-icon { font-size: 1.35rem; line-height: 1; }
.itsl-up-stat-val { display: block; font-size: 1.55rem; font-weight: 800; color: #f8fafc; letter-spacing: -.02em; }
.itsl-up-stat-lbl { display: block; font-size: .82rem; color: #94a3b8; margin-top: .15rem; }
.itsl-up-stat-meta {
  display: flex; flex-wrap: wrap; gap: .35rem .65rem;
  font-size: .72rem; color: #64748b; margin-top: auto;
}

.itsl-up-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
  margin-bottom: 1.25rem;
}
.itsl-up-card {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: transparent;
  padding: 0 0 1.1rem;
  min-height: auto;
  margin-bottom: .5rem;
}
.itsl-up-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin-bottom: .85rem;
}
.itsl-up-card-head h3 { margin: 0; font-size: .95rem; color: #e2e8f0; }
.itsl-up-card-head a { font-size: .8rem; color: #C5E86A; text-decoration: none; }
.itsl-up-card-head a:hover { color: #D4ED9A; }

.itsl-up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.itsl-up-list li a {
  display: flex; flex-direction: column; gap: .3rem;
  padding: .65rem .7rem;
  border-radius: 12px;
  text-decoration: none !important;
  background: rgba(255,255,255,.03);
  border: 1px solid transparent;
  transition: .15s ease;
}
.itsl-up-list li a:hover {
  border-color: rgba(147,197,253,.25);
  background: rgba(166,217,54,.08);
}
.itsl-up-list-title {
  color: #ffffff; font-size: .88rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.itsl-up-list-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .55rem;
  font-size: .75rem; color: #94a3b8;
}
.itsl-up-empty { margin: 0; color: #64748b; font-size: .88rem; line-height: 1.7; }
.itsl-up-empty a { color: #C5E86A; }

.itsl-up-pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: .7rem; font-weight: 700;
  background: rgba(148,163,184,.15); color: #cbd5e1;
}
.itsl-up-pill-open, .itsl-up-pill-pending { background: #fef3c7; color: #92400e; }
.itsl-up-pill-staff_reply { background: #D4ED9A; color: #1e40af; }
.itsl-up-pill-customer_reply { background: #e0e7ff; color: #3730a3; }
.itsl-up-pill-closed { background: #e2e8f0; color: #475569; }
.itsl-up-pill-inv-pending, .itsl-up-pill-inv-expired { background: #fef3c7; color: #92400e; }
.itsl-up-pill-inv-paid { background: #d1fae5; color: #065f46; }
.itsl-up-pill-inv-cancelled { background: #fee2e2; color: #991b1b; }
.itsl-up-pill-ctr-new { background: #D4ED9A; color: #1e40af; }
.itsl-up-pill-ctr-signed, .itsl-up-pill-ctr-active { background: #d1fae5; color: #065f46; }
.itsl-up-pill-ctr-cancelled, .itsl-up-pill-ctr-ended { background: #e2e8f0; color: #475569; }

.itsl-up-quick {
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  background: transparent;
  padding: 1.1rem 0 0;
}
.itsl-up-quick h3 { margin: 0 0 .75rem; font-size: .95rem; color: #e2e8f0; }
.itsl-up-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .55rem;
}
.itsl-up-quick-grid a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .35rem; padding: .85rem .5rem;
  border-radius: 14px;
  text-decoration: none !important;
  color: #e2e8f0; font-size: .82rem; font-weight: 600;
  background: rgba(13,15,20,.5);
  border: 1px solid rgba(255,255,255,.07);
  transition: .15s ease;
}
.itsl-up-quick-grid a span { font-size: 1.25rem; }
.itsl-up-quick-grid a:hover {
  border-color: rgba(147,197,253,.35);
  background: rgba(139,184,42,.15);
  color: #fff;
}

/* Tables / panels polish inside user panel */
.itsl-user-panel-wrap .itsl-dash-panel {
  border-radius: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.itsl-user-panel-wrap .itsl-dash-table th {
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 1100px) {
  .itsl-up-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .itsl-up-cols { grid-template-columns: 1fr 1fr; }
  .itsl-up-cols .itsl-up-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .itsl-up-topbar { display: none !important; }
  .itsl-user-panel-wrap .itsl-dash {
    flex-direction: column !important;
  }
  .itsl-user-panel-wrap .itsl-dash-sidebar {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(280px, 86vw) !important;
    max-width: 86vw !important;
    z-index: 10050 !important;
    transform: translateX(105%) !important;
    transition: transform .25s ease !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: 1px solid rgba(255,255,255,.08) !important;
    height: 100vh !important;
    overflow-y: auto !important;
  }
  .itsl-user-panel-wrap.itsl-up-nav-open .itsl-dash-sidebar,
  body.itsl-up-nav-open .itsl-user-panel-wrap .itsl-dash-sidebar {
    transform: translateX(0) !important;
    box-shadow: -12px 0 40px rgba(0,0,0,.5) !important;
  }
  .itsl-up-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 10040 !important;
    background: rgba(0,0,0,.55) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
  }
  .itsl-user-panel-wrap.itsl-up-nav-open .itsl-up-backdrop,
  body.itsl-up-nav-open .itsl-up-backdrop {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  body.itsl-up-nav-open { overflow: hidden !important; }
  .itsl-user-panel-wrap .itsl-dash-nav {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0.25rem !important;
  }
  .itsl-user-panel-wrap .itsl-dash-main {
    padding: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .itsl-up-quick-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Shared list pages (tickets / invoices / contracts) */
.itsl-up-page { width: 100%; max-width: none; }
.itsl-up-page-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem; margin-bottom: 1.1rem;
}
.itsl-up-page-head h3 {
  margin: 0; font-size: 1.15rem; color: #ffffff; font-weight: 800;
}
.itsl-up-page-head .sub { margin: .2rem 0 0; color: #94a3b8; font-size: .85rem; }
.itsl-up-items {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: .85rem !important;
}
@media (max-width: 640px) {
  .itsl-up-items { grid-template-columns: 1fr !important; }
}
.itsl-up-item {
  display: flex !important;
  flex-direction: column !important;
  gap: .5rem !important;
  padding: .85rem 0 !important;
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.itsl-up-item:hover {
  border-color: rgba(147,197,253,.28);
  background: rgba(139,184,42,.08);
}
.itsl-up-item-main { flex: 1; min-width: 160px; }
.itsl-up-item-title {
  display: block; color: #ffffff; font-weight: 700; font-size: .92rem;
  margin-bottom: .3rem; text-decoration: none !important;
}
.itsl-up-item-meta {
  display: flex; flex-wrap: wrap; gap: .35rem .6rem;
  font-size: .78rem; color: #94a3b8; align-items: center;
}
.itsl-up-item-actions {
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
}
.itsl-up-empty-box {
  text-align: center; padding: 1.5rem 0;
  border: none; color: #64748b; font-size: .9rem;
}
.itsl-up-empty-box a { color: #C5E86A; }

@media (max-width: 640px) {
  .itsl-up-stats-grid { grid-template-columns: 1fr; }
  .itsl-up-cols { grid-template-columns: 1fr; }
  .itsl-up-cols .itsl-up-card:last-child { grid-column: auto; }
  .itsl-up-hero { padding: 1.1rem 1rem; }
  .itsl-up-hero h2 { font-size: 1.2rem; }
  .itsl-up-stat-val { font-size: 1.35rem; }
  /* inherit dashboard card-tables */
}


/* User panel: tables as cards on mobile (fallback) */
@media (max-width: 900px) {
  .itsl-user-panel-wrap .itsl-dash-table-wrap { overflow: visible !important; border: none !important; background: transparent !important; }
  .itsl-user-panel-wrap table.itsl-dash-table { display: block !important; width: 100% !important; border: 0 !important; }
  .itsl-user-panel-wrap table.itsl-dash-table thead { display: none !important; }
  .itsl-user-panel-wrap table.itsl-dash-table tbody { display: grid !important; gap: .75rem !important; }
  .itsl-user-panel-wrap table.itsl-dash-table tr {
    display: block !important; padding: .85rem 1rem !important; border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,.1) !important; background: rgba(13,15,20,.55) !important;
  }
  .itsl-user-panel-wrap table.itsl-dash-table td {
    display: flex !important; justify-content: space-between !important; align-items: center !important;
    gap: .75rem !important; padding: .4rem 0 !important; border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important; text-align: left !important;
  }
  .itsl-user-panel-wrap table.itsl-dash-table td:last-child {
    border-bottom: 0 !important; flex-wrap: wrap !important; justify-content: flex-start !important; padding-top: .6rem !important;
  }
  .itsl-user-panel-wrap table.itsl-dash-table td::before {
    content: attr(data-label) !important; color: #94a3b8 !important; font-size: .78rem !important; font-weight: 600 !important;
  }
  .itsl-user-panel-wrap table.itsl-dash-table td:last-child::before { display: none !important; }
}


/* ===== User panel list tables: desktop table / mobile cards ===== */
.itsl-up-page .itsl-up-table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
  border-radius: 12px !important;
  border: 1px solid rgba(148,163,184,0.22) !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.itsl-up-page table.itsl-up-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 0.9rem !important;
  min-width: 640px;
}
.itsl-up-page table.itsl-up-table th {
  text-align: right !important;
  padding: 0.75rem 0.85rem !important;
  color: #94a3b8 !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.12) !important;
  white-space: nowrap !important;
}
.itsl-up-page table.itsl-up-table td {
  padding: 0.8rem 0.85rem !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  color: #e2e8f0 !important;
  vertical-align: middle !important;
  background: transparent !important;
}
.itsl-up-page table.itsl-up-table tbody tr:hover {
  background: rgba(166,217,54,0.08) !important;
}
.itsl-up-page table.itsl-up-table tbody tr:last-child td {
  border-bottom: none !important;
}
.itsl-up-page table.itsl-up-table .itsl-up-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.35rem !important;
  white-space: nowrap !important;
}

@media (max-width: 768px) {
  .itsl-up-page .itsl-up-table-wrap {
    border: none !important;
    background: transparent !important;
    overflow: visible !important;
  }
  .itsl-up-page table.itsl-up-table {
    min-width: 0 !important;
    display: block !important;
  }
  .itsl-up-page table.itsl-up-table thead {
    display: none !important;
  }
  .itsl-up-page table.itsl-up-table tbody {
    display: grid !important;
    gap: 0.75rem !important;
  }
  .itsl-up-page table.itsl-up-table tr {
    display: block !important;
    padding: 0.85rem 0 !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .itsl-up-page table.itsl-up-table td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.4rem 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    text-align: left !important;
  }
  .itsl-up-page table.itsl-up-table td:last-child {
    border-bottom: none !important;
    padding-top: 0.65rem !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }
  .itsl-up-page table.itsl-up-table td::before {
    content: attr(data-label) !important;
    color: #94a3b8 !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    flex-shrink: 0 !important;
  }
  .itsl-up-page table.itsl-up-table td:last-child::before {
    display: none !important;
  }
}


/* table frame on mobile */
@media (max-width: 768px) {
  .itsl-up-page .itsl-up-table-wrap {
    border: none !important;
    border-radius: 0 !important;
  }
  .itsl-up-page table.itsl-up-table tr {
    border: 1px solid rgba(148,163,184,0.22) !important;
    border-radius: 12px !important;
    padding: 0.85rem 1rem !important;
    margin-bottom: 0 !important;
  }
}

/* ===== Full-width content pages ===== */
.itsl-user-panel-wrap .itsl-dash-main {
  width: 100%;
  min-width: 0;
}
.itsl-user-panel-wrap .itsl-dash-body {
  width: 100%;
  max-width: none !important;
}
.itsl-up-page {
  width: 100% !important;
  max-width: none !important;
}

/* ===== Order detail page ===== */
.itsl-order-detail { width: 100%; max-width: 820px; }
.itsl-order-detail .itsl-up-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}
.itsl-order-detail .itsl-up-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}
.itsl-order-detail .itsl-up-section-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: 800;
}
.itsl-order-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}
.itsl-order-meta-row > div small {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}
.itsl-order-field { margin-bottom: 0.9rem; }
.itsl-order-field label {
  display: block;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 0.3rem;
  font-weight: 500;
}
.itsl-order-code {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  color: #e2e8f0;
  word-break: break-all;
  user-select: all;
}
.itsl-order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem 1.25rem;
}
.itsl-order-extra {
  background: rgba(15, 23, 42, 0.45);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  line-height: 1.75;
  color: #cbd5e1;
  font-size: 0.92rem;
}

/* Better mobile cards for tables */
@media (max-width: 768px) {
  .itsl-up-page table.itsl-up-table tr {
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    border-radius: 14px !important;
    padding: 0.9rem 1rem !important;
    background: rgba(15, 23, 42, 0.55) !important;
  }
  .itsl-up-page table.itsl-up-table td {
    padding: 0.45rem 0 !important;
  }
  .itsl-up-page table.itsl-up-table td:first-child {
    padding-top: 0 !important;
  }
  .itsl-order-detail { max-width: 100%; }
  .itsl-order-detail .itsl-up-card { padding: 1rem; }
  .itsl-order-meta-row { gap: 0.85rem; }
  .itsl-order-grid { grid-template-columns: 1fr; }
}

/* Dashboard tables mobile cards (admin front) */
@media (max-width: 768px) {
  .itsl-dash .itsl-dash-table-wrap {
    overflow: visible !important;
    border: none !important;
    background: transparent !important;
  }
  .itsl-dash table.itsl-dash-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .itsl-dash table.itsl-dash-table thead { display: none !important; }
  .itsl-dash table.itsl-dash-table tbody {
    display: grid !important;
    gap: 0.75rem !important;
  }
  .itsl-dash table.itsl-dash-table tr {
    display: block !important;
    padding: 0.9rem 1rem !important;
    border-radius: 14px !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    background: rgba(15, 23, 42, 0.55) !important;
  }
  .itsl-dash table.itsl-dash-table td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.4rem 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    text-align: left !important;
  }
  .itsl-dash table.itsl-dash-table td:last-child {
    border-bottom: 0 !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    padding-top: 0.65rem !important;
  }
  .itsl-dash table.itsl-dash-table td::before {
    content: attr(data-label) !important;
    color: #94a3b8 !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    flex-shrink: 0 !important;
  }
  .itsl-dash table.itsl-dash-table td:last-child::before { display: none !important; }
}

.itsl-up-stat-violet{border-color:rgba(167,139,250,.25)}
.itsl-up-stat-violet .itsl-up-stat-val{color:#C5E86A}

/* ========== User home v2 – cleaner layout (user panel only) ========== */
.itsl-user-panel-wrap .itsl-dash-main {
  padding: 1.4rem 1.6rem 2.4rem !important;
}
.itsl-up-home-v2 {
  max-width: 1120px;
}
.itsl-up-hero-v2 {
  margin-bottom: 1.15rem !important;
  padding-bottom: .95rem !important;
  border-bottom: 1px solid rgba(148,163,184,.12) !important;
}
.itsl-up-hero-v2 h2 {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  margin: 0 0 .25rem !important;
}
.itsl-up-hero-v2 .itsl-up-greet {
  color: #7dd3fc !important;
  font-size: .82rem !important;
  margin-bottom: .15rem !important;
}
.itsl-up-hero-v2 .itsl-up-hero-sub {
  color: #64748b !important;
  font-size: .84rem !important;
}

.itsl-up-alert {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1rem;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  text-decoration: none !important;
  background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(239,68,68,.08));
  border: 1px solid rgba(251,191,36,.28);
  color: #fde68a;
  transition: .15s ease;
}
.itsl-up-alert:hover {
  border-color: rgba(251,191,36,.45);
  background: linear-gradient(135deg, rgba(245,158,11,.16), rgba(239,68,68,.1));
}
.itsl-up-alert-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245,158,11,.18);
  flex: 0 0 auto;
}
.itsl-up-alert-txt { flex: 1; font-size: .88rem; color: #fde68a; }
.itsl-up-alert-txt strong { color: #fef3c7; }
.itsl-up-alert-go {
  font-size: .8rem; font-weight: 700; color: #fbbf24;
  white-space: nowrap;
}

.itsl-up-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.itsl-up-kpi {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .95rem 1rem;
  border-radius: 14px;
  text-decoration: none !important;
  background: rgba(13,15,20,.55);
  border: 1px solid rgba(148,163,184,.12);
  transition: border-color .15s ease, transform .15s ease;
}
.itsl-up-kpi:hover {
  border-color: rgba(197, 232, 106,.35);
  transform: translateY(-1px);
}
.itsl-up-kpi-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.itsl-up-kpi-lbl {
  font-size: .8rem;
  color: #94a3b8;
}
.itsl-up-kpi-hint {
  margin-top: .25rem;
  font-size: .72rem;
  color: #C5E86A;
  font-weight: 600;
}

.itsl-up-board {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr .9fr;
  gap: 1rem;
  align-items: start;
}
.itsl-up-panel {
  background: rgba(13,15,20,.45);
  border: 1px solid rgba(148,163,184,.1);
  border-radius: 16px;
  padding: 1rem 1.05rem 1.05rem;
  min-height: 220px;
}
.itsl-up-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .75rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid rgba(148,163,184,.08);
}
.itsl-up-panel-head h3 {
  margin: 0;
  font-size: .92rem;
  color: #e2e8f0;
  font-weight: 700;
}
.itsl-up-panel-head a {
  font-size: .78rem;
  color: #C5E86A;
  text-decoration: none;
}
.itsl-up-panel-head a:hover { color: #D4ED9A; }

.itsl-up-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .35rem;
}
.itsl-up-feed li a {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  padding: .55rem .6rem;
  border-radius: 10px;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: .12s ease;
}
.itsl-up-feed li a:hover {
  background: rgba(166,217,54,.08);
  border-color: rgba(197, 232, 106,.18);
}
.itsl-up-feed-title {
  color: #ffffff;
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.itsl-up-feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .5rem;
  font-size: .72rem;
  color: #64748b;
}
.itsl-up-feed-compact li a {
  padding: .45rem .5rem;
}

.itsl-up-mini-block + .itsl-up-mini-block {
  margin-top: .9rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(148,163,184,.08);
}
.itsl-up-mini-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .45rem;
  font-size: .8rem;
  color: #94a3b8;
  font-weight: 600;
}
.itsl-up-mini-title a {
  color: #C5E86A;
  text-decoration: none;
  font-size: .75rem;
}

/* Soften user sidebar a bit */
.itsl-user-panel-wrap .itsl-dash-nav-item {
  border-radius: 10px !important;
  margin: 2px 0 !important;
}
.itsl-user-panel-wrap .itsl-dash-nav-item.active {
  background: rgba(166,217,54,.14) !important;
  border: 1px solid rgba(197, 232, 106,.2) !important;
}
.itsl-user-panel-wrap .itsl-dash-user {
  opacity: .9;
  font-size: .85rem;
}

@media (max-width: 1100px) {
  .itsl-up-board { grid-template-columns: 1fr 1fr; }
  .itsl-up-panel-side { grid-column: 1 / -1; }
  .itsl-up-panel-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .itsl-up-panel-side .itsl-up-panel-head { grid-column: 1 / -1; }
  .itsl-up-mini-block + .itsl-up-mini-block {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
}
@media (max-width: 800px) {
  .itsl-up-kpis { grid-template-columns: repeat(2, 1fr); }
  .itsl-up-board { grid-template-columns: 1fr; }
  .itsl-up-panel-side { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .itsl-up-kpis { grid-template-columns: 1fr 1fr; gap: .55rem; }
  .itsl-up-kpi { padding: .8rem .75rem; }
  .itsl-up-kpi-val { font-size: 1.3rem; }
}


/* ========== Full-width user dashboard ========== */
.itsl-user-panel-wrap .itsl-dash-main,
.itsl-user-panel-wrap .itsl-dash-body,
.itsl-up-home,
.itsl-up-home-v2 {
  max-width: none !important;
  width: 100% !important;
}

/* ========== Mobile app shell ========== */
.itsl-up-tabbar {
  display: none;
}

@media (max-width: 900px) {
  .itsl-user-panel-wrap {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .itsl-user-panel-wrap .itsl-dash-sidebar,
  .itsl-user-panel-wrap .itsl-up-backdrop {
    /* keep sidebar for optional hamburger, but primary nav is tabbar */
  }
  .itsl-user-panel-wrap .itsl-dash-main {
    padding: .85rem .9rem 1.25rem !important;
  }
  .itsl-user-panel-wrap .itsl-dash-header.itsl-hdr {
    padding: .55rem 0 .75rem !important;
    margin-bottom: .35rem !important;
  }
  .itsl-user-panel-wrap .itsl-dash-header h1 {
    font-size: 1.05rem !important;
  }
  /* Hide bulky admin/text buttons on small screens; icons remain */
  .itsl-user-panel-wrap .itsl-hdr-actions .itsl-dash-btn-sm {
    display: none !important;
  }

  .itsl-up-hero-v2 {
    flex-direction: column;
    align-items: stretch !important;
    gap: .75rem !important;
    margin-bottom: .9rem !important;
    padding-bottom: .85rem !important;
  }
  .itsl-up-hero-v2 h2 {
    font-size: 1.25rem !important;
  }
  .itsl-up-hero-actions .itsl-dash-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .itsl-up-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .55rem !important;
    margin-bottom: .95rem !important;
  }
  .itsl-up-kpi {
    padding: .85rem .8rem !important;
    border-radius: 16px !important;
    background: rgba(13,15,20,.72) !important;
  }
  .itsl-up-kpi-val { font-size: 1.35rem !important; }

  .itsl-up-board {
    grid-template-columns: 1fr !important;
    gap: .75rem !important;
  }
  .itsl-up-panel {
    min-height: 0 !important;
    border-radius: 18px !important;
    padding: .9rem !important;
  }
  .itsl-up-panel-side {
    grid-template-columns: 1fr !important;
  }
  .itsl-up-panel-side .itsl-up-mini-block + .itsl-up-mini-block {
    margin-top: .75rem !important;
    padding-top: .75rem !important;
    border-top: 1px solid rgba(148,163,184,.1) !important;
  }

  .itsl-up-alert {
    border-radius: 16px !important;
    padding: .75rem .85rem !important;
    margin-bottom: .85rem !important;
  }

  /* Sticky glass tab bar */
  .itsl-up-tabbar {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 12, 24, 0.88);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-top: 1px solid rgba(148,163,184,.14);
    box-shadow: 0 -12px 40px rgba(0,0,0,.35);
  }
  .itsl-up-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .12rem;
    min-height: 52px;
    text-decoration: none !important;
    color: #64748b;
    border-radius: 14px;
    transition: color .15s ease, background .15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .itsl-up-tab-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
  }
  .itsl-up-tab-lbl {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: -.01em;
  }
  .itsl-up-tab.is-active {
    color: #C5E86A;
  }
  .itsl-up-tab.is-active .itsl-up-tab-ico {
    color: #C5E86A;
  }
  /* Center FAB */
  .itsl-up-tab-fab {
    position: relative;
    top: -14px;
  }
  .itsl-up-tab-fab-ico {
    width: 52px !important;
    height: 52px !important;
    border-radius: 18px;
    background: linear-gradient(135deg, #8BB82A 0%, #8BB82A 55%, #A6D936 100%);
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(139,184,42,.45), 0 0 0 4px rgba(139,184,42,.12);
  }
  .itsl-up-tab-fab .itsl-up-tab-lbl {
    color: #C5E86A;
    margin-top: .15rem;
  }
  .itsl-up-tab-fab.is-active .itsl-up-tab-fab-ico {
    box-shadow: 0 12px 28px rgba(139,184,42,.55), 0 0 0 5px rgba(197, 232, 106,.18);
  }
}

@media (min-width: 901px) {
  .itsl-up-tabbar { display: none !important; }
}


/* Mobile: remove top bar, hide home hero, footer has hamburger */
@media (max-width: 900px) {
  .itsl-up-topbar {
    display: none !important;
  }
  .itsl-up-home-v2 .itsl-up-hero,
  .itsl-up-home-v2 .itsl-up-hero-v2,
  .itsl-up-home-v2 .itsl-up-hero-actions {
    display: none !important;
  }
  .itsl-up-tab-more,
  button.itsl-up-tab,
  button.itsl-up-tab-more {
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    font: inherit !important;
    color: #64748b !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 100% !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }
  .itsl-up-tab-more:hover,
  .itsl-up-tab-more:active,
  .itsl-up-tab-more:focus,
  button.itsl-up-tab:hover,
  button.itsl-up-tab:active,
  button.itsl-up-tab:focus,
  button.itsl-up-tab-more:hover,
  button.itsl-up-tab-more:active,
  button.itsl-up-tab-more:focus {
    outline: none !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #C5E86A !important;
    box-shadow: none !important;
  }
  .itsl-user-panel-wrap.itsl-up-nav-open .itsl-up-tab-more,
  body.itsl-up-nav-open .itsl-up-tab-more,
  .itsl-user-panel-wrap.itsl-up-nav-open button.itsl-up-tab-more {
    color: #C5E86A !important;
    background: transparent !important;
  }
}

/* ========== Force user sidebar black (override any leftover blue) ========== */
.itsl-user-panel-wrap .itsl-dash-sidebar,
body.itsl-dashboard-body .itsl-user-panel-wrap .itsl-dash-sidebar,
html.itsl-dashboard-body .itsl-user-panel-wrap .itsl-dash-sidebar,
.itsl-user-panel-wrap aside.itsl-dash-sidebar,
#itsl-up-sidebar.itsl-dash-sidebar {
  background: #111318 !important;
  background-color: #111318 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
}
