/* ── Tokens (mirror do site público) ─────────────────────────────── */
:root {
  --navy:    #0D1E3B;
  --navy-2:  #152845;
  --navy-3:  #1B3057;
  --orange:  #E8520A;
  --orange-2:#F97316;
  --teal:    #2EA87A;
  --teal-2:  #25916A;
  --red:     #DC2626;

  --bg:      #F6F4EF;
  --bg-2:    #EFEDE7;
  --bg-3:    #E8E5DE;
  --ink:     #0D1825;
  --muted:   #6B7280;
  --muted-2: #9CA3AF;
  --white:   #FFFFFF;

  --r:       10px;
  --r-lg:    18px;
  --tr:      .28s cubic-bezier(.4,0,.2,1);
  --sh:      0 2px 12px rgba(13,30,59,.08);
  --sh-md:   0 6px 28px rgba(13,30,59,.12);
  --sh-lg:   0 16px 56px rgba(13,30,59,.18);

  --sb-w:    240px;
  --tb-h:    64px;
}

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

body.ws-body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { display: block; max-width: 100%; }

/* ── Layout ──────────────────────────────────────────────────────── */
.ws-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────────────── */
.ws-sidebar {
  width: var(--sb-w);
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: transform var(--tr);
}

.sb-logo {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sb-logo img { height: 56px; width: auto; filter: brightness(0) invert(1); }

.sb-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r);
  color: rgba(255,255,255,.65);
  font-size: 13.5px;
  font-weight: 500;
  transition: background var(--tr), color var(--tr);
}
.sb-item:hover         { background: rgba(255,255,255,.07); color: #fff; }
.sb-item.active        { background: var(--orange); color: #fff; }
.sb-item i             { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }

.sb-sep { height: 1px; background: rgba(255,255,255,.08); margin: 8px 10px; }
.sb-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35);
  padding: 4px 12px 6px;
}

.sb-footer {
  padding: 14px 10px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sb-user          { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.sb-avatar        {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange); color: #fff;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sb-user-info     { flex: 1; min-width: 0; }
.sb-uname         { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-urole         { font-size: 11px; color: rgba(255,255,255,.4); }
.sb-logout        {
  background: none; border: none;
  color: rgba(255,255,255,.4);
  padding: 6px; border-radius: 6px;
  font-size: 14px;
  transition: color var(--tr), background var(--tr);
  flex-shrink: 0;
}
.sb-logout:hover  { color: var(--red); background: rgba(220,38,38,.12); }

/* Mobile sidebar overlay */
.sb-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 199;
  opacity: 0;
  transition: opacity var(--tr);
}
.sb-overlay.show { opacity: 1; }

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

/* ── Topbar ──────────────────────────────────────────────────────── */
.ws-topbar {
  height: var(--tb-h);
  background: var(--white);
  border-bottom: 1px solid var(--bg-3);
  box-shadow: var(--sh);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.sb-toggle {
  display: none;
  background: none; border: none;
  font-size: 18px; color: var(--ink);
  padding: 4px;
}
.tb-greeting {
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.tb-date {
  font-size: 12px; color: var(--muted);
  text-transform: capitalize;
}
.tb-info { display: flex; flex-direction: column; flex: 1; }
.tb-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.tb-back {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted);
  background: none; border: none;
  padding: 6px 10px; border-radius: var(--r);
  transition: color var(--tr), background var(--tr);
}
.tb-back:hover { color: var(--navy); background: var(--bg-2); }

/* ── Content ─────────────────────────────────────────────────────── */
.ws-content {
  padding: 28px;
  flex: 1;
}
.ws-page-header {
  margin-bottom: 24px;
}
.ws-page-title {
  font-size: 22px; font-weight: 700; color: var(--ink);
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: -.01em;
}
.ws-page-sub {
  font-size: 13px; color: var(--muted); margin-top: 3px;
}

/* ── Cards ───────────────────────────────────────────────────────── */
.ws-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 20px;
  transition: box-shadow var(--tr), transform var(--tr);
}
.ws-card:hover { box-shadow: var(--sh-md); }

/* Sistema / atalho */
.ws-sys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.ws-sys-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--tr), transform var(--tr);
  cursor: pointer;
}
.ws-sys-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.ws-sys-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--navy);
}
.ws-sys-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.ws-sys-desc { font-size: 12px; color: var(--muted); line-height: 1.5; flex: 1; }

