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

:root {
  --royal: #1e3a8a;
  --royal-mid: #2d54b8;
  --royal-light: #4a7fd4;
  --lavender: #a78bfa;
  --lavender-light: #c4b5fd;
  --gold: #c9a84c;
  --gold-light: #f0d080;
  --gold-dark: #8a5e1a;
  --silver: #b8c4d4;
  --silver-light: #dce4f0;
  --dark: #0e1c48;
  --darker: #090f2c;
  --surface: #12214e;
  --surface2: #182a5e;
  --surface3: #1e326c;
  --border: #283a6a;
  --text: #f0f0f0;
  --text-muted: #8892b0;
  --red: #c0392b;
  --blue: #2563eb;
  --green: #16a34a;
  --purple: #7c3aed;
  --sidebar-w: 240px;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--darker);
  color: var(--text);
  min-height: 100vh;
}

/* ── PAGES ── */
.page { display: none; }
.page.active { display: block; }

/* ── LOGIN ── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(ellipse at top, #0a0e28 0%, var(--darker) 70%);
}

.login-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo {
  width: 140px;
  height: 140px;
  border-radius: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
}

.login-logo img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(167,139,250,0.25));
}

.login-brand h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--lavender-light);
}

.login-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 440px;
}

.login-card h2 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #ff6b7a;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--lavender);
}

.form-group textarea { resize: vertical; }

/* Role picker */
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.role-grid.small .role-btn {
  padding: 0.75rem;
}

.role-btn {
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1rem;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
}

.role-btn:hover { border-color: var(--lavender); }
.role-btn.active {
  border-color: var(--lavender);
  background: #120d2a;
}

.role-icon { font-size: 1.5rem; }
.role-btn strong { font-size: 0.9rem; }
.role-btn span { font-size: 0.75rem; color: var(--text-muted); }

.btn-login {
  width: 100%;
  background: linear-gradient(135deg, var(--royal-mid), var(--royal));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: opacity 0.2s;
  font-family: inherit;
}

.btn-login:hover { opacity: 0.88; }

/* ── APP SHELL ── */
.app {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.75rem 0.75rem;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 300;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(167,139,250,0.3));
}

.brand > div:last-child strong { font-size: 0.82rem; line-height: 1.3; display: block; }
.brand > div:last-child span { font-size: 0.7rem; color: var(--silver); display: block; }

.nav-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.75rem 0.5rem 0.3rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
  padding: 0.55rem 0.75rem;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}

.nav-btn:hover { background: var(--surface2); color: var(--text); }
.nav-btn.active { background: #0e1235; color: var(--gold); border-left: 2px solid var(--gold); }

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-icon { font-size: 1rem; }

.badge {
  background: var(--silver);
  color: #0a0b1a;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 7px;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.btn-logout {
  width: 100%;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  padding: 0.5rem;
  transition: background 0.15s, color 0.15s;
}

.btn-logout:hover { background: var(--surface2); color: var(--text); }

/* ── MAIN ── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── TOPBAR ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  flex: 1;
  max-width: 420px;
  color: var(--text-muted);
}

.search input {
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.875rem;
  outline: none;
  width: 100%;
  font-family: inherit;
}

.search-go-btn {
  background: var(--gold);
  border: none;
  border-radius: 6px;
  color: #0a0a12;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 0.28rem 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .15s;
}
.search-go-btn:hover { opacity: .85; }

.emp-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.42rem 0.85rem;
  color: var(--text-muted);
}
.emp-search-wrap input {
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.875rem;
  outline: none;
  width: 100%;
  font-family: inherit;
}
.emp-search-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: color .15s;
}
.emp-search-clear:hover { color: var(--text); }

.profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-mid), var(--lavender));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile strong { font-size: 0.875rem; display: block; }
.profile span { font-size: 0.75rem; color: var(--text-muted); }

/* ── SCREENS ── */
.screen { display: none; padding: 2rem 1.75rem; }
.screen.active { display: block; }

/* ── HERO ── */
.hero { margin-bottom: 1.75rem; }
.eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lavender);
  font-weight: 600;
}
.hero h1 { font-size: 1.75rem; margin: 0.2rem 0 0.5rem; }
.hero p { color: var(--text-muted); font-size: 0.925rem; max-width: 620px; line-height: 1.6; }

/* ── STATS ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat span { font-size: 0.78rem; color: var(--text-muted); }
.stat strong { font-size: 1.6rem; color: var(--gold-light); }

/* ── EMPLOYEE CARD GRID ── */
.emp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.emp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-align: center;
}

.emp-card:hover {
  border-color: var(--lavender);
  background: #0e0f28;
  transform: translateY(-2px);
}

.emp-card-icon { font-size: 2rem; margin-bottom: 0.2rem; }
.emp-card strong { font-size: 0.9rem; }
.emp-card span { font-size: 0.75rem; color: var(--text-muted); }

/* ── WEEK GRID (Employee Schedule) ── */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
}

.day-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.day-card.today {
  border-color: var(--lavender);
  background: #0e0f2e;
}

.day-card.time-off-day {
  border-color: rgba(167,139,250,.4);
  background: rgba(167,139,250,.04);
}

