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

/* =========================================================
   Edu Connect Theme.css
   Single source of truth for design + layout
   ========================================================= */

/* ====== Design Tokens ====== */
:root{
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #1f2937;
  --muted: #667085;
  --border: #e6e8ee;

  --brand: #1f6fb2;
  --brand-strong: #17588f;
  --brand-ink: #ffffff;

  --action-green: #1f6fb2;
  --action-green-strong: #17588f;
  --action-ink: #ffffff;

  --accent-orange: #1f6fb2;
  --nav-orange: #1f6fb2;
  --nav-orange-strong: #17588f;

  --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(31,111,178,.25);

  --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;
}

[hidden]{
  display:none !important;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

*{ 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(31,111,178,.16), transparent 62%),
    radial-gradient(760px 520px at 18% 22%, rgba(31,111,178,.10), transparent 62%),
    radial-gradient(860px 560px at 92% 28%, rgba(31,111,178,.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[type="date"]{
  font-family:inherit;
}

.input::placeholder,
input::placeholder,
textarea::placeholder{
  color:#98a2b3;
  opacity:1;
  font-style:italic;
}

.syncro-loading-bar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:4px;
  z-index:99999;
  overflow:hidden;
  background:rgba(178,196,53,.14);
  opacity:0;
  transform:translateY(-5px);
  pointer-events:none;
  transition:opacity .16s ease, transform .16s ease;
}
.syncro-loading-bar.is-active{
  opacity:1;
  transform:translateY(0);
}
.syncro-loading-bar::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:42%;
  min-width:160px;
  border-radius:0 999px 999px 0;
  background:linear-gradient(90deg, var(--brand), var(--accent-orange), var(--brand-strong));
  box-shadow:0 0 18px rgba(31,111,178,.38);
  animation:syncro-loading-sweep 1.05s ease-in-out infinite;
}
@keyframes syncro-loading-sweep{
  0%{ transform:translateX(-110%); }
  55%{ transform:translateX(110vw); }
  100%{ transform:translateX(110vw); }
}
@media (prefers-reduced-motion: reduce){
  .syncro-loading-bar::before{
    animation:none;
    width:100%;
  }
}

.example-helper,
.helper-example{
  color:#98a2b3;
  filter:grayscale(1);
  font-style:italic;
}

.example-helper strong,
.helper-example strong,
.example-helper code,
.helper-example code{
  color:#667085;
  font-style:inherit;
}

.input:focus{
  border-color: rgba(31,111,178,.75);
  box-shadow: var(--ring);
}

input[type="checkbox"],
input[type="radio"]{
  accent-color: var(--action-green-strong);
}

/* 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: 10020;
}

.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: 10030;
}

.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(31,111,178,.75);
  box-shadow: 0 0 0 4px rgba(31,111,178,.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;
}

/* =========================================================
   Shared Unsaved Changes Modal
   ========================================================= */
.uc-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.35);
  opacity:0;
  pointer-events:none;
  transition:opacity .15s ease;
  z-index:11000;
}

.uc-modal{
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%,-48%) scale(.98);
  width:min(560px, 94vw);
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  opacity:0;
  pointer-events:none;
  transition:opacity .15s ease, transform .15s ease;
  z-index:11010;
  overflow:hidden;
}

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

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

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

.uc-title{
  font-weight:950;
  font-size:15px;
  display:flex;
  align-items:center;
  gap:10px;
}

.uc-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
  background:color-mix(in srgb,var(--brand) 10%, #fff);
  font-size:12px;
  font-weight:950;
  color:var(--ink);
}

.uc-body{
  padding:14px 16px;
}

.uc-msg{
  font-size:13px;
  color:var(--ink);
  line-height:1.35;
}

.uc-muted{
  margin-top:8px;
  font-size:12px;
  color:var(--muted);
}

.uc-actions{
  padding:14px 16px;
  border-top:1px solid var(--border);
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.uc-danger{
  background:rgba(220,38,38,.08) !important;
  border-color:rgba(220,38,38,.22) !important;
}

.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(31,111,178,.18), transparent 60%),
    radial-gradient(760px 520px at 85% 35%, rgba(31,111,178,.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(31,111,178,.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; }
}

/* =========================================================
   LOGIN PAGE REDESIGN
   ========================================================= */

.auth-shell--login{
  width:min(1160px, 100%);
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
  gap:24px;
  align-items:stretch;
}

.auth-shell--login .auth-left{
  position:relative;
  overflow:hidden;
  padding:28px 28px 24px;
  border-radius:28px;
  border:1px solid color-mix(in srgb, var(--brand-strong) 22%, var(--border));
  background:
    radial-gradient(620px 320px at 14% 14%, rgba(31,111,178,.22), transparent 62%),
    radial-gradient(520px 340px at 88% 18%, rgba(31,111,178,.16), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,252,.96));
  box-shadow:0 26px 60px rgba(15,23,42,.10);
}

.auth-shell--login .auth-left::after{
  content:"";
  position:absolute;
  right:-80px;
  bottom:-90px;
  width:280px;
  height:280px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(31,111,178,.18), transparent 68%);
  pointer-events:none;
}

.auth-showcase{
  position:relative;
  z-index:1;
  display:grid;
  gap:18px;
}

.auth-topline{
  display:grid;
  grid-template-columns:minmax(0, 1.15fr) auto;
  align-items:start;
  gap:14px;
}

.brandrow--login{
  align-items:flex-start;
  justify-content:flex-end;
  gap:0;
  margin-bottom:0;
}

.auth-brand-logo{
  display:block;
  width:min(188px, 40%);
  min-width:128px;
  max-width:188px;
  height:auto;
  object-fit:contain;
}

.auth-shell--login .auth-hero{
  margin:0;
  max-width:none;
  font-size:clamp(28px, 3.2vw, 40px);
  line-height:1.02;
}

.auth-shell--login .auth-hero span{
  display:block;
  white-space:nowrap;
}

.auth-shell--login .auth-sub{
  margin:0;
  max-width:54ch;
  font-size:14px;
  line-height:1.55;
  color:#5f6f84;
}

.auth-bullets--login{
  grid-template-columns:1fr;
  gap:10px;
}

.auth-bullets--login li{
  min-height:0;
  padding:15px 16px;
  border-radius:16px;
  border:1px solid color-mix(in srgb, var(--brand-strong) 16%, var(--border));
  background:rgba(255,255,255,.88);
  box-shadow:0 12px 24px rgba(15,23,42,.05);
  gap:14px;
  align-items:start;
}

.auth-bullets--login .tick{
  width:34px;
  height:34px;
  border-radius:12px;
  background:linear-gradient(135deg, color-mix(in srgb, var(--brand-strong) 72%, #fff), color-mix(in srgb, var(--accent-orange) 44%, #fff));
  border-color:color-mix(in srgb, var(--accent-orange) 28%, var(--brand-strong) 34%);
  box-shadow:0 10px 20px rgba(31,111,178,.18);
}

.auth-bullets--login .tick svg{
  width:18px;
  height:18px;
  stroke:currentColor;
  fill:none;
  stroke-width:2.4;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.auth-bullets--login .btitle{
  font-size:15px;
  line-height:1.2;
}

.auth-bullets--login .bdesc{
  margin-top:5px;
  font-size:14px;
  line-height:1.45;
  max-width:none;
}

.auth-info-card{
  height:100%;
  display:grid;
  gap:12px;
  align-content:start;
  padding:16px;
  border-radius:22px;
  border:1px solid color-mix(in srgb, var(--brand-strong) 18%, var(--border));
  background:rgba(255,255,255,.92);
  box-shadow:0 16px 32px rgba(15,23,42,.06);
}

.auth-panel-label{
  margin:0;
  font-size:11px;
  font-weight:950;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#708196;
}

.auth-panel-title{
  margin:0;
  font-size:22px;
  line-height:1.12;
  font-weight:950;
  letter-spacing:-.02em;
  color:#162238;
}

.auth-info-card--qr .auth-panel-title{
  text-align:center;
}

.auth-invite-sub{
  margin:2px 0 0 0;
  max-width:none;
}

.auth-invite-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}

.auth-invite-cell{
  display:grid;
  gap:4px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid color-mix(in srgb, var(--brand-strong) 16%, var(--border));
  background:#fff;
}

.auth-invite-cell span{
  font-size:11px;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#708196;
}

.auth-invite-cell strong{
  font-size:14px;
  line-height:1.35;
  color:#162238;
  word-break:break-word;
}

.auth-invite-banner{
  margin-bottom:18px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid color-mix(in srgb, var(--brand-strong) 18%, var(--border));
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.96));
  box-shadow:0 12px 24px rgba(15,23,42,.05);
}

.auth-invite-banner-title{
  font-size:15px;
  font-weight:950;
  letter-spacing:-.02em;
  color:#162238;
}

.auth-invite-banner-meta{
  margin-top:4px;
  font-size:13px;
  line-height:1.45;
  color:#5f6f84;
}

.auth-qr-single{
  display:grid;
  justify-items:center;
  gap:10px;
  padding:16px;
  border-radius:18px;
  border:1px solid color-mix(in srgb, var(--brand-strong) 18%, var(--border));
  background:#fff;
  text-decoration:none;
  color:inherit;
}

.auth-qr-single:hover{
  border-color:color-mix(in srgb, var(--accent-orange) 34%, var(--brand-strong) 28%);
  box-shadow:0 14px 28px rgba(15,23,42,.08);
}

.auth-qr-image{
  display:block;
  width:118px;
  height:118px;
  padding:8px;
  border-radius:18px;
  border:1px solid var(--border);
  background:#fff;
}

.auth-qr-image--single{
  width:162px;
  height:162px;
}

.auth-qr-single-copy{
  font-size:13px;
  line-height:1.45;
  color:#5f6f84;
  text-align:center;
}

.auth-shell--login .auth-right{
  align-items:stretch;
}

.auth-shell--login .auth-right .card{
  max-width:none;
  min-height:100%;
  display:flex;
  flex-direction:column;
}

