/* ============================================================
   ReportSphere BI Portal — Premium v6.0
   Morning Glory → Steel Grey · Frosted Glass · Turquoise
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

:root {
  --glass-hi:     rgba(255,255,255,0.82);
  --glass-md:     rgba(255,255,255,0.62);
  --glass-lo:     rgba(255,255,255,0.38);
  --glass-bdr:    rgba(255,255,255,0.90);
  --glass-bdr-sm: rgba(255,255,255,0.50);
  --shadow:       0 4px 24px rgba(55,71,79,0.14), 0 1px 6px rgba(55,71,79,0.08);
  --shadow-lg:    0 12px 40px rgba(55,71,79,0.20), 0 4px 16px rgba(55,71,79,0.10);
  --blur:         blur(18px);

  --tq:           #008080;
  --tq-light:     #40E0D0;
  --tq-glow:      rgba(0,128,128,0.20);
  --tq-bg:        rgba(0,128,128,0.09);
  --tq-btn:       linear-gradient(135deg, #008080 0%, #40E0D0 100%);
  --tq-text:      #005f5f;

  --st:           #607d8b;
  --st-dark:      #37474f;
  --st-bg:        rgba(96,125,139,0.10);

  --t1:           #1c2b30;
  --t2:           #37474f;
  --t3:           #607d8b;

  --warn:         #e65100;
  --warn-bg:      rgba(230,81,0,0.09);
  --danger:       #b71c1c;
  --danger-bg:    rgba(183,28,28,0.08);
  --info:         #01579b;
  --info-bg:      rgba(1,87,155,0.09);

  --ff-h: 'Inter', sans-serif;
  --ff-b: 'DM Sans', sans-serif;
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px;
  --ease: all 0.22s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-b);
  min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  color: var(--t1);
  background: linear-gradient(150deg,
    #dde1f7 0%, #c5cae9 12%, #b0bec5 28%,
    #90a4ae 46%, #78909c 62%, #607d8b 78%, #546e7a 100%) fixed;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 45% at 8%  4%,  rgba(255,255,255,0.30) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 92% 12%, rgba(200,220,255,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 55% 35% at 50% 98%, rgba(0,128,128,0.08)  0%, transparent 55%);
}

/* ── PORTAL SHELL ─────────────────────────────────────────── */
.portal-page { display: flex; flex-direction: column; min-height: 100vh; }
.portal-page.has-bg {
  background-image: url(/dashboard-bg.svg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.login-page  { display: flex; flex-direction: column; min-height: 100vh; }

.portal-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 2rem;
  background: var(--glass-hi);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--glass-bdr);
  box-shadow: 0 2px 12px rgba(55,71,79,0.09);
}

.header-brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none;
}
.header-logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--tq-btn);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px var(--tq-glow); flex-shrink: 0;
  font-size: 0; /* hide emoji, show SVG node icon via pseudo */
  position: relative;
}
.header-logo-mark::before {
  content: '';
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='rgba(255,255,255,0.92)' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='3' cy='10' r='1.5'/%3E%3Ccircle cx='10' cy='3' r='1.5'/%3E%3Ccircle cx='17' cy='10' r='1.5'/%3E%3Ccircle cx='10' cy='17' r='1.5'/%3E%3Ccircle cx='10' cy='10' r='1.5'/%3E%3Cline x1='4.5' y1='10' x2='8.5' y2='10'/%3E%3Cline x1='11.5' y1='10' x2='15.5' y2='10'/%3E%3Cline x1='10' y1='4.5' x2='10' y2='8.5'/%3E%3Cline x1='10' y1='11.5' x2='10' y2='15.5'/%3E%3Cline x1='6' y1='6' x2='8.5' y2='8.5'/%3E%3Cline x1='11.5' y1='8.5' x2='14' y2='6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.header-title {
  font-family: var(--ff-h); font-size: 0.95rem; font-weight: 700;
  color: var(--t1); letter-spacing: -0.02em;
}
.header-tenant-badge {
  font-size: 0.67rem; font-weight: 600;
  background: var(--tq-bg); color: var(--tq-text);
  border: 1px solid rgba(0,128,128,0.18);
  border-radius: 5px; padding: 0.15rem 0.45rem;
  letter-spacing: 0.03em; text-transform: uppercase;
}

.header-nav { display: flex; align-items: center; gap: 0.75rem; }
.nav-user-info { text-align: right; }
.nav-user-name { font-size: 0.82rem; font-weight: 600; color: var(--t1); display: block; }
.nav-user-role { font-size: 0.70rem; color: var(--t3); }