.day-card .day-name {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.day-card.today .day-name { color: var(--lavender); }

.day-card .day-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.day-card.today .day-num { color: var(--gold-light); }

.day-card .day-shift {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.25rem;
}

.day-card .day-shift.has-shift { color: var(--text); }

.day-card .today-badge {
  background: var(--gold);
  color: #0a0b1a;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  display: inline-block;
}

/* ── GRID LAYOUT ── */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* ── PANELS ── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.panel:last-child { margin-bottom: 0; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.panel-head h2 { font-size: 1rem; }

.panel > h2 { font-size: 1rem; margin-bottom: 0.5rem; }
.panel > p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

.mt { margin-top: 0; }

/* ── TABLE ── */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th {
  text-align: left;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.4rem 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid #1a1f35;
  vertical-align: middle;
}

.table tr:last-child td { border-bottom: none; }

.table tr.priority-row:hover td { background: rgba(255,255,255,.03); }

.table tr.today-row td {
  background: #0e0f2e;
}

/* ── PILLS ── */
.pill {
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  display: inline-block;
}

.pill.gold { background: #1f1500; color: var(--gold); border: 1px solid #3d2a00; }
.pill.green { background: #001a0a; color: #2ecc71; border: 1px solid #0a3a1a; }
.pill.red { background: #1a0000; color: #e74c3c; border: 1px solid #3a0a0a; }
.pill.blue { background: #001020; color: #3498db; border: 1px solid #0a2a40; }
.pill.purple { background: #0f0020; color: #a855f7; border: 1px solid #2a0a40; }
.pill.grey    { background: var(--surface2); color: var(--text-muted); border: 1px solid var(--border); }
.pill.lavender { background: #0f0020; color: var(--lavender); border: 1px solid #2a0a40; }

/* ── CLOCK IN / OUT ── */
.clock-panel {
  border: 1px solid rgba(212,175,55,.25);
  background: linear-gradient(135deg, #080c22 0%, #0d1230 100%);
  margin-bottom: 1.25rem;
}
.clock-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.clock-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--gold);
  margin-bottom: .35rem;
}
.clock-shift-info {
  font-size: .83rem;
  margin: .2rem 0 .45rem;
  line-height: 1.5;
}
.clock-status-row {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.clock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: #6b7280;
  transition: background .3s, box-shadow .3s;
}
.clock-dot[data-state="in"] {
  background: #2ecc71;
  box-shadow: 0 0 8px rgba(46,204,113,.55);
  animation: clock-pulse 2s infinite;
}
@keyframes clock-pulse {
  0%,100% { box-shadow: 0 0 4px rgba(46,204,113,.4); }
  50%      { box-shadow: 0 0 14px rgba(46,204,113,.8); }
}
.clock-btn {
  font-size: .95rem !important;
  padding: .7rem 2rem !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  transition: transform .1s, box-shadow .2s !important;
  white-space: nowrap;
}
.clock-btn[data-state="in"] {
  background: linear-gradient(135deg, #1a6e35, #27ae60) !important;
  color: #fff !important;
  box-shadow: 0 3px 14px rgba(39,174,96,.35) !important;
}
.clock-btn[data-state="in"]:hover  { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(39,174,96,.5) !important; }
.clock-btn[data-state="out"] {
  background: linear-gradient(135deg, #7a1a1a, #c0392b) !important;
  color: #fff !important;
  box-shadow: 0 3px 14px rgba(192,57,43,.35) !important;
}
.clock-btn[data-state="out"]:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(192,57,43,.5) !important; }
.clock-btn:disabled { opacity: .6; transform: none !important; cursor: not-allowed; }

.whoisin-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.whoisin-row:last-child { border-bottom: none; }

/* ── SALES & FINANCIALS ── */
.sale-cart-input {
  font-size: .8rem !important;
  padding: .3rem .4rem !important;
}
.sale-cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

/* ── DOCUMENTS ── */
.doc-body-text {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 10px;
  padding: 1rem 1.1rem; font-size: .84rem; line-height: 1.7; color: var(--text);
  margin-bottom: 1.1rem; white-space: pre-wrap; word-break: break-word;
}
.doc-sig-box {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.1rem 1.2rem; margin-top: .5rem;
}
.doc-sig-label {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--gold); margin: 0 0 .6rem;
}
.doc-signed-banner {
  background: #001a0a; border: 1px solid #0a3a1a; border-radius: 10px;
  color: #2ecc71; font-size: .84rem; padding: .8rem 1rem; margin-top: .5rem;
}
.doc-sig-entry {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .82rem;
}
.doc-sig-entry:last-child { border-bottom: none; }
.doc-unsigned-doc { margin-bottom: 1rem; }
.doc-unsigned-doc:last-child { margin-bottom: 0; }
.doc-unsigned-title { font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.doc-unsigned-names { display: flex; flex-wrap: wrap; gap: .35rem; }
.doc-unsigned-chip {
  background: rgba(168,85,247,.12); border: 1px solid rgba(168,85,247,.3);
  color: #a855f7; border-radius: 20px; font-size: .72rem; font-weight: 600;
  padding: .2rem .65rem;
}

/* ── BUTTONS ── */
.btn {
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.8; }
.btn.gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; }
.btn.blue { background: var(--blue); color: #fff; }
.btn.red { background: var(--red); color: #fff; }
.btn.light { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn.dark { background: var(--surface3); color: var(--text); }

/* ── EMPLOYEE TAB BUTTONS ── */
.emp-tab-btn {
  background: var(--surface2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .35rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.emp-tab-btn:hover { background: var(--surface3); color: var(--text); }
.emp-tab-btn.active { background: var(--royal-mid); color: #fff; border-color: var(--royal-mid); }

/* ── DISCIPLINE PLUS BUTTON ── */
.btn-plus {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .15s, opacity .15s;
  box-shadow: 0 2px 8px rgba(201,168,76,.35);
}
.btn-plus:hover { transform: scale(1.1); opacity: .9; }

/* ── QUICK CARDS ── */
.quick-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 1rem;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.quick-card:hover { border-color: var(--lavender); background: #0e0f28; }
.quick-card .icon { font-size: 1.4rem; margin-bottom: 0.2rem; }
.quick-card strong { font-size: 0.875rem; }
.quick-card span { font-size: 0.75rem; color: var(--text-muted); }

/* ── BARCODE ── */
.barcode-box {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  color: #111;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.barcode-lines {
  height: 48px;
  background: repeating-linear-gradient(90deg, #000 0px, #000 3px, #fff 3px, #fff 6px);
  border-radius: 2px;
  margin: 0.25rem 0;
}

/* ── MODAL ── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.open { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 640px;
  margin: 1rem;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

#modalBody {
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

#modalBody::-webkit-scrollbar { width: 5px; }
#modalBody::-webkit-scrollbar-track { background: transparent; }
#modalBody::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.modal-head h2 { font-size: 1.1rem; }
.modal-head p { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }

.close {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.15rem 0.5rem;
}

.close:hover { color: var(--text); }

#modalBody .form-group:last-of-type { margin-bottom: 1rem; }
#modalBody .btn { margin-top: 0.5rem; }

/* ── TOPBAR RIGHT ── */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ── NOTIFICATIONS ── */
.notif-wrap {
  position: relative;
}

.notif-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
  position: relative;
  transition: background 0.15s;
  line-height: 1;
}

.notif-btn:hover { background: var(--surface3); }

.notif-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  position: absolute;
  top: 4px;
  right: 4px;
  display: none;
  border: 1.5px solid var(--surface);
}

.notif-dot.visible { display: block; }

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 50;
  display: none;
  overflow: hidden;
}

.notif-dropdown.open { display: block; }

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem 0.65rem;
  border-bottom: 1px solid var(--border);
}

.notif-header strong { font-size: 0.9rem; }

.notif-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-family: inherit;
  transition: color 0.15s;
}

.notif-clear:hover { color: var(--silver); }

.notif-list {
  max-height: 360px;
  overflow-y: auto;
}

.notif-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.notif-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #1c1c1c;
  transition: background 0.15s;
  cursor: default;
}

.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--surface2); }
.notif-item.unread { background: #0e0f2e; }
.notif-item.unread:hover { background: #111338; }

.notif-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.notif-content { flex: 1; }
.notif-content strong { font-size: 0.825rem; display: block; margin-bottom: 0.15rem; }
.notif-content p { font-size: 0.775rem; color: var(--text-muted); line-height: 1.4; margin: 0; }
.notif-content time { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; display: block; }

.notif-unread-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

/* ── SCHEDULE SYSTEM ── */
.sched-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0 1.1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sched-nav-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sched-arrow {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.25rem 0.7rem 0.3rem;
  transition: all 0.15s;
  font-family: inherit;
}

.sched-arrow:hover { background: var(--surface3); border-color: var(--gold); color: var(--gold); }

.sched-week-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  min-width: 170px;
  text-align: center;
  letter-spacing: 0.02em;
}

.sched-today-btn { font-size: 0.78rem !important; padding: 0.3rem 0.8rem !important; }

.sched-day-list { display: flex; flex-direction: column; }

.sched-day-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  padding: 0.9rem 0.1rem;
  border-top: 1px solid #1a1f35;
  align-items: flex-start;
  transition: background 0.12s;
}

.sched-day-row:hover { background: #0a0d1a; border-radius: 8px; }
.sched-day-row.today { background: linear-gradient(90deg, rgba(196,166,78,0.06), transparent); }
.sched-day-row:first-child { border-top: none; }

.sched-day-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.15rem;
  gap: 0.1rem;
}

.sched-day-name {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.sched-day-date {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.sched-day-row.today .sched-day-date { color: var(--gold); }
.sched-day-row.today .sched-day-name { color: var(--gold); }
.sched-today-dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; margin-top: 2px; }

.sched-shifts { display: flex; flex-direction: column; gap: 0.45rem; }

.sched-empty {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  font-style: italic;
}

.shift-block {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--lavender);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.12s;
}

.shift-block:hover { background: var(--surface3); }
.shift-block.mine { background: #0d0a20; border-left-color: var(--gold); }

.shift-emp-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-mid), var(--lavender));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid var(--gold);
}

.shift-info { flex: 1; min-width: 0; }
.shift-info strong { font-size: 0.82rem; color: var(--text); display: block; margin-bottom: 1px; }
.shift-type-tag { font-size: 0.7rem; color: var(--lavender); font-weight: 600; display: block; margin-bottom: 1px; }
.shift-info span { font-size: 0.75rem; color: var(--text-muted); }

.shift-actions {
  display: flex; flex-direction: column; gap: .2rem; margin-left: auto; flex-shrink: 0;
}
.shift-edit,
.shift-delete {
  background: none; border: none; cursor: pointer;
  font-size: .82rem; padding: .2rem .35rem; border-radius: 4px;
  opacity: 0; transition: opacity .15s, color .15s, background .15s;
  line-height: 1;
}
.shift-block:hover .shift-edit,
.shift-block:hover .shift-delete { opacity: 1; }
.shift-edit   { color: var(--text-muted); }
.shift-delete { color: var(--text-muted); }
.shift-edit:hover   { color: var(--gold);   background: rgba(196,166,78,.1); }
.shift-delete:hover { color: #e74c3c;       background: rgba(231,76,60,.1); }
.shift-lunch-tag {
  display: inline-block; font-size: .67rem; color: var(--text-muted);
  margin-left: .4rem; opacity: .8;
}

/* ── QUICK SHIFT SCHEDULER ── */
.sched-section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem;
}
.sched-section-label span { font-weight: 400; text-transform: none; font-size: .78rem; color: var(--gold); }

.sched-chip-list {
  display: flex; flex-direction: column; gap: .35rem;
  max-height: 172px; overflow-y: auto;
  margin-bottom: 1rem; padding: .1rem 0;
}
.sched-emp-chip {
  display: flex; align-items: center; gap: .65rem;
  padding: .45rem .65rem; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface2);
  cursor: pointer; transition: border-color .15s, background .15s;
  user-select: none;
}
.sched-emp-chip:hover { border-color: var(--gold); background: var(--surface3); }
.sched-emp-chip.selected {
  border-color: var(--gold); background: rgba(196,166,78,.1);
}
.sched-chip-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--lavender); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; flex-shrink: 0;
}
.sched-emp-chip.selected .sched-chip-av { background: var(--gold); }
.sched-chip-info { flex: 1; min-width: 0; }
.sched-chip-info strong { display: block; font-size: .82rem; color: var(--text); }
.sched-chip-info span   { font-size: .72rem; color: var(--text-muted); }
.sched-chip-ck {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; color: var(--gold);
  flex-shrink: 0; transition: border-color .15s;
}
.sched-emp-chip.selected .sched-chip-ck { border-color: var(--gold); background: rgba(196,166,78,.15); }

.sched-day-header-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .5rem;
}
.sched-day-picker-row {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem;
  margin-bottom: 1rem;
}
.sched-day-pill {
  display: flex; flex-direction: column; align-items: center;
  padding: .45rem .2rem; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--surface2);
  cursor: pointer; transition: border-color .15s, background .15s;
  gap: .15rem; min-width: 0;
}
.sched-day-pill:hover { border-color: var(--gold); background: var(--surface3); }
.sched-day-pill.selected {
  border-color: var(--gold); background: rgba(196,166,78,.12);
}
.sdp-label { font-size: .68rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.sdp-num   { font-size: .92rem; font-weight: 700; color: var(--text); }
.sched-day-pill.selected .sdp-label { color: var(--gold); }
.sched-day-pill.selected .sdp-num   { color: var(--gold); }
.sched-day-pill.blocked {
  cursor: not-allowed; border-color: rgba(231,76,60,.4);
  background: rgba(231,76,60,.07);
}
.sched-day-pill.blocked:hover { border-color: rgba(231,76,60,.4); background: rgba(231,76,60,.07); }
.sched-day-pill.blocked .sdp-label,
.sched-day-pill.blocked .sdp-num { color: #e74c3c; opacity: .7; }
.sdp-off {
  display: block; font-size: .56rem; font-weight: 800; text-transform: uppercase;
  color: #e74c3c; letter-spacing: .04em; margin-top: .05rem;
}

.shift-legend {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Employee day card with real shift */
.day-card.shift-assigned { border-color: var(--gold); }

/* ── TIME OFF ── */
.to-request-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
.to-request-card:first-child { border-top: none; }

.to-emp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-mid), var(--lavender));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid var(--gold);
}