.auth-login-card{
  position:relative;
  padding:24px;
  border-radius:28px;
  border:1px solid color-mix(in srgb, var(--brand-strong) 18%, var(--border));
  background:
    radial-gradient(440px 280px at 110% -10%, rgba(31,111,178,.14), transparent 55%),
    radial-gradient(380px 260px at -5% 0%, rgba(31,111,178,.10), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
  box-shadow:0 26px 60px rgba(15,23,42,.12);
}

.auth-login-topbar{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  margin-bottom:12px;
}

.auth-login-note{
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#7a8797;
}

.auth-shell--login .card__header{
  margin-bottom:8px;
}

.auth-shell--login .h1{
  font-size:30px;
  letter-spacing:-.03em;
}

.auth-shell--login .subtle{
  font-size:14px;
  color:#66768a;
}

.auth-shell--login .card__divider{
  margin:16px 0 18px;
}

.auth-shell--login .btn.block{
  margin-top:4px;
}

.auth-shell--login .form{
  display:flex;
  flex:1;
  flex-direction:column;
}

.auth-shell--login .smallprint{
  margin-top:16px;
}

.auth-login-footer{
  margin-top:auto;
  padding-top:16px;
  border-top:1px solid var(--border);
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.auth-login-powered{
  display:grid;
  gap:8px;
}

.auth-login-powered-label{
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#7a8797;
}

.auth-login-powered-link{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}

.auth-login-powered-logo{
  display:block;
  width:auto;
  height:30px;
  max-width:170px;
  object-fit:contain;
}

.auth-login-links{
  display:flex;
  align-items:center;
  gap:10px;
}

.auth-login-iconlink{
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  color:#365016;
  box-shadow:0 10px 22px rgba(15,23,42,.04);
  text-decoration:none;
}

.auth-login-iconlink:hover{
  border-color:color-mix(in srgb, var(--accent-orange) 30%, var(--brand-strong) 24%);
  background:color-mix(in srgb, var(--accent-orange) 8%, #fff);
}

.auth-login-iconlink svg{
  width:17px;
  height:17px;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* =========================================================
   APP DOWNLOAD PAGE
   ========================================================= */

.download-app-shell{
  width:min(520px, 100%);
  position:relative;
  z-index:1;
}

.download-app-card{
  padding:24px;
  border-radius:28px;
  border:1px solid color-mix(in srgb, var(--brand-strong) 18%, var(--border));
  background:
    radial-gradient(420px 260px at 110% -10%, rgba(31,111,178,.14), transparent 55%),
    radial-gradient(360px 220px at -5% 0%, rgba(31,111,178,.10), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
  box-shadow:0 26px 60px rgba(15,23,42,.12);
}

.download-app-badge{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  background:color-mix(in srgb, var(--brand) 18%, #fff);
  border:1px solid color-mix(in srgb, var(--brand-strong) 34%, var(--border));
  color:#314315;
  font-size:12px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.download-app-title{
  margin-top:16px;
}

.download-app-copy{
  margin:0 0 18px 0;
  color:#5f6f84;
  line-height:1.55;
}

.download-app-actions{
  display:grid;
  gap:10px;
}

.download-app-links{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--border);
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.download-app-link{
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px solid rgba(15,23,42,.15);
  font-weight:800;
}

.download-app-link:hover{
  border-bottom-color:rgba(15,23,42,.35);
}

@media (max-width: 1120px){
  .auth-shell--login{
    grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
  }

  .auth-bullets--login{
    grid-template-columns:1fr;
  }

}

@media (max-width: 980px){
  .auth-shell--login{
    grid-template-columns:1fr;
    gap:18px;
  }

  .auth-shell--login .auth-right{
    order:1;
  }

  .auth-shell--login .auth-left{
    display:block;
    order:2;
    padding:22px 20px;
  }

  .auth-shell--login .auth-hero{
    max-width:none;
    font-size:34px;
  }

  .auth-bullets--login{
    grid-template-columns:1fr;
  }
}

@media (max-width: 680px){
  .auth-shell--login .auth-left{
    padding:18px;
  }

  .auth-topline{
    grid-template-columns:1fr;
    gap:12px;
  }

  .brandrow--login{
    justify-content:flex-start;
  }

  .auth-brand-logo{
    width:min(240px, 70vw);
    min-width:0;
    max-width:none;
  }

  .auth-invite-grid{
    grid-template-columns:1fr;
  }

  .auth-login-footer{
    align-items:flex-start;
    flex-direction:column;
  }

  .auth-qr-image--single{
    width:140px;
    height:140px;
  }

  .auth-shell--login .auth-right .card{
    max-width:none;
  }
}

/* =========================================================
   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;
  z-index:5;
  overflow:hidden;
}

.sidebar-head{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  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;
}

.sidebar-collapse-btn{
  position:static;
  justify-self:end;
  width:34px;
  min-width:34px;
  height:34px;
  min-height:34px;
  padding:0;
  border:1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
  color:#42506a;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 12px 24px rgba(15,23,42,.12);
  transition:background .15s, border-color .15s, color .15s, box-shadow .15s, transform .08s;
  z-index:2;
}
.sidebar-collapse-btn:active{
  transform:translateY(1px);
}

.sidebar-collapse-btn svg{
  width:14px;
  height:16px;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:0 0 auto;
  transition:transform .16s ease;
}

.nav{
  margin-top:4px;
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:4px;
  scrollbar-gutter:stable;
}

.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;
}

.navbadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  padding:0 7px;
  border-radius:999px;
  background:linear-gradient(90deg, color-mix(in srgb, var(--brand-strong) 84%, #fff), color-mix(in srgb, var(--accent-orange) 72%, #fff));
  border:1px solid color-mix(in srgb, var(--accent-orange) 40%, var(--brand-strong) 32%);
  color:#1f2b0a;
  font-size:11px;
  font-weight:950;
  line-height:1;
  box-shadow:0 8px 18px rgba(31,111,178,.18);
  flex:0 0 auto;
}

.navlock{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:999px;
  border:1px solid rgba(100,116,139,.22);
  background:#fff;
  color:#64748b;
  flex:0 0 auto;
}

.navlock svg{
  width:13px;
  height:13px;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.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{
  color:#1f2b0a;
}

.nav a.nav-locked{
  color:#667085;
  background:linear-gradient(180deg, #fff, rgba(248,250,252,.9));
}

.nav a.nav-locked:hover{
  color:#1f2b0a;
  border-color:color-mix(in srgb, var(--brand) 24%, var(--border));
  background:linear-gradient(180deg, color-mix(in srgb, var(--brand) 9%, #fff), #fff);
}

.sidebar-collapse-btn:hover{
  background:linear-gradient(180deg, #fff, color-mix(in srgb, var(--brand) 8%, #fff));
  border-color:color-mix(in srgb, var(--accent-orange) 26%, var(--brand) 24%);
  box-shadow:0 16px 28px rgba(15,23,42,.14);
}
.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(31,111,178,.20);
}
.app.sidebar-collapsed .sidebar{
  padding:16px 10px;
}

.app.sidebar-collapsed .sidebar-head{
  grid-template-columns:1fr;
  justify-items:center;
  gap:8px;
}

.app.sidebar-collapsed .brandbox{
  align-items:center;
  padding:10px;
}

.app.sidebar-collapsed .brandlogo{
  max-width:42px;
  max-height:42px;
}

.app.sidebar-collapsed .sidebar-collapse-btn{
  justify-self:center;
}

.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{
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:0 0 auto;
  margin-top: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{
    display:none;
  }
  .sidebar{
    position:fixed;
    inset:0 auto 0 0;
    width:290px;
    transform:translateX(-110%);
    transition:transform .18s ease;
    z-index:50;
  }

  .sidebar-head{
    grid-template-columns:1fr;
  }

  .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(31,111,178,.95); }
.kpi-card.warn .kpi-state .dot{ background: rgba(31,111,178,.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(31,111,178,.95);
}

.feed-chip.warn .dot{ background: rgba(31,111,178,.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(31,111,178,.28); background: rgba(31,111,178,.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(31,111,178,.28); background: rgba(31,111,178,.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(31,111,178,.95); }
.emp-pill.break .dot{ background: rgba(31,111,178,.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-config-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  align-items:start;
}

.holiday-ui .holiday-field{
  min-width:0;
}

.holiday-ui .holiday-current-group-card{
  min-height:44px;
  height:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 9px 8px 14px;
  line-height:1.25;
}

.holiday-ui .holiday-current-group-name{
  font-weight:400;
  color:var(--ink);
}

.holiday-ui .holiday-current-group-edit{
  flex:0 0 auto;
  width:32px;
  height:32px;
  min-width:32px;
  border-radius:10px;
  background:transparent;
  box-shadow:none;
}

.holiday-ui .holiday-current-group-edit svg{
  width:15px;
  height:15px;
}

.holiday-ui .holiday-group-change-panel,
.holiday-ui .holiday-long-service-card{
  margin-top:14px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:#fff;
}

.holiday-ui .holiday-group-change-panel{
  display:grid;
  gap:12px;
  background:linear-gradient(120deg, #fff, color-mix(in srgb, var(--brand) 5%, #fff));
}

.holiday-ui .holiday-group-change-panel.is-inactive{
  background:#fafafa;
}

.holiday-ui .holiday-group-change-panel.is-inactive .holiday-group-change-copy,
.holiday-ui .holiday-group-change-panel.is-inactive .holiday-group-change-fields{
  opacity:.72;
}

.holiday-ui .holiday-group-change-fields{
  display:grid;
  grid-template-columns:minmax(190px, 1fr) minmax(160px, .8fr);
  gap:12px;
  align-items:start;
}

.holiday-ui .holiday-field-wide{
  grid-column:1 / -1;
}

.holiday-ui .holiday-panel-title{
  font-weight:950;
  color:var(--ink);
}

.holiday-ui .holiday-long-service-card{
  display:grid;
  gap:10px;
}

.holiday-ui .holiday-check-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
}

.holiday-ui .holiday-actions-row{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:14px;
}

.holiday-group-wizard{
  width:min(760px, calc(100vw - 28px));
  max-height:calc(100vh - 32px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.holiday-group-wizard .lk-body{
  min-height:0;
  overflow:auto;
  display:grid;
  gap:14px;
  padding-bottom:16px;
}

.holiday-group-wizard .lk-actions{
  position:sticky;
  bottom:0;
  z-index:2;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin:0 -16px -16px;
  padding:12px 16px;
  border-top:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.94), var(--panel));
}

.holiday-wizard-steps{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.holiday-wizard-steps span{
  padding:7px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}

.holiday-wizard-steps span.is-active{
  border-color:color-mix(in srgb, var(--brand) 55%, var(--border));
  background:color-mix(in srgb, var(--brand) 22%, #fff);
  color:var(--ink);
}

.holiday-wizard-body{
  display:grid;
  gap:14px;
}

.holiday-wizard-choice-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.holiday-wizard-choice{
  min-height:132px;
  padding:16px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:#fff;
  text-align:left;
  color:var(--ink);
  cursor:pointer;
}

.holiday-wizard-choice strong,
.holiday-wizard-choice span{
  display:block;
}

.holiday-wizard-choice strong{
  font-size:16px;
  font-weight:950;
}

.holiday-wizard-choice span{
  margin-top:8px;
  color:var(--muted);
  line-height:1.45;
}

.holiday-wizard-choice:hover,
.holiday-wizard-choice.is-selected{
  border-color:color-mix(in srgb, var(--brand) 58%, var(--border));
  background:linear-gradient(120deg, color-mix(in srgb, var(--brand) 16%, #fff), #fff);
}

.holiday-wizard-current{
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:#fafafa;
}

.holiday-wizard-current em{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-style:normal;
}

.holiday-wizard-current span,
.holiday-wizard-summary-grid span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}

.holiday-wizard-current strong,
.holiday-wizard-summary-grid strong{
  display:block;
  margin-top:4px;
  color:var(--ink);
  font-weight:950;
}

.holiday-wizard-summary-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.holiday-wizard-summary-grid > div{
  min-width:0;
  padding:12px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:#fff;
}

.holiday-wizard-impact{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.holiday-wizard-impact > div{
  min-width:0;
  padding:14px;
  border:1px solid color-mix(in srgb, var(--brand) 45%, var(--border));
  border-radius:var(--radius-sm);
  background:linear-gradient(120deg, color-mix(in srgb, var(--brand) 13%, #fff), #fff);
}

.holiday-wizard-impact span,
.holiday-wizard-summary-list span,
.holiday-wizard-carry span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}

.holiday-wizard-impact strong{
  display:block;
  margin-top:5px;
  font-size:20px;
  line-height:1.15;
  color:var(--ink);
}

.holiday-wizard-summary-list{
  display:grid;
  gap:0;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:#fff;
  overflow:hidden;
}

.holiday-wizard-summary-list > div{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:12px;
  align-items:center;
  min-height:44px;
  padding:10px 12px;
  border-bottom:1px solid var(--border);
}

.holiday-wizard-summary-list > div:last-child{
  border-bottom:0;
}

.holiday-wizard-summary-list strong{
  color:var(--ink);
  font-weight:850;
  text-align:right;
}

.holiday-wizard-carry{
  display:grid;
  gap:7px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:#fff;
}

.holiday-wizard-carry > div{
  display:flex;
  align-items:center;
  gap:8px;
}

.holiday-wizard-carry .input{
  max-width:180px;
}

.holiday-wizard-carry em{
  color:var(--muted);
  font-style:normal;
  font-weight:850;
}

.holiday-wizard-calculation{
  display:grid;
  gap:6px;
  padding:12px;
  border:1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
  border-radius:var(--radius-sm);
  background:linear-gradient(120deg, color-mix(in srgb, var(--brand) 7%, #fff), #fff);
}

.holiday-wizard-calculation span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}

.holiday-wizard-calculation strong{
  color:var(--ink);
  font-weight:850;
  line-height:1.4;
}

.holiday-wizard-note-box{
  padding:11px 12px;
  border:1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  border-radius:var(--radius-sm);
  background:color-mix(in srgb, var(--brand) 8%, #fff);
  color:var(--muted);
  line-height:1.45;
}

.holiday-wizard-note{
  display:grid;
  gap:6px;
}

.holiday-settings-link-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:12px;
  padding:12px 14px;
  border-radius:var(--radius-sm);
  border:1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
  background:linear-gradient(120deg, color-mix(in srgb, var(--brand) 10%, #fff), #fff);
}

.holiday-settings-link-title{
  font-size:14px;
  font-weight:950;
  color:var(--ink);
}

/* =========================================================
   HOLIDAY SETUP (Company settings)
   ========================================================= */

.company-settings-page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.company-settings-form{
  margin-top:16px;
}

.company-settings-tabs-card{
  padding:22px;
}

.company-settings-tabs{
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  padding:4px;
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 30px rgba(15, 23, 42, 0.05);
}

.company-settings-tab{
  min-width:150px;
  min-height:42px;
  padding:0 14px;
  border:1px solid transparent;
  border-radius:14px;
  background:transparent;
  box-shadow:none;
  color:#5f3400;
  font:inherit;
  font-size:14px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
  cursor:pointer;
}

.company-settings-tab:hover{
  background:color-mix(in srgb, var(--nav-orange) 12%, #fff);
  border-color:color-mix(in srgb, var(--nav-orange) 24%, var(--border));
  color:#5f3400;
}

.company-settings-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;
  box-shadow:0 10px 22px rgba(31,111,178, 0.18);
}

.company-settings-tab:focus-visible{
  outline:none;
  box-shadow:var(--ring);
}

.company-settings-tab-panel{
  display:grid;
  gap:12px;
  margin-top:12px;
}

.company-settings-tab-panel[hidden]{
  display:none !important;
}

.company-settings-card{
  display:grid;
  gap:14px;
}

.company-settings-card + .company-settings-card{
  margin-top:0;
}

.company-settings-section-intro{
  padding:14px 16px;
  border:1px solid rgba(14,116,144,.16);
  border-radius:18px;
  background:linear-gradient(135deg, rgba(255,249,235,.95), rgba(236,253,245,.9));
}

.company-settings-section-intro .card-title{
  margin-bottom:5px;
}

.company-settings-section-intro .muted{
  line-height:1.45;
}

.company-settings-field-block{
  margin-top:0;
}

.company-settings-field-grid{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
}

/* A setting that governs the whole card sits on its own row above the rest. */
.company-settings-field-grid__full{
  grid-column:1 / -1;
}

.company-settings-toggle{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  cursor:pointer;
}

.company-settings-toggle input{
  width:16px;
  height:16px;
  cursor:pointer;
}

.company-settings-footer-actions{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.bank-holiday-settings-card{
  display:grid;
  gap:16px;
}

.long-service-awards-grid{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(auto-fit, minmax(320px, 1fr));
  margin-top:12px;
}

.long-service-award-panel{
  min-width:0;
  padding:12px;
  border:1px solid color-mix(in srgb, var(--border) 84%, #fff);
  border-radius:18px;
  background:linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  box-shadow:0 8px 24px rgba(15,23,42,.04);
}

.long-service-award-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.long-service-rule-head{
  display:grid;
  grid-template-columns:minmax(110px, 140px) minmax(120px, 1fr) 42px;
  gap:8px;
  margin-top:14px;
  margin-bottom:6px;
  color:#64748b;
  font-size:11px;
  font-weight:950;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.long-service-rule-list{
  display:grid;
  gap:8px;
}

.long-service-rule-row{
  display:grid;
  grid-template-columns:minmax(110px, 140px) minmax(120px, 1fr) auto;
  gap:8px;
  align-items:center;
}

.long-service-rule-row .input{
  min-height:38px;
}

.long-service-empty{
  padding:12px;
  border:1px dashed color-mix(in srgb, var(--border) 82%, #94a3b8);
  border-radius:14px;
  background:#fff;
  color:#64748b;
  font-size:13px;
  font-weight:800;
}

@media (max-width: 640px){
  .long-service-awards-grid{
    grid-template-columns:1fr;
  }

  .long-service-rule-head{
    grid-template-columns:1fr 1fr 42px;
  }

  .long-service-rule-row{
    grid-template-columns:1fr 1fr auto;
  }
}

.bank-holiday-settings-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.bank-holiday-settings-head.company-settings-section-intro{
  align-items:flex-start;
}

.bank-holiday-code{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid color-mix(in srgb, #0ea5e9 28%, var(--border));
  background:color-mix(in srgb, #0ea5e9 9%, #fff);
  color:#075985;
  font-size:12px;
  font-weight:900;
}

.bank-holiday-action-panel,
.bank-holiday-toggle{
  border:1px solid color-mix(in srgb, var(--border) 84%, #fff);
  background:linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  border-radius:18px;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
}

.bank-holiday-action-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px;
}

.bank-holiday-eyebrow{
  margin-bottom:4px;
  color:#64748b;
  font-size:11px;
  font-weight:950;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.bank-holiday-panel-title{
  display:block;
  color:var(--ink);
  font-size:14px;
  font-weight:950;
  line-height:1.25;
}

.bank-holiday-help{
  display:block;
  margin-top:5px;
  max-width:720px;
  font-size:13px;
  line-height:1.4;
}

.bank-holiday-action-btn{
  flex:0 0 auto;
  min-width:168px;
  white-space:nowrap;
}

.bank-holiday-settings-grid,
.bank-holiday-field-grid{
  display:grid;
  gap:12px;
}

.bank-holiday-settings-grid{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.bank-holiday-field-grid{
  grid-template-columns:repeat(2, minmax(0, 1fr));
  padding-top:2px;
}

.bank-holiday-toggle{
  display:flex;
  gap:10px;
  align-items:flex-start;
  min-height:92px;
  padding:14px 16px;
  cursor:pointer;
}

.bank-holiday-toggle input{
  flex:0 0 auto;
  margin-top:3px;
}

.bank-holiday-field{
  min-width:0;
}

.year-end-card{
  display:grid;
  gap:16px;
}

.year-end-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.year-end-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid color-mix(in srgb, var(--nav-orange) 34%, var(--border));
  background:color-mix(in srgb, var(--nav-orange) 12%, #fff);
  color:var(--ink);
  font-weight:900;
  white-space:nowrap;
}

.year-end-action-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px;
  border:1px solid color-mix(in srgb, var(--nav-green) 28%, var(--border));
  border-radius:18px;
  background:linear-gradient(135deg, rgba(255,251,235,.88), rgba(236,253,245,.82));
}

.year-end-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.year-end-status{
  margin:0;
}

.year-end-preview{
  border:1px dashed color-mix(in srgb, var(--nav-orange) 38%, var(--border));
  border-radius:16px;
  padding:14px;
  background:rgba(255,255,255,.68);
}

.year-end-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

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

.year-end-table{
  width:100%;
  border-collapse:collapse;
  min-width:860px;
}

.year-end-table th,
.year-end-table td{
  padding:12px 14px;
  border-bottom:1px solid var(--border);
  text-align:left;
  vertical-align:middle;
}

.year-end-table th{
  font-size:12px;
  color:var(--muted);
  background:linear-gradient(180deg, #f8fafc, #f3f6fa);
  cursor:default;
  white-space:nowrap;
}

.year-end-table th[data-year-end-sort]{
  cursor:pointer;
}

.year-end-table tbody tr:last-child td{
  border-bottom:0;
}

.year-end-amount{
  font-weight:950;
}

.year-end-amount.neg{
  color:#991b1b;
}

.year-end-row-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  flex-wrap:wrap;
}

.year-end-note{
  min-width:180px;
  max-width:220px;
}

@media (max-width: 820px){
  .company-settings-tabs{
    display:grid;
    grid-template-columns:1fr;
  }

  .company-settings-tab{
    width:100%;
    min-width:0;
  }

  .company-settings-footer-actions{
    justify-content:flex-start;
  }

  .bank-holiday-settings-head,
  .bank-holiday-action-panel,
  .year-end-head,
  .year-end-action-panel,
  .year-end-toolbar{
    align-items:stretch;
    flex-direction:column;
  }

  .bank-holiday-code{
    align-self:flex-start;
  }

  .bank-holiday-action-btn{
    width:100%;
  }

  .bank-holiday-settings-grid,
  .bank-holiday-field-grid{
    grid-template-columns:1fr;
  }
}

.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-config-grid,
  .holiday-ui .holiday-group-change-fields,
  .holiday-wizard-choice-grid,
  .holiday-wizard-summary-grid,
  .holiday-wizard-impact{
    grid-template-columns:1fr;
  }

  .holiday-wizard-summary-list > div{
    grid-template-columns:1fr;
  }

  .holiday-wizard-summary-list strong{
    text-align:left;
  }

  .holiday-ui .holiday-current-group-card{
    align-items:stretch;
    flex-direction:column;
  }

  .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; }

.topbar-action-btn{
  position:relative;
  width:42px;
  height:42px;
  min-width:42px;
  border-radius:16px;
  border:1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  background:#fff;
  color:#536175;
  cursor:pointer;
  display:grid;
  place-items:center;
  text-decoration:none;
  box-shadow:0 8px 20px rgba(15,23,42,.08);
  transition:transform .12s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.topbar-action-btn:hover{
  transform:translateY(-1px);
  color:var(--ink);
  border-color:color-mix(in srgb, var(--accent-orange) 32%, var(--brand) 26%);
  background:linear-gradient(
    135deg,
    #fff,
    color-mix(in srgb, var(--brand) 10%, #fff),
    color-mix(in srgb, var(--accent-orange) 10%, #fff)
  );
  box-shadow:0 12px 24px rgba(31,111,178,.14);
}

.topbar-action-btn svg{
  width:20px;
  height:20px;
  display:block;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.topbar-support-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:21px;
  height:21px;
  padding:0 6px;
  border-radius:999px;
  border:1px solid color-mix(in srgb, var(--accent-orange) 40%, var(--brand-strong) 32%);
  background:linear-gradient(
    90deg,
    color-mix(in srgb, var(--brand-strong) 84%, #fff),
    color-mix(in srgb, var(--accent-orange) 72%, #fff)
  );
  color:#1f2b0a;
  font-size:11px;
  font-weight:950;
  line-height:1;
  box-shadow:0 8px 18px rgba(31,111,178,.18);
}

.topbar-support-badge[hidden]{
  display:none !important;
}

.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); }

.carry-forward-reminder{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:1200;
  width:min(720px, calc(100vw - 32px));
  max-height:min(620px, calc(100vh - 44px));
  overflow:auto;
  padding:16px;
  border:1px solid color-mix(in srgb, var(--nav-orange) 35%, var(--border));
  border-radius:18px;
  background:rgba(255,255,255,.98);
  box-shadow:0 24px 70px rgba(15,23,42,.22);
}

.carry-forward-reminder__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.carry-forward-reminder__title{
  font-weight:950;
  color:var(--ink);
}

.carry-forward-reminder__sub{
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
}

.carry-forward-reminder__list{
  display:grid;
  gap:10px;
}

.carry-forward-reminder__row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:linear-gradient(180deg, #fff, #fbfcff);
}

.carry-forward-reminder__meta{
  color:var(--muted);
  font-size:12px;
  margin-top:4px;
}

.carry-forward-reminder__actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.support-desk{
  display:grid;
  gap:16px;
}

.support-desk-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.support-desk-shell{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}

.support-desk-list-panel,
.support-thread-panel{
  border:1px solid var(--border);
  border-radius:16px;
  background:rgba(255,255,255,.96);
  box-shadow:0 18px 54px rgba(15,23,42,.07);
}

.support-desk-list-panel{
  padding:14px;
}

.support-desk-filters{
  display:grid;
  grid-template-columns:minmax(280px, 1fr) auto;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.support-search-field{
  width:100%;
  box-shadow:none;
}

.support-status-filter-group{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:4px;
  width:240px;
  padding:3px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  box-shadow:inset 0 0 0 1px rgba(148,163,184,.06);
}

.support-status-filter-button{
  appearance:none;
  min-height:38px;
  border:1px solid transparent;
  border-radius:999px;
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:13px;
  font-weight:950;
  cursor:pointer;
  outline:none;
  transition:background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.support-status-filter-button:hover{
  background:#fff;
  border-color:color-mix(in srgb, var(--nav-orange) 24%, var(--border));
}

.support-status-filter-button:focus-visible{
  outline:3px solid rgba(215,231,76,.55);
  outline-offset:2px;
}

.support-status-filter-button.is-active{
  border-color:rgba(132,204,22,.48);
  background:linear-gradient(180deg, rgba(247,252,232,.98), #fff);
  box-shadow:0 6px 18px rgba(132,204,22,.14);
}

.support-ticket-list{
  display:grid;
  gap:10px;
}

.support-ticket-list-head,
.support-conversation-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.support-panel-kicker{
  color:var(--muted);
  font-size:11px;
  font-weight:950;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.support-panel-title{
  margin-top:2px;
  color:var(--ink);
  font-weight:800;
}

.support-ticket-card-list{
  display:grid;
  gap:8px;
}

.support-ticket-card{
  appearance:none;
  display:grid;
  grid-template-columns:72px minmax(300px, 1fr) minmax(190px, auto) minmax(210px, .42fr);
  column-gap:26px;
  row-gap:8px;
  align-items:center;
  width:100%;
  min-height:64px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  text-align:left;
  cursor:pointer;
  outline:none;
  transition:background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.support-ticket-card:hover,
.support-ticket-card:focus-visible{
  border-color:color-mix(in srgb, var(--nav-orange) 34%, var(--border));
  box-shadow:0 10px 28px rgba(15,23,42,.07);
  transform:translateY(-1px);
}

.support-ticket-card.is-active{
  border-color:rgba(31,111,178,.36);
  background:linear-gradient(135deg, rgba(255,251,235,.86), #fff);
}

.support-ticket-detail-slot{
  display:block;
  margin:0 0 10px;
}

.support-ticket-detail-slot .support-thread-panel{
  margin:0;
  box-shadow:0 16px 42px rgba(15,23,42,.08);
}

.support-ticket-card__id{
  font-weight:850;
}

.support-ticket-card__main,
.support-ticket-card__meta{
  display:grid;
  gap:3px;
  min-width:0;
}

.support-ticket-card__title,
.support-ticket-card__main small,
.support-ticket-card__meta time,
.support-ticket-card__meta small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.support-ticket-card__title{
  font-weight:800;
}

.support-ticket-card__main small,
.support-ticket-card__meta small{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.support-ticket-card__meta time{
  font-size:13px;
  font-weight:750;
}

.support-ticket-card__status{
  display:flex;
  justify-content:flex-start;
}

.support-list-empty{
  display:grid;
  place-items:center;
  min-height:126px;
  border:1px dashed var(--border);
  border-radius:14px;
  background:linear-gradient(180deg, #fff, #fbfcff);
  color:var(--muted);
  font-weight:850;
}

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

.support-ticket-table{
  width:100%;
  min-width:840px;
  border-collapse:collapse;
}

.support-ticket-table th,
.support-ticket-table td{
  padding:13px 14px;
  border-bottom:1px solid var(--border);
  text-align:left;
  vertical-align:middle;
}

.support-ticket-table th{
  color:var(--muted);
  font-size:12px;
  font-weight:950;
  background:linear-gradient(180deg, #f8fafc, #f3f6fa);
}

.support-ticket-table tbody tr{
  cursor:pointer;
}

.support-ticket-table tbody tr:hover,
.support-ticket-table tbody tr.is-active{
  background:linear-gradient(135deg, rgba(255,251,235,.92), rgba(255,255,255,.98));
}

.support-ticket-table tbody tr.is-active td{
  border-bottom-color:color-mix(in srgb, var(--nav-orange) 38%, var(--border));
}

.support-pager{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  padding:12px 4px 0;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}

.support-pager .btn[disabled]{
  opacity:.45;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.support-thread-id,
.support-message__meta{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.support-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:5px 9px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-size:12px;
  font-weight:850;
  white-space:nowrap;
}

.support-status.open{
  border-color:rgba(34,197,94,.28);
  background:rgba(34,197,94,.08);
  color:#166534;
}

.support-status.waiting-support{
  border-color:rgba(31,111,178,.32);
  background:rgba(31,111,178,.1);
  color:#92400e;
}

.support-status.needs-client{
  border-color:rgba(59,130,246,.32);
  background:rgba(59,130,246,.1);
  color:#1d4ed8;
}

.support-status.escalated{
  border-color:rgba(168,85,247,.32);
  background:rgba(168,85,247,.1);
  color:#7e22ce;
}

.support-status.on-hold{
  border-color:rgba(100,116,139,.28);
  background:rgba(100,116,139,.1);
  color:#475569;
}

.support-status.closed{
  color:#64748b;
}

.support-thread-panel{
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:220px;
}

.support-empty-state{
  margin:0;
  text-align:center;
  padding:56px 24px;
}

.support-thread-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  border-bottom:1px solid var(--border);
}

.support-thread-title{
  margin-top:4px;
  color:var(--ink);
  font-size:22px;
  font-weight:950;
}

.support-thread-body{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 300px;
  gap:16px;
  padding:16px 18px 18px;
}

.support-thread-main{
  min-width:0;
  display:grid;
  gap:14px;
}

.support-message-list{
  flex:1 1 auto;
  display:grid;
  align-content:start;
  gap:10px;
  padding:0;
}

.support-message{
  display:grid;
  grid-template-columns:40px minmax(0, 1fr);
  gap:10px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
}

.support-message.client{
  background:linear-gradient(135deg, rgba(236,253,245,.58), #fff);
  border-color:rgba(34,197,94,.22);
}

.support-message.support{
  background:linear-gradient(135deg, rgba(255,251,235,.58), #fff);
  border-color:rgba(31,111,178,.22);
}

.support-message-avatar{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:color-mix(in srgb, var(--nav-orange) 14%, #fff);
  border:1px solid color-mix(in srgb, var(--nav-orange) 24%, var(--border));
  color:var(--ink);
  font-weight:950;
  overflow:hidden;
  flex:none;
}

.support-message-avatar img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.support-message-avatar span{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
}

.support-message-avatar--syncro{
  background:#fff;
}

.support-message-avatar--syncro img{
  object-fit:contain;
  padding:5px;
}

.support-message__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:5px;
}

.support-message__meta > div{
  display:flex;
  align-items:baseline;
  gap:8px;
  min-width:0;
  flex-wrap:wrap;
}

.support-message__meta span,
.support-message__meta time{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.support-message__meta strong{
  color:var(--ink);
}

.support-message__body{
  color:var(--ink);
  line-height:1.5;
  overflow-wrap:anywhere;
}

.support-attachments{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.support-attachments__label{
  flex:0 0 100%;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.support-attachment{
  display:inline-flex;
  align-items:center;
  gap:7px;
  max-width:100%;
  min-height:34px;
  padding:7px 10px;
  border:1px solid color-mix(in srgb, var(--nav-orange) 34%, var(--border));
  border-radius:12px;
  background:linear-gradient(180deg, #fff, #fffaf0);
  color:var(--ink);
  font-size:12px;
  font-weight:900;
  text-decoration:none;
  overflow-wrap:anywhere;
}

.support-attachment:hover,
.support-attachment:focus-visible{
  border-color:color-mix(in srgb, var(--nav-orange) 68%, var(--border));
  box-shadow:0 8px 20px rgba(31,111,178,.14);
}

.support-attachment.is-removed{
  border-color:var(--border);
  background:#f8fafc;
  color:var(--muted);
}

.support-reply-form{
  padding:14px;
  border:1px solid color-mix(in srgb, var(--nav-green) 28%, var(--border));
  border-radius:14px;
  background:linear-gradient(135deg, rgba(255,251,235,.64), rgba(236,253,245,.66));
}

.support-attachment-picker{
  display:grid;
  gap:4px;
  padding:12px 14px;
  margin-top:10px;
  border:1px dashed color-mix(in srgb, var(--nav-green) 42%, var(--border));
  border-radius:14px;
  background:linear-gradient(135deg, rgba(236,253,245,.48), rgba(255,251,235,.42));
  color:var(--ink);
  cursor:pointer;
}

.support-attachment-picker span{
  font-weight:950;
}

.support-attachment-picker small{
  color:var(--muted);
  font-size:12px;
  font-weight:750;
}

.support-attachment-picker input{
  margin-top:6px;
  color:var(--muted);
  font:inherit;
}

.support-textarea{
  min-height:110px;
  resize:vertical;
}

.support-closed-notice{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;
  border:1px solid rgba(100,116,139,.18);
  border-radius:14px;
  background:linear-gradient(180deg, #fff, #fbfcff);
}

.support-closed-notice > div{
  display:grid;
  gap:2px;
}

.support-closed-notice span{
  color:var(--muted);
  font-size:13px;
  font-weight:750;
}

.support-thread-actions,
.support-modal__actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:12px;
}

.support-form-status{
  min-height:20px;
  margin-top:8px;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}

.support-form-status.is-error{
  color:#b91c1c;
}

.support-form-status.is-success{
  color:#166534;
}

.support-help-text{
  margin-top:8px;
  min-height:18px;
}

.support-details-panel{
  align-self:start;
  padding:14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:linear-gradient(180deg, #fff, #fbfcff);
}

.support-details-list{
  display:grid;
  gap:10px;
  margin:14px 0 0;
}

.support-details-list div{
  padding-bottom:10px;
  border-bottom:1px solid var(--border);
}

.support-details-list div:last-child{
  border-bottom:0;
  padding-bottom:0;
}

.support-details-list dt{
  color:var(--muted);
  font-size:12px;
  font-weight:950;
}

.support-details-list dd{
  margin:3px 0 0;
  color:var(--ink);
  font-weight:850;
  overflow-wrap:anywhere;
}

.support-share-panel{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--border);
}

.support-share-list{
  display:grid;
  gap:8px;
  margin:12px 0;
}

.support-share-person{
  display:grid;
  gap:2px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
}

.support-share-person strong{
  color:var(--ink);
  font-size:13px;
  font-weight:900;
}

.support-share-person small{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  overflow-wrap:anywhere;
}

.support-share-form{
  display:grid;
  gap:8px;
}

.support-conversation-head{
  padding:12px 14px;
  border:1px solid color-mix(in srgb, var(--nav-green) 22%, var(--border));
  border-radius:14px;
  background:linear-gradient(135deg, rgba(247,252,232,.66), rgba(236,253,245,.58));
}

.support-thread-panel{
  overflow:hidden;
}

.support-thread-head{
  align-items:center;
  padding:14px 18px;
  background:linear-gradient(135deg, rgba(255,251,235,.45), rgba(236,253,245,.4));
}

.support-thread-title{
  margin-top:1px;
  font-size:21px;
}

.support-thread-body{
  grid-template-columns:minmax(0, 1fr) 280px;
  align-items:start;
  gap:14px;
  padding:14px;
}

.support-thread-main{
  gap:12px;
}

.support-message-list{
  gap:8px;
}

.support-message{
  grid-template-columns:34px minmax(0, 1fr);
  gap:9px;
  padding:10px;
  border-color:color-mix(in srgb, var(--border) 86%, #fff);
}

.support-message.client{
  background:linear-gradient(135deg, rgba(236,253,245,.72), #fff);
}

.support-message.support{
  background:linear-gradient(135deg, rgba(255,251,235,.78), #fff);
  border-color:rgba(31,111,178,.24);
}

.support-message-avatar{
  width:34px;
  height:34px;
  border-radius:10px;
}

.support-message__meta{
  margin-bottom:3px;
}

.support-message__meta span,
.support-message__meta time{
  font-size:11px;
}

.support-message__body{
  line-height:1.42;
}

.support-reply-form{
  padding:12px;
}

.support-textarea{
  min-height:92px;
}

.support-details-panel{
  display:grid;
  gap:12px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}

.support-details-panel > .card-title,
.support-share-panel{
  margin:0;
  padding:12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:linear-gradient(180deg, #fff, #fbfcff);
}

.support-details-panel > .card-title + .support-details-list{
  margin-top:-12px;
  padding:0 12px 12px;
  border:1px solid var(--border);
  border-top:0;
  border-radius:0 0 14px 14px;
  background:linear-gradient(180deg, #fff, #fbfcff);
}

.support-details-list{
  gap:0;
  margin:0;
}

.support-details-list div{
  padding:8px 0;
}

.support-details-list dt{
  font-size:11px;
  letter-spacing:.03em;
  text-transform:uppercase;
}

.support-share-panel{
  display:grid;
  gap:10px;
}

.support-share-list{
  gap:8px;
  margin:0;
}

.support-share-person{
  padding:9px 10px;
}

.support-share-form{
  padding-top:4px;
}

.support-modal[hidden]{
  display:none;
}

.support-modal{
  position:fixed;
  inset:0;
  z-index:1600;
}

.support-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.42);
}

.support-modal__panel{
  position:relative;
  width:min(720px, calc(100vw - 34px));
  margin:8vh auto;
  padding:18px;
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  box-shadow:0 28px 90px rgba(15,23,42,.28);
}

.support-modal__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.support-attachment-viewer[hidden]{
  display:none;
}

.support-attachment-viewer{
  position:fixed;
  inset:0;
  z-index:2600;
  display:grid;
  place-items:center;
  padding:24px;
}

.support-attachment-viewer__backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.62);
  backdrop-filter:blur(2px);
}

.support-attachment-viewer__panel{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-rows:auto minmax(0, 1fr);
  width:min(1100px, calc(100vw - 48px));
  max-height:calc(100vh - 48px);
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  box-shadow:0 28px 90px rgba(15,23,42,.3);
}

.support-attachment-viewer__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  border-bottom:1px solid var(--border);
  background:linear-gradient(135deg, rgba(255,251,235,.84), rgba(236,253,245,.78));
}

.support-attachment-viewer__actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.support-attachment-viewer__body{
  display:grid;
  place-items:center;
  min-height:0;
  overflow:auto;
  padding:16px;
  background:#f8fafc;
}

.support-attachment-viewer__body img{
  max-width:100%;
  max-height:calc(100vh - 170px);
  height:auto;
  border-radius:12px;
  background:#fff;
  object-fit:contain;
  box-shadow:0 16px 44px rgba(15,23,42,.16);
}

body.support-attachment-viewer-open{
  overflow:hidden;
}

.support-modal-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.support-field{
  display:grid;
  gap:6px;
  margin-bottom:12px;
}

@media (max-width: 900px){
  .support-desk-head,
  .support-thread-head,
  .support-modal__head,
  .support-attachment-viewer__head{
    flex-direction:column;
    align-items:stretch;
  }

  .support-desk-shell{
    grid-template-columns:1fr;
  }

  .support-desk-filters{
    grid-template-columns:1fr;
  }

  .support-status-filter-group{
    width:100%;
  }

  .support-thread-body{
    grid-template-columns:1fr;
  }

  .support-modal-grid{
    grid-template-columns:1fr;
  }

  .support-ticket-card{
    grid-template-columns:52px minmax(0, 1fr);
  }

  .support-ticket-card__status,
  .support-ticket-card__meta{
    grid-column:2;
  }

  .support-ticket-card__status{
    justify-content:flex-start;
  }
}

.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;
}

.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(31,111,178,.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(31,111,178,.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 */
.shell-actions-dock{
  display:none !important;
}

.topbar-search{
  position:relative;
}

.topbar-search-btn{
  width:46px;
  height:46px;
  min-width:46px;
  border-radius:16px;
  border:1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  background:#fff;
  color:#556071;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(15,23,42,.08);
  transition:transform .12s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.topbar-search-btn:hover{
  transform:translateY(-1px);
  color:var(--ink);
  border-color:color-mix(in srgb, var(--accent-orange) 32%, var(--brand) 26%);
  background:linear-gradient(135deg, #fff, color-mix(in srgb, var(--brand) 10%, #fff), color-mix(in srgb, var(--accent-orange) 10%, #fff));
  box-shadow:0 14px 26px rgba(15,23,42,.12);
}

.topbar-search-btn svg{
  width:18px;
  height:18px;
  display:block;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.topbar-search-pop{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:min(440px, calc(100vw - 36px));
  padding:14px;
  border-radius:20px;
  border:1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.96));
  box-shadow:0 20px 40px rgba(15,23,42,.18);
  backdrop-filter:saturate(120%) blur(8px);
  display:none;
  z-index:78;
}

.topbar-search-pop.open{
  display:block;
}

.topbar-search-head{
  margin-bottom:12px;
}

.topbar-search-title{
  font-size:14px;
  font-weight:950;
  letter-spacing:-.01em;
  color:var(--ink);
}

.topbar-search-sub{
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
}

.topbar-search-field{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:50px;
  padding:0 14px;
  border-radius:16px;
  border:1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}

.topbar-search-field:focus-within{
  border-color:rgba(31,111,178,.75);
  box-shadow:var(--ring);
}

.topbar-search-field-icon{
  color:#6b7280;
  display:grid;
  place-items:center;
}

.topbar-search-field-icon svg{
  width:18px;
  height:18px;
  display:block;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.topbar-search-field input{
  width:100%;
  border:0;
  outline:none;
  background:transparent;
  color:var(--ink);
  font:inherit;
}

.topbar-search-field input::placeholder{
  color:#98a2b3;
}

.topbar-search-hint{
  margin-top:8px;
  font-size:11px;
  color:var(--muted);
}

.topbar-search-results{
  display:grid;
  gap:8px;
  margin-top:12px;
  max-height:340px;
  overflow:auto;
}

.topbar-search-result{
  display:block;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid color-mix(in srgb, var(--brand) 16%, var(--border));
  background:linear-gradient(180deg, color-mix(in srgb, var(--brand) 8%, #fff), #fff);
  text-decoration:none;
  transition:transform .08s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.topbar-search-result:hover{
  transform:translateY(-1px);
  border-color:color-mix(in srgb, var(--accent-orange) 24%, var(--brand) 24%);
  box-shadow:0 12px 22px rgba(15,23,42,.08);
}

.topbar-search-result__meta{
  display:block;
  font-size:10px;
  font-weight:950;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#b45309;
}

.topbar-search-result__label{
  display:block;
  margin-top:4px;
  font-size:14px;
  font-weight:950;
  color:var(--ink);
  letter-spacing:-.01em;
}

.topbar-search-result__desc{
  display:block;
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
}

.topbar-search-empty{
  padding:14px;
  border-radius:16px;
  border:1px dashed color-mix(in srgb, var(--brand) 24%, var(--border));
  background:rgba(255,255,255,.9);
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.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(31,111,178,.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{
    position:relative !important;
    top:auto !important;
    min-height:58px !important;
    justify-content:space-between !important;
    padding:4px 0 8px !important;
  }

  .topbar-left{
    display:flex !important;
    min-height:42px !important;
  }

  .topbar-right{
    display:flex !important;
    margin-left:auto;
    justify-content:flex-end !important;
  }

  .topbar-search-pop{
    width:min(420px, calc(100vw - 24px));
    right:0;
  }

  .user-menu{
    padding:2px;
  }
}

@media (min-width:981px){
  .app-topbar{
    position:relative !important;
    top:auto !important;
    min-height:58px;
    margin-bottom:8px !important;
    padding:0 !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
  }

  .topbar-right{
    display:flex !important;
    margin-left:auto;
    justify-content:flex-end !important;
  }
}

/* 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;
}

.employee-app-download-card{
  padding:12px;
  margin-top:10px;
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:14px;
  align-items:center;
}

.employee-app-download-copy{
  display:grid;
  gap:6px;
}

.employee-app-download-kicker{
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#b45309;
}

.employee-app-download-title{
  font-size:15px;
  font-weight:950;
  color:var(--ink);
}

.employee-app-download-link{
  width:max-content;
  margin-top:4px;
  font-size:12px;
  font-weight:900;
  color:#92400e;
  text-decoration:none;
}

.employee-app-download-link:hover{
  text-decoration:underline;
}

.employee-app-download-qr{
  display:grid;
  place-items:center;
  width:126px;
  height:126px;
  border-radius:18px;
  border:1px solid color-mix(in srgb, var(--brand-strong) 18%, var(--border));
  background:#fff;
  box-shadow:0 12px 24px rgba(15,23,42,.06);
}

.employee-app-download-qr:hover{
  border-color:color-mix(in srgb, var(--accent-orange) 34%, var(--brand-strong) 28%);
  box-shadow:0 14px 28px rgba(15,23,42,.08);
}

.employee-app-download-qr img{
  display:block;
  width:108px;
  height:108px;
}

@media (max-width: 520px){
  .employee-app-download-card{
    grid-template-columns:1fr;
  }

  .employee-app-download-qr{
    justify-self:start;
  }
}

/* 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:1460px;
}

.planner-toolbar{
  position:relative;
  margin-bottom:14px;
  padding:18px 20px 14px;
  overflow:hidden;
  background:
    radial-gradient(circle at top right, rgba(255,198,90,.16), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,0.99), rgba(247,248,251,0.98));
  border:1px solid color-mix(in srgb, var(--border) 72%, #fff);
  box-shadow:0 14px 28px rgba(15,23,42,.07);
}

.planner-toolbar::before{
  display:none;
}

.planner-toolbar::after{
  content:"";
  position:absolute;
  inset:auto auto -120px -80px;
  width:260px;
  height:260px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(31,111,178,.12), transparent 68%);
  pointer-events:none;
}

.planner-page-head{
  margin:0 0 8px;
  max-width:360px;
}

.planner-page-head .page-title{
  font-size:16px;
  line-height:1.15;
}

.planner-page-head .page-sub{
  margin-top:4px;
  font-size:13px;
  line-height:1.45;
}

.planner-toolbar-row{
  margin:0;
  display:flex;
  align-items:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.planner-toolbar-row .planner-scope{
  flex:0 0 auto;
}

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

.planner-toolbar-utility{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  padding:6px;
  border-radius:16px;
  border:1px solid color-mix(in srgb, var(--border) 76%, #fff);
  background:linear-gradient(135deg, rgba(248,250,252,.92), rgba(255,255,255,.96));
  box-shadow:0 10px 20px rgba(15,23,42,.045);
}

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

.planner-month-picker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:40px;
  padding:0 13px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.6);
}

.planner-month-picker .input{
  border:0;
  background:transparent;
  padding:0;
  min-width:150px;
  font-weight:800;
  color:var(--ink);
  box-shadow:none;
}

.planner-month-picker .input:focus{
  outline:none;
  box-shadow:none;
}

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

.planner-subtitle{
  max-width:none;
}

.planner-scope{
  display:inline-flex;
  border:1px solid var(--border);
  background:rgba(255,255,255,.92);
  border-radius:999px;
  overflow:hidden;
  box-shadow:0 10px 20px rgba(15,23,42,.06);
}

.planner-scope-btn{
  border:0;
  background:transparent;
  min-height:34px;
  padding:7px 14px;
  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-tool-btn{
  position:relative;
}

.planner-toolbar .icon-only{
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.planner-tool-badge{
  position:absolute;
  right:-5px;
  top:-5px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  border:2px solid #fff;
  background:linear-gradient(135deg, var(--brand-strong), var(--accent-orange));
  color:#1f2a12;
  font-size:10px;
  font-weight:950;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 20px rgba(31,111,178,.28);
}

.planner-tool-btn:disabled{
  opacity:.48;
  cursor:not-allowed;
}

.planner-active-filters{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
}

.planner-filter-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  color:var(--ink);
  font-size:13px;
  font-weight:800;
  box-shadow:var(--shadow-xs);
}

.planner-filter-chip-label{
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:11px;
  font-weight:900;
}

.planner-summary-btn{
  box-shadow:none;
  min-height:40px;
  border-radius:14px;
  border:1px solid color-mix(in srgb, var(--nav-orange) 28%, var(--border));
  background:linear-gradient(90deg, rgba(255,255,255,0.96), rgba(255,243,218,0.94));
  font-weight:900;
  padding:8px 15px;
}

.planner-summary-btn:hover{
  background:linear-gradient(90deg, rgba(255,255,255,0.98), rgba(255,235,202,0.95));
}

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

.planner-weekend-toggle-main{
  min-height:40px;
  padding:0 13px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.6);
  font-weight:800;
  accent-color:var(--brand-strong);
}

.planner-weekend-toggle-main:has(input:not(:checked)){
  border-style:dashed;
  border-color:color-mix(in srgb, var(--border) 82%, #fff);
  background:linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.98));
  color:#64748b;
}

.planner-weekend-toggle-main:has(input:checked){
  border-color:color-mix(in srgb, var(--brand) 30%, var(--border));
  background:linear-gradient(90deg, rgba(244,251,227,.96), rgba(255,255,255,.98));
  color:var(--ink);
}

.planner-weekend-toggle-main input{
  margin:0;
}

.planner-calendar-panel{
  border:1px solid color-mix(in srgb, var(--border) 78%, #fff);
  border-radius:24px;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,0.99), rgba(250,251,253,0.98));
  box-shadow:0 14px 28px rgba(15,23,42,.06);
}

.planner-calendar-panel .fc .fc-toolbar.fc-header-toolbar{
  margin-bottom:14px;
  padding:0 2px;
  gap:10px;
}

.planner-calendar-panel .fc .fc-toolbar-chunk{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.planner-calendar-panel .fc .fc-toolbar-title{
  font-size:16px;
  font-weight:950;
  letter-spacing:-0.02em;
}

.planner-calendar-panel .fc .fc-button{
  min-height:40px;
  border-radius:13px;
  border:1px solid color-mix(in srgb, var(--border) 74%, #fff);
  background:#fff;
  color:var(--ink);
  box-shadow:0 6px 14px rgba(15,23,42,.035);
  font-weight:850;
  text-transform:capitalize;
  padding:8px 13px;
}

.planner-calendar-panel .fc .fc-button:hover{
  background:rgba(248,250,252,.96);
  border-color:color-mix(in srgb, var(--nav-orange) 28%, var(--border));
  color:var(--ink);
}

.planner-calendar-panel .fc .fc-button-primary:not(:disabled).fc-button-active,
.planner-calendar-panel .fc .fc-button-primary:not(:disabled):active{
  background:linear-gradient(
    90deg,
    color-mix(in srgb, var(--brand) 56%, #fff),
    color-mix(in srgb, var(--accent-orange) 44%, #fff)
  );
  border-color:color-mix(in srgb, var(--brand) 34%, var(--border));
  color:#233011;
}

.planner-calendar-panel .fc .fc-button-primary:disabled{
  background:linear-gradient(180deg, rgba(248,250,252,.96), rgba(243,246,250,.96));
  border-color:color-mix(in srgb, var(--border) 72%, #fff);
  color:rgba(71,85,105,.72);
  opacity:1;
  box-shadow:none;
}

.planner-calendar-panel .fc .fc-scrollgrid,
.planner-calendar-panel .fc .fc-view-harness,
.planner-calendar-panel .fc .fc-daygrid-day-frame{
  background:transparent;
}

.planner-calendar-panel .fc-theme-standard td,
.planner-calendar-panel .fc-theme-standard th{
  border-color:rgba(148,163,184,.18);
}

.planner-calendar-panel .fc .fc-scrollgrid{
  border-color:color-mix(in srgb, var(--border) 78%, #fff);
  border-radius:20px;
  overflow:hidden;
}

.planner-calendar-panel .fc .fc-col-header-cell-cushion,
.planner-calendar-panel .fc .fc-daygrid-day-number{
  color:var(--ink);
  font-weight:800;
}

.planner-calendar-panel .fc .fc-col-header-cell{
  background:linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.98));
}

.planner-calendar-panel .fc .fc-col-header-cell-cushion{
  padding:12px 0;
  font-size:12px;
  letter-spacing:.03em;
}

.planner-calendar-panel .fc .fc-daygrid-day{
  transition:background .16s ease;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,251,253,.92));
}

.planner-calendar-panel .fc .fc-daygrid-day:hover{
  background:linear-gradient(180deg, rgba(250,251,253,.96), rgba(245,247,250,.94));
}

.planner-calendar-panel .fc .fc-daygrid-day.fc-day-today{
  background:linear-gradient(180deg, rgba(255,243,190,.26), rgba(255,255,255,.94));
}

.planner-calendar-panel .fc .fc-day-other{
  background:linear-gradient(180deg, rgba(248,250,252,.82), rgba(245,247,250,.86));
}

.planner-calendar-panel .fc .fc-day-sat,
.planner-calendar-panel .fc .fc-day-sun{
  background:linear-gradient(180deg, rgba(255,248,224,.28), rgba(255,255,255,.95));
}

.planner-calendar-panel .fc .fc-daygrid-day-top{
  padding:8px 10px 0;
}

.planner-calendar-panel .fc .fc-daygrid-day-number{
  font-size:13px;
}

.planner-calendar-panel .fc .fc-daygrid-event-harness{
  margin:3px 5px 0;
  min-height:24px;
  overflow:visible;
}

.planner-calendar-panel .fc .fc-h-event,
.planner-calendar-panel .fc .fc-daygrid-event{
  border:0;
  border-radius:12px;
  display:block;
  min-height:22px;
  overflow:hidden;
  box-shadow:
    0 6px 14px rgba(15,23,42,.10),
    inset 0 0 0 1px rgba(255,255,255,.18);
}

.planner-calendar-panel .fc .fc-daygrid-event .fc-event-main{
  min-width:0;
}

.planner-calendar-panel .fc .fc-daygrid-event .fc-event-main-frame{
  position:relative;
  display:flex;
  align-items:center;
  min-width:0;
  min-height:22px;
  padding:3px 8px 3px 18px;
}

.planner-calendar-panel .fc .fc-daygrid-event .fc-event-main-frame::before{
  content:"";
  position:absolute;
  left:8px;
  top:50%;
  width:6px;
  height:6px;
  border-radius:50%;
  transform:translateY(-50%);
  background:rgba(255,255,255,.9);
  box-shadow:0 0 0 2px rgba(255,255,255,.16);
}

.planner-calendar-panel .fc .fc-daygrid-event .fc-event-title{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  font-weight:800;
  line-height:1.35;
  letter-spacing:-0.01em;
}

.planner-calendar-panel .fc .fc-daygrid-event.sc-event-continued .fc-event-main-frame{
  padding-left:8px;
  opacity:.96;
}

.planner-calendar-panel .fc .fc-daygrid-event.sc-event-continued .fc-event-main-frame::before{
  display:none;
}

.planner-calendar-panel .fc .fc-daygrid-more-link{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(15,23,42,.06);
  color:var(--ink);
  font-size:11px;
  font-weight:900;
}

.planner-key-panel{
  margin-top:12px;
  background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
}

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

.planner-badge{
  display:inline-flex;
  gap:6px;
  align-items:center;
  border:1px solid color-mix(in srgb, var(--border) 78%, #fff);
  background:#fff;
  padding:5px 10px;
  border-radius:999px;
  font-size:11px;
  color:var(--ink);
  box-shadow:var(--shadow-xs);
}

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

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

.planner-dot{
  width:8px;
  height:8px;
  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="BH"]{ background:#0ea5e9; border-color:#0ea5e9; }
.planner-dot[data-g="SICK"]{ background:#ef4444; border-color:#ef4444; }
.planner-dot[data-g="ABS"]{ background:#facc15; border-color:#facc15; }
.planner-dot[data-g="TRN"]{ background:#3b82f6; border-color:#3b82f6; }
.planner-dot[data-g="OTH"]{ background:#64748b; border-color:#64748b; }
.planner-dot[data-g="PENDING"]{ background:#fb923c; border-color:#fb923c; }

.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-toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
}

.planner-summary-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.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;
  font-weight:400;
}

.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;
}

.planner-drawer .fms{
  position:relative;
  z-index:1;
}

.planner-drawer .fms.open{
  z-index:120;
}

.planner-drawer .fms-toggle{
  width:100%;
  min-height:42px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  color:var(--ink);
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
}

.planner-drawer .fms-toggle:hover{
  border-color:color-mix(in srgb, var(--brand) 34%, var(--border));
}

.planner-drawer .fms.open .fms-toggle{
  border-color:color-mix(in srgb, var(--brand) 42%, var(--border));
  box-shadow:0 0 0 3px rgba(31,111,178,.14);
}

.planner-drawer .fms-value{
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:left;
}

.planner-drawer .fms-caret{
  width:10px;
  height:10px;
  display:inline-block;
  flex:0 0 auto;
  border-right:2px solid var(--muted);
  border-bottom:2px solid var(--muted);
  transform:rotate(45deg) translateY(-1px);
  transition:transform .12s ease, border-color .12s ease;
}

.planner-drawer .fms.open .fms-caret{
  transform:rotate(225deg) translateY(1px);
  border-color:var(--ink);
}

.planner-drawer .fmulti{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 6px);
  z-index:140;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  padding:8px;
  max-height:280px;
  overflow-x:hidden;
  overflow-y:auto;
  box-shadow:var(--shadow-sm);
  display:none;
}

.planner-drawer .fms.open .fmulti{
  display:block;
}

.planner-drawer .fcheck{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px;
  border-radius:10px;
  font-size:14px;
  color:var(--ink);
  cursor:pointer;
  user-select:none;
}

.planner-drawer .fcheck:hover{
  background:rgba(15,23,42,.04);
}

.planner-drawer .fcheck input{
  width:16px;
  height:16px;
  accent-color:var(--brand-strong);
}

.ms-empty{
  padding:10px 12px;
  color:var(--muted);
  font-size:12px;
}

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

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

.warning-card{
  border:1px solid rgba(31,111,178,.35);
  background:rgba(31,111,178,.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;
    order:2;
    width:100%;
  }

  .planner-toolbar-utility,
  .planner-toolbar-actions{
    width:100%;
  }
}

@media (max-width: 760px){
  .planner-toolbar-tools,
  .planner-toolbar-row .planner-scope{
    width:100%;
    justify-content:flex-start;
  }

  .planner-toolbar-utility{
    justify-content:flex-start;
  }

  .planner-toolbar-actions{
    justify-content:flex-start;
  }

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

  .planner-summary-actions{
    justify-content:flex-start;
  }

  .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{
  width:100%;
  max-width:none;
  display:grid;
  gap:18px;
}

.wrap-fluid:has(> .reports-wrap){
  width:100% !important;
  max-width:none !important;
  padding-left:18px !important;
  padding-right:18px !important;
}

.reports-toolbar{
  margin-bottom:0;
  padding:0 4px 8px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

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

.reports-title-wrap{
  display:grid;
  gap:8px;
  max-width:760px;
}

.reports-title{
  font-size:30px;
  font-weight:950;
  letter-spacing:0;
  line-height:1.08;
}

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

.reports-history-trigger svg{
  width:18px;
  height:18px;
  display:block;
}

.reports-create-trigger svg{
  width:18px;
  height:18px;
  display:block;
}

.btn.more-btn.reports-history-trigger{
  width:48px !important;
  height:48px !important;
  min-width:48px !important;
  padding:0 !important;
  border-radius:10px !important;
  background:rgba(255,255,255,.98) !important;
  border:1px solid var(--border) !important;
  color:var(--ink) !important;
  box-shadow:0 10px 20px rgba(15,23,42,.05) !important;
}

.btn.more-btn.reports-share-history-trigger{
  position:relative;
  width:auto !important;
  min-width:0 !important;
  padding:0 16px !important;
  gap:8px;
  justify-content:center;
  white-space:nowrap;
}

.reports-share-history-trigger > span:not(.reports-share-history-badge){
  font-weight:900;
  line-height:1;
}

.reports-share-history-badge{
  position:absolute;
  top:-8px;
  right:-8px;
  min-width:22px;
  height:22px;
  padding:0 6px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#ef4444;
  color:#fff;
  border:2px solid #fff;
  font-size:11px;
  font-weight:900;
  line-height:1;
  box-shadow:0 10px 18px rgba(239,68,68,.26);
}

.reports-share-history-badge[hidden]{
  display:none !important;
}

.btn.more-btn.reports-share-history-trigger.has-report-alerts{
  border-color:rgba(239,68,68,.34) !important;
  box-shadow:0 12px 24px rgba(239,68,68,.10) !important;
}

.btn.more-btn.reports-history-trigger:hover,
.btn.more-btn.reports-history-trigger:focus-visible{
  background:#fff !important;
  border-color:color-mix(in srgb, var(--brand-strong) 34%, var(--border)) !important;
  color:#2f5f16 !important;
  box-shadow:0 12px 24px rgba(15,23,42,.08) !important;
}

.reports-toolbar-actions .reports-history-trigger{
  flex:0 0 auto;
}

.reports-toolbar-actions .reports-create-trigger{
  flex:0 0 auto;
  min-height:48px;
  border-radius:10px;
  padding:0 18px;
  gap:8px;
  background:linear-gradient(135deg, #54b12f, #7ccf31);
  color:#fff;
  border-color:color-mix(in srgb, var(--brand-strong) 70%, #fff);
  box-shadow:0 14px 26px rgba(70,158,37,.22);
}

.reports-main-panel{
  display:grid;
  gap:18px;
  align-content:start;
}

.reports-recent-panel{
  display:grid;
  gap:12px;
  margin-bottom:14px;
}

.reports-dashboards-panel{
  display:grid;
  gap:12px;
  margin-bottom:14px;
}

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

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

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

.reports-dashboard-card{
  border:1px solid var(--border);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,252,.96));
  padding:16px;
  display:grid;
  gap:12px;
}

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

.reports-dashboard-title{
  font-size:18px;
  font-weight:900;
  color:var(--ink);
  line-height:1.2;
}

.reports-dashboard-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}

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

.reports-dashboard-widget-list{
  display:grid;
  gap:10px;
}

.reports-dashboard-widget{
  border:1px solid color-mix(in srgb, var(--border) 80%, #fff);
  border-radius:14px;
  background:#fff;
  padding:12px;
  display:grid;
  gap:10px;
}

.reports-dashboard-widget-main{
  display:grid;
  gap:6px;
}

.reports-dashboard-widget-title{
  font-size:15px;
  font-weight:850;
  color:var(--ink);
}

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

.reports-dashboard-widget-pill{
  display:inline-flex;
  align-items:center;
  border:1px solid var(--border);
  border-radius:999px;
  padding:4px 10px;
  background:rgba(15,23,42,.03);
  color:var(--muted);
  font-size:11px;
  font-weight:850;
}

.reports-dashboard-widget-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.reports-dashboard-wrap{
  display:grid;
  gap:14px;
}

.reports-dashboard-board-head{
  display:grid;
  gap:14px;
}

.reports-dashboard-board-grid{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(auto-fit, minmax(340px, 1fr));
}

.reports-dashboard-board-widget{
  display:grid;
  gap:14px;
  min-height:220px;
}

.reports-dashboard-board-widget.is-wide{
  grid-column:span 2;
}

.reports-dashboard-board-widget-head{
  display:grid;
  gap:12px;
}

.reports-dashboard-board-widget-title{
  font-size:18px;
  font-weight:900;
  color:var(--ink);
  line-height:1.2;
}

.reports-dashboard-board-widget-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}

.reports-dashboard-board-widget-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.reports-dashboard-board-widget-body{
  display:grid;
  gap:10px;
  align-content:start;
}

.reports-dashboard-board-widget-note{
  font-size:13px;
  color:var(--muted);
}

.reports-dashboard-widget-summary{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(120px, 1fr));
  gap:8px;
}

.reports-dashboard-widget-summary-card{
  border:1px solid color-mix(in srgb, var(--border) 88%, #fff);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,252,.92));
  padding:10px 12px;
  display:grid;
  gap:4px;
}

.reports-dashboard-widget-summary-value{
  font-size:18px;
  font-weight:900;
  color:var(--ink);
  line-height:1.1;
}

.reports-dashboard-widget-summary-label{
  font-size:12px;
  color:var(--muted);
}

.reports-dashboard-widget-filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.reports-dashboard-widget-chart-panel{
  border:1px solid color-mix(in srgb, var(--border) 88%, #fff);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,252,.94));
  padding:12px;
  display:grid;
  gap:10px;
}

.reports-dashboard-widget-chart-meta{
  font-size:12px;
  font-weight:800;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.04em;
}

.reports-dashboard-widget-chart-canvas-wrap{
  position:relative;
  min-height:180px;
}

.reports-dashboard-widget-chart-canvas-wrap canvas{
  width:100% !important;
  height:180px !important;
}

.reports-dashboard-board-empty{
  min-height:220px;
  display:grid;
  gap:10px;
  align-content:center;
  justify-items:start;
}

.reports-dashboard-board-empty-title{
  font-size:20px;
  font-weight:900;
  color:var(--ink);
}

@media (max-width: 1100px){
  .reports-dashboard-board-widget.is-wide{
    grid-column:span 1;
  }
}

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

.reports-recent-card{
  border:1px solid var(--border);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,252,.95));
  padding:14px;
  display:grid;
  gap:10px;
}

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

.reports-recent-title{
  margin:0;
  font-size:16px;
  font-weight:900;
  line-height:1.2;
}

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

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

.reports-recent-pill.is-completed{
  border-color:#d9edc0;
  color:#2f5f16;
  background:#f4fbec;
}

.reports-recent-pill.is-pending{
  border-color:#fde68a;
  color:#92400e;
  background:#fff9db;
}

.reports-recent-pill.is-failed{
  border-color:#fecaca;
  color:#991b1b;
  background:#fff5f5;
}

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

.reports-recent-line{
  display:grid;
  gap:4px;
}

.reports-recent-line-label{
  font-size:11px;
  font-weight:850;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.02em;
}

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

.reports-recent-actions{
  display:flex;
  justify-content:flex-end;
}

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

.reports-search-input{
  width:min(680px, 100%);
  min-height:54px;
  border-radius:18px;
}

.reports-reset-shell{
  display:grid;
  gap:18px;
}

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

.reports-reset-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.reports-reset-card{
  display:grid;
  gap:12px;
  padding:22px;
  border:1px solid var(--border);
  border-radius:22px;
  background:#fff;
  box-shadow:0 18px 40px rgba(15,23,42,.05);
}

.reports-reset-card-title{
  font-size:1.3rem;
  font-weight:700;
  color:var(--text);
}

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

.reports-reset-list span{
  display:block;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(255,255,255,.82);
  color:var(--text);
  font-weight:600;
}

.reports-workspace{
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:14px;
  align-items:start;
}

.reports-library-panel{
  min-height:0;
  padding:0;
  gap:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  box-shadow:0 16px 36px rgba(15,23,42,.06);
}

.reports-library-panel .reports-search-input{
  width:100%;
  border:0;
  min-height:48px;
  padding-left:0;
  box-shadow:none;
  background:transparent;
}

.reports-library-controls{
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:14px;
  padding:18px 18px 10px;
  align-items:center;
}

.reports-search-shell{
  min-width:0;
  min-height:50px;
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  padding:0 14px;
  color:var(--muted);
}

.reports-search-shell svg{
  width:20px;
  height:20px;
  flex:0 0 auto;
}

.reports-filter-panel{
  display:flex;
  gap:14px;
  align-items:end;
  flex-wrap:wrap;
  padding:10px 18px 16px;
  border-bottom:1px solid var(--border);
}

.reports-filter-panel.is-collapsed{
  display:none;
}

.reports-filter-field{
  display:grid;
  gap:6px;
  flex:0 0 180px;
  width:180px;
  min-width:180px;
}

.reports-filter-field:nth-child(3){
  flex-basis:220px;
  width:220px;
  min-width:220px;
}

.reports-filter-field span{
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}

.reports-filter-field .input{
  min-height:50px;
  border-radius:10px;
}

.reports-filter-actions-inline{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  align-items:center;
  flex:0 0 auto;
  margin-left:auto;
}

.reports-filter-actions-inline .btn{
  min-height:50px;
  border-radius:10px;
  min-width:96px;
}

.reports-quick-panel{
  display:grid;
  gap:12px;
  align-content:start;
}

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

.reports-quick-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.reports-quick-tab{
  border:1px solid color-mix(in srgb, var(--nav-orange) 36%, var(--border));
  background:#fff;
  border-radius:999px;
  padding:8px 14px;
  font-size:13px;
  font-weight:850;
  color:var(--muted);
  cursor:pointer;
  transition:.18s ease;
}

.reports-quick-tab.is-active{
  background:linear-gradient(135deg, rgba(31,111,178,.9), rgba(253,224,71,.9));
  border-color:color-mix(in srgb, var(--nav-green) 38%, var(--nav-orange) 24%);
  color:var(--ink);
  box-shadow:0 12px 24px rgba(31,111,178,.16);
}

.reports-quick-pane{
  display:none;
}

.reports-quick-pane.is-active{
  display:block;
}

.reports-quick-list{
  display:grid;
  gap:12px;
}

.reports-quick-item{
  border:1px solid color-mix(in srgb, var(--border) 88%, var(--nav-green));
  border-radius:14px;
  background:linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,252,244,.94));
  padding:16px;
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:16px;
  align-items:center;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}

.reports-quick-main{
  display:grid;
  gap:8px;
}

.reports-quick-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}

.reports-quick-title-wrap{
  display:grid;
  gap:6px;
  min-width:0;
}

.reports-quick-title{
  margin:0;
  font-size:16px;
  font-weight:900;
  line-height:1.2;
  color:var(--ink);
}

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

.reports-quick-note{
  font-size:13px;
  color:var(--muted);
  line-height:1.45;
}

/* Tracker #189. A schedule that is not being delivered has to be noticeable at
   a glance, because the customer has no other way of knowing. It reads as a
   warning rather than as more grey supporting text. */
.reports-quick-note-alert{
  color:#991b1b;
  background:#fff5f5;
  border:1px solid #fecaca;
  border-radius:8px;
  padding:8px 10px;
  margin-top:8px;
}

.reports-quick-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
  align-items:center;
}

.reports-quick-actions .btn{
  min-width:0;
}

.reports-quick-actions .btn.nav{
  min-width:138px;
}

@media (max-width: 700px){
  .reports-quick-item{
    grid-template-columns:1fr;
  }
  .reports-quick-actions{
    justify-content:stretch;
  }
  .reports-quick-actions .btn,
  .reports-quick-actions .btn.nav{
    width:100%;
    min-width:0;
  }
}

@media (max-width: 1200px){
  .reports-reset-grid{
    grid-template-columns:1fr;
  }
  .reports-workspace{
    grid-template-columns:1fr;
  }
}

.reports-tabs{
  display:flex;
  gap:24px;
  flex-wrap:nowrap;
  align-items:center;
  width:100%;
  max-width:100%;
  padding:0 18px;
  border:0;
  border-bottom:1px solid var(--border);
  border-radius:0;
  background:#fff;
  box-shadow:none;
  overflow-x:auto;
}

.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;
  box-shadow:0 8px 20px rgba(15,23,42,.04);
}

.reports-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  position:relative;
  min-height:58px;
  padding:0;
  border-color:transparent;
  background:transparent;
  color:var(--muted);
  box-shadow:none;
  border-radius:0;
  white-space:nowrap;
}

.reports-tab:hover{
  background:transparent;
  border-color:transparent;
  color:#2f5f16;
}

.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-tab.is-active{
  background:transparent;
  border-color:transparent;
  color:#2f7d18;
  box-shadow:none;
}

.reports-tab::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  background:transparent;
}

.reports-tab.is-active::after{
  background:#46a927;
}

.reports-tab-count{
  display:inline;
  min-width:0;
  height:auto;
  padding:0;
  border-radius:0;
  background:transparent;
  color:inherit;
  font-size:inherit;
  font-weight:950;
  line-height:1;
  box-shadow:none;
}

.reports-tab-count::before{
  content:"(";
}

.reports-tab-count::after{
  content:")";
}

.reports-tab.is-active .reports-tab-count{
  background:transparent;
  color:inherit;
}

.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:10px;
  overflow:hidden;
  background:#fff;
  box-shadow:none;
}

.reports-row-head,
.reports-row-main{
  display:grid;
  grid-template-columns:minmax(280px,1.8fr) minmax(130px,.7fr) minmax(82px,.35fr) minmax(135px,.75fr) minmax(158px,.58fr);
  gap:10px;
  align-items:center;
  padding:12px 16px;
}

.reports-row-head{
  background:#f8fafc;
  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;
  min-height:54px;
}

.reports-row-item:nth-child(odd) .reports-row-main{
  background:#fbfdf8;
}

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

.reports-row-doc-icon{
  width:30px;
  height:30px;
  min-width:30px;
  display:inline-grid;
  place-items:center;
  border-radius:999px;
  color:#2f7d18;
  background:#eff8e7;
}

.reports-row-doc-icon svg{
  width:16px;
  height:16px;
  display:block;
}

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

.reports-preview-help{
  display:none;
  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;
  align-items:center;
  gap:8px;
  justify-content:flex-end;
  min-width:0;
}

.reports-row-col-action .file-danger{
  width:36px;
  height:36px;
  min-width:36px;
  border-radius:12px;
  box-shadow:none;
}

.reports-row-col-action .more-btn{
  min-width:104px;
}

.reports-row-preview{
  border-top:1px solid var(--border);
  background:linear-gradient(180deg, rgba(31,111,178,.06), rgba(255,255,255,.96));
  padding:14px;
  display:grid;
  gap:14px;
  grid-template-columns:minmax(260px,360px) minmax(0,1fr);
  align-items:stretch;
}

.reports-row-preview-summary{
  border:1px solid var(--border);
  background:#fff;
  border-radius:14px;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}

.reports-row-preview-summary{
  padding:14px;
  display:grid;
  gap:10px;
  align-content:start;
}

.reports-row-preview-eyebrow{
  font-size:11px;
  font-weight:900;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.03em;
}

.reports-row-preview-content{
  display:grid;
  gap:12px;
  min-width:0;
  align-content:start;
}

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

.reports-row-preview-stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.reports-row-preview-stat{
  border:1px solid color-mix(in srgb, var(--brand) 20%, var(--border));
  border-radius:12px;
  padding:9px 10px;
  background:color-mix(in srgb, var(--brand) 6%, #fff);
}

.reports-row-preview-stat strong{
  display:block;
  font-size:20px;
  line-height:1;
  color:var(--ink);
  font-weight:950;
}

.reports-row-preview-stat span{
  display:block;
  margin-top:4px;
  font-size:11px;
  color:var(--muted);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.02em;
}

.reports-row-preview-copy{
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
  padding:14px 16px;
  display:grid;
  gap:10px;
}

.reports-row-preview-copy p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.48;
}

.reports-row-preview-copy strong{
  color:var(--ink);
  font-weight:950;
}

.reports-row-preview-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  padding-top:2px;
}

.reports-row-preview-action{
  width:auto;
  min-width:0;
  flex:0 0 auto;
  padding-left:16px;
  padding-right:16px;
}

.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-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:28px;
  height:28px;
  min-width:28px;
  display:inline-grid;
  place-items:center;
  border-radius:999px;
  border:0;
  background:transparent;
  color:#64748b;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
  line-height:1;
  box-shadow:none;
  transition:transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.reports-star:hover{
  transform:translateY(-1px);
  background:#fff7ed;
  color:#9a5b00;
  box-shadow:none;
}

.reports-star.is-active{
  background:#f4fbec;
  color:#2f7d18;
}

.reports-empty{
  border:1px dashed var(--border);
  border-radius:12px;
  padding:18px;
  color:var(--muted);
  background:#fff;
  margin:18px;
}

.reports-catalog{
  display:grid;
  gap:12px;
  padding:16px 18px 18px;
}

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

.reports-list-acc > summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:48px;
  padding:0 18px;
  cursor:pointer;
  background:#fff;
}

.reports-list-acc[open] > summary{
  border-bottom:1px solid var(--border);
}

.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{
  display:inline;
  min-width:0;
  min-height:0;
  margin-left:6px;
  padding:0;
  border-radius:0;
  background:transparent;
  color:#2f7d18;
  font-size:inherit;
  font-weight:900;
}

.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-schedule-only-drawer .reports-drawer-panel{
  left:50%;
  right:auto;
  transform:translateX(-50%);
  width:min(720px, calc(100vw - 24px));
}

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

.reports-history-head-actions{
  flex-wrap:nowrap;
}

.reports-history-body{
  align-content:start;
}

.reports-date-range-wrap{
  display:grid;
  gap:7px;
}

.reports-date-range{
  position:relative;
  min-width:0;
}

.reports-date-range-btn{
  width:100%;
  min-height:42px;
  justify-content:space-between;
  gap:12px;
  border-radius:12px;
  background:#fff;
  box-shadow:none;
}

.reports-date-range-label{
  font-weight:850;
  color:var(--ink);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.reports-date-range-icon{
  width:18px;
  height:18px;
  flex:0 0 auto;
}

.reports-date-panel{
  position:fixed;
  top:var(--reports-date-panel-top, 120px);
  left:var(--reports-date-panel-left, 24px);
  width:var(--reports-date-panel-width, min(700px, calc(100vw - 48px)));
  max-width:calc(100vw - 48px);
  padding:16px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  box-shadow:0 24px 56px rgba(15,23,42,.18), 0 8px 20px rgba(15,23,42,.08);
  display:none;
  z-index:10000;
  isolation:isolate;
  overflow:hidden;
}

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

.reports-date-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.reports-date-panel-close{
  min-width:28px;
  width:28px;
  height:28px;
  border-radius:8px;
}

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

.reports-calendar-nav-btn{
  min-width:34px;
  width:34px;
  height:34px;
  border-radius:10px;
}

.reports-calendar-months{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
  background:#fff;
}

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

.reports-calendar-title{
  text-align:center;
  font-weight:900;
  color:var(--ink);
}

.reports-calendar-grid{
  display:grid;
  grid-template-columns:repeat(7, minmax(0, 1fr));
  gap:2px;
}

.reports-calendar-dow{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  text-align:center;
  padding:5px 0;
}

.reports-calendar-day{
  appearance:none;
  border:0;
  min-height:36px;
  border-radius:0;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-size:13px;
  font-weight:750;
  cursor:pointer;
}

.reports-calendar-day:hover{
  background:#eef2f7;
}

.reports-calendar-day.is-muted{
  color:#a8b0bd;
}

.reports-calendar-day.is-today{
  box-shadow:inset 0 0 0 1px #1677e8;
}

.reports-calendar-day.is-selected{
  background:#1677e8;
  color:#fff;
  border-radius:8px;
}

.reports-calendar-day.is-range{
  background:#e9eff7;
}

.reports-calendar-day.is-range-start{
  border-radius:8px 0 0 8px;
}

.reports-calendar-day.is-range-end{
  border-radius:0 8px 8px 0;
}

.reports-calendar-day.is-selected.is-range-start,
.reports-calendar-day.is-selected.is-range-end{
  border-radius:8px;
}

.reports-date-shortcuts-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  border-top:1px solid var(--border);
  padding-top:12px;
}

.reports-quick-range{
  appearance:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  font-size:13px;
  font-weight:800;
  line-height:1.2;
  padding:9px 13px;
  cursor:pointer;
  text-align:center;
  transition:border-color .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.reports-quick-range:hover{
  transform:translateY(-1px);
  border-color:color-mix(in srgb,var(--accent-orange) 28%, var(--border));
  background:color-mix(in srgb,var(--accent-orange) 8%, #fff);
  color:#7a4200;
}

.reports-quick-range.is-active{
  border-color:#1677e8;
  background:#eaf3ff;
  color:#0f4f9a;
  box-shadow:none;
}

.reports-quick-range-check{
  width:14px;
  height:14px;
  opacity:0;
  transition:opacity .16s ease;
}

.reports-quick-range.is-active .reports-quick-range-check{
  opacity:1;
}

@media(max-width:720px){
  .reports-calendar-months{
    grid-template-columns:1fr;
  }

  .reports-date-panel{
    left:12px !important;
    width:calc(100vw - 24px) !important;
    max-width:calc(100vw - 24px);
  }
}

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

.reports-drawer-panel .planner-sheet-head{
  align-items:flex-start;
  flex-wrap:wrap;
}

.reports-drawer-head-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-shrink:0;
}

.reports-drawer-head-actions .btn{
  min-width:126px;
}

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

.reports-dashboard-modal-body{
  margin-top:14px;
  display:grid;
  gap:14px;
}

.reports-dashboard-form-block{
  display:grid;
  gap:12px;
}

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

.reports-wizard-steps{
  padding:10px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  box-shadow:0 12px 30px rgba(15,23,42,.05);
  flex-wrap:nowrap;
  overflow-x:auto;
  scrollbar-width:thin;
}

.reports-wizard-steps .reports-template-tab{
  flex:0 0 auto;
}

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

.reports-template-pane{
  align-content:start;
}

.reports-wizard-card{
  display:grid;
  gap:14px;
  padding:16px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  box-shadow:0 14px 34px rgba(15,23,42,.06);
}

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

.reports-wizard-field-list{
  max-height:430px;
  min-height:210px;
}

.reports-wizard-sources{
  grid-template-columns:1fr;
}

.reports-wizard-disabled-note{
  border:1px dashed color-mix(in srgb, var(--muted) 35%, var(--border));
  border-radius:12px;
  background:#f8fafc;
  color:var(--muted);
  padding:12px 14px;
  font-size:13px;
  line-height:1.45;
}

.reports-wizard-review{
  display:grid;
  gap:12px;
}

.reports-wizard-review-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}

.reports-wizard-review-grid > div,
.reports-wizard-review-section{
  border:1px solid var(--border);
  border-radius:12px;
  background:linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.82));
  padding:12px;
}

.reports-wizard-review p{
  margin:6px 0 0;
}

.reports-wizard-review ul{
  margin:8px 0 0;
  padding-left:18px;
  color:var(--ink);
}

.reports-wizard-footer{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

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

.reports-template-count{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}

.reports-filter-section-head{
  display:grid;
  gap:4px;
}

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

#reportDrawerFilters > .reports-report-filter-section,
#scheduleEditor > .reports-report-filter-section{
  order:10;
}

#reportDrawerFilters > .reports-general-filter-section,
#scheduleEditor > .reports-general-filter-section{
  order:20;
}

#reportDrawerFilters > .reports-employee-filter-section,
#scheduleEditor > .reports-employee-filter-section{
  order:30;
}

#reportDrawerFilters > .reports-optional-filter-section{
  order:40;
}

#reportDrawerFilters > .reports-filter-action-section{
  order:50;
}

.reports-fms{
  position:relative;
  z-index:1;
}

.reports-fms.open{
  z-index:120;
}

.reports-fms-toggle{
  width:100%;
  min-height:42px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  color:var(--ink);
  font-weight:400;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
}

.reports-fms-toggle:hover{
  border-color:color-mix(in srgb, var(--brand) 34%, var(--border));
}

.reports-fms-toggle:disabled{
  cursor:not-allowed;
  background:rgba(15,23,42,.04);
  color:var(--muted);
}

.reports-fms.open .reports-fms-toggle{
  border-color:color-mix(in srgb, var(--brand) 42%, var(--border));
  box-shadow:0 0 0 3px rgba(31,111,178,.14);
}

.reports-fms-value{
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:left;
}

.reports-fms-caret{
  width:10px;
  height:10px;
  display:inline-block;
  flex:0 0 auto;
  border-right:2px solid var(--muted);
  border-bottom:2px solid var(--muted);
  transform:rotate(45deg) translateY(-1px);
  transition:transform .12s ease, border-color .12s ease;
}

.reports-fms.open .reports-fms-caret{
  transform:rotate(225deg) translateY(1px);
  border-color:var(--ink);
}

.reports-fmulti{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 6px);
  z-index:140;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  padding:8px;
  max-height:280px;
  overflow-x:hidden;
  overflow-y:auto;
  box-shadow:var(--shadow-sm);
  display:none;
}

.reports-fms.open .reports-fmulti{
  display:block;
}

.reports-fcheck{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px;
  border-radius:10px;
  font-size:14px;
  color:var(--ink);
  font-weight:400;
}

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

.reports-fcheck input{
  width:16px;
  height:16px;
  accent-color:var(--brand-strong);
}

.reports-run-filter-row-single{
  grid-template-columns:minmax(0,1fr);
}

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

.reports-schedule-shell{
  display:grid;
  gap:14px;
}

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

.reports-schedule-topbar-copy{
  display:grid;
  gap:4px;
}

.reports-schedule-editor{
  display:grid;
  gap:14px;
  padding:16px;
  border:1px solid var(--border);
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 28px rgba(15,23,42,.05);
}

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

.reports-schedule-weekdays{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:8px;
}

.reports-schedule-day{
  min-height:44px;
  padding:0 12px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  color:var(--muted);
  font:inherit;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  transition:border-color .15s ease, box-shadow .15s ease, color .15s ease, background .15s ease;
}

.reports-schedule-day:hover{
  border-color:color-mix(in srgb, var(--brand) 36%, var(--border));
  color:var(--ink);
}

.reports-schedule-day.is-active{
  border-color:color-mix(in srgb, var(--brand-strong) 42%, var(--border));
  background:color-mix(in srgb, var(--brand) 20%, #fff);
  color:var(--brand-ink);
  box-shadow:0 0 0 3px rgba(31,111,178,.12);
}

.reports-schedule-rec-card{
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  padding:10px;
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}

.reports-schedule-item{
  border:1px solid var(--border);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
  padding:14px 16px;
  box-shadow:0 12px 28px rgba(15,23,42,.05);
  display:grid;
  gap:12px;
}

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

.reports-schedule-toggle{
  flex:1 1 260px;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0;
  border:0;
  background:transparent;
  text-align:left;
  cursor:pointer;
}

.reports-schedule-toggle-copy{
  display:grid;
  gap:4px;
  min-width:0;
}

.reports-schedule-toggle-caret{
  width:12px;
  height:12px;
  display:inline-block;
  flex:0 0 auto;
  border-right:2px solid var(--muted);
  border-bottom:2px solid var(--muted);
  transform:rotate(45deg);
  transition:transform .15s ease, border-color .15s ease;
}

.reports-schedule-item.is-open .reports-schedule-toggle-caret{
  transform:rotate(225deg);
  border-color:var(--ink);
}

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

.reports-schedule-title{
  font-weight:850;
  font-size:16px;
  line-height:1.2;
}

.reports-schedule-title.is-paused{
  color:var(--danger);
}

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

.reports-schedule-meta-row{
  display:grid;
  grid-template-columns:96px minmax(0, 1fr);
  gap:10px;
  align-items:start;
}

.reports-schedule-meta-label{
  font-size:12px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--muted);
}

.reports-schedule-meta-value{
  font-size:14px;
  color:var(--ink);
  line-height:1.45;
}

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

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

.reports-emp-filter-acc{
  overflow:visible;
}

.reports-emp-filter-acc > .body{
  position:relative;
  overflow:visible;
}

.reports-emp-filter-acc [data-run-filter-row],
.reports-emp-filter-acc [data-run-filter-key]{
  position:relative;
  overflow:visible;
}

.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-summary-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:10px;
}

.reports-summary-card{
  border:1px solid var(--border);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,252,.94));
  padding:14px 16px;
  box-shadow:0 12px 28px rgba(15,23,42,.05);
}

.reports-summary-card-value{
  font-size:28px;
  line-height:1;
  font-weight:900;
  color:var(--text);
}

.reports-summary-card-label{
  margin-top:6px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--muted);
}

.reports-filter-chip-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.reports-filter-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  box-shadow:0 8px 20px rgba(15,23,42,.04);
}

.reports-filter-chip-label{
  font-size:11px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--muted);
}

.reports-filter-chip-value{
  font-size:13px;
  font-weight:800;
  color:var(--text);
}

.reports-row-click-helper{
  margin:8px 0 16px;
  color:var(--muted);
  font-size:13px;
}

/* Tracker #190. Sits directly above the table, with the note beside the button
   saying what the report is grouped by, so the reader does not have to go back
   to the filters to find out. */
.reports-group-collapse-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 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-action-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  min-width:46px;
  padding:0;
  border-radius:16px;
}

.reports-viewer-action-btn svg{
  width:18px;
  height:18px;
}

.reports-viewer-share-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  padding:0 16px;
  border-radius:16px;
  font-weight:900;
}

.reports-viewer-share-btn svg{
  width:18px;
  height:18px;
  flex:0 0 auto;
}

.reports-viewer-filter-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  padding:0 16px;
  border-radius:16px;
  font-weight:900;
}

.reports-viewer-filter-btn svg{
  width:18px;
  height:18px;
  flex:0 0 auto;
}

.reports-viewer-export-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  padding:0 16px;
  border-radius:16px;
  font-weight:900;
}

.reports-viewer-export-btn svg{
  width:18px;
  height:18px;
  flex:0 0 auto;
}

.reports-viewer-actions-menu-wrap{
  position:relative;
  display:flex;
  flex:0 0 auto;
}

.reports-viewer-actions-menu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  z-index:40;
  min-width:180px;
  padding:8px;
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  box-shadow:0 18px 36px rgba(15,23,42,.12);
  display:grid;
  gap:6px;
}

.reports-viewer-actions-option{
  appearance:none;
  border:0;
  background:transparent;
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  text-align:left;
  color:var(--ink);
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.reports-viewer-actions-option:hover,
.reports-viewer-actions-option:focus-visible{
  background:var(--warm-action-fill-soft);
  color:var(--warm-action-ink);
  outline:none;
}

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

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

.reports-share-note{
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92));
  color:var(--muted);
  font-size:13px;
}

.reports-share-search-row{
  display:grid;
  gap:8px;
}

.reports-share-note-field{
  display:grid;
  gap:8px;
  color:var(--muted);
  font-size:13px;
  font-weight:900;
}

.reports-share-note-field textarea{
  min-height:112px;
  resize:vertical;
  line-height:1.45;
}

.reports-share-list{
  max-height:min(48vh, 420px);
  overflow:auto;
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
}

.reports-share-item{
  display:flex;
  align-items:flex-start;
  gap:12px;
}

.reports-share-item-copy{
  display:grid;
  gap:2px;
}

.reports-share-item-copy strong{
  font-size:14px;
  font-weight:800;
  color:var(--ink);
}

.reports-share-item-copy small{
  font-size:12px;
  color:var(--muted);
}

.reports-share-footer{
  display:flex;
  gap:12px;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
}

.reports-share-footer-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.reports-viewer-filter-panel{
  width:min(760px, calc(100vw - 24px));
}

.reports-viewer-filter-body{
  margin-top:12px;
  display:grid;
  gap:14px;
  align-content:start;
}

.reports-viewer-report-filter-section{ order:1; }
.reports-viewer-general-filter-section{ order:2; }
.reports-viewer-employee-filter-section{ order:3; }
.reports-viewer-filter-body > .reports-optional-filter-section{ order:4; }
.reports-viewer-filter-action-section{ order:5; }

.reports-viewer-employee-list{
  max-height:280px;
  overflow:auto;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
}

.reports-viewer-filter-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding-top:2px;
}

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

.reports-share-history-panel{
  width:min(1180px, calc(100vw - 24px));
}

.reports-share-history-body{
  align-content:start;
}

.reports-share-history-list{
  display:grid;
  gap:14px;
  overflow:auto;
  max-height:calc(100vh - 210px);
  padding-right:2px;
}

.reports-share-history-empty{
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  padding:18px;
  display:grid;
  gap:4px;
  color:var(--muted);
}

.reports-share-history-empty strong{
  color:var(--ink);
  font-weight:900;
}

.reports-share-history-alert{
  border:1px solid #fed7aa;
  border-radius:18px;
  background:#fff7ed;
  color:#9a3412;
  padding:14px 16px;
  display:grid;
  gap:4px;
}

.reports-share-history-alert strong,
.reports-share-history-alert span{
  display:block;
}

.reports-share-history-alert strong{
  font-size:14px;
  font-weight:900;
}

.reports-share-history-alert span{
  color:#9a3412;
  font-size:12px;
}

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

.reports-share-history-table{
  width:100%;
  min-width:920px;
  border-collapse:collapse;
}

.reports-share-history-table th{
  background:#f4f7fb;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  letter-spacing:.02em;
  text-align:left;
  text-transform:uppercase;
  padding:12px 14px;
  border-bottom:1px solid var(--border);
}

.reports-share-history-table td{
  vertical-align:top;
  padding:13px 14px;
  border-bottom:1px solid var(--border);
  color:var(--ink);
  font-size:13px;
}

.reports-share-history-table tr:last-child td{
  border-bottom:0;
}

.reports-share-history-table td strong,
.reports-share-history-table td span,
.reports-share-history-table td em{
  display:block;
}

.reports-share-history-table td strong{
  font-weight:900;
}

.reports-share-history-table td span{
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
}

.reports-share-history-table td em{
  margin-top:6px;
  color:#7c4a03;
  font-size:12px;
  font-style:normal;
}

.reports-share-count{
  min-width:46px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  padding:8px 12px;
  color:var(--ink);
  font:inherit;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(15,23,42,.05);
}

.reports-share-count:hover,
.reports-share-count:focus-visible{
  outline:none;
  transform:translateY(-1px);
}

.reports-share-count.is-done{
  border-color:#bbf7d0;
  background:#f0fdf4;
  color:#166534;
}

.reports-share-count.is-pending{
  border-color:#fed7aa;
  background:#fff7ed;
  color:#9a3412;
}

.reports-share-recipient-detail{
  border:1px solid #cfe6a6;
  border-radius:18px;
  background:linear-gradient(135deg,#ffffff 0%,#f9fff0 100%);
  padding:14px;
  box-shadow:0 18px 36px rgba(15,23,42,.08);
}

.reports-share-recipient-modal{
  z-index:10000;
}

.reports-share-recipient-modal .planner-backdrop{
  background:rgba(15,23,42,.38);
}

.reports-share-recipient-modal-sheet{
  top:50%;
  bottom:auto;
  left:50%;
  right:auto;
  width:min(780px, calc(100vw - 32px));
  max-height:calc(100vh - 32px);
  transform:translate(-50%, -50%);
  padding:0;
  overflow:hidden;
}

.reports-share-recipient-modal .reports-share-recipient-detail{
  border:0;
  border-radius:18px;
  background:#fff;
  box-shadow:none;
  padding:0;
  overflow:hidden;
}

.reports-share-recipient-detail-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  padding:18px;
  border-bottom:1px solid var(--border);
  background:linear-gradient(135deg,#fffdf5 0%,#f8fff0 100%);
}

.reports-share-recipient-kicker{
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.reports-share-recipient-detail-head h3{
  margin:3px 0 2px;
  color:var(--ink);
  font-size:18px;
  font-weight:900;
}

.reports-share-recipient-detail-head p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.reports-share-recipient-list{
  display:grid;
  gap:8px;
  max-height:calc(100vh - 190px);
  overflow:auto;
  padding:14px;
}

.reports-share-recipient-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  padding:10px 12px;
}

.reports-share-recipient-row strong,
.reports-share-recipient-row span,
.reports-share-recipient-row em,
.reports-share-recipient-row small{
  display:block;
}

.reports-share-recipient-row strong{
  color:var(--ink);
  font-size:14px;
  font-weight:900;
}

.reports-share-recipient-row span{
  color:var(--muted);
  font-size:12px;
}

.reports-share-recipient-row em{
  margin-top:6px;
  color:#7c4a03;
  font-size:12px;
  font-style:normal;
}

.reports-share-recipient-row small{
  margin-top:2px;
  color:var(--muted);
  font-size:11px;
}

.reports-share-history-status{
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

.reports-share-history-status.is-read{
  border:1px solid #bbf7d0;
  background:#f0fdf4;
  color:#166534;
}

.reports-share-history-status.is-unread{
  border:1px solid #fed7aa;
  background:#fff7ed;
  color:#9a3412;
}

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

.reports-viewer-loading{
  position:fixed;
  z-index:9998;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  display:none;
  align-items:center;
  gap:10px;
  padding:14px 18px;
  border:1px solid rgba(178,196,53,.45);
  border-radius:999px;
  background:rgba(255,255,255,.96);
  color:var(--ink);
  font-size:15px;
  font-weight:900;
  box-shadow:0 16px 32px rgba(15,23,42,.14);
  pointer-events:none;
}

.reports-viewer-loading.is-active{
  display:inline-flex;
}

.reports-viewer-loading-dot{
  width:12px;
  height:12px;
  border-radius:999px;
  border:2px solid rgba(31,111,178,.28);
  border-top-color:var(--brand-strong);
  animation:reports-viewer-loading-spin .7s linear infinite;
}

@keyframes reports-viewer-loading-spin{
  to{ transform:rotate(360deg); }
}

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

.reports-inline-check{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:0 4px 2px 4px;
  color:var(--text);
  font-weight:700;
}

.reports-inline-check input{
  width:16px;
  height:16px;
}

.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-table tbody tr:nth-child(even):not(.reports-total-row):not(.reports-timesheet-total-row):not(.reports-group-total-row) td{
  background:#fbfcf8;
}

.reports-table tbody tr:nth-child(odd):not(.reports-total-row):not(.reports-timesheet-total-row):not(.reports-group-total-row) td{
  background:#fff;
}

.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-row:hover td,
.reports-timesheet-day-row:hover td{
  background:#f5f9ee;
}

.reports-total-row{
  cursor:default;
}

.reports-total-row td{
  background:#f8fbef;
  color:#1f2937;
  font-weight:800;
}

.reports-total-row:hover{
  background:transparent;
}

/* Tracker #190. A grouped report is a run of near-identical lines, and a
   subtotal sitting among them in the same weight reads as one more person.
   The tint and weight say "this is a total", and the rule underneath is the
   break between one group and the next, so the eye can find the boundaries
   without reading the first column. */
.reports-group-total-row{
  cursor:default;
}

.reports-group-total-row td{
  background:#eef3fb;
  color:#16314f;
  font-weight:800;
  border-top:1px solid #c9d8ea;
  border-bottom:2px solid #9db6d2;
}

.reports-group-total-row:hover td{
  background:#eef3fb;
}

.reports-risk-pill{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:3px 9px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:900;
  line-height:1.2;
  white-space:nowrap;
}

.reports-risk-1{
  color:#166534;
  background:#dcfce7;
  border-color:#bbf7d0;
}

.reports-risk-2{
  color:#854d0e;
  background:#fef9c3;
  border-color:#fde68a;
}

.reports-risk-3{
  color:#9a3412;
  background:#ffedd5;
  border-color:#fed7aa;
}

.reports-risk-4{
  color:#991b1b;
  background:#fee2e2;
  border-color:#fecaca;
}

.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-visual-insights{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-top:14px;
}

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

.reports-visual-insight-head{
  padding:12px 14px;
  background:linear-gradient(135deg, rgba(31,111,178,.10), rgba(255,183,77,.07));
  border-bottom:1px solid var(--border);
}

.reports-visual-insight-head h3{
  margin:0;
  font-size:15px;
}

.reports-visual-insight-head p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:13px;
}

.reports-visual-insight-table-wrap{
  max-height:280px;
  overflow:auto;
}

.reports-visual-insight-table{
  width:100%;
  border-collapse:collapse;
  min-width:520px;
}

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

.reports-visual-insight-table thead th{
  position:sticky;
  top:0;
  z-index:1;
  background:#f8fafc;
  color:var(--muted);
  border-top:0;
}

@media (max-width: 900px){
  .reports-visual-insights{
    grid-template-columns:1fr;
  }
}

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

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

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

.reports-drilldown-summary{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
  gap:8px;
}

.reports-drilldown-summary-card{
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
  min-height:62px;
}

.reports-drilldown-summary-card strong{
  display:block;
  margin-top:3px;
  font-size:18px;
  line-height:1.2;
}

.reports-drilldown-section{
  border:1px solid var(--border);
  border-radius:14px;
  background:linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,251,239,.72));
  overflow:hidden;
}

.reports-drilldown-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 14px;
  border-bottom:1px solid var(--border);
  background:rgba(248,250,252,.78);
}

.reports-drilldown-section-head h3{
  margin:0;
  font-size:15px;
}

.reports-drilldown-section-head span{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.reports-drilldown-section .reports-drilldown-summary{
  padding:12px;
}

.reports-drilldown-profile .reports-drilldown-summary-card{
  background:linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,183,77,.08));
}

.reports-drilldown-metrics .reports-drilldown-summary-card{
  background:linear-gradient(135deg, rgba(31,111,178,.12), rgba(255,255,255,.96));
}

.reports-drilldown-table-wrap{
  background:#fff;
  overflow:auto;
}

.reports-drilldown-table{
  width:100%;
  min-width:520px;
}

.reports-drilldown-table thead th{
  position:sticky;
  top:0;
  z-index:1;
}

.reports-drilldown-total-row td{
  font-weight:900;
  background:#f8fafc;
  border-top:2px solid var(--border);
}

.reports-drilldown-exception{
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(220,38,38,.22);
  border-radius:999px;
  background:rgba(254,242,242,.9);
  color:#991b1b;
  font-size:12px;
  font-weight:900;
  line-height:1;
  padding:5px 9px;
}

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

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

.reports-builder-note{
  border:1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
  border-radius:14px;
  background:linear-gradient(135deg, rgba(31,111,178,.14), rgba(255,255,255,.96));
  color:var(--ink);
  padding:12px 14px;
  font-size:13px;
  line-height:1.5;
}

.reports-builder-area-panel{
  display:grid;
  gap:8px;
}

.reports-builder-area-top{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.reports-builder-sort-inline{
  display:flex;
  align-items:center;
  gap:8px;
}

.reports-builder-sort-inline .input{
  width:auto;
  min-width:150px;
  min-height:40px;
  padding-top:8px;
  padding-bottom:8px;
}

.reports-builder-entities{
  margin-top:8px;
  border:0;
  border-radius:0;
  max-height:none;
  overflow:visible;
  background:transparent;
  padding:0;
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

.reports-builder-entity-item{
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  grid-template-rows:auto auto;
  column-gap:12px;
  row-gap:6px;
  align-items:start;
  background:linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.86));
  cursor:pointer;
}

.reports-builder-entity-item:hover{
  background:rgba(15,23,42,.03);
  border-color:color-mix(in srgb, var(--brand) 25%, var(--border));
  box-shadow:0 10px 22px rgba(15,23,42,.05);
}

.reports-builder-entity-item.is-active{
  border-color:color-mix(in srgb, var(--brand) 55%, var(--border));
  background:linear-gradient(135deg, rgba(246,255,232,.98), rgba(238,255,248,.86));
  box-shadow:0 14px 34px rgba(132,204,22,.14);
}

.reports-builder-entity-item.is-disabled{
  opacity:.56;
  background:#f8fafc;
  border-color:var(--border);
  box-shadow:none;
}

.reports-builder-entity-item.is-disabled:hover{
  background:#f8fafc;
  border-color:var(--border);
  box-shadow:none;
}

.reports-builder-entity-item > input{
  width:18px;
  height:18px;
  margin-top:2px;
  accent-color:var(--brand);
}

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

.reports-builder-entity-item > small{
  grid-column:2/3;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.reports-builder-entity-meta{
  grid-column:1/3;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.reports-builder-entity-chip,
.reports-builder-meta-chip,
.reports-builder-group-count{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 9px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}

.reports-builder-fields{
  margin-top:8px;
  border:1px solid var(--border);
  border-radius:12px;
  max-height:320px;
  overflow:auto;
  background:linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.74));
  padding:12px;
  display:grid;
  gap:8px;
}

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

.reports-builder-search{
  min-width:220px;
}

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

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

.reports-builder-group-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

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

.reports-builder-group-help{
  margin:2px 0 8px;
  font-size:13px;
  color:var(--muted);
  line-height:1.45;
}

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

.reports-builder-field-item{
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  grid-template-rows:auto auto auto;
  column-gap:10px;
  row-gap:6px;
  align-items:start;
  background:#fff;
  cursor:pointer;
}

.reports-builder-field-item:hover{
  background:rgba(15,23,42,.03);
  border-color:color-mix(in srgb, var(--brand) 24%, var(--border));
}

.reports-builder-field-item > input{
  width:17px;
  height:17px;
  margin-top:2px;
  accent-color:var(--brand);
}

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

.reports-builder-field-item > em{
  grid-column:2/3;
  font-style:normal;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}

.reports-builder-field-item > small{
  grid-column:2/3;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.reports-builder-empty{
  padding:18px 12px;
  border:1px dashed var(--border);
  border-radius:12px;
  background:#fff;
}

@media (max-width: 780px){
  .reports-library-controls,
  .reports-filter-panel{
    grid-template-columns:1fr;
  }

  .reports-filter-panel{
    flex-direction:column;
    align-items:stretch;
  }

  .reports-filter-field,
  .reports-filter-field:nth-child(3){
    width:100%;
    min-width:0;
    flex:0 0 auto;
  }

  .reports-filter-actions-inline{
    justify-content:stretch;
    margin-left:0;
    width:100%;
  }

  .reports-filter-actions-inline .btn,
  .reports-filter-toggle{
    width:100%;
  }

  .reports-tabs{
    gap:18px;
  }

  .reports-title{
    font-size:26px;
  }

  .reports-builder-entities{
    grid-template-columns:1fr;
  }

  .reports-wizard-sources,
  .reports-wizard-review-grid{
    grid-template-columns:1fr;
  }

  .reports-builder-area-top{
    align-items:stretch;
  }

  .reports-builder-sort-inline,
  .reports-builder-sort-inline .input{
    width:100%;
  }

  .reports-toolbar-actions,
  .reports-viewer-actions{
    width:100%;
  }

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

  .reports-viewer-actions .reports-viewer-action-btn{
    flex:0 0 auto;
  }

  .reports-viewer-actions .reports-viewer-actions-menu-wrap{
    flex:0 0 auto;
  }

  .reports-toolbar-actions .reports-history-trigger{
    flex:0 0 auto;
  }

  .reports-toolbar-actions .reports-create-trigger{
    flex:0 0 auto;
  }

  .reports-filter-actions{
    align-items:flex-start;
  }

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

  .reports-drawer-head-actions{
    width:100%;
    justify-content:space-between;
  }

  .reports-drawer-head-actions .btn{
    min-width:0;
  }

  .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-stats{
    grid-template-columns:1fr;
  }

  .reports-row-preview-actions{
    justify-content:flex-start;
  }

  .reports-row-preview-action{
    width:100%;
    min-width:0;
  }

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

  .reports-schedule-weekdays{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }

  .reports-schedule-meta-row{
    grid-template-columns:1fr;
    gap:4px;
  }
}

/* =========================================================
   Accent Theme Normalisation
   Promote the shared warm-action controls to the stronger
   orange tone and keep hover visually identical.
   ========================================================= */
:root{
  --warm-action-fill: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent-orange) 74%, #fff),
    color-mix(in srgb, var(--nav-orange-strong) 64%, #fff)
  );
  --warm-action-fill-soft: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent-orange) 74%, #fff),
    color-mix(in srgb, var(--nav-orange-strong) 64%, #fff)
  );
  --warm-action-border: color-mix(in srgb, var(--accent-orange) 48%, var(--border));
  --warm-action-ink: #5f3400;
  --warm-action-shadow: 0 10px 18px rgba(31,111,178,.20);
}

.btn.ghost,
.btn.nav,
.filterbtn.on,
.user-menu-btn,
.topbar-search-btn,
.planner-summary-btn,
#peopleList .iconbtn,
#visitorsList .iconbtn,
#shiftBody .iconbtn,
#schedBody .iconbtn,
.nav a:hover,
.nav a.active{
  background: var(--warm-action-fill) !important;
  border-color: var(--warm-action-border) !important;
  color: var(--warm-action-ink) !important;
  box-shadow: var(--warm-action-shadow) !important;
}

.nav a:hover .navicon,
.nav a.active .navicon{
  color: var(--warm-action-ink) !important;
}

.btn.ghost:hover,
.btn.nav:hover,
.filterbtn.on:hover,
.user-menu-btn:hover,
.topbar-search-btn:hover,
.planner-summary-btn:hover,
#peopleList .iconbtn:hover,
#visitorsList .iconbtn:hover,
#shiftBody .iconbtn:hover,
#schedBody .iconbtn:hover,
.nav a:hover,
.nav a.active{
  background: var(--warm-action-fill) !important;
  border-color: var(--warm-action-border) !important;
  color: var(--warm-action-ink) !important;
  box-shadow: var(--warm-action-shadow) !important;
  filter: none !important;
}

.btn.ghost:hover,
.btn.nav:hover,
.user-menu-btn:hover,
.topbar-search-btn:hover,
.planner-summary-btn:hover,
#peopleList .iconbtn:hover,
#visitorsList .iconbtn:hover,
#shiftBody .iconbtn:hover,
#schedBody .iconbtn:hover,
.nav a:hover{
  transform: none !important;
}

.btn.more-btn,
.btn.ghost.more-btn,
.btn.nav.more-btn,
.iconbtn.more-btn,
#peopleList .iconbtn.more-btn,
#visitorsList .iconbtn.more-btn,
#shiftBody .iconbtn.more-btn,
#schedBody .iconbtn.more-btn,
.morebtn.more-btn,
.attendance-card-more.more-btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border-radius: 14px !important;
  background: transparent !important;
  border: 1px solid color-mix(in srgb, var(--ink) 82%, #fff) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  filter: none !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}

.btn.more-btn:hover,
.btn.more-btn:focus-visible,
.btn.ghost.more-btn:hover,
.btn.ghost.more-btn:focus-visible,
.btn.nav.more-btn:hover,
.btn.nav.more-btn:focus-visible,
.iconbtn.more-btn:hover,
.iconbtn.more-btn:focus-visible,
#peopleList .iconbtn.more-btn:hover,
#peopleList .iconbtn.more-btn:focus-visible,
#visitorsList .iconbtn.more-btn:hover,
#visitorsList .iconbtn.more-btn:focus-visible,
#shiftBody .iconbtn.more-btn:hover,
#shiftBody .iconbtn.more-btn:focus-visible,
#schedBody .iconbtn.more-btn:hover,
#schedBody .iconbtn.more-btn:focus-visible,
.morebtn.more-btn:hover,
.morebtn.more-btn:focus-visible,
.attendance-card-more.more-btn:hover,
.attendance-card-more.more-btn:focus-visible{
  background: transparent !important;
  border-color: color-mix(in srgb, var(--ink) 82%, #fff) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

.btn.more-btn svg,
.btn.ghost.more-btn svg,
.btn.nav.more-btn svg,
.iconbtn.more-btn svg,
#peopleList .iconbtn.more-btn svg,
#visitorsList .iconbtn.more-btn svg,
#shiftBody .iconbtn.more-btn svg,
#schedBody .iconbtn.more-btn svg,
.morebtn.more-btn svg,
.attendance-card-more.more-btn svg{
  color: currentColor !important;
}
.reports-run-section {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.reports-column-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 14px;
  padding: 14px 16px;
  border: 1px solid #e6e8ee;
  border-radius: 20px;
  background: #fff;
}

.reports-column-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1f2937;
  font-weight: 400;
}

.reports-run-preview {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid #e6e8ee;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
}

.reports-run-preview-sections {
  display: grid;
  gap: 14px;
}

.reports-preview-acc {
  border-radius: 18px;
  background: rgba(255,255,255,0.94);
}

.reports-preview-acc > summary {
  padding: 13px 16px;
  background: rgba(15,23,42,.025);
}

.reports-preview-acc > .body {
  padding: 14px 16px 16px;
}

.reports-run-preview-label {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.reports-run-preview-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reports-run-preview-list span {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.reports-run-preview #runPreviewVisuals {
  padding: 0 2px;
}

@media (max-width: 900px) {
  .reports-run-preview-list-grid {
    grid-template-columns: 1fr;
  }
}

.reports-viewer-custom {
  display: grid;
  gap: 18px;
}

.reports-timesheet-group {
  border: 1px solid #e6e8ee;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .05);
  overflow: hidden;
}

.reports-timesheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(31,111,178,.10), rgba(31,111,178,.08));
  border-bottom: 1px solid #e6e8ee;
}

.reports-timesheet-name {
  color: #1f2937;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.reports-timesheet-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  border-color: rgba(31,111,178, .42);
  color: var(--warm-action-ink);
  font-weight: 900;
  white-space: nowrap;
}

.reports-timesheet-share-btn:hover,
.reports-timesheet-share-btn:focus-visible {
  background: var(--warm-action-fill-soft);
  border-color: var(--warm-action-border);
}

.reports-timesheet-share-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.reports-timesheet-table-wrap {
  overflow-x: auto;
}

.reports-timesheet-table th,
.reports-timesheet-table td {
  white-space: nowrap;
}

.reports-timesheet-total-row td {
  background: #f8fbef;
  color: #1f2937;
  font-weight: 700;
}

@media (max-width: 700px) {
  .reports-timesheet-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .reports-timesheet-share-btn {
    width: 100%;
  }
}

.reports-row-preview-actions .reports-row-preview-action.btn.nav{
  background:#fff !important;
  border-color:color-mix(in srgb, var(--nav-orange) 36%, var(--border)) !important;
  color:#7a4200 !important;
  box-shadow:none !important;
}

.reports-row-preview-actions .reports-row-preview-action.btn.nav:hover,
.reports-row-preview-actions .reports-row-preview-action.btn.nav:focus-visible{
  background:color-mix(in srgb, var(--nav-orange) 12%, #fff) !important;
  border-color:color-mix(in srgb, var(--nav-orange) 52%, var(--border)) !important;
  color:#5f3400 !important;
  box-shadow:0 8px 16px rgba(31,111,178,.12) !important;
}

@media print {
  @page {
    size: landscape;
    margin: 8mm;
  }

  html,
  body {
    width: auto !important;
    min-width: 0 !important;
    background: #fff !important;
    color: #111827 !important;
  }

  .reports-viewer-actions,
  .reports-viewer-tabs,
  .reports-viewer-filter-row,
  .reports-viewer-loading,
  .reports-pagination,
  .reports-timesheet-share-btn,
  .topbar,
  .sidebar {
    display: none !important;
  }

  .app-main,
  .container,
  .reports-viewer-wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .panel,
  .reports-viewer-head,
  .reports-viewer-panel {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    padding: 0 !important;
  }

  .reports-viewer-head {
    display: block !important;
    margin-bottom: 8px !important;
  }

  .reports-viewer-head-top {
    display: block !important;
    margin-bottom: 6px !important;
  }

  .reports-title {
    font-size: 18px !important;
    line-height: 1.2 !important;
    margin: 0 0 2px !important;
  }

  .reports-summary-grid {
    display: flex !important;
    gap: 6px !important;
    margin: 6px 0 !important;
  }

  .reports-summary-card,
  .reports-summary-grid > * {
    min-height: 0 !important;
    padding: 6px 8px !important;
    border: 1px solid #d7dbe5 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .reports-summary-value,
  .reports-summary-card strong {
    font-size: 16px !important;
    line-height: 1.1 !important;
  }

  .reports-filter-chip-row {
    display: flex !important;
    gap: 4px !important;
    margin: 4px 0 8px !important;
  }

  .reports-filter-chip-row > * {
    min-height: 0 !important;
    padding: 3px 6px !important;
    border: 1px solid #d7dbe5 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-size: 9px !important;
  }

  .reports-table-wrap,
  .reports-timesheet-table-wrap {
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
  }

  .reports-viewer-custom {
    display: block !important;
    gap: 0 !important;
  }

  .reports-timesheet-group {
    break-inside: auto !important;
    page-break-inside: auto !important;
    margin: 0 0 8px !important;
    border: 1px solid #d7dbe5 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .reports-timesheet-head {
    padding: 6px 8px !important;
    background: #fff !important;
    border-bottom: 1px solid #d7dbe5 !important;
    break-after: avoid;
  }

  .reports-timesheet-name {
    font-size: 13px !important;
  }

  .reports-timesheet-head .small {
    font-size: 8px !important;
  }

  .reports-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
  }

  .reports-table th,
  .reports-table td {
    padding: 3px 4px !important;
    font-size: 7.5px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: normal !important;
  }

  .reports-table thead {
    display: table-header-group;
  }

  .reports-table tfoot {
    display: table-footer-group;
  }

  .reports-timesheet-total-row td {
    background: #f6f8ef !important;
    font-weight: 800 !important;
  }
}

/* =========================================================
   Edu Connect sign-in panel
   Deep Edu blue in place of Syncro's green and orange glow, with an
   on-site preview where Syncro showed its app download QR.
   ========================================================= */
.auth-shell--login .auth-left{
  border-color: transparent;
  color: #ffffff;
  background:
    radial-gradient(520px 320px at 12% 8%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(600px 420px at 100% 100%, rgba(10,45,85,.55), transparent 62%),
    linear-gradient(160deg, #2a7fc4 0%, #1f6fb2 45%, #155a93 100%);
  box-shadow: 0 30px 70px rgba(21,90,147,.30);
}
.auth-shell--login .auth-left::after{
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 68%);
}
.auth-shell--login .auth-hero{ color:#ffffff; }
.auth-shell--login .auth-brand-logo{
  border-radius: 22%;
  box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 14px 30px rgba(8,40,75,.35);
}
.auth-shell--login .auth-bullets--login li{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
  box-shadow: none;
}
.auth-shell--login .auth-bullets--login .btitle{ color:#ffffff; }
.auth-shell--login .auth-bullets--login .bdesc{ color: rgba(255,255,255,.80); }
.auth-shell--login .auth-bullets--login .tick{
  background: #ffffff;
  border-color: #ffffff;
  color: #1f6fb2;
  box-shadow: 0 8px 18px rgba(8,40,75,.25);
}

.edu-preview{
  margin-top: 4px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 18px 40px rgba(8,40,75,.28);
}
.edu-preview__head{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:700;
}
.edu-preview__dot{
  width:9px; height:9px;
  border-radius:999px;
  background:#16a34a;
  box-shadow:0 0 0 4px rgba(22,163,74,.18);
}
.edu-preview__site{
  margin-left:auto;
  font-weight:500;
  color:#667085;
}
.edu-preview__stats{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.edu-preview__stats div{
  padding:12px 10px;
  border-radius:12px;
  background:#f1f6fb;
  text-align:center;
}
.edu-preview__stats b{
  display:block;
  font-size:22px;
  line-height:1.1;
  color:#155a93;
}
.edu-preview__stats span{
  display:block;
  margin-top:4px;
  font-size:12px;
  color:#667085;
}
.edu-preview__foot{
  margin-top:12px;
  font-size:12px;
  color:#667085;
}

/* Spread the sign-in panel's content over its full height so no empty band is
   left under the on-site preview. */
.auth-shell--login .auth-left{ display:flex; flex-direction:column; }
.auth-shell--login .auth-showcase{ flex:1 1 auto; align-content:space-between; }

/* Sign-in panel, second pass: white logo tile, a summary line, lighter
   feature rows with their own icons, and one even vertical rhythm. */
.auth-shell--login .auth-showcase{ align-content:center; gap:26px; }
.auth-shell--login .auth-brand-logo{
  width:min(132px, 34%);
  min-width:104px;
  border-radius:22%;
  box-shadow:0 16px 34px rgba(8,40,75,.35);
}
.edu-auth-sub{
  margin:14px 0 0;
  max-width:38ch;
  font-size:15px;
  line-height:1.5;
  color:rgba(255,255,255,.86);
}
.auth-shell--login .auth-bullets--login{ gap:0; }
.auth-shell--login .auth-bullets--login li{
  padding:14px 2px;
  border:0;
  border-radius:0;
  background:none;
  border-top:1px solid rgba(255,255,255,.16);
}
.auth-shell--login .auth-bullets--login li:first-child{ border-top:0; padding-top:4px; }
.auth-shell--login .auth-bullets--login .tick{
  width:40px;
  height:40px;
  border-radius:12px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.28);
  color:#ffffff;
  box-shadow:none;
}
.auth-shell--login .auth-bullets--login .tick svg{ width:22px; height:22px; stroke-width:1.9; }