/* ── LAYOUT: sidebar + main ──────────────────────────────── */
.portal-layout {
  position: relative; z-index: 1;
  display: flex; flex: 1; min-height: calc(100vh - 60px);
}

.sidebar {
  width: 230px; flex-shrink: 0;
  background: var(--glass-hi);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-right: 1px solid var(--glass-bdr);
  display: flex; flex-direction: column;
  padding: 1.2rem 0.85rem;
  position: sticky; top: 60px; height: calc(100vh - 60px);
  overflow-y: auto;
  box-shadow: 2px 0 16px rgba(55,71,79,0.07);
}

.sidebar-section { margin-bottom: 1.2rem; }
.sidebar-section-title {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--t3); padding: 0.4rem 0.7rem 0.3rem;
}
.sidebar-menu { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.sidebar-link {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.78rem;
  border-radius: var(--r-sm);
  font-size: 0.865rem; font-weight: 500;
  color: var(--t2); text-decoration: none;
  transition: var(--ease); border: 1px solid transparent;
  position: relative;
}
.sidebar-link:hover {
  background: rgba(255,255,255,0.65);
  color: var(--t1); border-color: rgba(255,255,255,0.78);
}
.sidebar-link.active {
  background: var(--tq-btn); color: #fff; font-weight: 600;
  box-shadow: 0 2px 10px var(--tq-glow); border-color: transparent;
}

.sidebar-badge {
  margin-left: auto;
  font-size: 0.65rem; font-weight: 700;
  background: var(--warn); color: #fff;
  border-radius: 10px; padding: 0.1rem 0.4rem;
  min-width: 18px; text-align: center;
}

/* ── MAIN CONTENT AREA ───────────────────────────────────── */
.portal-main {
  flex: 1; padding: 2rem 2.4rem;
  overflow-y: auto; min-width: 0;
}

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1.8rem; gap: 1rem; flex-wrap: wrap;
}
.page-header-text h2 {
  font-family: var(--ff-h); font-size: 1.45rem; font-weight: 700;
  color: var(--t1); letter-spacing: -0.025em;
}
.page-subtitle { font-size: 0.875rem; color: var(--t2); margin-top: 0.22rem; }
.page-header-actions { display: flex; gap: 0.7rem; align-items: center; }

/* ── STAT CARDS ──────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1.15rem; margin-bottom: 1.8rem;
}
.stat-card {
  background: var(--glass-hi);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-bdr);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 1.3rem 1.35rem;
  transition: var(--ease); position: relative; overflow: hidden;
  display: flex; align-items: flex-start; gap: 1rem;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.stat-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
/* colour variants used in PHP */
.stat-icon.teal    { background: var(--tq-bg); }
.stat-icon.morning { background: rgba(230,81,0,0.09); }
.stat-icon.blue    { background: var(--info-bg); }
.stat-icon.steel   { background: var(--st-bg); }

.stat-body { flex: 1; min-width: 0; }
.stat-number {
  font-family: var(--ff-h); font-size: 1.85rem; font-weight: 700;
  color: var(--t1); letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.25rem;
}
/* Turquoise number for teal (success) cards */
.stat-card:has(.stat-icon.teal) .stat-number { color: var(--tq-text); }
/* Steel for steel cards */
.stat-card:has(.stat-icon.steel) .stat-number { color: var(--st-dark); }

.stat-label {
  font-size: 0.75rem; font-weight: 600;
  color: var(--t2); text-transform: uppercase; letter-spacing: 0.055em;
}

/* ── HIGHLIGHT BANNER ────────────────────────────────────── */
.highlight-banner {
  background: linear-gradient(135deg, rgba(230,81,0,0.10) 0%, rgba(255,183,77,0.07) 100%);
  border: 1px solid rgba(230,81,0,0.20);
  border-radius: var(--r-md);
  padding: 0.9rem 1.3rem;
  display: flex; align-items: center; gap: 0.9rem;
  margin-bottom: 1.5rem; backdrop-filter: blur(8px);
}
.highlight-icon { font-size: 1.4rem; flex-shrink: 0; }
.highlight-content { font-size: 0.875rem; color: var(--t2); line-height: 1.5; }