.to-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.to-info strong { font-size: 0.9rem; color: var(--text); }
.to-type { font-size: 0.78rem; color: var(--lavender); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.to-date { font-size: 0.8rem; color: var(--text-muted); }
.to-notes { font-size: 0.78rem; color: var(--text-muted); font-style: italic; margin-top: 2px; }
.to-actions { display: flex; gap: 0.5rem; flex-shrink: 0; align-items: center; }
.muted-msg { color: var(--text-muted); font-size: 0.85rem; font-style: italic; padding: 0.5rem 0; }

/* ── LOGIN UPDATES ── */
.login-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.login-error {
  background: #1a0000;
  border: 1px solid #3a0a0a;
  border-radius: 8px;
  color: #e74c3c;
  font-size: 0.82rem;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.75rem;
  display: none;
}

.login-error.visible { display: block; }

.login-footer {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* ── PROFILE PAGE ── */
.profile-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: flex-start;
}

.profile-card-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* ── AVATAR PHOTO UPLOAD ── */
.profile-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.avatar-upload-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.2;
}

.profile-avatar-wrap:hover .avatar-upload-overlay { opacity: 1; }
.avatar-cam-icon { font-size: 1.3rem; line-height: 1; }

.profile-avatar-lg.has-photo {
  background-image: var(--av-img);
  background-size: cover;
  background-position: center;
  font-size: 0;
  color: transparent;
}

