/* ============================================================
   Estimator360 — New Client Portal (WI #1491)
   All selectors scoped under .e360-portal to avoid leaking into
   the rest of the app. Dark theme: .e360-portal[data-theme="dark"].
   Sidebar background is always #004D3A regardless of theme
   (brand anchor — per AC #4).
   ============================================================ */

.e360-portal {
  --teal:        #00A87E;
  --teal-dim:    #008F6A;
  --teal-deep:   #006B52;
  --teal-glow:   rgba(0,168,126,0.08);
  --teal-border: rgba(0,168,126,0.2);
  --orange:      #E85D25;
  --orange-dim:  rgba(232,93,37,0.1);
  --blue:        #2563EB;
  --blue-dim:    rgba(37,99,235,0.1);
  --amber:       #D97706;
  --amber-dim:   rgba(217,119,6,0.1);
  --red:         #DC2626;
  --red-dim:     rgba(220,38,38,0.09);

  --bg:          #F2F4F7;
  --bg2:         #FFFFFF;
  --bg3:         #F7F8FA;
  --surface:     #FFFFFF;
  --surface2:    #F2F4F7;
  --border:      rgba(0,0,0,0.08);
  --border2:     rgba(0,0,0,0.14);

  --t1: #0F1923;
  --t2: #2D3748;
  --t3: #64748B;
  --t4: #94A3B8;

  --sidebar-w: 252px;
  --topbar-h: 60px;
  --radius: 12px;

  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--t1);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

.e360-portal[data-theme="dark"] {
  --teal:        #00C896;
  --teal-dim:    #00A07A;
  --teal-deep:   #007A5C;
  --teal-glow:   rgba(0,200,150,0.15);
  --teal-border: rgba(0,200,150,0.25);
  --orange:      #FF6B35;
  --orange-dim:  rgba(255,107,53,0.15);
  --blue:        #4D9EF8;
  --blue-dim:    rgba(77,158,248,0.15);
  --amber:       #F59E0B;
  --amber-dim:   rgba(245,158,11,0.12);
  --red:         #F05252;
  --red-dim:     rgba(240,82,82,0.13);

  --bg:          #13161B;
  --bg2:         #1A1D24;
  --bg3:         #1F232C;
  --surface:     #222730;
  --surface2:    #272C37;
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(255,255,255,0.12);

  --t1: #F0F2F6;
  --t2: #B8BFCC;
  --t3: #7A8599;
  --t4: #4A5568;
}

.e360-portal *,
.e360-portal *::before,
.e360-portal *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── LAYOUT ── */
.e360-portal .layout { display: flex; min-height: 100vh; }