/* ── SECTION HEADER ──────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.1rem;
}
.section-title {
  font-family: var(--ff-h); font-size: 1rem; font-weight: 700;
  color: var(--t1); letter-spacing: -0.02em;
}

/* ── AREA GRID ───────────────────────────────────────────── */
.area-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px,1fr));
  gap: 0.9rem; margin-bottom: 2rem;
}
.area-card {
  background: var(--glass-md);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-bdr-sm);
  border-radius: var(--r-md);
  padding: 1.1rem 0.85rem;
  text-align: center; text-decoration: none; color: var(--t1);
  transition: var(--ease);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.area-card:hover {
  background: var(--glass-hi);
  border-color: rgba(0,128,128,0.28);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,128,128,0.11);
}
.area-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.60); border: 1px solid rgba(255,255,255,0.82);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.area-card-name { font-size: 0.75rem; font-weight: 600; color: var(--t2); line-height: 1.3; }

/* ── PANEL CARDS (bi-admin, stats panels) ────────────────── */
.panel-card {
  background: var(--glass-hi);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-bdr);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 1.5rem;
  transition: var(--ease);
}
.panel-header {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(144,164,174,0.16);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.panel-header-left { display: flex; align-items: center; gap: 0.75rem; }
.panel-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--tq-bg);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.panel-title { font-family: var(--ff-h); font-size: 0.95rem; font-weight: 700; color: var(--t1); }
.panel-subtitle { font-size: 0.78rem; color: var(--t3); margin-top: 1px; }
.panel-body { padding: 1.4rem; }

/* ── TABLE CARD ──────────────────────────────────────────── */
.table-card {
  background: var(--glass-hi);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-bdr);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 1.5rem;
}
.table-toolbar {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(144,164,174,0.15);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.table-toolbar-title {
  font-family: var(--ff-h); font-size: 0.95rem; font-weight: 700; color: var(--t1);
}
.report-table-wrap { overflow-x: auto; }
.report-table, table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }

thead th {
  padding: 0.68rem 1.2rem; text-align: left;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--st-dark);
  background: rgba(144,164,174,0.08);
  border-bottom: 1px solid rgba(144,164,174,0.14);
}
tbody tr { border-bottom: 1px solid rgba(144,164,174,0.09); transition: var(--ease); }
tbody tr:hover { background: rgba(255,255,255,0.42); }
tbody tr:last-child { border-bottom: none; }
td { padding: 0.80rem 1.2rem; color: var(--t2); vertical-align: middle; }
td strong { color: var(--t1); font-weight: 600; }

.report-name-link { text-decoration: none; color: var(--t1); font-weight: 600; }
.report-name-link:hover { color: var(--tq-text); text-decoration: underline; }

/* ── SEARCH BAR ──────────────────────────────────────────── */
.search-bar {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--glass-md);
  border: 1.5px solid rgba(144,164,174,0.28);
  border-radius: var(--r-sm); padding: 0.46rem 0.82rem;
  backdrop-filter: blur(8px);
}
.search-input-group { display: flex; align-items: center; gap: 0.5rem; }
.search-bar input {
  border: none; background: transparent;
  font-size: 0.87rem; font-family: var(--ff-b);
  color: var(--t1); outline: none; width: 200px;
}
.search-bar input::placeholder { color: var(--t3); }

/* ── CATALOGUE GRID (request-access) ─────────────────────── */
.catalogue-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.catalogue-item {
  background: var(--glass-hi);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-bdr);
  border-radius: var(--r-lg); padding: 1.2rem;
  transition: var(--ease); cursor: pointer;
  box-shadow: var(--shadow); display: flex; gap: 0.85rem; align-items: flex-start;
}
.catalogue-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: rgba(0,128,128,0.22); }
.catalogue-item.selected, .catalogue-item:has(.catalogue-checkbox:checked) {
  border-color: var(--tq); background: rgba(0,128,128,0.06);
  box-shadow: 0 0 0 2px var(--tq-glow), var(--shadow);
}
.catalogue-checkbox { margin-top: 2px; accent-color: var(--tq); width: 16px; height: 16px; flex-shrink: 0; }
.catalogue-info { flex: 1; min-width: 0; }
.catalogue-area { font-size: 0.70rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--tq-text); margin-bottom: 0.28rem; }
.catalogue-title { font-size: 0.91rem; font-weight: 600; color: var(--t1); line-height: 1.35; margin-bottom: 0.28rem; }
.catalogue-desc { font-size: 0.79rem; color: var(--t2); line-height: 1.55; }

/* ── SLA BARS (bi-admin) ─────────────────────────────────── */
.sla-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.sla-area { font-size: 0.82rem; font-weight: 500; color: var(--t2); min-width: 120px; }
.sla-bar-wrap { flex: 1; height: 7px; background: rgba(144,164,174,0.20); border-radius: 4px; overflow: hidden; }
.sla-bar { height: 100%; background: var(--tq-btn); border-radius: 4px; transition: width 0.6s ease; }
.sla-value { font-size: 0.78rem; font-weight: 600; color: var(--tq-text); min-width: 36px; text-align: right; }