.avatar.has-photo {
  background-image: var(--av-img);
  background-size: cover;
  background-position: center;
  font-size: 0;
  color: transparent;
}

.profile-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-mid), var(--lavender));
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 20px rgba(167,139,250,0.25);
  border: 3px solid var(--gold);
}

.profile-card h2 {
  font-size: 1.1rem;
  margin: 0;
}

.profile-role-tag {
  background: #150d35;
  color: var(--lavender);
  border: 1px solid #2d1a6e;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 12px;
}

.profile-role-tag.gold {
  background: #1f1500;
  color: var(--gold);
  border-color: #3d2a00;
}

.profile-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
}

.profile-status.green { background: #001a0a; color: #2ecc71; border: 1px solid #0a3a1a; }
.profile-status.gold  { background: #1f1500; color: var(--gold); border: 1px solid #3d2a00; }
.profile-status.red   { background: #1a0000; color: #e74c3c; border: 1px solid #3a0a0a; }

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  width: 100%;
}

.profile-meta strong { color: var(--silver); }

.profile-panels {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-access-panel { margin-top: 0; }
.profile-access-panel h2 { font-size: 0.95rem; margin-bottom: 0.75rem; }

.profile-field {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #1a1f35;
}

.profile-field:last-child { border-bottom: none; }

.pf-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 110px;
  flex-shrink: 0;
  padding-top: 1px;
}

.pf-value {
  font-size: 0.875rem;
  color: var(--text);
  flex: 1;
  word-break: break-word;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Employee view modal for manager */
.emp-view-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.emp-view-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-mid), var(--lavender));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}

.emp-view-header h3 { font-size: 1rem; margin: 0; }
.emp-view-header span { font-size: 0.8rem; color: var(--text-muted); }

/* ── ACTIVITY LOG ── */
.activity-log-panel { border-top: 2px solid var(--border); }

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.activity-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid #1a1f35;
  transition: background 0.12s;
}

.activity-entry:last-child { border-bottom: none; }
.activity-entry:hover { background: var(--surface2); border-radius: 8px; }