/* ── SIDEBAR ── always #004D3A regardless of theme (AC #4) */
.e360-portal .sidebar {
  width: var(--sidebar-w); min-height: 100vh;
  background: #004D3A;
  border-right: 1px solid rgba(0,0,0,0.06);
  display: flex; flex-direction: column;
  flex-shrink: 0; position: fixed;
  top: 0; left: 0; bottom: 0; z-index: 100;
}
.e360-portal .sb-logo {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 10px;
}
.e360-portal .sb-logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--teal); display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.e360-portal .sb-logo-icon svg { width: 18px; height: 18px; fill: #fff; }
.e360-portal .sb-logo-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; font-weight: 700; color: #fff; }
.e360-portal .sb-logo-sub  { font-size: 10px; color: rgba(255,255,255,0.45); letter-spacing: 0.1em; text-transform: uppercase; }

.e360-portal .sb-project {
  margin: 12px 12px 4px;
  background: var(--teal-glow);
  border: 1px solid var(--teal-border);
  border-radius: 10px; padding: 12px 14px;
}
.e360-portal .sb-proj-label { font-size: 9px; color: #5DCAA5; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.e360-portal .sb-proj-name  { font-size: 12px; font-weight: 600; color: #fff; line-height: 1.3; }
.e360-portal .sb-proj-meta  { display: flex; align-items: center; gap: 5px; margin-top: 5px; }
.e360-portal .sb-dot        { width: 6px; height: 6px; border-radius: 50%; background: #5DCAA5; flex-shrink: 0; animation: e360-blink 2s infinite; }
@keyframes e360-blink { 0%,100%{opacity:1;}50%{opacity:.4;} }
.e360-portal .sb-proj-meta span { font-size: 10px; color: rgba(255,255,255,0.45); }

.e360-portal .sb-nav { padding: 8px 8px; flex: 1; overflow-y: auto; scrollbar-width: thin; }
.e360-portal .sb-group-label {
  font-size: 9px; color: rgba(255,255,255,0.25); letter-spacing: 0.12em;
  text-transform: uppercase; padding: 10px 10px 5px; font-weight: 600;
}
.e360-portal .sb-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 400;
  margin-bottom: 1px; transition: all 0.15s; text-decoration: none;
}
.e360-portal .sb-item:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
.e360-portal .sb-item.active { background: rgba(93,202,165,0.18); color: #5DCAA5; font-weight: 500; border: 1px solid rgba(93,202,165,0.25); }
.e360-portal .sb-item i { font-size: 14px; width: 16px; flex-shrink: 0; }
.e360-portal .sb-badge {
  margin-left: auto; background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 999px;
  padding: 1px 7px; min-width: 20px; text-align: center;
}
.e360-portal .sb-badge.blue { background: var(--blue); }

.e360-portal .sb-user {
  padding: 12px 14px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 9px;
}
.e360-portal .sb-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal); display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 700;
  color: #fff; flex-shrink: 0;
}
.e360-portal .sb-user-name { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.8); }
.e360-portal .sb-user-role { font-size: 10px; color: rgba(255,255,255,0.35); }
.e360-portal .sb-logout {
    flex-shrink: 0; margin-left: 6px;
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 8px;
    color: rgba(255,255,255,0.55); text-decoration: none; cursor: pointer;
    transition: all 0.15s;
}
.e360-portal .sb-logout:hover { background: rgba(255,255,255,0.1); color: #fff; }
.e360-portal .sb-logout i { font-size: 13px; }
.e360-portal .sb-classic { margin: 8px 12px 12px; }
.e360-portal .sb-classic a { display: block; text-align: center; font-size: 11px; color: rgba(255,255,255,0.55); padding: 8px; border: 1px dashed rgba(255,255,255,0.15); border-radius: 8px; text-decoration: none; cursor: pointer; }
.e360-portal .sb-classic a:hover { color: #fff; border-color: rgba(255,255,255,0.35); }

/* ── MAIN ── */
.e360-portal .main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* ── TOPBAR ── */
.e360-portal .topbar {
  height: var(--topbar-h); background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; position: sticky; top: 0; z-index: 50;
}
.e360-portal .bc { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--t3); }
.e360-portal .bc span { color: var(--t1); font-weight: 500; }
.e360-portal .bc i  { font-size: 9px; }
.e360-portal .topbar-right { display: flex; align-items: center; gap: 8px; }
.e360-portal .live-pill {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--t3);
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 999px; padding: 4px 10px;
}
.e360-portal .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: e360-blink 2s infinite; }

.e360-portal .btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 8px; font-size: 12px;
  font-weight: 500; cursor: pointer; border: none;
  font-family: 'Inter', sans-serif; transition: all 0.15s;
}
.e360-portal .btn-ghost { background: transparent; color: var(--t3); padding: 7px 10px; position: relative; }
.e360-portal .btn-ghost:hover { background: var(--surface); color: var(--t1); }
.e360-portal .btn-outline { background: var(--surface); border: 1px solid var(--border2); color: var(--t2); }
.e360-portal .btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.e360-portal .btn-primary { background: var(--teal); color: #fff; font-weight: 600; }
.e360-portal .btn-primary:hover { background: var(--teal-dim); }
.e360-portal .notif-rel { position: relative; }
.e360-portal .notif-dot {
  position: absolute; top: 2px; right: 2px;
  width: 16px; height: 16px; background: var(--orange);
  color: #fff; font-size: 9px; font-weight: 700;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg2);
}

/* ── PAGE ── */
.e360-portal .page { padding: 0 0 32px; }

/* ── COVER HERO ── */
.e360-portal .cover { position: relative; height: 280px; overflow: hidden; }
.e360-portal .cover-img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; filter: brightness(0.45) saturate(0.8);
}
.e360-portal .cover-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(19,22,27,0) 10%, rgba(19,22,27,0.7) 70%, var(--bg) 100%);
}
.e360-portal .cover-content {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 28px 32px; gap: 32px;
}
.e360-portal .cover-left { flex: 1; min-width: 0; }
.e360-portal .cover-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal-glow); border: 1px solid var(--teal-border);
  color: var(--teal); font-size: 11px; font-weight: 600;
  border-radius: 999px; padding: 4px 12px; margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.e360-portal .cover-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px; font-weight: 800; color: #fff;
  line-height: 1.15; text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.e360-portal .cover-sub { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 6px; }