/* ── BADGES ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  font-size: 0.68rem; font-weight: 600;
  padding: 0.22rem 0.62rem; border-radius: 20px;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.badge-approved, .badge-completed, .badge-bi-approved {
  background: var(--tq-bg); color: var(--tq-text); border: 1px solid rgba(0,128,128,0.20);
}
.badge-submitted {
  background: var(--st-bg); color: var(--st-dark); border: 1px solid rgba(96,125,139,0.20);
}
.badge-rejected {
  background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(183,28,28,0.20);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-family: var(--ff-b); font-size: 0.88rem; font-weight: 600;
  padding: 0.68rem 1.3rem; border-radius: var(--r-sm);
  border: none; cursor: pointer; transition: var(--ease);
  text-decoration: none; letter-spacing: 0.01em; white-space: nowrap;
}
.btn-primary   { background: var(--tq-btn); color: #fff; box-shadow: 0 3px 14px var(--tq-glow); }
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 6px 22px rgba(0,128,128,0.32); transform: translateY(-1px); }
.btn-secondary { background: var(--glass-md); color: var(--st-dark); border: 1.5px solid rgba(96,125,139,0.26); backdrop-filter: blur(8px); }
.btn-secondary:hover { background: var(--glass-hi); border-color: var(--st); transform: translateY(-1px); }
.btn-ghost     { background: transparent; color: var(--tq-text); border: 1.5px solid rgba(0,128,128,0.28); }
.btn-ghost:hover { background: var(--tq-bg); border-color: var(--tq); }
.btn-outline   { background: var(--glass-md); color: var(--t2); border: 1.5px solid rgba(96,125,139,0.26); backdrop-filter: blur(6px); }
.btn-outline:hover { background: var(--glass-hi); transform: translateY(-1px); }
.btn-danger    { background: var(--danger-bg); color: var(--danger); border: 1.5px solid rgba(183,28,28,0.22); }
.btn-danger:hover { background: rgba(183,28,28,0.14); }
.btn-sm { font-size: 0.79rem; padding: 0.42rem 0.85rem; }
.btn-lg { font-size: 0.97rem; padding: 0.82rem 1.6rem; }
.btn-full { width: 100%; }

/* ── ALERTS ──────────────────────────────────────────────── */
.alert { padding: 0.78rem 1rem; border-radius: var(--r-sm); font-size: 0.875rem; font-weight: 500; margin-bottom: 1.15rem; border-left: 3px solid; }
.alert-error   { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }
.alert-success { background: var(--tq-bg); color: var(--tq-text); border-color: var(--tq); }

/* ── FORMS (inputs) ──────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--t2); text-transform: uppercase; letter-spacing: 0.055em; margin-bottom: 0.38rem; }
.form-group input, input[type="text"], input[type="password"], input[type="email"] {
  width: 100%; padding: 0.72rem 1rem;
  border-radius: var(--r-sm); border: 1.5px solid rgba(144,164,174,0.38);
  background: rgba(255,255,255,0.80); color: var(--t1);
  font-size: 0.93rem; font-family: var(--ff-b);
  transition: var(--ease); outline: none;
}
.form-group input::placeholder { color: var(--t3); }
.form-group input:focus, input:focus { border-color: var(--tq); background: rgba(255,255,255,0.96); box-shadow: 0 0 0 3px var(--tq-glow); }
select, textarea {
  width: 100%; padding: 0.68rem 1rem;
  border-radius: var(--r-sm); border: 1.5px solid rgba(144,164,174,0.36);
  background: rgba(255,255,255,0.80); color: var(--t1);
  font-size: 0.91rem; font-family: var(--ff-b); outline: none; transition: var(--ease);
}
select:focus, textarea:focus { border-color: var(--tq); box-shadow: 0 0 0 3px var(--tq-glow); }
textarea { resize: vertical; min-height: 90px; }

/* ── LOGIN ───────────────────────────────────────────────── */
.login-split { position: relative; z-index: 1; display: flex; width: 100%; min-height: 100vh; }

.login-brand-panel {
  flex: 0 0 44%; display: flex; flex-direction: column; justify-content: center;
  padding: 3.5rem 3rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.48) 0%, rgba(255,255,255,0.20) 100%);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-right: 1px solid var(--glass-bdr); position: relative; overflow: hidden;
}
.login-brand-panel::after {
  content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(64,224,208,0.11) 0%, transparent 70%);
  bottom: -50px; right: -40px; pointer-events: none;
}

