/* =========================================================
   WnP Employee Portal — Complete Design System v2.0
   ========================================================= */

/* === RESET & BOX-SIZING === */
*, *::before, *::after { box-sizing: border-box; }
/* === CSS VARIABLES (DARK THEME DEFAULT) === */

:root {
  --bg:            #0a0e1a;
  --panel:         #141824;
  --panel-border:  rgba(255,255,255,0.10);
  --text:          #e8ecf4;
  --muted:         #8b97b2;
  --accent:        #00bcd4;
  --accent-2:      #00bcd4;
  --accent-glow:   rgba(0,188,212,0.35);
  --danger:        #f87171;
  --warning:       #fbbf24;
  --shadow:        0 25px 70px rgba(0,0,0,0.45);
  --glass:         none;
  --radius:        16px;
  --radius-sm:     12px;
  --input-bg:      #1a2030;
  --input-border:  rgba(255,255,255,0.15);
  --input-text:    #e8ecf4;
}
/* === CSS VARIABLES (LIGHT THEME) ===**/
body.light {
  --bg:            #f0f4f8;
  --panel:         #ffffff;
  --panel-border:  #dce4ee;
  --text:          #1e293b;
  --muted:         #64748b;
  --accent:        #34b0c8;
  --accent-2:      #34b0c8;
  --accent-glow:   rgba(52,176,200,0.2);
  --danger:        #dc2626;
  --warning:       #d97706;
  --shadow:        0 4px 24px rgba(0,0,0,0.07);
  --glass:         none;
  --input-bg:      #ffffff;
  --input-border:  #cbd5e1;
  --input-text:    #1e293b;
  background: var(--bg) !important;
}

/* === BODY === */
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(0,188,212,0.14), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(0,188,212,0.10), transparent),
    radial-gradient(ellipse 50% 30% at 70% 90%, rgba(0,188,212,0.07), transparent),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 0;
  transition: background 0.4s ease, color 0.3s ease;
}

/* === BACKGROUND GRID === */
.bg-grid {
  position: fixed; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
}
/* ================================================
   TOPBAR / HEADER
   ================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(10,14,26,0.92);
  border-bottom: 3px solid var(--accent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 0;
}
body.light .topbar {
  background: #ffffff;
  border-bottom: 3px solid #34b0c8;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-icon {
  width: 200px;
  height: 88px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.brand-logo-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 6px 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.brand-logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  background: #ffffff;
  mix-blend-mode: normal;
  opacity: 1;
}
body:not(.light) .brand-logo-wrap {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
body:not(.light) .brand-logo-img {
  background: #ffffff;
  opacity: 1;
}
body.light .brand-logo-wrap {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}
body.light .brand-logo-img {
  background: #ffffff;
  opacity: 1;
}

.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  margin: 0;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}
.brand-tag {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Topbar Right — theme toggle */
.topbar-right { display: flex; align-items: center; gap: 10px; }
#themeToggle {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
  font-weight: 600;
}
#themeToggle:hover { border-color: var(--accent); background: rgba(0,188,212,0.1); }

/* =========================================================
   MAIN CONTENT WRAPPER
   ========================================================= */
.layout {
  max-width: 1280px;
  margin: 32px auto;
  padding: 0 28px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  position: relative;
  z-index: 2;
}