/* Tutorial */
.ws-tut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.ws-tut-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: box-shadow var(--tr), transform var(--tr);
}
.ws-tut-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.ws-tut-cat {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--orange);
}
.ws-tut-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.ws-tut-desc  { font-size: 12px; color: var(--muted); flex: 1; }

/* Comunicado */
.ws-ann-list { display: flex; flex-direction: column; gap: 12px; }
.ws-ann-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-left: 4px solid var(--bg-3);
  transition: box-shadow var(--tr);
}
.ws-ann-card:hover  { box-shadow: var(--sh-md); }
.ws-ann-card.pinned { border-left-color: var(--orange); }
.ws-ann-card.info   { border-left-color: var(--teal); }
.ws-ann-card.warning{ border-left-color: var(--orange); }
.ws-ann-card.urgent { border-left-color: var(--red); }
.ws-ann-meta { min-width: 80px; text-align: center; }
.ws-ann-day  { font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1; }
.ws-ann-mon  { font-size: 11px; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.ws-ann-body { flex: 1; }
.ws-ann-title{ font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.ws-ann-text { font-size: 13px; color: var(--muted); line-height: 1.55; }
.ws-ann-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }

/* Contato */
.ws-contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.ws-contact-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ws-contact-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-2);
  color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ws-contact-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.ws-contact-role { font-size: 12px; color: var(--muted); }
.ws-contact-actions { display: flex; gap: 8px; margin-top: 4px; }

