@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* =========================================================
   SyncroConnect Theme.css
   Single source of truth for design + layout
   ========================================================= */

/* ====== Design Tokens ====== */
:root{
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #1f2937;
  --muted: #667085;
  --border: #e6e8ee;

  --brand: #c3dc29;
  --brand-strong: #8dc63e;
  --brand-ink: #052e16;

  --action-green: #8dc63e;
  --action-green-strong: #76b12f;
  --action-ink: #102f08;

  --accent-orange: #f59e0b;
  --nav-orange: #f59e0b;
  --nav-orange-strong: #e67e00;

  --danger: #dc2626;
  --danger-red: #dc2626;
  --danger-red-strong: #b91c1c;

  --radius: 16px;
  --radius-sm: 12px;

  --shadow: 0 18px 50px rgba(15,23,42,.10);
  --shadow-sm: 0 10px 28px rgba(15,23,42,.08);

  --ring: 0 0 0 4px rgba(195,220,41,.30);

  --font: "Poppins", "Segoe UI", Arial, sans-serif;
  --text-size-body: 15px;
  --text-size-sm: 13px;
  --text-size-md: 14px;
  --text-size-lg: 16px;
  --text-size-title: 20px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: var(--font);
  font-size: var(--text-size-body);
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
}

/* =========================================================
   PUBLIC WRAPPER (all public/auth pages)
   ========================================================= */

.public-wrap{
  min-height:100%;
  display:grid;
  place-items:center;
  padding:28px 16px;
  position:relative;
}

.public-wrap::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(900px 520px at 50% 10%, rgba(195,220,41,.16), transparent 62%),
    radial-gradient(760px 520px at 18% 22%, rgba(141,198,62,.10), transparent 62%),
    radial-gradient(860px 560px at 92% 28%, rgba(195,220,41,.10), transparent 62%);
}

/* =========================================================
   BASE COMPONENTS (used everywhere)
   ========================================================= */

.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
  animation: rise .24s ease-out both;
}

@keyframes rise{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}

.card__header{ margin-bottom:14px; }

.h1{
  font-size:var(--text-size-title);
  font-weight:700;
  letter-spacing:-.01em;
  margin:0 0 6px 0;
}

.subtle{
  color:var(--muted);
  font-size:var(--text-size-sm);
  margin:0;
}

.card__divider{
  height:1px;
  background: var(--border);
  margin:14px 0;
}

/* Forms */
.form{ margin-top:0; }

.field{
  display:grid;
  gap:6px;
  margin:12px 0;
}

.label{
  font-size:var(--text-size-sm);
  color:var(--muted);
}

.input{
  width:100%;
  padding:12px 14px;
  font-size:var(--text-size-body);
  border-radius:var(--radius-sm);
  border:1px solid var(--border);
  background:#fff;
  color:var(--ink);
  outline:none;
  transition:border-color .15s, box-shadow .15s;
}