.login-brand-logo { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.logo-mark {
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--tq-btn);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px var(--tq-glow); flex-shrink: 0;
  font-size: 0; position: relative;
}
.logo-mark::before {
  content: ''; width: 28px; height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='rgba(255,255,255,0.92)' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='4' cy='14' r='2'/%3E%3Ccircle cx='14' cy='4' r='2'/%3E%3Ccircle cx='24' cy='14' r='2'/%3E%3Ccircle cx='14' cy='24' r='2'/%3E%3Ccircle cx='14' cy='14' r='2'/%3E%3Cline x1='6' y1='14' x2='12' y2='14'/%3E%3Cline x1='16' y1='14' x2='22' y2='14'/%3E%3Cline x1='14' y1='6' x2='14' y2='12'/%3E%3Cline x1='14' y1='16' x2='14' y2='22'/%3E%3Cline x1='7.5' y1='7.5' x2='12' y2='12'/%3E%3Cline x1='16' y1='12' x2='20.5' y2='7.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.logo-text-main { font-family: var(--ff-h); font-size: 1.28rem; font-weight: 700; color: var(--t1); letter-spacing: -0.02em; line-height: 1.2; }
.logo-text-sub { display: block; font-size: 0.69rem; font-weight: 600; color: var(--st); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 1px; }

.login-headline { font-family: var(--ff-h); font-size: 2rem; font-weight: 700; color: var(--t1); line-height: 1.25; letter-spacing: -0.03em; margin-bottom: 1rem; }
.login-subhead { font-size: 0.91rem; color: var(--t2); line-height: 1.68; max-width: 340px; margin-bottom: 2.5rem; }

.trust-badges { display: flex; flex-wrap: wrap; gap: 0.48rem; }
.trust-badge { font-size: 0.68rem; font-weight: 500; color: var(--st-dark); background: var(--glass-lo); border: 1px solid var(--glass-bdr-sm); border-radius: 6px; padding: 0.25rem 0.55rem; backdrop-filter: blur(8px); }

.login-form-panel {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 3.5rem 4rem;
  background: rgba(255,255,255,0.66);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.login-form-title { font-family: var(--ff-h); font-size: 1.62rem; font-weight: 700; color: var(--t1); letter-spacing: -0.025em; margin-bottom: 0.3rem; }
.login-form-sub { font-size: 0.87rem; color: var(--t2); margin-bottom: 1.9rem; }
.login-footer { margin-top: 1.2rem; text-align: center; }
.forgot-section { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(144,164,174,0.20); }
.login-notice { font-size: 0.71rem; color: var(--t3); margin-top: 1.8rem; line-height: 1.65; text-align: center; }

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 0.38rem; font-size: 0.78rem; color: var(--t3); margin-bottom: 1.35rem; }
.breadcrumb a { color: var(--tq-text); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.sep { margin: 0 0.15rem; color: var(--t3); }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3.5rem 2rem; color: var(--t3); }
.empty-state-icon { font-size: 2.2rem; margin-bottom: 0.9rem; opacity: 0.45; }
.empty-state h3 { font-size: 0.98rem; font-weight: 600; color: var(--t2); margin-bottom: 0.38rem; }

/* ── FOOTER ──────────────────────────────────────────────── */
.portal-footer {
  background: var(--glass-md);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-top: 1px solid var(--glass-bdr-sm);
  padding: 0.9rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.75rem; color: var(--t3);
}
.footer-brand { font-weight: 600; color: var(--t2); }
.footer-compliance { display: flex; gap: 1rem; }

/* ── UTILITY ─────────────────────────────────────────────── */
.text-sm { font-size: 0.84rem; } .text-xs { font-size: 0.74rem; }
.text-muted { color: var(--t3); } .text-success { color: var(--tq-text); }
.text-danger { color: var(--danger); } .text-warning { color: var(--warn); }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.d-flex { display: flex; } .a-center { align-items: center; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.hidden-catg, .hidden-name { display: none; }
.current { font-weight: 600; color: var(--tq-text); }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: rgba(144,164,174,0.07); }
::-webkit-scrollbar-thumb { background: rgba(96,125,139,0.34); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(96,125,139,0.56); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .login-split { flex-direction: column; }
  .login-brand-panel { flex: none; padding: 2rem 1.75rem; }
  .login-form-panel { padding: 2rem 1.75rem; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .sidebar { width: 195px; }
}
@media (max-width: 640px) {
  .portal-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; top: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .portal-main { padding: 1.2rem; }
  .catalogue-grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: repeat(2,1fr); }
  .login-form-panel { padding: 1.75rem 1.25rem; }
}