/* ── Badges ──────────────────────────────────────────────────────── */
.ws-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 20px;
}
.ws-badge-info    { background: rgba(46,168,122,.12); color: var(--teal-2); }
.ws-badge-warning { background: rgba(232,82,10,.12);  color: var(--orange); }
.ws-badge-urgent  { background: rgba(220,38,38,.12);  color: var(--red); }
.ws-badge-admin   { background: rgba(13,30,59,.1);    color: var(--navy-2); }
.ws-badge-ptm     { background: rgba(13,30,59,.1);    color: var(--navy-2); }
.ws-badge-blindar { background: rgba(28,56,121,.1);   color: #1C3879; }
.ws-badge-integra { background: rgba(46,168,122,.12); color: var(--teal-2); }
.ws-badge-active  { background: rgba(46,168,122,.12); color: var(--teal-2); }
.ws-badge-inactive{ background: rgba(107,114,128,.12);color: var(--muted); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.ws-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--r);
  border: none; transition: background var(--tr), transform var(--tr);
}
.ws-btn:hover { transform: translateY(-1px); }
.ws-btn-primary   { background: var(--orange); color: #fff; }
.ws-btn-primary:hover { background: var(--orange-2); }
.ws-btn-secondary { background: var(--navy); color: #fff; }
.ws-btn-secondary:hover { background: var(--navy-2); }
.ws-btn-ghost {
  background: var(--bg-2); color: var(--ink);
}
.ws-btn-ghost:hover { background: var(--bg-3); }
.ws-btn-danger { background: rgba(220,38,38,.1); color: var(--red); }
.ws-btn-danger:hover { background: rgba(220,38,38,.2); }
.ws-btn-sm { padding: 5px 12px; font-size: 12px; }
.ws-btn-icon {
  width: 34px; height: 34px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r); border: none;
  background: var(--bg-2); color: var(--muted);
  transition: background var(--tr), color var(--tr);
}
.ws-btn-icon:hover { background: var(--bg-3); color: var(--ink); }

/* WhatsApp btn */
.ws-btn-wa {
  background: rgba(37,211,102,.12); color: #25D366;
}
.ws-btn-wa:hover { background: rgba(37,211,102,.2); }

/* ── Tabs / Filtros ──────────────────────────────────────────────── */
.ws-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.ws-tab {
  padding: 6px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  border: 2px solid var(--bg-3);
  background: var(--white); color: var(--muted);
  cursor: pointer;
  transition: all var(--tr);
}
.ws-tab:hover  { border-color: var(--navy); color: var(--navy); }
.ws-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── Stat cards (dashboard) ──────────────────────────────────────── */
.ws-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.ws-stat-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 18px 20px;
}
.ws-stat-label { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.ws-stat-value { font-size: 28px; font-weight: 800; color: var(--navy); font-family: 'Barlow Condensed', sans-serif; line-height: 1; }
.ws-stat-sub   { font-size: 11px; color: var(--muted-2); margin-top: 4px; }

/* ── Section header ──────────────────────────────────────────────── */
.ws-section-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.ws-section-title {
  font-size: 16px; font-weight: 700; color: var(--ink);
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: -.01em;
}
.ws-section-link {
  font-size: 12px; color: var(--orange); font-weight: 600;
  transition: opacity var(--tr);
}
.ws-section-link:hover { opacity: .75; }

/* ── Admin Table ─────────────────────────────────────────────────── */
.ws-table-wrap {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  overflow: hidden;
}
.ws-table {
  width: 100%; border-collapse: collapse;
}
.ws-table th {
  background: var(--bg-2);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted);
  padding: 12px 16px;
  text-align: left;
}
.ws-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--bg-2);
  font-size: 13px; color: var(--ink);
  vertical-align: middle;
}
.ws-table tr:last-child td { border-bottom: none; }
.ws-table tbody tr:hover td { background: var(--bg); }
.ws-table-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ── Forms ───────────────────────────────────────────────────────── */
.ws-form-group { margin-bottom: 16px; }
.ws-label {
  display: block;
  font-size: 12px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 6px;
}
.ws-input, .ws-select, .ws-textarea {
  width: 100%;
  padding: 10px 13px;
  border: 2px solid var(--bg-3);
  border-radius: var(--r);
  font-family: inherit; font-size: 13px; color: var(--ink);
  background: var(--white);
  transition: border-color var(--tr), box-shadow var(--tr);
  outline: none;
}
.ws-input:focus, .ws-select:focus, .ws-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,30,59,.08);
}
.ws-textarea { resize: vertical; min-height: 90px; }
.ws-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ws-form-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 8px; }

/* ── Modal ───────────────────────────────────────────────────────── */
.ws-modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 500;
  align-items: center; justify-content: center;
}
.ws-modal-backdrop.open { display: flex; }
.ws-modal {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  width: 100%; max-width: 520px; max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  margin: 16px;
}
.ws-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.ws-modal-title { font-size: 18px; font-weight: 700; color: var(--ink); }
.ws-modal-close {
  background: none; border: none;
  color: var(--muted); font-size: 18px;
  padding: 4px; border-radius: 6px;
  transition: color var(--tr);
}
.ws-modal-close:hover { color: var(--ink); }

/* ── Tutorial steps ──────────────────────────────────────────────── */
.ws-steps { display: flex; flex-direction: column; gap: 16px; }
.ws-step {
  display: flex; gap: 16px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 18px;
}
.ws-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ws-step-body { flex: 1; }
.ws-step-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.ws-step-desc  { font-size: 13px; color: var(--muted); line-height: 1.55; }
.ws-step-note  {
  margin-top: 8px;
  background: rgba(232,82,10,.08);
  border-left: 3px solid var(--orange);
  padding: 8px 12px;
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 12px; color: var(--orange);
}

/* Step builder (admin) */
.ws-step-builder { display: flex; flex-direction: column; gap: 12px; }
.ws-step-item {
  background: var(--bg);
  border-radius: var(--r);
  padding: 14px;
  border: 2px solid var(--bg-3);
}
.ws-step-item-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.ws-step-item-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Dashboard quick access ──────────────────────────────────────── */
.ws-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.ws-quick-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  cursor: pointer;
  transition: box-shadow var(--tr), transform var(--tr);
  color: var(--ink);
}
.ws-quick-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.ws-quick-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
}
.ws-quick-name { font-size: 13px; font-weight: 700; line-height: 1.3; }