.e360-portal .cover-progress-wrap { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.e360-portal .cover-prog-track { flex: 1; max-width: 360px; height: 6px; background: rgba(255,255,255,0.15); border-radius: 999px; overflow: hidden; }
.e360-portal .cover-prog-fill  { height: 100%; background: var(--teal); border-radius: 999px; }
.e360-portal .cover-prog-label { font-size: 13px; font-weight: 700; color: #fff; }
.e360-portal .cover-prog-sub   { font-size: 11px; color: rgba(255,255,255,0.45); }
.e360-portal .cover-stats { display: flex; align-items: stretch; gap: 0; }
.e360-portal .cs { text-align: right; padding: 8px 22px; border-left: 1px solid rgba(255,255,255,0.1); }
.e360-portal .cs:first-child { border-left: none; }
.e360-portal .cs-val { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 700; color: #fff; }
.e360-portal .cs-lbl { font-size: 10px; color: rgba(255,255,255,0.4); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }
.e360-portal .cs-sub { font-size: 11px; color: var(--teal); margin-top: 2px; font-weight: 500; }

/* ── INNER PADDING ── */
.e360-portal .inner { padding: 22px 28px 0; }

/* ── STAT CARDS ── */
.e360-portal .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.e360-portal .stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
}
.e360-portal .stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.e360-portal .stat-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.e360-portal .stat-icon i { font-size: 14px; }
.e360-portal .stat-val { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 700; color: var(--t1); }
.e360-portal .stat-lbl { font-size: 11px; color: var(--t3); margin-top: 2px; }
.e360-portal .stat-trend { font-size: 11px; font-weight: 500; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.e360-portal .pill { font-size: 10px; font-weight: 600; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.e360-portal .pill-teal   { background: var(--teal-glow);  color: var(--teal); border: 1px solid var(--teal-border); }
.e360-portal .pill-orange { background: var(--orange-dim); color: var(--orange); }
.e360-portal .pill-blue   { background: var(--blue-dim);   color: var(--blue); }
.e360-portal .pill-red    { background: var(--red-dim);    color: var(--red); }
.e360-portal .pill-gray   { background: var(--surface2);   color: var(--t3); }

/* ── GRID ── */
.e360-portal .g2  { display: grid; grid-template-columns: 1fr 1fr;       gap: 18px; margin-bottom: 20px; }
.e360-portal .g3  { display: grid; grid-template-columns: 1fr 1fr 1fr;   gap: 18px; margin-bottom: 20px; }
.e360-portal .g13 { display: grid; grid-template-columns: 1.45fr 1fr;    gap: 18px; margin-bottom: 20px; }
.e360-portal .g31 { display: grid; grid-template-columns: 1fr 1.4fr;     gap: 18px; margin-bottom: 20px; }

/* ── CARD ── */
.e360-portal .card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.e360-portal .card-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.e360-portal .card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--t1);
}
.e360-portal .card-title i { font-size: 13px; color: var(--teal); }
.e360-portal .card-link { font-size: 11px; color: var(--teal); font-weight: 500; cursor: pointer; text-decoration: none; }
.e360-portal .card-link:hover { opacity: .8; }
.e360-portal .card-body { padding: 14px 18px; }

/* ── TABS ── */
.e360-portal .tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.e360-portal .tab { font-size: 12px; color: var(--t3); padding: 7px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.e360-portal .tab.active { color: var(--teal); font-weight: 600; border-bottom-color: var(--teal); }

/* ── PHASES ── */
.e360-portal .phase { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.e360-portal .phase:last-child { border-bottom: none; }
.e360-portal .phase-circle { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.e360-portal .phase-circle.done    { background: var(--teal); }
.e360-portal .phase-circle.active  { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-dim); }
.e360-portal .phase-circle.pending { background: var(--surface2); border: 1px solid var(--border2); }
.e360-portal .phase-name { font-size: 12px; color: var(--t2); flex: 1; }
.e360-portal .phase-name.act { font-weight: 500; color: var(--t1); }
.e360-portal .phase-bar-wrap { width: 90px; height: 5px; background: var(--bg); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.e360-portal .phase-bar { height: 100%; border-radius: 999px; background: var(--teal); }
.e360-portal .phase-bar.or { background: var(--orange); }
.e360-portal .phase-date { font-size: 10px; color: var(--t4); width: 64px; text-align: right; flex-shrink: 0; }

/* ── BUDGET ── */
.e360-portal .bud-wrap { display: flex; align-items: center; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.e360-portal .bud-rows { flex: 1; }
.e360-portal .bud-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.e360-portal .bud-row:last-child { border-bottom: none; }
.e360-portal .bud-lbl { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--t3); }
.e360-portal .bud-swatch { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.e360-portal .bud-val { font-size: 13px; font-weight: 600; color: var(--t1); }
.e360-portal .bud-val.g { color: var(--teal); }
.e360-portal .bud-val.o { color: var(--orange); }

/* ── INVOICES ── */
.e360-portal .inv-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.e360-portal .inv-row:last-child { border-bottom: none; }
.e360-portal .inv-num  { font-size: 11px; font-weight: 600; color: var(--t1); width: 64px; }
.e360-portal .inv-desc { font-size: 12px; color: var(--t3); flex: 1; }
.e360-portal .inv-amt  { font-size: 13px; font-weight: 600; color: var(--t1); width: 90px; text-align: right; }

/* ── MESSAGES ── */
.e360-portal .msg-list { display: flex; flex-direction: column; gap: 12px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.e360-portal .msg      { display: flex; gap: 9px; }
.e360-portal .msg.mine { flex-direction: row-reverse; }
.e360-portal .msg-av   { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.e360-portal .msg-bubble { border-radius: 0 10px 10px 10px; padding: 9px 13px; max-width: 82%; }
.e360-portal .msg.mine .msg-bubble { border-radius: 10px 0 10px 10px; }
.e360-portal .bubble-them { background: var(--bg3); border: 1px solid var(--border); }
.e360-portal .bubble-me   { background: rgba(0,168,126,0.07); border: 1px solid rgba(0,168,126,0.18); }
.e360-portal .msg-from { font-size: 10px; font-weight: 600; color: var(--t3); margin-bottom: 3px; }
.e360-portal .msg-text { font-size: 12px; color: var(--t2); line-height: 1.45; }
.e360-portal .msg-time { font-size: 10px; color: var(--t4); margin-top: 3px; }
.e360-portal .msg-empty { font-size: 12px; color: var(--t4); text-align: center; padding: 24px 8px; }
.e360-portal .msg-input-row { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); margin-top: 12px; }
.e360-portal .msg-input {
  flex: 1; border: 1px solid var(--border2); border-radius: 8px;
  padding: 8px 12px; font-size: 12px; color: var(--t1);
  outline: none; font-family: 'Inter', sans-serif;
  background: var(--bg3);
}
.e360-portal .msg-input:focus { border-color: var(--teal); }
.e360-portal .msg-input::placeholder { color: var(--t4); }
.e360-portal .msg-send {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--teal); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; flex-shrink: 0;
}

/* ── SELECTIONS ── */
.e360-portal .sel-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.e360-portal .sel-row:last-child { border-bottom: none; }
.e360-portal .sel-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.e360-portal .sel-icon i { font-size: 14px; }
.e360-portal .sel-name { font-size: 12px; font-weight: 500; color: var(--t1); }
.e360-portal .sel-due  { font-size: 10px; color: var(--t4); margin-top: 2px; }
.e360-portal .sel-amt  { font-size: 12px; font-weight: 600; color: var(--t2); white-space: nowrap; }
.e360-portal .sel-summary { display: flex; gap: 7px; margin-bottom: 14px; flex-wrap: wrap; }
.e360-portal .sel-summary-pill { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 4px 12px; display: flex; align-items: center; gap: 5px; }
.e360-portal .sel-summary-pill i { font-size: 10px; }
.e360-portal .sel-summary-pill.warn { background: var(--red-dim); color: var(--red); }
.e360-portal .sel-summary-pill.good { background: var(--teal-glow); color: var(--teal); border: 1px solid var(--teal-border); }

/* ── PHOTOS ── */
.e360-portal .photo-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.e360-portal .photo-tile {
  aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  position: relative; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; background: var(--surface2);
}
.e360-portal .photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.e360-portal .photo-tile:hover::after {
  content: '\f03e'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; inset: 0; background: rgba(0,168,126,0.4);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
}
.e360-portal .photo-more {
  aspect-ratio: 1; border-radius: 8px; border: 1px dashed var(--border2);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; cursor: pointer; gap: 3px;
  color: var(--t3); font-size: 11px;
}
.e360-portal .photo-more:hover { border-color: var(--teal); color: var(--teal); }
.e360-portal .photo-empty { font-size: 12px; color: var(--t4); padding: 12px 0; }

/* ── ACTIVITY ── */
.e360-portal .act-list { display: flex; flex-direction: column; }
.e360-portal .act-item { display: flex; gap: 11px; padding: 8px 0; position: relative; }
.e360-portal .act-item:not(:last-child)::after { content:''; position:absolute; left:12px; top:30px; bottom:0; width:1px; background:var(--border); }
.e360-portal .act-icon { width: 25px; height: 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; }
.e360-portal .act-icon i { font-size: 11px; }
.e360-portal .act-text { font-size: 12px; color: var(--t2); flex: 1; line-height: 1.4; }
.e360-portal .act-time { font-size: 10px; color: var(--t4); margin-top: 2px; }

/* ── CO TABLE ── */
.e360-portal .co-table { width: 100%; border-collapse: collapse; }
.e360-portal .co-table th { font-size: 10px; color: var(--t4); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-align: left; padding: 7px 12px; border-bottom: 1px solid var(--border); }
.e360-portal .co-table td { font-size: 12px; padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--t2); }
.e360-portal .co-table tr:last-child td { border-bottom: none; }
.e360-portal .co-table tr:hover td { background: var(--bg3); }
.e360-portal .co-num { font-weight: 600; color: var(--t1); }
.e360-portal .pos { color: var(--teal); font-weight: 600; }
.e360-portal .neg { color: var(--red); font-weight: 600; }
.e360-portal .co-total td { background: rgba(0,168,126,0.07); color: var(--t1); font-weight: 600; }

/* ── DOCS ── */
.e360-portal .doc-row { display: flex; align-items: center; gap: 11px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.e360-portal .doc-row:last-child { border-bottom: none; }
.e360-portal .doc-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.e360-portal .doc-icon i { font-size: 13px; }
.e360-portal .doc-name { font-size: 12px; font-weight: 500; color: var(--t1); flex: 1; }
.e360-portal .doc-meta { font-size: 10px; color: var(--t4); margin-top: 1px; }
.e360-portal .doc-dl   { color: var(--t4); font-size: 13px; cursor: pointer; padding: 4px; background: none; border: none; }
.e360-portal .doc-dl:hover { color: var(--teal); }

/* ── WARRANTY ── */
.e360-portal .wcard {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px;
}
.e360-portal .wcard-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--teal-glow); border: 1px solid var(--teal-border); display: flex; align-items: center; justify-content: center; margin-bottom: 9px; }
.e360-portal .wcard-icon i { font-size: 15px; color: var(--teal); }
.e360-portal .wcard-title { font-size: 12px; font-weight: 600; color: var(--t1); margin-bottom: 4px; }
.e360-portal .wcard-sub   { font-size: 11px; color: var(--t3); line-height: 1.5; }

/* ── DIVIDER + TWO-COL ── */
.e360-portal .divider { border: none; border-top: 1px solid var(--border); margin: 10px 0; }
.e360-portal .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── FOOTER ── */
.e360-portal .footer {
  margin: 0 28px; padding: 16px 0;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.e360-portal .footer-brand { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; font-weight: 700; color: var(--teal); }
.e360-portal .footer-copy  { font-size: 11px; color: var(--t4); }
.e360-portal .footer-links { display: flex; gap: 16px; }
.e360-portal .footer-links a { font-size: 11px; color: var(--t4); cursor: pointer; text-decoration: none; }
.e360-portal .footer-links a:hover { color: var(--teal); }

/* ── NOTICE BANNER ── */
.e360-portal .notice {
  display: flex; align-items: center; gap: 10px;
  background: rgba(232,93,37,0.07); border: 1px solid rgba(232,93,37,0.18);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 20px; font-size: 12px; color: var(--t2);
}
.e360-portal .notice i { color: var(--orange); font-size: 14px; flex-shrink: 0; }
.e360-portal .notice strong { color: var(--orange); }
.e360-portal .notice-dismiss { margin-left: auto; background: none; border: none; color: var(--t4); cursor: pointer; font-size: 14px; }

/* ── PROJECTS LIST (landing) ── */
.e360-portal .projects-list { padding: 28px; max-width: 1200px; margin: 0 auto; }
.e360-portal .projects-list h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 700; color: var(--t1); margin-bottom: 18px; }
.e360-portal .project-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; cursor: pointer; transition: border-color 0.15s; text-decoration: none; }
.e360-portal .project-card:hover { border-color: var(--teal); }
.e360-portal .project-card-name { font-size: 14px; font-weight: 600; color: var(--t1); flex: 1; }
.e360-portal .project-card-meta { font-size: 12px; color: var(--t3); }

/* Theme toggle button */
.e360-portal .theme-toggle { background: transparent; border: 1px solid var(--border2); color: var(--t3); border-radius: 8px; padding: 7px 10px; cursor: pointer; font-size: 13px; }
.e360-portal .theme-toggle:hover { border-color: var(--teal); color: var(--teal); }

/* Hide host app chrome when this layout is active */
.e360-portal-host #wrapper > .navbar-default,
.e360-portal-host #wrapper > #page-wrapper > .navbar-header,
.e360-portal-host #wrapper > #page-wrapper > .row.border-bottom {
  display: none;
}