.activity-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.activity-icon.blue   { background: #0a1a35; border: 1px solid #1a3a6e; }
.activity-icon.gold   { background: #1f1500; border: 1px solid #3d2a00; }
.activity-icon.green  { background: #001a0a; border: 1px solid #0a3a1a; }
.activity-icon.red    { background: #1a0000; border: 1px solid #3a0a0a; }
.activity-icon.purple { background: #0f0020; border: 1px solid #2a0a40; }
.activity-icon.silver { background: #111827; border: 1px solid var(--border); }

.activity-body { flex: 1; }

.activity-text {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.45;
}

.activity-text strong { color: var(--gold); }

.activity-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.activity-by {
  color: var(--silver);
  font-weight: 600;
}

/* ── BULLETIN BOARD ── */
.bulletin-panel {
  border-top: 2px solid var(--gold);
  position: relative;
}

.bulletin-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--silver), var(--lavender), var(--silver), var(--gold));
  border-radius: 14px 14px 0 0;
}

.bulletin-head-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.bulletin-crown {
  font-size: 1.2rem;
  line-height: 1;
}

.bulletin-badge {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
}

.bulletin-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.bulletin-empty {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 1.5rem 0.5rem;
  text-align: center;
}

.bulletin-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  transition: background 0.15s;
}

.bulletin-card.unread {
  background: #100e22;
  border-left-color: var(--lavender);
}

.bulletin-card:hover { background: var(--surface3); }

.bulletin-cat-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.bulletin-body { flex: 1; }

.bulletin-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}

.bulletin-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.bulletin-cat-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.bulletin-cat-pill.General  { background: #1a1f35; color: var(--silver); border: 1px solid var(--border); }
.bulletin-cat-pill.Urgent   { background: #1a0000; color: #e74c3c; border: 1px solid #3a0a0a; }
.bulletin-cat-pill.Policy   { background: #0f0020; color: #a855f7; border: 1px solid #2a0a40; }
.bulletin-cat-pill.Event    { background: #1f1500; color: var(--gold); border: 1px solid #3d2a00; }
.bulletin-cat-pill.Reminder { background: #001020; color: #3498db; border: 1px solid #0a2a40; }

.bulletin-new-dot {
  width: 7px;
  height: 7px;
  background: var(--lavender);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.bulletin-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.bulletin-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.bulletin-author {
  color: var(--silver);
  font-weight: 600;
}

.mgr-bulletin-panel .bulletin-card {
  border-left-color: var(--lavender);
}

.mgr-bulletin-panel .bulletin-card.unread {
  border-left-color: var(--gold);
}

/* Compose form */
.bulletin-compose {
  margin-bottom: 1.25rem;
}

.compose-inner {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.compose-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cat-btn {
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  padding: 0.35rem 0.85rem;
  transition: all 0.15s;
}

.cat-btn:hover { border-color: var(--gold); color: var(--text); }
.cat-btn.active { background: #1f1500; border-color: var(--gold); color: var(--gold); }

.compose-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ── POS TERMINAL ── */
#page-pos {
  display: none;
}
#page-pos.active {
  display: flex;
}

.pos-item-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 200;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  max-width: 300px;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast strong { font-size: 0.875rem; color: var(--gold); }
.toast span { font-size: 0.8rem; color: var(--text-muted); }

/* ── PRINT ── */
#printArea { display: none; }
@media print {
  body > *:not(#printArea) { display: none !important; visibility: hidden !important; }
  #printArea {
    display: block !important;
    visibility: visible !important;
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: #fff;
    padding: .15in;
  }
  #printArea * { visibility: visible !important; }
  .print-sheet { display: flex; flex-wrap: wrap; gap: .12in; }
  .print-label {
    width: 2.5in;
    padding: .1in .12in;
    border: 1px solid #bbb;
    border-radius: 4px;
    text-align: center;
    page-break-inside: avoid;
    background: #fff;
  }
  .print-label svg { width: 100%; height: auto; display: block; }
  .print-label-name { font-size: 8.5pt; font-weight: 700; margin-top: 4px; font-family: Arial, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .print-label-sku  { font-family: 'Courier New', monospace; font-size: 7pt; color: #444; margin-top: 2px; letter-spacing: .4px; }
  .print-label-meta { font-size: 6.5pt; color: #888; margin-top: 2px; font-family: Arial, sans-serif; }
}

/* ── HR SUB-TABS ──────────────────────────────────────────────────────────── */
.hr-subtabs {
  display: flex; gap: .5rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem; padding-bottom: .75rem;
}
.hr-subtab {
  background: var(--surface3); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 8px;
  padding: .45rem 1rem; font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.hr-subtab.active {
  background: var(--lavender); color: #fff; border-color: var(--lavender);
}
.hr-subtab:hover:not(.active) { border-color: var(--lavender); color: var(--lavender); }
.hr-panel { display: none; }
.hr-panel.active { display: block; }

/* ── CHAT LAYOUT ─────────────────────────────────────────────────────────── */
.screen.chat-screen { padding: 0; display: none !important; }
.screen.active.chat-screen { display: flex !important; flex-direction: column; }
.chat-layout {
  display: flex; flex: 1; height: calc(100vh - 60px); overflow: hidden;
}
.chat-sidebar {
  width: 280px; min-width: 220px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; background: var(--surface2); flex-shrink: 0;
}
.chat-sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1rem .75rem; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: .95rem;
}
.chat-list { flex: 1; overflow-y: auto; }
.chat-list-item {
  padding: .75rem 1rem; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .12s;
}
.chat-list-item:hover, .chat-list-item.active { background: var(--surface3); }
.chat-list-item .chat-name {
  font-weight: 600; font-size: .88rem; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.chat-list-item .chat-preview {
  font-size: .75rem; color: var(--text-muted); margin-top: .15rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-list-item .chat-meta {
  font-size: .7rem; color: var(--text-muted); margin-top: .1rem;
}
.chat-main {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
}
.chat-empty {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .9rem; padding: 2rem;
}
.chat-area-head {
  padding: .85rem 1.25rem; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: .95rem; background: var(--surface2);
  display: flex; align-items: center; gap: .5rem; flex-shrink: 0;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 1rem 1.25rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.chat-msg { display: flex; flex-direction: column; max-width: 72%; }
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-msg.theirs { align-self: flex-start; align-items: flex-start; }
.chat-bubble {
  padding: .5rem .85rem; border-radius: 16px; font-size: .88rem;
  line-height: 1.45; word-break: break-word;
}
.chat-msg.mine .chat-bubble {
  background: var(--lavender); color: #fff; border-bottom-right-radius: 4px;
}
.chat-msg.theirs .chat-bubble {
  background: var(--surface3); color: var(--text); border-bottom-left-radius: 4px;
}
.chat-msg-meta {
  font-size: .68rem; color: var(--text-muted); margin-top: .15rem; padding: 0 .2rem;
}
.chat-input-row {
  display: flex; gap: .5rem; padding: .85rem 1.25rem;
  border-top: 1px solid var(--border); background: var(--surface2); flex-shrink: 0;
}
.chat-input-row input {
  flex: 1; background: var(--surface3); border: 1px solid var(--border);
  border-radius: 20px; padding: .5rem 1rem; font-size: .88rem; color: var(--text);
}
.chat-input-row input:focus { outline: none; border-color: var(--lavender); }
.chat-day-divider {
  text-align: center; font-size: .7rem; color: var(--text-muted);
  margin: .5rem 0; position: relative;
}
.chat-day-divider::before, .chat-day-divider::after {
  content: ''; position: absolute; top: 50%; width: 30%;
  height: 1px; background: var(--border);
}
.chat-day-divider::before { left: 5%; }
.chat-day-divider::after { right: 5%; }

/* ── PAYROLL STATUS BADGES ────────────────────────────────────────────────── */
.pill.pill-paid       { background: rgba(76,175,80,.18); color:#4caf50; cursor:pointer; }
.pill.pill-pending    { background: rgba(212,175,55,.18); color:var(--gold); cursor:pointer; }
.pill.pill-processing { background: rgba(100,181,246,.18); color:#64b5f6; cursor:pointer; }

/* ── SCHEDULE CLOCK ROW ────────────────────────────────────────────────────── */
.shift-clock-row {
  font-size: .72rem; color: var(--text-muted); margin-top: .3rem;
  display: flex; gap: .5rem; flex-wrap: wrap; align-items: center;
}
.shift-clock-row .clock-badge {
  background: rgba(76,175,80,.12); color: #4caf50;
  border-radius: 8px; padding: .1rem .4rem; font-size: .7rem; font-weight: 600;
}
.shift-clock-row .clock-badge.out {
  background: rgba(150,111,214,.12); color: var(--lavender);
}
.shift-clock-row .no-clock { color: var(--text-muted); font-style: italic; }

/* ── STAFF DIRECTORY (Manager HR) ───────────────────────────────────────── */
.dir-folder-tabs { display: flex; gap: .5rem; flex-wrap: wrap; padding: .6rem 0 .65rem; border-bottom: 2px solid var(--border); margin-bottom: .85rem; }
.dir-search-bar { padding-bottom: .75rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.dir-search-bar .emp-search-wrap { width: 100%; }
/* ── Base folder tab ── */
.dir-stab { border-radius: 12px; padding: .72rem 1.5rem; font-size: .9rem; font-weight: 700; cursor: pointer; transition: all .18s; white-space: nowrap; display: inline-flex; align-items: center; gap: .5rem; border: 2px solid transparent; letter-spacing: .01em; }

/* ── 📂 Active — green ── */
#dirStabActive { background: rgba(39,174,96,.1); border-color: rgba(39,174,96,.3); color: #27ae60; }
#dirStabActive:hover { background: rgba(39,174,96,.18); border-color: rgba(39,174,96,.55); }
#dirStabActive.active { background: rgba(39,174,96,.2); border-color: #27ae60; color: #2ecc71; box-shadow: 0 3px 16px rgba(39,174,96,.25), inset 0 0 0 1px rgba(39,174,96,.2); }

/* ── 📁 Terminated — red ── */
#dirStabTerminated { background: rgba(231,76,60,.08); border-color: rgba(231,76,60,.25); color: #c0392b; }
#dirStabTerminated:hover { background: rgba(231,76,60,.15); border-color: rgba(231,76,60,.5); }
#dirStabTerminated.active { background: rgba(231,76,60,.16); border-color: #e74c3c; color: #e74c3c; box-shadow: 0 3px 16px rgba(231,76,60,.22), inset 0 0 0 1px rgba(231,76,60,.2); }

/* ── 📋 All Staff — gold ── */
#dirStabAll { background: rgba(212,175,55,.09); border-color: rgba(212,175,55,.28); color: #b8972e; }
#dirStabAll:hover { background: rgba(212,175,55,.16); border-color: rgba(212,175,55,.5); }
#dirStabAll.active { background: rgba(212,175,55,.18); border-color: var(--gold); color: var(--gold); box-shadow: 0 3px 16px rgba(212,175,55,.22), inset 0 0 0 1px rgba(212,175,55,.18); }

/* Count badge inside each tab */
.dir-stab-count { display: inline-flex; align-items: center; justify-content: center; border-radius: 20px; padding: .1rem .5rem; font-size: .7rem; font-weight: 800; min-width: 1.6rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }
#dirStabActive .dir-stab-count  { background: rgba(39,174,96,.15);  border-color: rgba(39,174,96,.3);  }
#dirStabTerminated .dir-stab-count { background: rgba(231,76,60,.12);  border-color: rgba(231,76,60,.28); }
#dirStabAll .dir-stab-count     { background: rgba(212,175,55,.14);  border-color: rgba(212,175,55,.3); }

/* ── STAFF DIRECTORY GRID ────────────────────────────────────────────────── */
.staff-dir-grid { display: flex; flex-direction: column; gap: 0; }
.staff-dir-empty { color: var(--text-muted); font-size: .85rem; padding: 2rem 0; text-align: center; }
.staff-dir-section { margin-bottom: 1.75rem; }
.staff-dir-section:last-child { margin-bottom: 0; }
.staff-dir-section-head { display: flex; align-items: center; gap: .55rem; padding: .45rem 0 .55rem; margin-bottom: .75rem; border-bottom: 1px solid var(--border); }
.staff-dir-section-head > span:first-child { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.staff-dir-section-count { font-size: .65rem; font-weight: 700; background: var(--surface3); border: 1px solid var(--border); border-radius: 10px; padding: 0 .5rem; color: var(--text-muted); line-height: 1.7; margin-left: auto; }
.staff-dir-section-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }

/* ── STAFF DIRECTORY CARD ────────────────────────────────────────────────── */
.staff-dir-card { display: flex; align-items: flex-start; gap: 1.1rem; padding: 1.15rem 1.2rem 1.1rem 1.15rem; background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; overflow: hidden; }
.staff-dir-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--gold) 0%, var(--lavender) 100%); border-radius: 2px 0 0 2px; }
.staff-dir-card:hover { border-color: rgba(212,175,55,.55); box-shadow: 0 6px 24px rgba(0,0,0,.3); transform: translateY(-1px); }
.staff-dir-card.terminated::before { background: linear-gradient(180deg, #4b5563, #374151); }
.staff-dir-card.terminated { opacity: .72; filter: saturate(.7); }
.staff-dir-card.terminated:hover { border-color: rgba(107,114,128,.45); box-shadow: 0 2px 10px rgba(0,0,0,.18); transform: none; filter: saturate(.85); }

/* Avatar */
.staff-dir-avatar { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--gold); color: #fff; font-size: .95rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(212,175,55,.12); background-clip: padding-box; }
.staff-dir-card.terminated .staff-dir-avatar { border-color: #4b5563; box-shadow: none; }

/* Info block */
.staff-dir-info { flex: 1; min-width: 0; }
.sdc-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .2rem; flex-wrap: wrap; }
.staff-dir-name { font-size: .95rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.staff-dir-you { font-size: .6rem; color: var(--gold); font-weight: 700; background: rgba(212,175,55,.1); border: 1px solid rgba(212,175,55,.25); border-radius: 10px; padding: .05rem .4rem; vertical-align: middle; }
.staff-dir-pos { font-size: .73rem; color: var(--lavender); font-weight: 600; letter-spacing: .02em; margin-bottom: .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Status pill (in header) */
.sdc-status-pill { font-size: .65rem; font-weight: 700; border-radius: 20px; padding: .18rem .6rem; border: 1px solid transparent; flex-shrink: 0; white-space: nowrap; }
.sdc-active { color: #27ae60; background: rgba(39,174,96,.1); border-color: rgba(39,174,96,.3); }
.sdc-term   { color: #e74c3c; background: rgba(231,76,60,.1); border-color: rgba(231,76,60,.28); }

/* Tags row */
.staff-dir-tags { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin-bottom: .42rem; }
.sdc-dept { font-size: .65rem; color: var(--lavender); background: rgba(150,111,214,.1); border: 1px solid rgba(150,111,214,.22); border-radius: 20px; padding: .12rem .55rem; font-weight: 600; }
.sdc-badge-pill { font-size: .65rem; color: var(--text-muted); background: var(--surface3); border: 1px solid var(--border); border-radius: 20px; padding: .12rem .6rem; font-family: monospace; letter-spacing: .03em; }
.sdc-badge-pill strong { color: var(--lavender); font-weight: 700; }

/* Contact rows */
.staff-dir-contacts { display: flex; flex-direction: column; gap: .22rem; margin-bottom: .5rem; }
.sdc-row { display: flex; align-items: center; gap: .45rem; font-size: .71rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sdc-label { color: var(--text-muted); font-weight: 600; min-width: 2.8rem; flex-shrink: 0; }
.sdc-val   { color: var(--text); overflow: hidden; text-overflow: ellipsis; }

/* Inline action buttons */
.sdc-inline-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .2rem; }
.sdc-btn { font-size: .71rem; font-weight: 600; padding: .28rem .7rem; border-radius: 8px; border: 1px solid var(--border); background: var(--surface3); color: var(--text-muted); cursor: pointer; transition: all .13s; white-space: nowrap; }
.sdc-btn:hover { background: var(--surface2); color: var(--text); border-color: rgba(255,255,255,.15); }
.sdc-btn-profile { border-color: rgba(150,111,214,.3); color: var(--lavender); background: rgba(150,111,214,.07); }
.sdc-btn-profile:hover { background: rgba(150,111,214,.15); border-color: var(--lavender); }
.sdc-btn-deactivate { border-color: rgba(231,76,60,.25); color: #e74c3c; background: rgba(231,76,60,.06); }
.sdc-btn-deactivate:hover { background: rgba(231,76,60,.14); border-color: #e74c3c; }
.sdc-btn-reactivate { border-color: rgba(39,174,96,.3); color: #27ae60; background: rgba(39,174,96,.07); }
.sdc-btn-reactivate:hover { background: rgba(39,174,96,.15); border-color: #27ae60; }

/* Remove old unused */
.staff-dir-actions { display: none; }

/* ── TERMINATED FOLDER BANNER ────────────────────────────────────────────── */
.terminated-banner { display: flex; align-items: center; gap: 1rem; background: rgba(107,114,128,.07); border: 1px solid rgba(107,114,128,.2); border-left: 4px solid #6b7280; border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.terminated-banner-icon { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.terminated-banner strong { display: block; font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.terminated-banner p { font-size: .76rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.terminated-banner-count { font-size: .72rem; font-weight: 700; color: #9ca3af; background: rgba(107,114,128,.12); border: 1px solid rgba(107,114,128,.22); border-radius: 20px; padding: .2rem .75rem; flex-shrink: 0; white-space: nowrap; }
.pill.red-soft { background: rgba(231,76,60,.1); color: #e74c3c; border: 1px solid rgba(231,76,60,.25); }
.pill.late-flag { background: rgba(230,126,34,.12); color: #e67e22; border: 1px solid rgba(230,126,34,.3); font-weight: 700; }

/* ── MANAGEMENT DIRECTORY (emp portal) ───────────────────────────────────── */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; padding-bottom: 2rem; }
.dir-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem 1.4rem 1.3rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; transition: border-color .18s, box-shadow .18s, transform .18s; position: relative; overflow: hidden; }
.dir-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--lavender)); border-radius: 14px 14px 0 0; }
.dir-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at top, rgba(212,175,55,.05), transparent 65%); pointer-events: none; }
.dir-card:hover { border-color: rgba(212,175,55,.6); box-shadow: 0 8px 32px rgba(0,0,0,.32); transform: translateY(-2px); }
.dir-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--royal-mid), var(--lavender)); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; font-weight: 700; color: #fff; flex-shrink: 0; margin-bottom: .9rem; box-shadow: 0 0 0 5px rgba(212,175,55,.1), 0 0 0 9px rgba(212,175,55,.04); background-clip: padding-box; }
.dir-info { width: 100%; min-width: 0; }
.dir-name { display: block; font-size: 1rem; font-weight: 700; margin-bottom: .2rem; color: var(--text); }
.dir-role { display: block; font-size: .68rem; color: var(--gold); font-weight: 800; margin-bottom: .28rem; text-transform: uppercase; letter-spacing: .1em; }
.dir-dept { display: inline-block; font-size: .67rem; color: var(--lavender); background: rgba(150,111,214,.12); border: 1px solid rgba(150,111,214,.25); border-radius: 20px; padding: .12rem .6rem; font-weight: 600; margin-bottom: .75rem; }
.dir-divider { width: 60%; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: .4rem auto .7rem; }
.dir-contacts { display: flex; flex-direction: column; gap: .32rem; width: 100%; }
.dir-contact-link { font-size: .76rem; color: var(--text-muted); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; justify-content: center; gap: .38rem; transition: color .13s; }
.dir-contact-link:hover { color: var(--gold); }
.dir-contact-na { font-size: .74rem; color: var(--text-muted); font-style: italic; opacity: .5; }

/* ── STAFF HOURS PANEL ───────────────────────────────────────────────────── */
.hours-layout { display: flex; min-height: 460px; border-top: 1px solid var(--border); }
.hours-list-panel { width: 210px; overflow-y: auto; border-right: 1px solid var(--border); flex-shrink: 0; }
.hours-detail-panel { flex: 1; overflow-y: auto; padding: 1.1rem 1.4rem; min-width: 0; }
.hours-emp-item { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; cursor: pointer; border-bottom: 1px solid var(--border); transition: background .12s; }
.hours-emp-item:hover { background: var(--surface3); }
.hours-emp-item.active { background: rgba(212,175,55,.08); border-left: 3px solid var(--gold); padding-left: calc(.9rem - 3px); }
.hours-stat { text-align: center; padding: 0 .55rem; }
.hours-stat span { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 600; margin-bottom: .12rem; }
.hours-stat strong { font-size: .88rem; }
.hours-total { border-left: 2px solid var(--border); padding-left: .8rem; }
.hours-total strong { color: var(--gold); font-size: .98rem; }
.hours-day-row { display: flex; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.hours-day-row:last-of-type { border-bottom: none; }
.hours-day-row.today .hours-day-label .sched-day-name { color: var(--gold); }
.hours-day-label { width: 44px; flex-shrink: 0; text-align: center; padding-top: .1rem; }
.hours-day-body { flex: 1; min-width: 0; }
.hours-records { margin: .35rem 0; display: flex; flex-direction: column; gap: .35rem; }
.hours-record-row { padding: .35rem 0; }
.hours-record-times { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.hours-adj-list { background: var(--surface3); border-radius: 6px; padding: .2rem 0; }
.hours-adj-row { display: flex; align-items: center; gap: .6rem; padding: .32rem .75rem; }
.hours-edit-form input[type="time"] { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: .3rem .5rem; }

/* ── GARMENT TAG MAKER ─────────────────────────────────────────────────── */
.tag-maker-layout { display: grid; grid-template-columns: 1fr 270px; gap: 2rem; padding-top: .75rem; }
@media (max-width: 820px) { .tag-maker-layout { grid-template-columns: 1fr; } }
.tag-maker-form { display: flex; flex-direction: column; }
.tag-care-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .6rem; margin-top: .4rem; }
@media (max-width: 560px) { .tag-care-grid { grid-template-columns: 1fr; } }
.tag-care-item { display: flex; align-items: center; gap: .45rem; font-size: .79rem; cursor: pointer; padding: .28rem .4rem; border-radius: 7px; transition: background .12s; line-height: 1.3; }
.tag-care-item:hover { background: var(--surface3); }
.tag-care-item input[type="checkbox"] { flex-shrink: 0; accent-color: var(--gold); width: 14px; height: 14px; cursor: pointer; }
.tag-care-icon { font-size: .95rem; flex-shrink: 0; line-height: 1; }

/* Preview column */
.tag-preview-col { display: flex; flex-direction: column; align-items: center; padding-top: 1.85rem; }
.tag-preview-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .75rem; align-self: flex-start; }

/* The physical tag card */
.tag-preview { background: #f9f7f0; color: #1a1a1a; border-radius: 4px 4px 14px 14px; width: 220px; min-height: 280px; display: flex; flex-direction: column; align-items: center; padding: 1.4rem 1.1rem 1.6rem; position: relative; box-shadow: 0 3px 16px rgba(0,0,0,.28), inset 0 0 0 1px rgba(0,0,0,.07); text-align: center; }
.tag-preview::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 8px; background: #e8e4d8; border-radius: 0 0 5px 5px; border-top: 1px solid rgba(0,0,0,.09); }
.tag-preview::after { content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.22); }
.tag-brand { font-family: Georgia,'Times New Roman',serif; font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #2a2a2a; margin-top: .85rem; margin-bottom: .3rem; }
.tag-product { font-size: .68rem; color: #555; margin-bottom: .4rem; font-style: italic; }
.tag-divider-line { width: 100%; height: 1px; background: rgba(0,0,0,.12); margin: .5rem 0; }
.tag-size-display { font-family: Georgia,'Times New Roman',serif; font-size: 2.85rem; font-weight: 700; letter-spacing: .04em; color: #1a1a1a; line-height: 1; margin: .4rem 0; }
.tag-fabric-text { font-size: .65rem; color: #666; line-height: 1.45; margin-top: .45rem; }
.tag-care-row { display: flex; gap: .25rem; flex-wrap: wrap; justify-content: center; margin: .65rem 0 .25rem; }
.tag-care-sym { font-size: .57rem; background: rgba(0,0,0,.07); border-radius: 3px; padding: .12rem .3rem; color: #333; white-space: nowrap; letter-spacing: .03em; font-weight: 600; }
.tag-origin-text { font-size: .58rem; color: #888; text-transform: uppercase; letter-spacing: .08em; margin-top: .4rem; }
.tag-sku-text { font-size: .56rem; color: #aaa; font-family: monospace; margin-top: .22rem; }

/* ── LOGO TAG PICKER ───────────────────────────────────────────────────── */
.logo-tag-picker { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: .45rem; }
.logo-tag-opt { cursor: pointer; }
.logo-tag-opt input[type="radio"] { display: none; }
.logo-tag-opt-card { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .65rem .75rem; border: 2px solid var(--border); border-radius: 10px; background: var(--surface2); transition: border-color .15s, background .15s; min-width: 82px; }
.logo-tag-opt-card img { width: 68px; height: 50px; object-fit: contain; filter: brightness(.92); transition: filter .15s; }
.logo-tag-opt-card span { font-size: .72rem; font-weight: 600; color: var(--text-muted); transition: color .15s; }
.logo-tag-opt input:checked + .logo-tag-opt-card { border-color: var(--gold); background: rgba(212,175,55,.09); }
.logo-tag-opt input:checked + .logo-tag-opt-card img { filter: brightness(1); }
.logo-tag-opt input:checked + .logo-tag-opt-card span { color: var(--gold); }
.logo-tag-opt-card:hover { border-color: var(--gold); }

/* Logo tag preview specifics */
.logo-tag-preview .tag-logo-img { width: 150px; max-height: 108px; object-fit: contain; margin-top: .8rem; margin-bottom: .25rem; }