/* ── Dashboard two-col layout ────────────────────────────────────── */
.ws-dash-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  margin-top: 28px;
}

/* ── Skeleton loading ────────────────────────────────────────────── */
.ws-skeleton {
  height: 56px; border-radius: var(--r);
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
  background-size: 200% 100%;
  animation: ws-shimmer 1.4s infinite;
  margin-bottom: 10px;
}
@keyframes ws-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Toast ───────────────────────────────────────────────────────── */
.ws-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--navy); color: #fff;
  padding: 12px 18px; border-radius: var(--r);
  font-size: 13px; font-weight: 600;
  box-shadow: var(--sh-md);
  display: flex; align-items: center; gap: 8px;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--tr), transform var(--tr);
  pointer-events: none;
}
.ws-toast.show { opacity: 1; transform: translateY(0); }
.ws-toast-success { background: var(--teal-2); }
.ws-toast-error   { background: var(--red); }

/* ── Login page ──────────────────────────────────────────────────── */
.ws-login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.ws-login-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 40px;
  width: 100%; max-width: 380px;
}
.ws-login-logo { margin: 0 auto 28px; height: 64px; width: auto; display: block; }
.ws-login-title {
  font-size: 20px; font-weight: 800; color: var(--ink);
  text-align: center; margin-bottom: 4px;
  font-family: 'Barlow Condensed', sans-serif;
}
.ws-login-sub {
  font-size: 13px; color: var(--muted);
  text-align: center; margin-bottom: 28px;
}
.ws-error {
  background: rgba(220,38,38,.08);
  border: 1px solid rgba(220,38,38,.2);
  border-radius: var(--r); padding: 10px 14px;
  font-size: 12px; color: var(--red);
  margin-bottom: 14px; display: none;
}
.ws-error.show { display: block; }

/* ── Breadcrumb ──────────────────────────────────────────────────── */
.ws-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
  margin-bottom: 20px;
}
.ws-breadcrumb a       { color: var(--muted); }
.ws-breadcrumb a:hover { color: var(--navy); }
.ws-breadcrumb i       { font-size: 9px; }

/* ── Empty state ─────────────────────────────────────────────────── */
.ws-empty {
  text-align: center; padding: 60px 20px; color: var(--muted);
}
.ws-empty i    { font-size: 40px; opacity: .3; margin-bottom: 12px; }
.ws-empty p    { font-size: 14px; }

/* ── Admin header row ────────────────────────────────────────────── */
.ws-admin-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}

/* ── Dept section heading ────────────────────────────────────────── */
.ws-dept-header {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 24px 0 12px;
  padding-bottom: 6px; border-bottom: 2px solid var(--bg-3);
}
.ws-dept-header:first-child { margin-top: 0; }

/* ── System card pin button ──────────────────────────────────────── */
.ws-sys-pin-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 28px; height: 28px;
  border-radius: 8px;
  border: none;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--muted-2);
  cursor: pointer;
  transition: color var(--tr), background var(--tr);
  z-index: 1;
}
.ws-sys-pin-btn:hover  { color: var(--orange); background: rgba(232,82,10,.1); }
.ws-sys-pin-btn.pinned { color: var(--orange); background: rgba(232,82,10,.1); }

/* ── Quick access picker items ───────────────────────────────────── */
.quick-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--r);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--tr), background var(--tr);
  user-select: none;
}
.quick-picker-item:hover  { background: var(--bg-2); }
.quick-picker-item.picked { border-color: var(--orange); background: rgba(232,82,10,.04); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ws-dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .ws-sidebar {
    transform: translateX(-100%);
  }
  .ws-sidebar.open {
    transform: translateX(0);
  }
  .sb-overlay { display: block; }
  .ws-main { margin-left: 0; }
  .sb-toggle { display: block; }

  .ws-content { padding: 18px; }
  .ws-form-row { grid-template-columns: 1fr; }
  .ws-topbar { padding: 0 18px; }
}