.input::placeholder{ color:#9aa3b2; }

.input:focus{
  border-color: rgba(195,220,41,.75);
  box-shadow: var(--ring);
}

/* Buttons */
.btn{
  padding:12px 14px;
  font-size:var(--text-size-body);
  border-radius:14px;
  border:0;
  background:var(--action-green);
  color:var(--action-ink);
  font-weight:900;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:transform .08s, background .15s, filter .15s;
  box-shadow: 0 12px 22px rgba(118,177,47,.28);
}

.btn:hover{ background: var(--action-green-strong); }
.btn:active{ transform:translateY(1px); }

.btn.block{ width:100%; }

.btn.ghost,
.btn.nav{
  background:color-mix(in srgb, var(--nav-orange) 12%, #fff);
  border:1px solid color-mix(in srgb, var(--nav-orange) 32%, var(--border));
  box-shadow:none;
  color:#7a4200;
  font-weight:850;
}

.btn.ghost:hover,
.btn.nav:hover{
  background:linear-gradient(
    90deg,
    color-mix(in srgb, var(--nav-orange) 72%, #fff),
    color-mix(in srgb, var(--nav-orange-strong) 62%, #fff)
  );
  border-color:color-mix(in srgb, var(--nav-orange) 48%, var(--border));
  color:#5f3400;
}

.btn.danger{
  background:var(--danger-red);
  color:#fff;
  box-shadow: 0 12px 22px rgba(220,38,38,.26);
}

.btn.danger:hover{
  background:var(--danger-red-strong);
}

.btn.sm{
  padding:9px 12px;
  border-radius:12px;
  font-weight:950;
  box-shadow:none;
}

.btn.icon-only{
  width:38px;
  height:38px;
  min-width:38px;
  padding:0;
  border-radius:12px;
}

.btn.sm.icon-only{
  width:34px;
  height:34px;
  min-width:34px;
  padding:0;
}

.btn.icon-only svg{
  width:17px;
  height:17px;
  display:block;
}

.btn.icon-only.file-danger{
  border:1px solid rgba(220,38,38,.26);
  background:rgba(220,38,38,.08);
  color:#991b1b;
  box-shadow:none;
}

.btn.icon-only.file-danger:hover{
  background:rgba(220,38,38,.14);
  border-color:rgba(220,38,38,.34);
  color:#7f1d1d;
}

.file-picker-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.file-picker-input{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

.file-trigger.is-disabled{
  opacity:.55;
  pointer-events:none;
  cursor:not-allowed;
}

.file-chip{
  display:inline-flex;
  align-items:center;
  max-width:320px;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  font-size:13px;
  color:var(--ink);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.file-chip.is-empty{
  color:var(--muted);
}

.file-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.link{
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px solid rgba(15,23,42,.15);
  font-weight:800;
}

.link:hover{ border-bottom-color:rgba(15,23,42,.35); }

.alert{
  margin-top:12px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(220,38,38,.22);
  background: rgba(220,38,38,.06);
  color:var(--danger);
  font-size:var(--text-size-md);
}

/* =========================================================
   Global Software Dialog (replaces browser popups)
   ========================================================= */
.sd-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.46);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
  z-index: 3200;
}

.sd-modal{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  width: min(560px, calc(100vw - 28px));
  background: var(--panel, #fff);
  border: 1px solid var(--border, #e6e8ee);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15,23,42,.24);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform .16s ease, opacity .16s ease;
  z-index: 3210;
}

.sd-backdrop.open{
  opacity: 1;
  pointer-events: auto;
}

.sd-modal.open{
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.sd-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, #e6e8ee);
}

.sd-title{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 32px;
}

.sd-badge{
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid color-mix(in srgb, var(--brand, #c3dc29) 34%, #d6d9df);
  background: color-mix(in srgb, var(--brand, #c3dc29) 17%, #fff);
  color: #2d3b12;
}

.sd-title-text{
  font-size: 28px;
  font-weight: 900;
  color: #111827;
}

.sd-body{
  padding: 16px;
}

.sd-message{
  font-size: 17px;
  line-height: 1.5;
  color: #111827;
  white-space: pre-wrap;
}

.sd-input-wrap{
  margin-top: 12px;
}

.sd-input{
  width: 100%;
  border: 1px solid var(--border, #e6e8ee);
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
  color: var(--ink, #1f2937);
  background: #fff;
  outline: none;
}

.sd-input:focus{
  border-color: rgba(195,220,41,.75);
  box-shadow: 0 0 0 4px rgba(195,220,41,.26);
}

.sd-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border, #e6e8ee);
}

.sd-actions .btn{
  min-width: 112px;
}

.sd-actions .btn.sm{
  min-width: 96px;
}

.sd-close{
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 12px;
  border: 1px solid var(--border, #e6e8ee);
  background: #fff;
  color: #6b7280;
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.sd-close:hover{
  color: #334155;
  border-color: color-mix(in srgb, var(--nav-orange, #f59e0b) 36%, var(--border, #e6e8ee));
  background: color-mix(in srgb, var(--nav-orange, #f59e0b) 10%, #fff);
}

.smallprint{
  margin-top: 14px;
  font-size: var(--text-size-sm);
  color: var(--muted);
  text-align: center;
}

.formrow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 12px;
}

.mini{
  font-size:var(--text-size-sm);
  color:var(--muted);
}

/* =========================================================
   AUTH PAGES (Modern split layout)
   ========================================================= */

.auth-shell{
  width:min(1100px, 100%);
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items:center;
  position:relative;
  z-index:1;
}

/* Left panel */
.auth-left{
  padding: 28px 22px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    radial-gradient(700px 420px at 20% 20%, rgba(195,220,41,.18), transparent 60%),
    radial-gradient(760px 520px at 85% 35%, rgba(141,198,62,.12), transparent 60%),
    #ffffff;
  box-shadow: var(--shadow-sm);
}

.brandrow{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom: 16px;
}

.logomark{
  width:44px;height:44px;
  border-radius:16px;
  display:grid;
  place-items:center;
  font-weight:900;
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 14px 28px rgba(195,220,41,.25);
}

.brandtext{ display:flex; flex-direction:column; gap:2px; }
.brandname{ margin:0; font-size:16px; font-weight:900; letter-spacing:-.01em; }
.brandtag{ margin:0; font-size:13px; color: var(--muted); }

.auth-hero{
  margin: 10px 0 10px 0;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 950;
}

.auth-sub{
  margin: 0 0 16px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  max-width: 52ch;
}

.auth-bullets{
  margin: 0;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 10px;
}

.auth-bullets li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

.tick{
  width:22px;height:22px;
  border-radius: 8px;
  display:grid;
  place-items:center;
  background: color-mix(in srgb, var(--brand) 22%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--border));
  color: var(--brand-ink);
  font-weight: 900;
  flex: 0 0 auto;
}

.btitle{ margin:0; font-weight: 900; font-size: 13px; }
.bdesc{ margin:2px 0 0 0; font-size: 13px; color: var(--muted); line-height: 1.35; }

/* Right panel */
.auth-right{
  display:flex;
  justify-content:center;
}

.auth-right .card{
  width: 100%;
  max-width: 460px;
}

/* Responsive */
@media (max-width: 980px){
  .auth-shell{ grid-template-columns: 1fr; }
  .auth-left{ display:none; }
  .auth-right .card{ max-width: 480px; }
}

/* =========================================================
   APP SHELL (Sidebar layout) used after login
   ========================================================= */

.app{
  min-height:100vh;
  display:grid;
  grid-template-columns:280px 1fr;
  transition:grid-template-columns .2s ease;
}

.app.sidebar-collapsed{
  grid-template-columns:96px 1fr;
}

/* Sidebar */
.sidebar{
  position:sticky;
  top:0;
  height:100vh;
  padding:16px;
  background:var(--panel);
  border-right:1px solid var(--border);
  display:flex;
  flex-direction:column;
  gap:10px;
}

.brandbox{
  display:flex;
  flex-direction:column;
  gap:4px;
  align-items:center;
  padding:10px 10px 8px;
  border-radius:20px;
  border:1px solid var(--border);
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.brandlogo{
  display:block;
  width:auto;
  max-width:100%;
  max-height:92px;
  height:auto;
  object-fit:contain;
}

.brandview{
  margin-top:0;
  font-size:13px;
  line-height:1.15;
  font-weight:800;
  color:var(--ink);
}

.sidebar-collapse-btn{
  width:100%;
  height:36px;
  border-radius:12px;
  border:1px solid color-mix(in srgb, var(--nav-orange) 32%, var(--border));
  background:color-mix(in srgb, var(--nav-orange) 10%, #fff);
  color:#7a4200;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background .15s, border-color .15s, color .15s, transform .08s, box-shadow .15s;
}
.sidebar-collapse-btn:active{
  transform:translateY(1px);
}

.sidebar-collapse-btn svg{
  width:18px;
  height:18px;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .2s ease;
}

.nav{
  margin-top:4px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.nav a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid transparent;
  text-decoration:none;
  color:var(--ink);
  font-weight:800;
  transition:background .15s, border-color .15s, box-shadow .15s, color .15s;
}

.navitem-left{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.navicon{
  width:22px;
  height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#5b6473;
  flex:0 0 22px;
}

.navicon svg{
  width:18px;
  height:18px;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.navlabel{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.navchev{
  color:#8a94a7;
  font-size:14px;
  line-height:1;
}

.nav a:hover,
.sidebar-collapse-btn:hover{
  background:linear-gradient(
    90deg,
    color-mix(in srgb, var(--brand-strong) 70%, #fff),
    color-mix(in srgb, var(--accent-orange) 60%, #fff)
  );
  border-color:color-mix(in srgb, var(--accent-orange) 35%, var(--brand-strong) 35%);
  color:#1f2b0a;
  box-shadow:0 10px 16px rgba(141,198,62,.24);
}
.nav a:hover .navicon,
.nav a.active .navicon{
  color:#1f2b0a;
}

.nav a.active{
  background:linear-gradient(
    90deg,
    color-mix(in srgb, var(--brand-strong) 82%, #fff),
    color-mix(in srgb, var(--accent-orange) 74%, #fff)
  );
  border-color:color-mix(in srgb, var(--accent-orange) 40%, var(--brand-strong) 40%);
  font-weight:900;
  color:#1b2508;
  box-shadow:0 10px 18px rgba(245,158,11,.20);
}
.app.sidebar-collapsed .sidebar{
  padding:16px 10px;
}

.app.sidebar-collapsed .brandbox{
  align-items:center;
  padding:10px;
}

.app.sidebar-collapsed .brandlogo{
  max-width:42px;
  max-height:42px;
}

.app.sidebar-collapsed .brandview{
  display:none;
}

.app.sidebar-collapsed .sidebar-collapse-btn{
  width:100%;
  height:36px;
  border-radius:12px;
  border:1px solid color-mix(in srgb, var(--nav-orange) 32%, var(--border));
  background:color-mix(in srgb, var(--nav-orange) 10%, #fff);
  color:#7a4200;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background .15s, border-color .15s, color .15s, transform .08s, box-shadow .15s;
}
.app.sidebar-collapsed .sidebar-collapse-btn svg{
  transform:rotate(180deg);
}

.app.sidebar-collapsed .nav a{
  justify-content:center;
  padding:10px;
}

.app.sidebar-collapsed .navitem-left{
  width:100%;
  justify-content:center;
  gap:0;
}

.app.sidebar-collapsed .navlabel,
.app.sidebar-collapsed .navchev,
.app.sidebar-collapsed .sidefooter{
  display:none;
}

/* Sidebar footer */
.sidefooter{
  position:absolute;
  left:16px;
  right:16px;
  bottom:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.sidecard{
  padding:12px;
  border-radius:16px;
  border:1px solid var(--border);
  background:#fff;
}

.small{ font-size:13px; color:var(--muted); margin:0; }

/* Main */
.main{ padding:12px 18px; }

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  padding:10px 12px;
}

.badge{
  display:inline-flex;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-size:13px;
  font-weight:800;
  color:var(--muted);
}

.wrap{
  max-width:1120px;
  margin:10px auto 0;
}

.wrap > :first-child{ margin-top:0; }

/* Mobile drawer */
.burger{
  display:none;
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
}

.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  display:none;
  z-index:49;
}

@media (max-width:980px){
  .app,
  .app.sidebar-collapsed{ grid-template-columns:1fr; }
  .burger{ display:inline-flex; }
  .sidebar-collapse-btn{
  width:100%;
  height:36px;
  border-radius:12px;
  border:1px solid color-mix(in srgb, var(--nav-orange) 32%, var(--border));
  background:color-mix(in srgb, var(--nav-orange) 10%, #fff);
  color:#7a4200;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background .15s, border-color .15s, color .15s, transform .08s, box-shadow .15s;
}
.sidebar{
    position:fixed;
    inset:0 auto 0 0;
    width:290px;
    transform:translateX(-110%);
    transition:transform .18s ease;
    z-index:50;
  }

  .sidebar.open{ transform:translateX(0); }
  .overlay.show{ display:block; }
  .sidefooter{ position:static; margin-top:14px; }
}
/* =========================================================
   DASHBOARD COMPONENTS (Manager + Employee)
   ========================================================= */

/* Make KPI cards behave like cards, not links */
.kpi-grid a{ text-decoration:none; color:inherit; }
.kpi-grid a:hover{ text-decoration:none; }

.dash-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin: 14px 0 10px;
}

.dash-title{
  margin:0;
  font-size:18px;
  font-weight:950;
  letter-spacing:-.01em;
}

.dash-meta{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}

.pill-dot{
  width:8px;height:8px;border-radius:999px;
  background: var(--brand);
}

/* KPIs */
.kpi-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
  margin: 8px 0 12px;
}

.kpi-card{
  padding:16px;
  cursor:pointer;
  transition: transform .08s ease, box-shadow .12s ease;
}

.kpi-card:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.kpi-card,
.kpi-card *{
  text-decoration:none !important;
  color: var(--ink);
}

.kpi-label{
  font-size:12px;
  color:var(--muted);
  font-weight:900;
  letter-spacing:.02em;
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.kpi-value{
  font-size:34px;
  font-weight:950;
  letter-spacing:-.02em;
  margin-top:8px;
}

.kpi-hint{
  margin-top:8px;
  color:var(--muted);
  font-size:12px;
}

.kpi-state{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:900;
  color:var(--muted);
}

.kpi-state .dot{
  width:8px;height:8px;border-radius:999px;
  background: var(--border);
}

.kpi-card.ok   .kpi-state .dot{ background: rgba(141,198,62,.95); }
.kpi-card.warn .kpi-state .dot{ background: rgba(245,158,11,.90); }
.kpi-card.bad  .kpi-state .dot{ background: rgba(220,38,38,.90); }

.kpi-card.bad{
  border-color: rgba(220,38,38,.20);
  background: linear-gradient(to bottom, rgba(220,38,38,.05), #fff 40%);
}

/* Attention section (horizontal tiles like mock) */
.attn-card{ padding:18px; }

.attn-title{
  margin:0;
  font-size:16px;
  font-weight:950;
  letter-spacing:-.01em;
}

.attn-sub{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
}

.attn-tiles{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
}

.attn-tile{
  padding:14px;
  border-radius:18px;
  border:1px solid var(--border);
  background:#fff;
  box-shadow: var(--shadow-sm);
  display:flex;
  flex-direction:column;
  gap:10px;
}

.attn-top{
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.attn-icon{
  width:36px;height:36px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-weight:950;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--brand) 14%, #fff);
  color: var(--ink);
  flex: 0 0 auto;
}

.attn-text{ min-width:0; }

.attn-main{
  margin:0;
  font-size:13px;
  font-weight:950;
  letter-spacing:-.01em;
}

.attn-mini{
  margin:3px 0 0;
  font-size:12px;
  color:var(--muted);
}

.attn-actions{
  margin-top:auto;
  display:flex;
  justify-content:flex-start;
}

/* Feeds */
.feeds-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin: 12px 0 0;
}

.feed-card{ padding:16px; }

.feed-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}

.feed-title{
  margin:0;
  font-size:14px;
  font-weight:950;
  letter-spacing:-.01em;
}

.feed-sub{
  margin:4px 0 0;
  color:var(--muted);
  font-size:12px;
}

.feed-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

.feed-chip .dot{
  width:8px;height:8px;border-radius:999px;
  background: rgba(141,198,62,.95);
}

.feed-chip.warn .dot{ background: rgba(245,158,11,.90); }
.feed-chip.bad  .dot{ background: rgba(220,38,38,.90); }

.feed-body{
  margin-top:12px;
  min-height: 360px;
  border-radius:18px;
  border:1px solid var(--border);
  background:#fff;
  overflow:hidden;
}

.feed-scroll{
  max-height: 360px;
  overflow:auto;

  /* nicer scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(15,23,42,.20) transparent;
}

.feed-scroll::-webkit-scrollbar{ width:10px; }
.feed-scroll::-webkit-scrollbar-thumb{
  background: rgba(15,23,42,.18);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.feed-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-bottom:1px solid var(--border);
}

.feed-row:last-child{ border-bottom:0; }

.feed-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.avatar{
  width:34px;height:34px;
  border-radius:14px;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  display:grid;
  place-items:center;
  font-weight:950;
  color: var(--ink);
  flex: 0 0 auto;
}

.feed-text{ min-width:0; }

.feed-main{
  margin:0;
  font-size:12.5px;
  font-weight:950;
  letter-spacing:-.01em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.feed-mini{
  margin:3px 0 0;
  font-size:12px;
  color:var(--muted);
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.feed-right{
  text-align:right;
  white-space:nowrap;
  flex: 0 0 auto;
}

.time{
  font-size:12px;
  font-weight:900;
  color: var(--muted);
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-size:12px;
  font-weight:900;
  color:var(--muted);
  margin-top:6px;
}

.tag.warn{ border-color: rgba(245,158,11,.28); background: rgba(245,158,11,.06); color: #b45309; }
.tag.bad{  border-color: rgba(220,38,38,.25); background: rgba(220,38,38,.06); color: #b91c1c; }
.tag.ok{   border-color: rgba(141,198,62,.28); background: rgba(141,198,62,.08); color: #3f6212; }

@media (max-width: 980px){
  .kpi-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attn-tiles{ grid-template-columns: 1fr; }
  .feeds-grid{ grid-template-columns: 1fr; }
  .feed-scroll{ max-height: 320px; }
  .feed-body{ min-height: 320px; }
}

/* =========================================================
   EMPLOYEE DASHBOARD
   ========================================================= */

.emp-wrap{ max-width: 920px; margin: 0 auto; }

.emp-status{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.emp-state{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.emp-title{
  margin:0;
  font-size:18px;
  font-weight:950;
  letter-spacing:-.01em;
}

.emp-sub{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.emp-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.emp-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

.emp-pill .dot{
  width:8px;height:8px;border-radius:999px;
  background: var(--border);
}

.emp-pill.work .dot{ background: rgba(141,198,62,.95); }
.emp-pill.break .dot{ background: rgba(245,158,11,.90); }
.emp-pill.out .dot{ background: rgba(220,38,38,.90); }

.emp-actions{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.emp-actions .btn{ min-width: 180px; }

@media (max-width: 700px){
  .emp-status{ flex-direction:column; }
  .emp-badges{ justify-content:flex-start; }
  .emp-actions .btn{ width: 100%; min-width: 0; }
}
/* =========================================================
   TABLES (Manager pages)
   ========================================================= */

.table-tools{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.table-tools__left{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.table-tools__right{
  margin-left:auto;
}

.table-wrap{
  overflow:auto;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}

.table th,
.table td{
  padding:12px 12px;
  border-bottom:1px solid var(--border);
  text-align:left;
  font-size:13px;
  vertical-align:middle;
}

.table thead th{
  position:sticky;
  top:0;
  background:#fff;
  z-index:1;
  font-size:12px;
  color:var(--muted);
  font-weight:950;
  letter-spacing:.02em;
}

.table tr:hover td{
  background: rgba(15,23,42,.02);
}

.right{
  text-align:right;
  white-space:nowrap;
}

.muted{
  color:var(--muted);
}

.btnrow{
  display:inline-flex;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
}
/* =========================================================
   CLOCKING HUB status dropdown (Action / Payroll Ready)
   ========================================================= */

.col-status{
  width:170px;
  text-align:center;
}

.ch-status{
  width:100%;
  height:38px;
  border-radius:10px;
  border:1px solid var(--border);
  font-weight:900;
  text-align:center;
  color:#fff;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  padding:0 10px;
}

.ch-status.is-action{ background:#e11d48; }  /* Action */
.ch-status.is-payroll{ background:#00c26f; } /* Payroll Ready */

/* Employee pages full width too */
.emp-wrap{
  max-width:none !important;
  width:100% !important;
  margin:0 !important;
  padding-left:18px;
  padding-right:18px;
  padding-right: 18px;
}

/* Force full-width app pages */
.app { max-width: none !important; width: 100% !important; }

.main { max-width: none !important; width: 100% !important; }

/* Your content wrapper */
.wrap { max-width: none !important; width: 100% !important; margin: 0 !important; }

/* If you're using wrap-fluid, make it actually do something */
.wrap-fluid{
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
}
/* =========================================================
   FILTER DRAWER footer actions (People page)
   ========================================================= */

.factions{
  position: sticky;
  bottom: 0;
  margin-top: 14px;

  padding: 12px 0 6px;
  background: var(--panel);
  border-top: 1px solid var(--border);

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.factions .fnote{ margin:0; }

/* =========================
   Delete modal (People)
   ========================= */
.del-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 1000;
}

.del-modal{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  width: min(520px, calc(100vw - 28px));
  background: var(--panel, #fff);
  border: 1px solid var(--border, #e6e8ee);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15,23,42,.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 1001;
  overflow: hidden;
}

.del-backdrop.open{
  opacity: 1;
  pointer-events: auto;
}

.del-modal.open{
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.del-head{
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--border, #e6e8ee);
}

.del-title{
  font-weight: 950;
  font-size: 16px;
}

.del-sub{
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted, #6b7280);
}

.del-body{
  padding: 14px 16px;
}

.del-actions{
  padding: 14px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border, #e6e8ee);
}
/* =========================================================
   HOLIDAY UI (People > Employee drawer > Holiday tab)
   ========================================================= */

.holiday-ui .smallerr,
.holiday-ui .big.smallerr,
.holiday-ui .input.smallerr{
  color:#991b1b !important;
  font-weight:950;
}


.holiday-ui .smallok{
  color:#166534 !important;
  font-weight:950;
}

.holiday-ui .minirow:last-child{
  border-bottom:0 !important;
}

.holiday-ui details.acc .accBody{
  padding:16px 18px;
}

.holiday-ui .card .big{
  line-height:1.1;
}

.holiday-ui .holiday-stat{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.holiday-ui .holiday-stat-value{
  font-size:28px;
  line-height:1.1;
  font-weight:950;
  letter-spacing:-.02em;
}

.holiday-ui .holiday-box{
  width:100%;
  padding:12px 14px;
  border-radius:var(--radius-sm);
  border:1px solid var(--border);
  background:#fff;
  color:var(--ink);
  font-weight:900;
}

.holiday-ui .holiday-stack{
  display:grid;
  gap:12px;
}

.holiday-ui .holiday-history-card{
  padding:14px;
  border-radius:16px;
  border:1px solid var(--border);
  background:#fff;
}

.holiday-ui .holiday-history-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid var(--border);
}

.holiday-ui .holiday-history-row:last-child{
  border-bottom:0;
}

.holiday-ui .holiday-history-amount{
  font-size:18px;
  font-weight:950;
  text-align:right;
  white-space:nowrap;
}

.holiday-ui .holiday-config-card{
  padding:14px;
  border-radius:16px;
  border:1px solid var(--border);
  background:#fff;
  min-height:52px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.holiday-ui .holiday-config-value{
  font-size:16px;
  font-weight:950;
  line-height:1.35;
}

.holiday-ui .holiday-note-strong b{
  color:var(--ink);
}

@media (max-width: 720px){
  .holiday-ui .holiday-history-row{
    grid-template-columns:1fr;
  }

  .holiday-ui .holiday-history-amount{
    text-align:left;
  }

  .holiday-ui .holiday-stat-value{
    font-size:24px;
  }
}
/* =========================================================
   HOLIDAY HISTORY MODALS
   ========================================================= */

.holiday-history-list{
  display:grid;
  gap:12px;
}

.holiday-history-item{
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  padding:14px;
}

.holiday-history-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.holiday-history-title{
  font-weight:950;
  font-size:14px;
}

.holiday-history-meta{
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
}

.holiday-history-note{
  margin-top:8px;
  font-size:13px;
  color:var(--ink);
}

.holiday-history-value{
  font-weight:950;
  font-size:18px;
  white-space:nowrap;
  text-align:right;
}

.holiday-history-value.neg{
  color:#991b1b;
}

.holiday-history-value.pos{
  color:#166534;
}

.holiday-history-empty{
  font-size:13px;
  color:var(--muted);
}

#hhAdjModal,
#hhTakenModal{
  width:min(760px, 94vw);
}

#hhAdjBody,
#hhTakenBody{
  max-height:65vh;
  overflow:auto;
}
/* =========================================================
   SHARED PAGE HEADER / FILTER BAR
   Used by People, Clocking Hub, and similar manager pages
   ========================================================= */

.page-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin:14px 0 12px;
}

.page-title{
  margin:0;
  font-size:18px;
  font-weight:950;
  letter-spacing:-.01em;
}

.page-sub{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
}

.page-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

.searchbar{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.searchwrap{
  position:relative;
  flex:1 1 420px;
  min-width:260px;
}

.searchwrap .input{
  padding-right:38px;
}

.clearx{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:28px;
  height:28px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  color:var(--muted);
  font-weight:950;
}

.clearx:hover{
  background:rgba(15,23,42,.03);
}

.countpill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-size:12px;
  font-weight:950;
  color:var(--ink);
  white-space:nowrap;
}

.countpill .dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:color-mix(in srgb,var(--brand) 55%, #fff);
}

.filterbtn.on{
  background:color-mix(in srgb,var(--brand) 12%, #fff);
  border-color:color-mix(in srgb,var(--brand) 32%, var(--border));
  box-shadow:0 0 0 4px rgba(196,219,39,.18);
}

.filterbadge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid color-mix(in srgb,var(--brand) 32%, var(--border));
  background:color-mix(in srgb,var(--brand) 10%, #fff);
  font-size:11px;
  font-weight:950;
  margin-left:8px;
}


/* =========================================================
   USER MENU (Top-right avatar dropdown)
   ========================================================= */
.app-topbar{
  position:sticky;
  top:10px;
  z-index:46;
  margin-bottom:10px;
}

.topbar-left,
.topbar-right{
  display:flex;
  align-items:center;
  gap:10px;
}

.topbar-left{ min-height:42px; }

.user-menu{ position:relative; }

.user-menu-btn{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid color-mix(in srgb, var(--nav-orange) 32%, var(--border));
  background:#fff;
  color:var(--ink);
  cursor:pointer;
  padding:0;
  display:grid;
  place-items:center;
}

.user-menu-btn:hover{
  background:linear-gradient(
    90deg,
    color-mix(in srgb, var(--brand-strong) 70%, #fff),
    color-mix(in srgb, var(--accent-orange) 60%, #fff)
  );
  border-color:color-mix(in srgb, var(--accent-orange) 35%, var(--brand-strong) 35%);
}

.user-avatar{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  display:grid;
  place-items:center;
  overflow:hidden;
  font-size:12px;
  font-weight:950;
}

.user-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.user-menu-pop{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  min-width:190px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:var(--shadow-sm);
  padding:6px;
  display:none;
  z-index:70;
}

.user-menu-pop.open{ display:block; }

.user-menu-pop a{
  display:flex;
  align-items:center;
  width:100%;
  min-height:36px;
  padding:8px 10px;
  border-radius:10px;
  color:var(--ink);
  text-decoration:none;
  font-weight:850;
}

.user-menu-pop a:hover{ background:rgba(15,23,42,.05); }

.user-menu-pop a.danger{ color:#991b1b; }
.user-menu-pop a.danger:hover{ background:rgba(220,38,38,.08); }

.burger{
  color:#556071;
  align-items:center;
  justify-content:center;
}

.burger svg{
  width:18px;
  height:18px;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
/* =========================================================
   MARKET POLISH PASS (Hierarchy + People grid quality)
   ========================================================= */
:root{
  --shell-max: 1480px;
}

.main{
  padding:14px 20px;
}

.wrap,
.wrap-fluid{
  max-width:var(--shell-max) !important;
  width:100% !important;
  margin:0 auto !important;
  padding-left:10px !important;
  padding-right:10px !important;
}

.sidebar{
  padding:14px 14px 16px;
}

.brandbox{
  padding:8px 10px 6px;
  border-radius:18px;
}

.brandlogo{
  max-height:72px;
}

.brandview{
  font-size:14px;
  font-weight:900;
}

.nav{
  gap:8px;
}

.nav a{
  min-height:46px;
  border-radius:15px;
}

.sidecard{
  border-radius:14px;
  background:linear-gradient(180deg, #fff, color-mix(in srgb, var(--brand) 6%, #fff));
}

.small{
  line-height:1.35;
}

.app-topbar{
  top:8px;
  margin-bottom:12px;
  padding:8px 12px;
  border-radius:18px;
  border:1px solid color-mix(in srgb, var(--brand) 14%, var(--border));
  background:linear-gradient(135deg, #fff, color-mix(in srgb, var(--brand) 7%, #fff) 52%, color-mix(in srgb, var(--accent-orange) 8%, #fff));
  box-shadow:0 12px 30px rgba(15,23,42,.08);
}

.topbar-right{
  margin-left:auto;
}

.user-menu-btn{
  width:48px;
  height:48px;
  box-shadow:0 8px 20px rgba(15,23,42,.10);
}

.user-avatar{
  width:40px;
  height:40px;
}

.user-menu-pop{
  min-width:220px;
  border-radius:16px;
  box-shadow:0 14px 30px rgba(15,23,42,.16);
}

.user-menu-pop a{
  min-height:38px;
  border-radius:11px;
}

.acc{
  border-radius:20px;
}

.acc summary{
  padding:13px 16px;
}

.searchbar{
  gap:12px;
}

.searchwrap .input{
  min-height:44px;
}

.countpill{
  padding:9px 14px;
  font-size:12.5px;
}

#peopleList.tablewrap,
#visitorsList.tablewrap{
  border-radius:18px !important;
  border-color:color-mix(in srgb, var(--brand) 20%, var(--border)) !important;
  box-shadow:0 10px 24px rgba(15,23,42,.07);
}

#peopleList .thead,
#visitorsList .vhead{
  padding:13px 16px !important;
  background:linear-gradient(180deg, color-mix(in srgb, var(--brand) 8%, #fff), #fff) !important;
}

#peopleList .th,
#visitorsList .th{
  font-size:11.5px !important;
  letter-spacing:.03em;
  text-transform:uppercase;
}

#peopleList .row,
#visitorsList .vrow{
  padding:16px !important;
  min-height:74px;
  transition:background .15s ease, box-shadow .15s ease;
}

#peopleList .row:hover,
#visitorsList .vrow:hover{
  background:color-mix(in srgb, var(--brand) 7%, #fff) !important;
}

#peopleList .person,
#visitorsList .person{
  gap:14px !important;
}

#peopleList .ava,
#visitorsList .ava{
  width:46px !important;
  height:46px !important;
  border-radius:999px !important;
  border-color:color-mix(in srgb, var(--brand) 20%, var(--border)) !important;
  background:linear-gradient(145deg, color-mix(in srgb, var(--brand) 15%, #fff), #fff) !important;
}

#peopleList .name,
#visitorsList .name{
  font-size:15px !important;
  letter-spacing:-.01em;
}

#peopleList .sub,
#visitorsList .sub{
  font-size:12.5px !important;
}

#peopleList .iconbtn,
#visitorsList .iconbtn,
#shiftBody .iconbtn,
#schedBody .iconbtn{
  height:40px !important;
  border-radius:12px !important;
  border-color:color-mix(in srgb, var(--accent-orange) 22%, var(--border)) !important;
}

#peopleList .iconbtn:hover,
#visitorsList .iconbtn:hover,
#shiftBody .iconbtn:hover,
#schedBody .iconbtn:hover{
  background:linear-gradient(90deg, color-mix(in srgb, var(--brand) 34%, #fff), color-mix(in srgb, var(--accent-orange) 30%, #fff)) !important;
  box-shadow:0 10px 18px rgba(245,158,11,.20) !important;
}


#shiftBody .iconbtn,
#schedBody .iconbtn{
  padding:0 12px !important;
  font-weight:950 !important;
}

#shiftBody .iconbtn svg,
#schedBody .iconbtn svg{
  width:16px;
  height:16px;
}

#btnMoreEmployees{
  min-width:140px;
}

@media (max-width: 980px){
  .app-topbar{
    padding:6px 10px;
  }
  .wrap,
  .wrap-fluid{
    padding-left:4px !important;
    padding-right:4px !important;
  }
}

/* =========================================================
   MARKET POLISH PASS 2 (Topbar refinement + tighter shell)
   ========================================================= */
.main{
  padding:10px 18px 16px !important;
}

.wrap,
.wrap-fluid{
  padding-left:6px !important;
  padding-right:6px !important;
}

.app-topbar{
  top:6px !important;
  margin-bottom:8px !important;
  padding:2px 0 6px !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  justify-content:flex-end;
}

.topbar-left{
  display:none !important;
  min-height:0 !important;
}

.topbar-right{
  width:100%;
  justify-content:flex-end !important;
}

.user-menu-btn{
  width:44px !important;
  height:44px !important;
  border-color:color-mix(in srgb, var(--accent-orange) 32%, var(--border)) !important;
  background:#fff !important;
}

.user-menu-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(245,158,11,.22);
}

.acc{
  box-shadow:0 14px 28px rgba(15,23,42,.08);
}

#peopleList .row,
#visitorsList .vrow{
  min-height:70px;
}

/* =========================================================
   PREMIUM SYSTEM PASS (Global consistency layer)
   ========================================================= */
:root{
  --surface-soft: color-mix(in srgb, var(--brand) 6%, #fff);
  --surface-warm: color-mix(in srgb, var(--accent-orange) 8%, #fff);
}

/* Shell rhythm */
.main{
  padding:10px 18px 18px !important;
}

/* Sidebar footer quality */
.sidefooter{
  gap:8px;
}

.sidecard{
  border:1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  border-radius:16px;
  padding:12px 14px;
  background:linear-gradient(180deg, #fff, var(--surface-soft));
  box-shadow:0 10px 22px rgba(15,23,42,.06);
}

.sidecard .small{
  font-size:12px;
  color:#5f6b7d;
  letter-spacing:.01em;
}

.sidecard .small strong{
  color:var(--ink);
  font-weight:900;
}

/* Top-right account control */
.user-menu{
  position:relative;
  border-radius:999px;
  padding:3px;
  background:linear-gradient(120deg, color-mix(in srgb, var(--brand) 34%, #fff), color-mix(in srgb, var(--accent-orange) 30%, #fff));
  box-shadow:0 10px 22px rgba(245,158,11,.18);
}

.user-menu-btn{
  width:46px !important;
  height:46px !important;
  border-radius:999px;
  border:1px solid color-mix(in srgb, var(--accent-orange) 36%, var(--border)) !important;
  background:#fff !important;
}

.user-avatar{
  width:38px;
  height:38px;
}

.user-menu-pop{
  min-width:236px;
  padding:8px;
  border-radius:16px;
  border:1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  backdrop-filter:saturate(120%) blur(6px);
  box-shadow:0 18px 36px rgba(15,23,42,.18);
}

.user-menu-pop a{
  min-height:40px;
  font-size:13px;
  font-weight:900;
}

/* Navigation motion quality */
.nav a{
  transition:background .16s, border-color .16s, box-shadow .16s, color .16s, transform .12s;
}

.nav a:hover{
  transform:translateX(2px);
}

.nav a.active{
  transform:translateX(0);
}

/* Button consistency */
.btn,
.iconbtn{
  transition:transform .12s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.btn:hover,
.iconbtn:hover{
  transform:translateY(-1px);
}

.btn:active,
.iconbtn:active{
  transform:translateY(0);
}

/* Data hierarchy for tables globally */
.table-wrap,
.tablewrap{
  border-color:color-mix(in srgb, var(--brand) 20%, var(--border));
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}

.table thead th,
.thead .th,
.vhead .th{
  text-transform:uppercase;
  letter-spacing:.03em;
  font-size:11.5px;
}

.table tbody tr:nth-child(even) td,
#peopleList .row:nth-child(even),
#visitorsList .vrow:nth-child(even){
  background:rgba(15,23,42,.012);
}

.table tr:hover td,
#peopleList .row:hover,
#visitorsList .vrow:hover{
  background:color-mix(in srgb, var(--brand) 8%, #fff) !important;
}

/* Stronger line and spacing in People list */
#peopleList .row,
#visitorsList .vrow{
  min-height:72px;
}

/* Critical: keep mobile sidebar access */
@media (max-width:980px){
  .app-topbar{
    justify-content:space-between !important;
    padding:4px 0 8px !important;
  }

  .topbar-left{
    display:flex !important;
    min-height:42px !important;
  }

  .topbar-right{
    width:auto !important;
    margin-left:auto;
  }

  .user-menu{
    padding:2px;
  }
}

/* Shared drawer section helpers */
.section-title{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:950;
}

.info.section-help{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  user-select:none;
}

.info.section-help.info-blue{
  border:1px solid #93c5fd;
  background:#dbeafe;
  color:#1d4ed8;
}

.info.section-help:hover,
.info.section-help:focus-visible{
  box-shadow:0 0 0 3px rgba(59,130,246,.22);
  outline:none;
}

.status-inline{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.status-choice{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  font-weight:900;
}

.status-choice input{
  margin:0;
}

/* Work-patterns schedule weekly apply row (drawer + full-page consistency) */
.weekly-apply-row{
  display:grid;
  gap:8px;
}

.weekly-apply-controls{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:nowrap;
}

.weekly-apply-select{
  width:260px;
  max-width:calc(100% - 48px);
}

.weekly-apply-btn{
  width:40px;
  min-width:40px;
  height:40px;
  padding:0;
  display:inline-grid;
  place-items:center;
}

/* Rotating week selector tabs (Schedule edit) */
#rotTabs{
  gap:10px;
  padding:2px 0;
}

#rotTabs .tabbtn{
  appearance:none;
  -webkit-appearance:none;
  border:1px solid var(--border) !important;
  border-radius:999px !important;
  min-height:38px;
  padding:9px 14px !important;
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:linear-gradient(180deg,#ffffff 0%, #f8fafc 100%) !important;
  color:var(--ink);
  font-size:13px;
  font-weight:900;
  line-height:1;
  box-shadow:0 1px 0 rgba(17,24,39,.04);
  transition:background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}

#rotTabs .tabbtn::before{
  content:'';
  width:8px;
  height:8px;
  border-radius:999px;
  background:currentColor;
  opacity:.2;
  transform:scale(.75);
  transition:opacity .15s ease, transform .15s ease;
}

#rotTabs .tabbtn:hover{
  border-color:var(--brand-orange) !important;
  background:linear-gradient(180deg,#fffaf1 0%, #fff4df 100%) !important;
}

#rotTabs .tabbtn:focus-visible{
  outline:0;
  box-shadow:0 0 0 3px rgba(168,196,45,.28), 0 0 0 1px rgba(168,196,45,.48) inset;
}

#rotTabs .tabbtn.active,
#rotTabs .tabbtn[aria-pressed="true"]{
  border-color:transparent !important;
  color:#182235;
  background:linear-gradient(90deg,#b8da33 0%, #f0ba4d 100%) !important;
  box-shadow:0 8px 18px rgba(168,196,45,.26), 0 0 0 1px rgba(255,255,255,.52) inset;
  transform:translateY(-1px);
}

#rotTabs .tabbtn.active::before,
#rotTabs .tabbtn[aria-pressed="true"]::before{
  opacity:.95;
  transform:scale(1);
}

@media (max-width:720px){
  .weekly-apply-controls{
    display:grid;
    grid-template-columns:1fr auto;
  }

  .weekly-apply-select{
    width:100%;
    max-width:none;
  }
}

/* =========================================================
   Shared close button (drawer/modal)
   ========================================================= */
.xbtn{
  height:38px;
  width:38px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  font-size:22px;
  line-height:1;
  color:var(--muted);
}

.xbtn:hover{
  background:rgba(15,23,42,.04);
  color:var(--ink);
}

/* =========================================================
   Planner
   ========================================================= */
.planner-wrap{
  max-width:1400px;
}

.planner-toolbar{
  margin-bottom:14px;
}

.planner-toolbar-head{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.planner-title-wrap{
  display:flex;
  align-items:center;
  gap:10px;
}

.planner-title{
  font-size:18px;
  font-weight:950;
}

.planner-subtitle{
  font-size:13px;
  color:var(--muted);
}

.planner-scope{
  display:inline-flex;
  border:1px solid var(--border);
  background:#fff;
  border-radius:999px;
  overflow:hidden;
}

.planner-scope-btn{
  border:0;
  background:transparent;
  padding:8px 12px;
  font-size:12px;
  color:var(--muted);
  cursor:pointer;
  font-weight:900;
}

.planner-scope-btn[aria-selected="true"]{
  background:linear-gradient(
    90deg,
    color-mix(in srgb, var(--brand) 56%, #fff),
    color-mix(in srgb, var(--accent-orange) 44%, #fff)
  );
  color:#1f2a12;
}

.planner-toolbar-tools{
  margin-left:auto;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.planner-weekend-toggle{
  display:inline-flex;
  gap:8px;
  align-items:center;
  user-select:none;
  font-size:13px;
  color:var(--muted);
}

.planner-toolbar-note{
  margin-top:8px;
  color:var(--muted);
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.planner-calendar-panel{
  overflow:hidden;
}

.planner-key-panel{
  margin-top:14px;
}

.planner-key-title{
  margin-bottom:8px;
  color:var(--muted);
}

.planner-key-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.planner-badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  border:1px solid var(--border);
  background:#fff;
  padding:7px 11px;
  border-radius:999px;
  font-size:12px;
  color:var(--ink);
}

.planner-badge b{
  font-weight:900;
}

.planner-badge-note{
  margin-left:auto;
}

.planner-badge-mine{
  gap:8px;
}

.planner-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
  border:1px solid var(--border);
}

.planner-dot[data-g="HOL"]{ background:#22c55e; border-color:#22c55e; }
.planner-dot[data-g="SICK"]{ background:#ef4444; border-color:#ef4444; }
.planner-dot[data-g="ABS"]{ background:#f59e0b; border-color:#f59e0b; }
.planner-dot[data-g="TRN"]{ background:#3b82f6; border-color:#3b82f6; }
.planner-dot[data-g="OTH"]{ background:#64748b; border-color:#64748b; }

.planner-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  margin-left:6px;
  font-size:12px;
  border:1px solid var(--border);
  background:rgba(15,23,42,0.04);
  color:var(--ink);
  font-weight:900;
}

.planner-help-text{
  margin-top:6px;
}

.planner-actions-row{
  display:flex;
  gap:10px;
  margin-top:6px;
  flex-wrap:wrap;
  align-items:center;
}

.planner-actions-row-end{
  justify-content:flex-end;
}

.planner-grid{
  display:grid;
  gap:12px;
}

.planner-grid-gap-md{
  margin-top:12px;
}

.planner-grid-two{
  grid-template-columns:1fr 1fr;
}

.planner-grid-three{
  grid-template-columns:1fr 1fr 1fr;
}

.planner-inline-checkbox{
  display:inline-flex;
  gap:8px;
  align-items:center;
  user-select:none;
}

.planner-mini-panel{
  padding:12px;
}

.planner-mini-title{
  font-weight:900;
  margin-bottom:8px;
}

.planner-unit-display{
  display:flex;
  align-items:center;
}

.planner-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.45);
}

.planner-drawer,
.planner-modal{
  position:fixed;
  inset:0;
  display:none;
}

.planner-drawer{
  z-index:9998;
}

.planner-modal{
  z-index:9999;
}

.planner-drawer.open,
.planner-modal.open{
  display:block;
}

.planner-drawer-panel{
  position:absolute;
  top:12px;
  bottom:12px;
  width:min(560px, calc(100vw - 24px));
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding:14px;
  overflow:auto;
}

.planner-drawer-panel-left{
  left:12px;
}

.planner-drawer-panel-right{
  right:12px;
}

.planner-sheet{
  position:absolute;
  right:12px;
  top:12px;
  bottom:12px;
  width:min(980px, calc(100vw - 24px));
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding:14px;
  overflow:auto;
}

.planner-sheet-book{
  width:min(760px, calc(100vw - 24px));
}

.planner-sheet-edit{
  width:min(700px, calc(100vw - 24px));
}

.planner-sheet-head{
  display:flex;
  align-items:center;
  gap:10px;
}

.planner-sheet-title-wrap{
  flex:1;
}

.planner-sheet-title{
  font-weight:950;
  font-size:16px;
}

.planner-stats-row{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.planner-space-top{
  margin-top:12px;
}

.planner-summary-table-wrap{
  margin-top:12px;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
}

.planner-summary-table{
  width:100%;
  border-collapse:collapse;
}

.planner-summary-table thead tr{
  background:rgba(15,23,42,0.03);
}

.planner-summary-table th{
  text-align:left;
  padding:10px 12px;
  font-size:12px;
  color:var(--muted);
}

.planner-summary-cell{
  padding:10px 12px;
  border-top:1px solid var(--border);
}

.planner-empty-cell{
  padding:12px;
  color:var(--muted);
}

.planner-edit-meta{
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
}

.planner-edit-employee{
  margin-top:6px;
  font-size:16px;
  font-weight:900;
}

.planner-drawer .ms,
.planner-sheet .ms{
  display:grid;
  gap:10px;
}

.planner-drawer .ms-list,
.planner-sheet .ms-list{
  border:1px solid var(--border);
  border-radius:14px;
  overflow:auto;
  max-height:260px;
  background:#fff;
}

.planner-drawer .ms-item,
.planner-sheet .ms-item{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-top:1px solid rgba(15,23,42,0.06);
  cursor:pointer;
  user-select:none;
}

.planner-drawer .ms-item:first-child,
.planner-sheet .ms-item:first-child{
  border-top:0;
}

.planner-drawer .ms-item:hover,
.planner-sheet .ms-item:hover{
  background:rgba(15,23,42,0.03);
}

.planner-drawer .ms-item input,
.planner-sheet .ms-item input{
  transform: translateY(1px);
}

.planner-drawer .ms-footer,
.planner-sheet .ms-footer{
  margin-top:-4px;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.fc .fc-event.sc-mine{
  outline: 3px solid rgba(196,221,41,.65);
  outline-offset: -2px;
  border-radius: 8px;
}

.mine-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
  background: rgba(196,221,41,.95);
  border:1px solid rgba(196,221,41,.95);
}

.btn.filters-on{
  box-shadow: var(--ring);
}

.warning-card{
  border:1px solid rgba(245,158,11,.35);
  background:rgba(245,158,11,.08);
  border-radius:12px;
  padding:10px 12px;
}

.warning-card + .warning-card{
  margin-top:8px;
}

.warning-title{
  font-weight:800;
  color:#92400e;
  margin-bottom:4px;
}

.warning-body{
  color:#78350f;
  font-size:13px;
}

@media (max-width: 980px){
  .planner-toolbar-tools{
    margin-left:0;
    width:100%;
    justify-content:flex-start;
  }
}

@media (max-width: 760px){
  .planner-grid-two,
  .planner-grid-three{
    grid-template-columns:1fr;
  }

  .planner-badge-note{
    margin-left:0;
    width:100%;
  }

  .planner-sheet{
    right:8px;
    left:8px;
    width:auto;
  }

  .planner-drawer-panel{
    right:8px;
    left:8px;
    width:auto;
  }
}

/* =========================================================
   Reports
   ========================================================= */
.reports-wrap{
  max-width: 1460px;
}

.reports-toolbar{
  margin-bottom:14px;
}

.reports-toolbar-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.reports-title-wrap{
  display:grid;
  gap:6px;
}

.reports-title{
  font-size:22px;
  font-weight:950;
  letter-spacing:-0.01em;
}

.reports-toolbar-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.reports-main-panel{
  display:grid;
  gap:14px;
}

.reports-search-row{
  display:flex;
  align-items:center;
}

.reports-search-input{
  width:min(680px, 100%);
}

.reports-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.reports-tab,
.reports-drawer-tab,
.reports-viewer-tab{
  border:1px solid color-mix(in srgb, var(--nav-orange) 36%, var(--border));
  background:#fff;
  color:#5f3400;
  border-radius:999px;
  padding:9px 14px;
  font-weight:900;
  cursor:pointer;
}

.reports-tab.is-active,
.reports-drawer-tab.is-active,
.reports-viewer-tab.is-active{
  background:linear-gradient(
    90deg,
    color-mix(in srgb, var(--brand) 62%, #fff),
    color-mix(in srgb, var(--nav-orange) 52%, #fff)
  );
  border-color:color-mix(in srgb, var(--brand) 42%, var(--border));
  color:#1f2a12;
}

.reports-grid{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
}

.reports-row-list{
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}

.reports-row-head,
.reports-row-main{
  display:grid;
  grid-template-columns:minmax(360px,2fr) 170px 120px 140px 140px;
  gap:10px;
  align-items:center;
  padding:10px 12px;
}

.reports-row-head{
  background:linear-gradient(180deg, rgba(141,198,62,.06), rgba(245,158,11,.03));
  border-bottom:1px solid var(--border);
}

.reports-row-head .reports-row-col{
  font-size:12px;
  font-weight:900;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.02em;
}

.reports-row-item + .reports-row-item{
  border-top:1px solid var(--border);
}

.reports-row-main{
  background:#fff;
}

.reports-row-col-name{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.reports-row-title{
  font-size:17px;
  font-weight:900;
  color:var(--ink);
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.reports-preview-help{
  width:26px;
  height:26px;
  min-width:26px;
  min-height:26px;
  padding:0;
  line-height:1;
}

.reports-row-col-id,
.reports-row-main .reports-row-col-type{
  font-size:14px;
  font-weight:800;
  color:var(--ink);
}

.reports-row-col-visibility{
  display:flex;
  align-items:center;
}

.reports-row-main .reports-row-col-type{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
}

.reports-row-type-text{
  font-size:14px;
  font-weight:850;
  color:var(--ink);
}

.reports-vis-btn{
  border:1px solid var(--border);
  background:#fff;
  border-radius:999px;
  padding:4px 10px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
}

.reports-vis-btn .reports-vis-icon{
  font-size:13px;
  line-height:1;
}

.reports-vis-btn.is-private{
  border-color:#fca5a5;
  color:#991b1b;
  background:#fff5f5;
}

.reports-vis-btn.is-admins{
  border-color:#bfdbfe;
  color:#1d4ed8;
  background:#eff6ff;
}

.reports-vis-btn.is-managers{
  border-color:#d9edc0;
  color:#2f5f16;
  background:#f4fbec;
}

.reports-visibility-picker-sheet{
  width:min(560px, calc(100vw - 28px));
}

.reports-visibility-picker-body{
  padding:16px 20px 22px;
}

.reports-vis-picker-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:6px;
}

.reports-vis-option{
  border:1px solid var(--border);
  background:#fff;
  border-radius:999px;
  padding:9px 14px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:850;
  color:var(--ink);
  cursor:pointer;
}

.reports-vis-option:hover{
  border-color:var(--line-strong);
}

.reports-vis-option.is-active{
  border-color:#d9edc0;
  background:#f4fbec;
  color:#2f5f16;
}

.reports-vis-option-icon{
  font-size:14px;
  line-height:1;
}

.reports-row-col-action{
  display:flex;
  justify-content:flex-end;
}

.reports-row-preview{
  border-top:1px solid var(--border);
  background:rgba(15,23,42,.02);
  padding:12px;
  display:grid;
  gap:12px;
  grid-template-columns:minmax(220px,300px) 1fr;
  align-items:start;
}

.reports-row-preview-image-wrap{
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.reports-row-preview-image-btn{
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  width:100%;
  display:block;
  cursor:zoom-in;
}

.reports-row-preview-image{
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
}

.reports-row-preview-content{
  display:grid;
  gap:8px;
}

.reports-row-preview-title{
  font-size:16px;
  font-weight:900;
  color:var(--ink);
}

.reports-preview-more-btn{
  justify-self:start;
}

.reports-image-modal-sheet{
  width:min(1080px, calc(100vw - 24px));
}

.reports-image-modal-body{
  padding:12px;
  display:flex;
  justify-content:center;
  align-items:center;
}

.reports-image-modal-img{
  width:100%;
  max-height:calc(100vh - 160px);
  object-fit:contain;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
}

.reports-grid-store{
  margin-top:10px;
}

.reports-card{
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  padding:14px;
  display:grid;
  gap:10px;
}

.reports-card-store{
  border-style:dashed;
}

.reports-card-head{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}

.reports-card-head-title{
  margin:0;
  font-size:17px;
  font-weight:900;
  line-height:1.25;
}

.reports-card-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.reports-card-lines{
  display:grid;
  gap:7px;
}

.reports-line{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:10px;
  align-items:start;
}

.reports-line-label{
  font-size:12px;
  font-weight:850;
  color:var(--muted);
}

.reports-line-value{
  font-size:14px;
  font-weight:750;
  color:var(--ink);
  word-break:break-word;
}

.reports-pill{
  display:inline-flex;
  align-items:center;
  border:1px solid var(--border);
  border-radius:999px;
  padding:5px 10px;
  font-size:11px;
  font-weight:800;
  color:var(--muted);
  background:#fff;
}

.reports-card-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.reports-preview-wrap{
  border-top:1px solid var(--border);
  padding-top:10px;
  display:grid;
  gap:8px;
}

.reports-preview-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.reports-preview-pill{
  border:1px solid var(--border);
  border-radius:999px;
  padding:5px 10px;
  font-size:12px;
  font-weight:700;
  color:var(--ink);
  background:#fff;
}

.reports-star{
  width:36px;
  height:36px;
  min-width:36px;
  border-radius:12px;
  border:1px solid color-mix(in srgb, var(--nav-orange) 45%, var(--border));
  background:color-mix(in srgb, var(--nav-orange) 10%, #fff);
  color:#9a6000;
  font-size:18px;
  font-weight:900;
  cursor:pointer;
}

.reports-star:hover{
  background:color-mix(in srgb, var(--nav-orange) 18%, #fff);
}

.reports-empty{
  border:1px dashed var(--border);
  border-radius:14px;
  padding:14px;
  color:var(--muted);
  background:rgba(15,23,42,.01);
}

.reports-catalog{
  display:grid;
  gap:10px;
}

.reports-list-acc{
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}

.reports-list-acc > summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  cursor:pointer;
  background:rgba(15,23,42,.03);
}

.reports-list-acc > summary::-webkit-details-marker{
  display:none;
}

.reports-list-acc > summary .chev{
  color:var(--muted);
  transition:transform .15s ease;
}

.reports-list-acc[open] > summary .chev{
  transform:rotate(180deg);
}

.reports-acc-count{
  color:var(--muted);
  font-weight:700;
}

.reports-list-acc > .body{
  display:grid;
  gap:12px;
  padding:12px;
}

.reports-acc-more{
  display:flex;
  justify-content:flex-end;
}

.reports-store-heading{
  margin:2px 0 2px;
  font-weight:900;
  color:var(--ink);
}

.reports-drawer-panel{
  width:min(620px, calc(100vw - 24px));
}

.reports-default-filters-sheet{
  width:min(760px, calc(100vw - 24px));
}

.reports-drawer-tabs,
.reports-viewer-tabs{
  margin-top:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.reports-drawer-body{
  margin-top:14px;
  display:grid;
  gap:12px;
}

.reports-schedule-list{
  display:grid;
  gap:8px;
}

.reports-schedule-item{
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  padding:10px 12px;
}

.reports-schedule-title{
  font-weight:850;
  margin-bottom:4px;
}

.reports-emp-acc{
  margin-top:4px;
}

.reports-emp-acc > .body{
  padding:12px;
}

.reports-new-template-sheet{
  width:min(640px, calc(100vw - 24px));
}

.planner-actions-row-space{
  justify-content:space-between;
}

.reports-tpl-acc{
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}

.reports-tpl-acc + .reports-tpl-acc{
  margin-top:10px;
}

.reports-tpl-acc > summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  cursor:pointer;
  background:rgba(15,23,42,.03);
}

.reports-tpl-acc > summary::-webkit-details-marker{
  display:none;
}

.reports-tpl-acc > summary .chev{
  color:var(--muted);
  transition:transform .15s ease;
}

.reports-tpl-acc[open] > summary .chev{
  transform:rotate(180deg);
}

.reports-tpl-acc > .body{
  display:grid;
  gap:12px;
  padding:12px;
}

.reports-viewer-wrap{
  max-width: 1480px;
}

.reports-viewer-head{
  display:grid;
  gap:12px;
  margin-bottom:12px;
}

.reports-viewer-head-top{
  display:flex;
  gap:12px;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
}

.reports-viewer-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.reports-viewer-panel{
  display:grid;
  gap:12px;
}

.reports-viewer-filter-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:end;
}

.reports-table-wrap{
  border:1px solid var(--border);
  border-radius:14px;
  overflow:auto;
  background:#fff;
}

.reports-table{
  width:100%;
  border-collapse:collapse;
  min-width:900px;
}

.reports-table thead tr{
  background:rgba(15,23,42,.03);
}

.reports-table th,
.reports-table td{
  text-align:left;
  padding:10px 12px;
  border-top:1px solid var(--border);
  font-size:13px;
}

.reports-table thead th{
  border-top:0;
  color:var(--muted);
}

.reports-th-btn{
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  font:inherit;
  font-weight:900;
  color:inherit;
  cursor:pointer;
}

.reports-row{
  cursor:pointer;
}

.reports-row:hover{
  background:rgba(15,23,42,.03);
}

.reports-pagination{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.reports-chart-wrap{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  background:#fff;
  min-height:380px;
}

.reports-drilldown-panel{
  width:min(520px, calc(100vw - 24px));
}

.reports-drilldown-body{
  margin-top:12px;
  display:grid;
  gap:8px;
}

.reports-drilldown-item{
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
}

.reports-queued{
  margin-bottom:12px;
}

.reports-builder-wrap{
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  padding:12px;
}

.reports-builder-entities{
  margin-top:8px;
  border:1px solid var(--border);
  border-radius:12px;
  max-height:170px;
  overflow:auto;
  background:#fff;
  padding:6px;
  display:grid;
  gap:4px;
}

.reports-builder-entity-item{
  border:1px solid transparent;
  border-radius:10px;
  padding:8px;
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:auto auto;
  column-gap:8px;
  align-items:start;
}

.reports-builder-entity-item:hover{
  background:rgba(15,23,42,.03);
  border-color:var(--border);
}

.reports-builder-entity-item > input{
  margin-top:2px;
}

.reports-builder-entity-item > span{
  font-weight:700;
  color:var(--ink);
}

.reports-builder-entity-item > small{
  grid-column:2/3;
}

.reports-builder-fields{
  margin-top:8px;
  border:1px solid var(--border);
  border-radius:12px;
  max-height:220px;
  overflow:auto;
  background:#fff;
  padding:6px;
  display:grid;
  gap:4px;
}

.reports-builder-group + .reports-builder-group{
  margin-top:8px;
  padding-top:8px;
  border-top:1px dashed var(--border);
}

.reports-builder-group-title{
  font-weight:700;
  color:var(--ink);
  margin:2px 4px 6px;
}

.reports-builder-group-body{
  display:grid;
  gap:4px;
}

.reports-builder-field-item{
  border:1px solid transparent;
  border-radius:10px;
  padding:8px;
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:auto auto;
  column-gap:8px;
  align-items:start;
}

.reports-builder-field-item:hover{
  background:rgba(15,23,42,.03);
  border-color:var(--border);
}

.reports-builder-field-item > input{
  margin-top:2px;
}

.reports-builder-field-item > span{
  font-weight:700;
  color:var(--ink);
}

.reports-builder-field-item > small{
  grid-column:2/3;
}

@media (max-width: 780px){
  .reports-toolbar-actions,
  .reports-viewer-actions{
    width:100%;
  }

  .reports-toolbar-actions .btn,
  .reports-viewer-actions .btn{
    flex:1;
  }

  .reports-drawer-panel,
  .reports-drilldown-panel,
  .reports-new-template-sheet,
  .reports-default-filters-sheet{
    width:auto;
    right:8px;
    left:8px;
  }

  .reports-row-head{
    display:none;
  }

  .reports-row-main{
    grid-template-columns:1fr;
    gap:8px;
    padding:12px;
  }

  .reports-row-col-action{
    justify-content:flex-start;
  }

  .reports-row-main .reports-row-col-type{
    align-items:flex-start;
  }

  .reports-row-preview{
    grid-template-columns:1fr;
  }

  .reports-row-preview-image{
    height:160px;
  }

  .reports-line{
    grid-template-columns:1fr;
    gap:4px;
  }
}