/* =========================================================
   PANELS
   ========================================================= */
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
body:not(.light) .panel {
  background: #141824;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(0,188,212,0.25);
  box-shadow: 0 28px 60px rgba(0,0,0,0.3);
}
body.light .panel {
  background: #ffffff;
  border: 1px solid #dce4ee;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
body.light .panel:hover {
  border-color: #34b0c8;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

/* Panel Header — row with title + actions */
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.panel-header h1, .panel-header h2, .panel-header h3 {
  margin: 0 0 4px;
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.2;
}
.panel-header p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.panel-header-actions, .admin-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
/* =========================================================
   BUTTONS 
   ========================================================= */
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--panel-border);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.ghost-btn:hover {
  border-color: rgba(0,188,212,0.5);
  background: rgba(0,188,212,0.08);
  transform: translateY(-1px);
}
body.light .ghost-btn {
  background: #ffffff;
  border: 1px solid #dce4ee;
  color: #1e293b;
}
body.light .ghost-btn:hover {
  border-color: #34b0c8;
  background: rgba(52,176,200,0.06);
}

.cta {
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #00a7bd);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  box-shadow: 0 6px 20px var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover  { transform: translateY(-1px); box-shadow: 0 10px 28px var(--accent-glow); }
.cta:active { transform: translateY(0); }
body.light .cta { background: #34b0c8; box-shadow: 0 4px 14px rgba(52,176,200,0.3); }
body.light .cta:hover { background: #2898b2; }

/* Action buttons in folder detail */
.excel-btn, .view-btn, .upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: rgba(0,188,212,0.08);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}
.excel-btn:hover, .view-btn:hover, .upload-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0,188,212,0.5);
  background: rgba(0,188,212,0.14);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* =========================================================
   FORMS & INPUTS
   ========================================================= */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
}
.optional-label { font-weight: 500; color: var(--muted); font-size: 11px; }

input, select, textarea {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--input-text);
  outline: none;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
input::placeholder { color: #94a3b8; }
select option { background: var(--input-bg); color: var(--input-text); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.hint { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* =========================================================
   ROLE / TAB SWITCHER
   ========================================================= */
.role-switch {
  margin-top: 18px;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--panel-border);
  gap: 4px;
}
.role-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 18px;
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.role-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px var(--accent-glow);
}
body.light .role-switch { background: #f1f4f8; border-color: #dce4ee; }
body.light .role-tab { color: var(--muted); }
body.light .role-tab.active { background: #34b0c8; color: #fff; }

.tab-switch {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 4px;
}
.tab {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}
body.light .tab-switch { background: #f1f4f8; border-color: #dce4ee; }
body.light .tab.active { background: #34b0c8; }

/* =========================================================
   UTILITY
   ========================================================= */
.hidden { display: none !important; }
.muted  { color: var(--muted); margin: 0; font-size: 13px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 4px;
}

/* =========================================================
   FOLDER CARDS (EMPLOYEE DASHBOARD)
   ========================================================= */
.folders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}

/* Vertical card layout: icon → title → desc → badge */
.folder-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: all 0.22s ease;
  min-width: 0;
  position: relative;
}
.folder-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,188,212,0.45);
  background: rgba(0,188,212,0.05);
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}
body.light .folder-card {
  background: #fff;
  border-color: #dce4ee;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
body.light .folder-card:hover {
  border-color: #34b0c8;
  background: rgba(52,176,200,0.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.folder-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.folder-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin-top: 4px;
}

.folder-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0,188,212,0.12);
  font-size: 20px;
  flex-shrink: 0;
}
body.light .folder-icon { background: rgba(52,176,200,0.1); color: #34b0c8; }

.folder-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--text);
}
.folder-card .muted {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,188,212,0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}
body.light .badge { background: rgba(52,176,200,0.1); color: #34b0c8; }
.folder-last-visit { font-size: 10px; padding: 3px 8px; }

/* ========================================
   NOTIFICATION BAR (scrolling marquee)
   ========================================*/
.notification-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: rgba(15,23,42,0.65);
  overflow: hidden;
}
body.light .notification-bar {
  background: rgba(255,255,255,0.9);
  border-color: #dce4ee;
}
.notification-bar-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notification-bar-track { flex: 1; overflow: hidden; }
.notification-bar-content {
  white-space: nowrap;
  display: inline-block;
  animation: notification-scroll 22s linear infinite;
  font-size: 13px;
}
.notification-bar:hover .notification-bar-content { animation-play-state: paused; }
@keyframes notification-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.notification-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(148,163,184,0.25);
  margin-right: 10px;
}
.notification-pill-type  { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; opacity: 0.9; }
.notification-pill-text  { font-size: 13px; }
.notification-pill--wfh  { background: rgba(0,188,212,0.2); }
.notification-pill--leave{ background: rgba(251,191,36,0.22); }
.notification-pill--birthday { background: rgba(236,72,153,0.2); }

/* =========================================================
   NOTIFICATION DROPDOWN BELL
   ========================================================= */