@media (max-width: 480px) {
  .ws-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .ws-login-card { padding: 28px 20px; }
  .ws-stats-row  { grid-template-columns: 1fr 1fr; }
}

/* ── Dark theme ───────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:      #111827;
  --bg-2:    #1F2937;
  --bg-3:    #374151;
  --ink:     #F9FAFB;
  --muted:   #9CA3AF;
  --muted-2: #6B7280;
  --white:   #1F2937;
  --sh:      0 2px 12px rgba(0,0,0,.35);
  --sh-md:   0 6px 28px rgba(0,0,0,.45);
  --sh-lg:   0 16px 56px rgba(0,0,0,.6);
}

/* ── Sidebar user-link (avatar clicável) ─────────────────────────── */
.sb-user-link {
  display: flex; align-items: center; gap: 10px;
  flex: 1; min-width: 0;
  padding: 4px 6px;
  border-radius: var(--r);
  text-decoration: none;
  transition: background var(--tr);
}
.sb-user-link:hover { background: rgba(255,255,255,.1); }

/* ── Toggle switch ───────────────────────────────────────────────── */
.ws-toggle-wrap {
  position: relative; display: inline-block;
  width: 44px; height: 24px; flex-shrink: 0;
}
.ws-toggle-wrap input { opacity: 0; width: 0; height: 0; position: absolute; }
.ws-toggle-track {
  position: absolute; inset: 0;
  background: var(--bg-3); border-radius: 24px;
  cursor: pointer; transition: background var(--tr);
}
.ws-toggle-track::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: transform var(--tr);
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.ws-toggle-wrap input:checked + .ws-toggle-track { background: var(--orange); }
.ws-toggle-wrap input:checked + .ws-toggle-track::before { transform: translateX(20px); }

/* ── Settings page ───────────────────────────────────────────────── */
.ws-settings-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}
.ws-settings-nav {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  overflow: hidden;
}
.ws-settings-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  font-size: 13.5px; font-weight: 500;
  color: var(--muted);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background var(--tr), color var(--tr);
  text-decoration: none;
}
.ws-settings-nav-item:hover { background: var(--bg); color: var(--ink); }
.ws-settings-nav-item.active {
  background: var(--bg); color: var(--navy);
  border-left-color: var(--orange); font-weight: 600;
}
.ws-settings-nav-item i { width: 18px; text-align: center; font-size: 14px; }

.ws-settings-panel { display: none; }
.ws-settings-panel.active { display: block; }
.ws-settings-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 28px;
}
.ws-settings-card-title {
  font-size: 17px; font-weight: 700; color: var(--ink);
  font-family: 'Barlow Condensed', sans-serif;
  margin-bottom: 4px;
}
.ws-settings-card-sub {
  font-size: 13px; color: var(--muted);
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid var(--bg-2);
}
.ws-settings-row {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 0; gap: 20px;
  border-bottom: 1px solid var(--bg-2);
}
.ws-settings-row:last-child { border-bottom: none; }
.ws-settings-row-label {
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.ws-settings-row-desc {
  font-size: 12px; color: var(--muted); margin-top: 2px;
}
.ws-info-chip {
  background: var(--bg-2); border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px; font-weight: 500; color: var(--ink);
}

.ws-settings-profile-header {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 24px; margin-bottom: 24px;
  border-bottom: 1px solid var(--bg-2);
}
.ws-settings-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--orange); color: #fff;
  font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .ws-settings-wrap { grid-template-columns: 1fr; }
}

/* ── Modal bloqueante (sem fechar) ───────────────────────────────── */
.ws-modal-forced .ws-modal-backdrop { cursor: default; }
.ws-modal-forced.open { display: flex; }

/* ── Password strength indicator ─────────────────────────────────── */
.ws-pwd-strength {
  height: 4px; border-radius: 4px;
  background: var(--bg-3); margin-top: 8px;
  overflow: hidden;
}
.ws-pwd-strength-bar {
  height: 100%; border-radius: 4px;
  transition: width .3s, background .3s;
  width: 0%;
}
.ws-pwd-hint {
  font-size: 11px; color: var(--muted); margin-top: 4px;
}