.notification-wrap   { position: relative; }
.notification-btn    { position: relative; min-width: 40px; padding: 9px 12px; }
.notification-btn-icon { font-size: 17px; line-height: 1; }
.notification-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--panel, rgba(15,23,42,0.95));
}
.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, 92vw);
  max-height: 360px;
  overflow: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  box-shadow: var(--shadow);
  z-index: 200;
}
body.light .notification-dropdown { background: #fff; border-color: #dce4ee; }
.notification-dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--panel-border);
}
.notification-dropdown-header h4 { margin: 0 0 3px; font-size: 0.93rem; }
.notification-dropdown-list {
  list-style: none; margin: 0; padding: 8px; display: grid; gap: 6px;
}
.notification-dropdown-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.notification-dropdown-item-btn {
  width: 100%; text-align: left;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  padding: 10px 12px; cursor: pointer;
  color: var(--text);
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.notification-dropdown-item-btn:hover {
  background: rgba(0,188,212,0.08);
  border-color: rgba(0,188,212,0.35);
}
.notification-dropdown-item-type  { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 3px; }
.notification-dropdown-item-title { display: block; font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.notification-dropdown-item-text  { display: block; font-size: 12px; color: var(--muted); }

/****=========================================================
   FOLDER DETAIL (inside dashboard panel)
   =========================================================***/
.folder-detail {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: #141824;
}
body:not(.light) .folder-detail { background: #141824; }
body.light .folder-detail { background: #f8fafc; border-color: #dce4ee; }
.folder-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--panel-border);
}
.folder-detail-header h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.folder-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* List items */
.list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.list li {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: #1a2030;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 13.5px;
  transition: background 0.2s ease;
}
body:not(.light) .list li { background: #1a2030; }
.list li:hover { background: #1f2638; }
body:not(.light) .list li:hover { background: #1f2638; }
body.light .list li { background: #fff; border-color: #dce4ee; }
body.light .list li:hover { background: #f8fafc; }
.list small { color: var(--muted); font-size: 12px; }

/* Upload section */
.upload-section {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.03);
}
body.light .upload-section { background: #f8fafc; border-color: #dce4ee; }
.upload-section form { display: flex; flex-direction: column; gap: 12px; }
.form-actions { display: flex; gap: 8px; margin-top: 6px; }

/* Payslip view */
.payslip-view {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.03);
}
.payslip-view h4 { margin: 0 0 12px; font-size: 0.98rem; }
.payslip-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.03);
  margin-bottom: 8px;
  transition: background 0.2s ease;
}
.payslip-item:hover { background: rgba(255,255,255,0.05); }
.payslip-item-info { flex: 1; min-width: 0; }
.payslip-item-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* =========================================================
   LEAVE MANAGEMENT
   ========================================================= */
.leave-management {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: #141824;
}
body:not(.light) .leave-management { background: #141824; }
body.light .leave-management { background: #f8fafc; }

.leave-balances { margin-bottom: 20px; }
.leave-balances h4 { margin: 0 0 12px; font-size: 0.98rem; }
.balance-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.balance-card {
  padding: 16px 12px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: #1a2030;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: all 0.2s ease;
}
body:not(.light) .balance-card { background: #1a2030; }
body.light .balance-card { background: #ffffff; }
.balance-card:hover { border-color: rgba(0,188,212,0.35); transform: translateY(-2px); }
.balance-label { font-size: 11.5px; color: var(--muted); }
.balance-value { font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1; }

/* Leave Approver Section */
.leave-approver-section {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: rgba(0,188,212,0.05);
}
.leave-approver-hint { margin: 0 0 10px; font-size: 12.5px; }
.leave-approver-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

/* Leave request form */
.leave-request-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--panel-border);
}
.leave-request-section h4 { margin: 0 0 12px; font-size: 0.98rem; }
.leave-request-section form { display: flex; flex-direction: column; gap: 12px; }
.leave-request-section select,
.leave-request-section textarea,
.leave-request-section input {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--input-text);
  outline: none;
  font-family: inherit;
  font-size: 14px;
}
.leave-request-section select option { background: var(--input-bg); color: var(--input-text); }
.leave-request-section select:focus,
.leave-request-section textarea:focus,
.leave-request-section input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.leave-request-section textarea { min-height: 88px; resize: vertical; }
.leave-requests-list {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--panel-border);
}
.leave-requests-list h4 { margin: 0 0 12px; font-size: 0.98rem; }

/* Leave actions & badges */
.leave-item-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.leave-approval-section {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.03);
}
.leave-approval-section h4 { margin: 0 0 12px; font-size: 0.98rem; }

.status-badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.status-badge.pending  { background: rgba(251,191,36,0.18); color: var(--warning); }
.status-badge.approved { background: rgba(0,188,212,0.18); color: var(--accent); }
.status-badge.rejected { background: rgba(248,113,113,0.18); color: var(--danger); }

.approve-btn { background: rgba(0,188,212,0.14) !important; color: var(--accent) !important; border-color: rgba(0,188,212,0.4) !important; }
.reject-btn  { background: rgba(248,113,113,0.14) !important; color: var(--danger) !important; border-color: rgba(248,113,113,0.4) !important; }

/* =========================================================
   ADMIN LAYOUT
   ========================================================= */
.admin-layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}
.admin-layout > * { min-width: 0; }
.employee-workspace { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* Employee list sidebar */
.employee-list {
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.03);
  max-height: 400px;
  overflow: auto;
  padding: 8px;
  display: grid;
  gap: 4px;
}
body.light .employee-list { background: #f8fafc; border-color: #dce4ee; }
.employee-item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: inherit;
  transition: background 0.2s ease;
}
.employee-item span { font-size: 11.5px; color: var(--muted); }
.employee-item:hover { background: rgba(0,188,212,0.1); }
body.light .employee-item:hover { background: rgba(52,176,200,0.07); }

/* Employee detail card */
.employee-detail {
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.03);
  padding: 18px;
}
body.light .employee-detail { background: #fff; border-color: #dce4ee; }
.employee-detail h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; }
.employee-meta { margin-top: 12px; display: grid; gap: 6px; }
.employee-meta p { margin: 0; font-size: 13.5px; }
.employee-detail-actions {
  margin-top: 14px !important;
  display: flex !important;
  gap: 8px;
  flex-wrap: wrap;
}

/* Admin folders grid — 3 col on desktop, 2 col tablet, 1 col mobile */
.admin-folders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}
.admin-folder-detail {
  margin-top: 0;
  min-width: 0;
  overflow: hidden;
  width: 100%;
  background: #141824;
}
body:not(.light) .admin-folder-detail { background: #141824; }
body.light .admin-folder-detail { background: #ffffff; }
.admin-folder-card { cursor: pointer; }
#adminWorksheetView { max-width: 100%; overflow: hidden; }

/* =========================================================
   PRO-SOL
   ========================================================= */
.prosol-view { margin-top: 10px; }
.prosol-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--panel-border);
}
.prosol-header h4 { margin: 0; font-size: 0.98rem; font-weight: 700; }
.prosol-user-select label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.prosol-user-select select { min-width: 180px; padding: 7px 12px; }
.worksheet-user-select label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.worksheet-user-select select { min-width: 200px; padding: 7px 12px; }
.balance-value.balance-negative { color: #ef5350; font-weight: 700; }
.prosol-tree { margin-top: 8px; }
.prosol-year {
  margin-bottom: 10px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
body.light .prosol-year { background: #fff; border-color: #dce4ee; }
.prosol-year-header {
  padding: 10px 14px;
  background: rgba(59,130,246,0.08);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}
.prosol-year-header:hover { background: rgba(59,130,246,0.14); }
.prosol-months {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px;
}
.prosol-month {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.03);
  font-size: 12.5px;
  cursor: default;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.prosol-month:hover { background: rgba(0,188,212,0.08); border-color: rgba(0,188,212,0.3); }
.prosol-month-label { white-space: nowrap; font-weight: 500; }
.prosol-month-actions { display: flex; gap: 4px; }
.prosol-icon-btn {
  border: none;
  background: rgba(15,23,42,0.55);
  color: #e5e7eb;
  width: 26px; height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: background 0.2s ease;
}
body.light .prosol-icon-btn { background: rgba(148,163,184,0.3); color: #1e293b; }
.prosol-icon-btn:hover { background: rgba(0,188,212,0.75); }
.prosol-icon-btn.disabled { opacity: 0.35; cursor: default; pointer-events: none; }

/* =========================================================
   CALENDAR BUTTON & MODAL
   ========================================================= */
.panel-header-actions .ghost-btn span:first-child { font-size: 16px; }

.calendar-modal {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.72);
  display: flex; align-items: center; justify-content: center;
  z-index: 400;
}
.calendar-modal-inner {
  width: 370px; max-width: 95vw; max-height: 88vh;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 18px 20px 22px;
  display: flex; flex-direction: column; overflow: hidden;
}
body.light .calendar-modal-inner { background: #fff; border-color: #dce4ee; }
.calendar-modal-header {
  display: flex; align-items: center; gap: 8px;
  justify-content: space-between; margin-bottom: 14px;
}
.calendar-modal-header h4 { margin: 0; font-size: 0.98rem; font-weight: 700; }
.calendar-close { margin-left: auto; }
.calendar-image { display: block; max-width: 100%; border-radius: 12px; border: 1px solid var(--panel-border); }

/* Dynamic calendar grid */
.calendar-wrapper {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 14px; margin-top: 10px;
  background: rgba(255,255,255,0.02);
}
body.light .calendar-wrapper { background: #f8fafc; border-color: #dce4ee; }
.calendar-navigation {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 14px;
}
.calendar-month-year { font-size: 1.08rem; font-weight: 700; }
.calendar-nav-btn {
  background: var(--panel); border: 1px solid var(--panel-border);
  color: var(--text); padding: 5px 12px;
  border-radius: 8px; cursor: pointer; font-size: 0.85rem;
  font-family: inherit; transition: all 0.2s ease;
}
.calendar-nav-btn:hover { background: rgba(0,188,212,0.1); border-color: var(--accent); }
.calendar-grid-header {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; font-weight: 700; color: var(--muted);
  margin-bottom: 6px; padding-bottom: 6px;
  border-bottom: 1px solid var(--panel-border);
  font-size: 12px;
}
.calendar-grid-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-day {
  min-height: 68px; border: 1px solid var(--panel-border);
  border-radius: 8px; padding: 4px;
  background: rgba(255,255,255,0.02);
  display: flex; flex-direction: column; position: relative;
  transition: all 0.2s ease; overflow: hidden;
}
.calendar-day:hover { border-color: var(--accent); }
.calendar-day-num { font-weight: 600; text-align: right; font-size: 12px; color: var(--text); }
.calendar-day.inactive { opacity: 0.3; }
.calendar-day.today { border-color: var(--accent); background: rgba(52,176,200,0.06); }
.calendar-day.today .calendar-day-num { color: var(--accent); font-weight: 800; }
.calendar-day-events { display: flex; flex-direction: column; gap: 2px; overflow: hidden; margin-top: 3px; }
.calendar-event { font-size: 0.64rem; padding: 1px 3px; border-radius: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.calendar-event.birthday { background: #fef3c7; color: #d97706; border-left: 2px solid #f59e0b; }
.calendar-event.leave    { background: #fee2e2; color: #dc2626; border-left: 2px solid #ef4444; }
.calendar-event.leave.approved { background: #dcfce7; color: #15803d; border-left: 2px solid #22c55e; }

/* =========================================================
   BIRTHDAYS MODAL / FULL-SCREEN
   ========================================================= */
.birthdays-view { margin-top: 18px; }
.birthdays-hero {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.03); margin-bottom: 12px;
}
.birthdays-image { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; border: 1px solid var(--panel-border); }
.birthdays-copy h4 { margin: 0 0 4px; }

.birthday-today-badge {
  display: inline-block; background: #28a745; color: #fff;
  padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 700;
}
.birthday-upcoming-badge {
  display: inline-block; background: #17a2b8; color: #fff;
  padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 700;
}

.birthdays-fullscreen {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; flex-direction: column;
  background: var(--bg); padding: 16px 20px 20px;
}
.birthdays-fullscreen.hidden { display: none; }
.birthdays-fullscreen-toolbar {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  flex-shrink: 0; margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--panel-border);
}
.birthdays-fullscreen-toolbar h4 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.birthdays-exit-btn { flex-shrink: 0; }
.birthdays-fullscreen-body {
  flex: 1; min-height: 0; overflow-y: auto;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  padding: 20px; text-align: left;
}
body.light .birthdays-fullscreen-body { background: #fff; border-color: #dce4ee; }
.birthdays-fullscreen-image {
  display: block; max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain; border-radius: 8px;
}
body.birthdays-fullscreen-mode { overflow: hidden; }

/* =========================================================
   WORKSHEET / TIMESHEET
   ========================================================= */
.worksheet-view {
  margin-top: 16px;
  max-width: 100%;
  min-width: 0;
}
.worksheet-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 10px;
}
.worksheet-toolbar label { margin: 0; font-size: 13px; }
.worksheet-toolbar input[type="month"] { padding: 8px 12px; font-size: 13.5px; }

.worksheet-header-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: #1a2030;
  font-size: 13px;
  align-items: center;
}
body:not(.light) .worksheet-header-info { background: #1a2030; }
body.light .worksheet-header-info { background: rgba(0,188,212,0.05); }
body.light .worksheet-header-info { background: rgba(52,176,200,0.05); border-color: #dce4ee; }

.worksheet-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.03);
  font-size: 13px;
  align-items: center;
}
.worksheet-footer-input { width: 80px; padding: 5px 8px; font-size: 13px; }
.worksheet-hint { margin: 10px 0 0; font-size: 12px; }

.worksheet-table-wrapper {
  max-height: 380px;
  width: 100%;
  overflow: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.02);
}
.worksheet-table {
  width: 100%;
  min-width: 1400px;
  border-collapse: collapse;
  font-size: 12.5px;
}
.worksheet-table thead th {
  position: sticky; top: 0;
  background: rgba(15,23,42,0.97);
  color: var(--text);
  border-bottom: 2px solid rgba(0,188,212,0.4);
  padding: 6px 8px;
  text-align: center;
  vertical-align: middle;
  z-index: 1;
  font-size: 12px;
  white-space: nowrap;
}
body.light .worksheet-table thead th { background: #e5edf9; color: #1e293b; }
.worksheet-table th, .worksheet-table td {
  border: 1px solid rgba(148,163,184,0.5);
  padding: 4px 6px;
}
.worksheet-table td { vertical-align: top; height: auto; }
.worksheet-table td.readonly { background: rgba(15,23,42,0.22); }
body.light .worksheet-table td.readonly { background: #f1f4ff; }

/* Date column */
.worksheet-table th:nth-child(2),
.worksheet-table td:nth-child(2) {
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
}

/* Day column */
.worksheet-day-cell {
  text-align: center;
  vertical-align: middle;
  padding: 4px;
  width: 65px;
  min-width: 65px;
}
.worksheet-day-text {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.2;
}
body.light .worksheet-day-text { color: #00889a; }

/* Frozen rows */
.worksheet-row-frozen td { background: rgba(15,23,42,0.38) !important; }
body.light .worksheet-row-frozen td { background: #e8eaef !important; }
.worksheet-table .worksheet-frozen,
.worksheet-table input.worksheet-frozen,
.worksheet-table select.worksheet-frozen {
  cursor: not-allowed; opacity: 0.8;
}

/* Inputs inside table */
.worksheet-table input,
.worksheet-table select,
.worksheet-table textarea {
  width: 100%; border: none; background: transparent;
  padding: 4px 2px; font-size: 12.5px;
  box-shadow: none; color: inherit;
}
.worksheet-table input:focus,
.worksheet-table select:focus,
.worksheet-table textarea:focus { outline: none; border: none; box-shadow: none; }
.worksheet-table input[type="number"] { text-align: right; }
.worksheet-table textarea {
  resize: none; overflow: hidden; min-height: 28px;
  line-height: 1.3; white-space: pre-wrap; overflow-wrap: anywhere;
}
.worksheet-cell-textarea { display: block; }
.worksheet-table input.worksheet-calc-readonly {
  background: rgba(0,188,212,0.07);
  font-weight: 600; cursor: default;
}
body.light .worksheet-table input.worksheet-calc-readonly { background: rgba(52,176,200,0.08); }

/* Column widths */
.worksheet-table th:nth-child(4), .worksheet-table td:nth-child(4),
.worksheet-table th:nth-child(5), .worksheet-table td:nth-child(5) { min-width: 230px; width: 230px; }
.worksheet-table td:nth-child(4) select { min-width: 170px; width: 100%; max-width: 100%; }
.worksheet-table td:nth-child(4) .work-mode-timers { width: 100%; }
.worksheet-table th:nth-child(6), .worksheet-table td:nth-child(6) { min-width: 550px; width: 550px; }

/* Fullscreen worksheet */
.worksheet-exit-btn { display: none; }
.worksheet-view.fullscreen {
  position: fixed !important; inset: 0;
  width: 100vw; height: 100vh; z-index: 9999;
  margin: 0; padding: 16px; border-radius: 0; border: none;
  background: #0a0e1a; box-shadow: none;
  display: flex; flex-direction: column;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body:not(.light) .worksheet-view.fullscreen { background: #0a0e1a; }
body.light .worksheet-view.fullscreen { background: #f0f4f8; }
.worksheet-view.fullscreen .worksheet-exit-btn { display: inline-flex; }
.worksheet-view.fullscreen .worksheet-table-wrapper { flex: 1; max-height: none; min-height: 0; }
.worksheet-view.fullscreen .worksheet-exit-btn {
  position: fixed; top: 12px; right: 14px; z-index: 10001;
}
body.worksheet-fullscreen-mode { overflow: hidden; }
body.worksheet-fullscreen-mode .topbar { opacity: 0; pointer-events: none; }
body.worksheet-fullscreen-mode .bg-grid,
body.worksheet-fullscreen-mode #dashboard,
body.worksheet-fullscreen-mode #adminDashboard,
body.worksheet-fullscreen-mode .layout { visibility: hidden; }

#adminWorksheetView.fullscreen {
  position: fixed !important; inset: 0;
  width: 100vw; height: 100vh; z-index: 9999;
  margin: 0; padding: 16px; border-radius: 0; border: none;
  background: #0a0e1a; box-shadow: none;
  display: flex; flex-direction: column;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body:not(.light) #adminWorksheetView.fullscreen { background: #0a0e1a; }
body.light #adminWorksheetView.fullscreen { background: #f0f4f8; }
#adminWorksheetView.fullscreen .worksheet-table-wrapper { flex: 1; max-height: none; min-height: 0; }

/* WFO Timer rows */
.work-mode-timers { margin-top: 6px; display: flex; flex-direction: column; gap: 5px; width: 100%; }
.work-mode-timers.hidden { display: none; }
.wfo-timer-row, .sub-timer-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px;
  padding: 3px 6px; border-radius: 7px;
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(148,163,184,0.05);
}
.sub-timer-label { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); min-width: 22px; }
.wfo-timer-wrap { margin-top: 5px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; }
.wfo-timer-toggle {
  border: 1px solid rgba(0,188,212,0.45); background: rgba(0,188,212,0.12);
  color: var(--text); border-radius: 7px; padding: 2px 7px;
  font-size: 10.5px; cursor: pointer; font-family: inherit;
}
.wfo-timer-value { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wfo-start-time {
  font-size: 10px; font-weight: 600; color: var(--accent); white-space: nowrap;
  padding: 1px 5px; border-radius: 5px;
  background: rgba(0,188,212,0.1); border: 1px solid rgba(0,188,212,0.22);
}
body.light .wfo-start-time { color: #00889a; background: rgba(0,167,189,0.1); }
.wfo-start-time.hidden, .wfo-stop-time.hidden { display: none; }
.wfo-stop-time {
  font-size: 10px; font-weight: 600; color: #f57c00; white-space: nowrap;
  padding: 1px 5px; border-radius: 5px;
  background: rgba(245,124,0,0.1); border: 1px solid rgba(245,124,0,0.22);
}
body.light .wfo-stop-time { color: #e65100; background: rgba(230,81,0,0.07); }
.wfo-late-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; padding: 1px 5px; border-radius: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.02em; color: #fff;
  background: linear-gradient(135deg, #e65100, #f57c00);
  border: 1px solid rgba(230,81,0,0.5); flex-shrink: 0;
}
.wfo-late-badge.hidden { display: none; }
body.light .wfo-late-badge { background: linear-gradient(135deg, #d84315, #ef6c00); }
.wfo-timer-wrap.wfo-timer-idle-paused .wfo-timer-value  { color: var(--warning); }
.wfo-timer-wrap.wfo-timer-idle-paused .wfo-timer-toggle { border-color: var(--warning); background: rgba(251,191,36,0.14); }

/* =========================================================
   SUGGESTION WIDGET (bottom-left FAB)
   ========================================================= */
.suggestion-widget {
  position: fixed; left: 18px; bottom: 18px; z-index: 1200;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.suggestion-fab {
  width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #00bcd4, #00a7bd); color: #fff;
  box-shadow: 0 8px 24px rgba(0,167,189,0.42);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.suggestion-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,167,189,0.55); }
.suggestion-fab-icon { font-size: 22px; line-height: 1; }
.suggestion-panel {
  width: min(330px, calc(100vw - 36px));
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 14px; padding: 16px;
  box-shadow: 0 16px 40px rgba(15,23,42,0.22);
}
body.light .suggestion-panel { background: #fff; border-color: #dce4ee; }
.suggestion-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 8px;
}
.suggestion-panel-header h4 { margin: 0; font-size: 15px; font-weight: 700; }
.suggestion-panel-hint { margin: 0 0 10px; font-size: 12px; }
.suggestion-panel textarea { width: 100%; min-height: 100px; margin-bottom: 10px; resize: vertical; }
.suggestions-admin-view h4 { margin: 0 0 10px; font-size: 0.98rem; }
.suggestion-admin-list { display: flex; flex-direction: column; gap: 10px; }
.suggestion-admin-item {
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: rgba(148,163,184,0.07);
}
body.light .suggestion-admin-item { background: rgba(52,176,200,0.05); border-color: #dce4ee; }
.suggestion-admin-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px;
}
.suggestion-admin-message { margin: 0; white-space: pre-wrap; line-height: 1.45; font-size: 13.5px; }

/* =========================================================
   ADMIN EMPLOYEE EDIT MODAL
   ========================================================= */
.employee-edit-modal {
  position: fixed; inset: 0; z-index: 10005;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  padding: 20px;
}
.employee-edit-modal.hidden { display: none; }
.employee-edit-modal-inner {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
body.light .employee-edit-modal-inner { background: #fff; border-color: #dce4ee; }
.employee-edit-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--panel-border);
}
.employee-edit-modal-header h4 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.employee-edit-modal-inner form {
  padding: 20px; overflow-y: auto; max-height: 80vh;
  display: flex; flex-direction: column; gap: 14px;
}

/* =========================================================
   RESPONSIVE — TABLET + MOBILE
   ========================================================= */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; max-width: 700px; }
  .admin-layout { grid-template-columns: 240px 1fr; }
  .admin-folders { grid-template-columns: repeat(2, 1fr); }
  .folders { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet Portrait (≤900px) */
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .employee-list { max-height: 200px; }
  .admin-folders { grid-template-columns: repeat(3, 1fr); }
  .prosol-months { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile Landscape (≤720px) */
@media (max-width: 720px) {
  .topbar-inner { padding: 8px 16px; gap: 10px; }
  .brand-icon { width: 160px; height: 72px; }
  .brand-name { font-size: 1rem; }
  .brand-tag { font-size: 10.5px; }
  .layout { margin: 16px auto; padding: 0 12px 28px; gap: 16px; }
  .panel { padding: 18px 14px; }
  .folders { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .admin-folders { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .prosol-months { grid-template-columns: repeat(2, 1fr); }
  .worksheet-table-wrapper { max-height: 300px; }
  .balance-cards { grid-template-columns: repeat(3, 1fr); }
  .suggestion-widget { left: 10px; bottom: 10px; }
  .panel-header-actions, .admin-header-actions { gap: 6px; }
  .ghost-btn { padding: 8px 12px; font-size: 12.5px; }
  .notification-bar { padding: 7px 10px; gap: 8px; }
  .notification-bar-label { display: none; }
}

/* Mobile Portrait (≤480px) */
@media (max-width: 480px) {
  .topbar-inner { padding: 8px 12px; }
  .brand-icon { width: 130px; height: 62px; }
  .brand-name { font-size: 0.92rem; }
  .brand-tag { display: none; }
  .layout { padding: 0 10px 20px; gap: 12px; }
  .panel { padding: 16px 12px; }
  .panel-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .panel-header-actions, .admin-header-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .folders { grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-folders { grid-template-columns: 1fr 1fr; gap: 8px; }
  .folder-card { padding: 14px; }
  .folder-icon { width: 38px; height: 38px; font-size: 17px; }
  .folder-title { font-size: 0.88rem; }
  .folder-card .muted { font-size: 11px; }
  .balance-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .balance-value { font-size: 22px; }
  .admin-layout { gap: 12px; }
  .prosol-months { grid-template-columns: repeat(2, 1fr); }
  .employee-edit-modal-inner { max-width: 100%; border-radius: 12px; }
  .ghost-btn { padding: 7px 10px; font-size: 12px; }
  .cta { padding: 12px 16px; }
  .admin-header-actions { gap: 4px; }
}
/* Very Small (≤360px) */
@media (max-width: 360px) {
  .folders { grid-template-columns: 1fr; }
  .admin-folders { grid-template-columns: 1fr 1fr; }
  .balance-cards { grid-template-columns: 1fr; }
  .panel-header-actions .ghost-btn span:not(:first-child) { display: none; }
}
