/* Ponto Web — design system (Plus Jakarta Sans + Inter, teal #0F766E, Material Symbols). */
:root {
  --bg: #f8fafc; --bg-alt: #f1f5f9; --surface: #ffffff; --surface-2: #f8fafc; --surface-tint: #eff4ff;
  --border: #e2e8f0; --border-control: #cbd5e1;
  --text: #1e293b; --title: #0f172a; --muted: #64748b; --caption: #334155;
  --primary: #0f766e; --primary-600: #0d5c63; --primary-accent: #14b8a6; --primary-soft: #ccfbf1; --primary-tint: #f0fdfa;
  --success: #15803d; --success-soft: #dcfce7; --success-border: #86efac;
  --warn: #b45309; --warn-soft: #fef3c7; --warn-border: #fde68a;
  --danger: #b91c1c; --danger-soft: #fee2e2; --danger-border: #fca5a5;
  --info: #0284c7; --info-soft: #e0f2fe; --info-border: #bae6fd;
  --radius-sm: 8px; --radius: 16px; --radius-xl: 24px;
  --shadow-1: 0 4px 12px -2px rgba(15, 23, 42, .06), 0 2px 4px -2px rgba(15, 23, 42, .04);
  --shadow-3: 0 10px 25px -5px rgba(15, 23, 42, .10), 0 8px 10px -6px rgba(15, 23, 42, .04);
  --shadow-4: 0 20px 30px -10px rgba(15, 23, 42, .16);
  --font-title: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--font-body); font-size: 14px; line-height: 20px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
h1 { font-family: var(--font-title); font-size: 28px; line-height: 36px; font-weight: 700; color: var(--title); margin: 0; letter-spacing: -.01em; }
h2 { font-family: var(--font-title); font-size: 16px; line-height: 24px; font-weight: 600; color: var(--title); margin: 0 0 14px; }
code { background: var(--bg-alt); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.icon, .material-symbols-outlined { font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; vertical-align: middle; }
.icon.sm { font-size: 16px; } .icon.lg { font-size: 24px; }

/* Shell ------------------------------------------------------------------- */
.app { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.app.app-public { display: block; }
.app.app-public .topbar { padding: 14px 24px; border-bottom: 1px solid var(--border); }
.app.app-public .content { padding: 24px; max-width: 1100px; margin: 0 auto; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brand { font-family: var(--font-title); color: var(--primary); font-weight: 700; font-size: 20px; padding: 2px 10px 16px; display: flex; gap: 10px; align-items: center; }
.brand-dot { width: 32px; height: 32px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 15px; }
.tenant-box { background: var(--surface-tint); border-radius: 12px; padding: 10px 12px; margin: 0 2px 14px; }
.tenant-box strong { display: block; color: var(--title); font-size: 13px; }
.tenant-box .chip-mini { display: inline-block; margin-top: 4px; background: var(--primary-soft); color: var(--primary-600); font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 99px; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 14px 12px 6px; }
.nav a, .nav span { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--caption); font-weight: 500; }
.nav a .icon { color: var(--muted); }
.nav a:hover { background: var(--bg-alt); color: var(--title); }
.nav a.active { background: var(--primary); color: #fff; }
.nav a.active .icon { color: #fff; }
.nav .soon { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; background: var(--primary-soft); color: var(--primary-600); padding: 1px 8px; border-radius: 99px; }
.nav a.active .soon { background: rgba(255,255,255,.2); color: #fff; }
.nav-group-collapsible { margin: 2px 0; }
.nav-group-header { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--caption); font-weight: 600; cursor: pointer; user-select: none; list-style: none; }
.nav-group-header::-webkit-details-marker,
.nav-group-header::marker { display: none; }
.nav-group-header:hover { background: var(--bg-alt); color: var(--title); }
.nav details summary span { display: inline-flex; align-items: center; padding: 0; border-radius: 0; color: inherit; }
.nav-group-header .icon { color: var(--muted); font-size: 20px; }
.nav-group-header:hover .icon { color: var(--title); }
.nav-group-collapsible.has-active > .nav-group-header { color: var(--primary-600); font-weight: 600; }
.nav-group-collapsible.has-active > .nav-group-header .icon { color: var(--primary); }
.nav-group-header .nav-group-arrow { margin-left: auto; font-size: 20px; color: var(--muted); transition: transform 0.15s ease; }
.nav-group-collapsible[open] > .nav-group-header .nav-group-arrow { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .nav-group-header .nav-group-arrow { transition: none; }
}
.nav-group-items { display: flex; flex-direction: column; padding-left: 10px; margin-top: 2px; margin-bottom: 4px; }
.sidebar-foot { margin-top: auto; padding-top: 16px; }
.server-ok { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--caption); background: var(--bg-alt); border-radius: 10px; padding: 6px 10px; }
.server-ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

.main { min-width: 0; }
.topbar { background: rgba(255,255,255,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); padding: 10px 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 20; }
.topbar .account { color: var(--muted); font-weight: 500; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-600); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.user-chip .who { line-height: 16px; }
.user-chip .who strong { display: block; color: var(--title); font-size: 13px; }
.user-chip .who span { font-size: 12px; color: var(--muted); }
.content { padding: 28px 32px; max-width: 1440px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .lead { color: var(--muted); margin-top: 4px; max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-soft); color: var(--primary-600); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 99px; margin-bottom: 8px; }

/* Cards & stats ----------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; position: relative; color: var(--text); display: block; transition: box-shadow .15s, border-color .15s; }
a.stat:hover { box-shadow: var(--shadow-1); border-color: var(--border-control); color: var(--text); }
.stat .label { color: var(--caption); font-size: 13px; font-weight: 500; padding-right: 44px; }
.stat .value { font-family: var(--font-title); font-size: 32px; line-height: 40px; font-weight: 700; color: var(--title); margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat .value small { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--muted); }
.stat .sub { margin-top: 4px; }
.stat .stat-icon { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-tint); color: var(--primary); }
.stat.tone-danger .stat-icon { background: var(--danger-soft); color: var(--danger); }
.stat.tone-warn .stat-icon { background: var(--warn-soft); color: var(--warn); }
.stat.tone-info .stat-icon { background: var(--info-soft); color: var(--info); }
.stat.tone-success .stat-icon { background: var(--success-soft); color: var(--success); }
.stat.tone-danger.has-issues { border-color: var(--danger-border); }
.stat.tone-warn.has-issues { border-color: var(--warn-border); }
.stat .cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-weight: 600; font-size: 13px; color: var(--primary); }
.progress { height: 6px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }

/* Buttons ----------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border-control); background: var(--surface); color: var(--title); padding: 9px 16px; min-height: 40px; border-radius: var(--radius-sm); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--surface-2); color: var(--title); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--primary-accent); outline-offset: 2px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); border-color: var(--primary-600); color: #fff; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-danger { color: var(--danger); }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger-solid:hover { background: #991b1b; color: #fff; }
.btn-sm { padding: 5px 12px; min-height: 32px; font-size: 13px; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-link { background: none; border: 0; color: var(--primary); cursor: pointer; font: inherit; font-weight: 600; padding: 0; }
.btn-link.danger { color: var(--danger); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Tables ------------------------------------------------------------------ */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; line-height: 14px; color: var(--caption); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
.table-card { padding: 0; overflow-x: auto; }
.table-card > table:first-child thead tr:first-child th:first-child { border-top-left-radius: var(--radius); }
.table-card > table:first-child thead tr:first-child th:last-child { border-top-right-radius: var(--radius); }
.actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 40px; }
.sub { color: var(--muted); font-size: 12px; line-height: 16px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* Badges / chips ---------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.badge .icon { font-size: 14px; }
.badge-success { background: var(--success-soft); color: var(--success); border-color: var(--success-border); }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-border); }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-border); }
.badge-info { background: var(--info-soft); color: var(--info); border-color: var(--info-border); }
.badge-muted { background: var(--bg-alt); color: var(--caption); border-color: var(--border); }

/* Forms ------------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px 16px; }
.col-1 { grid-column: span 1; } .col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; } .col-10 { grid-column: span 10; } .col-12 { grid-column: span 12; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 13px; color: var(--caption); }
.field .req { color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input[type=month], input[type=number], select, textarea {
  width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border-control); border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--title);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 118, 110, .15); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--primary); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.error { color: var(--danger); font-size: 12px; margin-top: 4px; }
.check { display: inline-flex; gap: 8px; align-items: center; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters input, .filters select { width: auto; min-width: 180px; }
.inline-form { display: flex; gap: 10px; align-items: flex-start; }
.inline-form .field { flex: 1; }
.segmented { display: inline-flex; background: var(--bg-alt); border-radius: 12px; padding: 4px; gap: 2px; }
.segmented a { padding: 6px 14px; border-radius: 9px; color: var(--caption); font-weight: 500; }
.segmented a.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 1px 2px rgba(15,23,42,.08); }

/* Alerts ------------------------------------------------------------------ */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: var(--success-border); }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-border); }
.alert-info { background: var(--info-soft); color: #075985; border-color: var(--info-border); }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-border); }

.pagination { display: flex; gap: 6px; justify-content: flex-end; padding: 12px; }
.pagination a, .pagination span { padding: 5px 11px; border-radius: 8px; border: 1px solid var(--border); background: #fff; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { color: #94a3b8; }

/* Modal ------------------------------------------------------------------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-4); width: 100%; max-width: 460px; padding: 24px; }
.modal h3 { font-family: var(--font-title); font-size: 20px; margin: 0 0 4px; color: var(--title); }
.modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.reason-list { display: grid; gap: 8px; margin: 14px 0; }
.reason-list label { display: flex; gap: 10px; align-items: center; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.reason-list label:has(input:checked) { border-color: var(--primary); background: var(--primary-tint); }

/* Auth -------------------------------------------------------------------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 10% 10%, #ccfbf1 0%, transparent 60%), linear-gradient(135deg, #f8fafc, #e0f2fe); }
.auth-box { width: 100%; max-width: 440px; margin: auto; display: flex; flex-direction: column; align-items: center; }
.auth .auth-box, .auth-box-card { max-width: 420px; }
.auth-box .auth-panel, .auth-box .auth-card { width: 100%; }
.auth-logo { margin-bottom: 32px; display: flex; justify-content: center; }
.auth-logo a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; line-height: 0; }
.auth-logo img { height: 64px; width: auto; max-width: 100%; display: block; }
@media (max-width: 640px) {
    .auth-logo { margin-bottom: 24px; }
    .auth-logo img { height: 48px; }
}
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-3); border: 1px solid var(--border); }
.auth-card .field { margin-bottom: 14px; }
.auth-card .btn { width: 100%; justify-content: center; }
.auth-foot { text-align: center; margin-top: 16px; color: var(--muted); }

/* Domain: schedules & timecard ------------------------------------------- */
.schedule-table input.time { width: 76px; text-align: center; font-variant-numeric: tabular-nums; }
.schedule-table select { width: auto; }
.schedule-table input:disabled { background: var(--surface-2); color: #cbd5e1; }
.schedule-table tr.has-error td { background: var(--danger-soft); }
.timecard td, .timecard th { padding: 8px 10px; font-size: 13px; }
.timecard .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timecard tr.rest td { background: var(--bg-alt); }
.timecard tr.inactive td { color: #cbd5e1; }
.timecard tr.row-alert td { background: #fff7ed; }
.timecard tfoot th { background: var(--bg-alt); border-top: 2px solid var(--border); color: var(--title); }
.punch-cell { min-width: 64px; }
.punch-chip { display: inline-flex; align-items: center; gap: 2px; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--primary-600); background: var(--primary-tint); border: 1px solid transparent; border-radius: 8px; padding: 3px 8px; cursor: pointer; }
.punch-chip:hover { border-color: var(--primary); }
.punch-chip.included { background: var(--info-soft); color: var(--info); }
.punch-chip.dup { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-border); }
.punch-add { width: 100%; min-height: 26px; border: 1px dashed var(--border-control); background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; font: inherit; opacity: 0; transition: opacity .12s; }
tr:hover .punch-add, .punch-add.needed { opacity: 1; }
.punch-add.needed { border-color: var(--danger-border); color: var(--danger); background: var(--danger-soft); }

/* Issue queue ------------------------------------------------------------- */
.issue-row td { vertical-align: top; }
.issue-type { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.issue-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.bulk-bar { display: none; align-items: center; justify-content: space-between; gap: 12px; background: var(--title); color: #fff; padding: 10px 16px; border-radius: 12px; margin-bottom: 14px; }
.bulk-bar.show { display: flex; }

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .content { padding: 16px; }
  .topbar { padding: 10px 16px; }
  .grid > [class*=col-] { grid-column: span 12; }
}

/* Monthly scale */
.scale-toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.scale-toolbar label { font-weight: 600; }
.scale-toolbar select { width: auto; }
.scale-toolbar .spacer { flex: 1; }
.scale-wrap { overflow-x: auto; }
.scale-table { border-collapse: separate; border-spacing: 0; }
.scale-table th, .scale-table td { padding: 4px 2px; text-align: center; white-space: nowrap; }
.scale-table th small { display: block; font-weight: 400; color: var(--muted); }
.scale-table .sticky { position: sticky; left: 0; background: var(--surface, #fff); text-align: left; padding: 6px 12px; min-width: 180px; z-index: 1; }
.scale-table td.sticky small { display: block; }
.scale-table .weekend { background: var(--primary-tint); }
.scale-table td.cell select { width: 44px; padding: 4px 2px; font-size: 12px; font-weight: 700; text-align: center; border-radius: 6px; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: none; }
.shift-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shift-form select, .shift-form input { width: auto; }
.shift-form input[type=color] { width: 40px; height: 36px; padding: 2px; }

/* Preventive audit */
.audit-employee { padding: 0; }
.audit-employee summary { display: flex; gap: 14px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.audit-employee summary::-webkit-details-marker { display: none; }
.audit-name { display: flex; flex-direction: column; min-width: 200px; }
.audit-tags { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.audit-score { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-title); font-weight: 700; font-size: 17px; flex: none; }
.audit-score.audit-score-success { background: var(--success-soft); }
.audit-score.audit-score-warn { background: var(--warn-soft); }
.audit-score.audit-score-danger { background: var(--danger-soft); }
.audit-score-success { color: var(--success); }
.audit-score-warn { color: var(--warn); }
.audit-score-danger { color: var(--danger); }
.audit-finding { border-top: 1px solid var(--border); padding: 14px 18px; }
.audit-finding-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.audit-finding p { margin: 6px 0 10px; }
.audit-table { width: 100%; }
.audit-table th, .audit-table td { padding: 6px 8px; text-align: left; }

/* Activity log */
.activity-table td { vertical-align: top; }
.activity-changes summary { cursor: pointer; color: var(--primary); font-size: 12px; font-weight: 600; margin-top: 4px; }
.activity-changes table { margin-top: 6px; font-size: 12px; }
.activity-changes th, .activity-changes td { padding: 3px 8px; text-align: left; }

/* Geofences */
.geo-map { height: 440px; }
.geo-search { display: flex; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.geo-search input { flex: 1; }

/* Vacations */
.vacation-line { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 3px 0; }
.leave-line { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--border); margin-top: 10px; }
.vacation-calendar th, .vacation-calendar td { text-align: center; padding: 6px 4px; }
.vacation-calendar td:first-child, .vacation-calendar th:first-child { text-align: left; min-width: 180px; padding-left: 12px; }
.cal-chip { display: inline-block; border-radius: 6px; padding: 1px 6px; font-size: 11px; font-weight: 700; margin: 1px; }
.cal-chip.vacation { background: var(--success-soft); color: var(--success); }
.cal-chip.leave { background: var(--info-soft); color: var(--info); }

/* Live dashboard */
.live-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); margin-left: 4px; animation: live-pulse 2s infinite; }
@keyframes live-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.live-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.live-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0 10px; align-items: center; text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font: inherit; color: var(--text); }
.live-card .icon { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-alt); }
.live-card .live-n { font-family: var(--font-title); font-size: 22px; font-weight: 700; color: var(--title); line-height: 26px; }
.live-card .live-label { font-size: 12px; color: var(--caption); line-height: 16px; }
.live-card:disabled { cursor: default; opacity: .55; }
.live-card[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.live-card.tone-success .icon { background: var(--success-soft); color: var(--success); }
.live-card.tone-warn .icon { background: var(--warn-soft); color: var(--warn); }
.live-card.tone-danger .icon { background: var(--danger-soft); color: var(--danger); }
.live-card.tone-info .icon { background: var(--info-soft); color: var(--info); }
.live-list { margin-top: 14px; border-top: 1px solid var(--border); }
.live-row { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr auto; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--border); align-items: center; }
@media (max-width: 640px) { .live-row { grid-template-columns: 1fr; gap: 2px; } }

/* Overtime bands */
.band-editor { border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.band-title { font-weight: 600; margin-bottom: 8px; color: var(--title); }
.band-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.band-label { width: 64px; font-size: 13px; color: var(--caption); }
.band-row input[type=number] { width: 76px; }

/* Permissions */
.permission-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.permission-group { border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.permission-group .check { display: flex; margin: 6px 0; align-items: flex-start; }

/* Auth, two columns (sign-up and login) */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); }
.auth-aside { position: relative; overflow: hidden; color: #ecfeff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; gap: 22px;
    background: radial-gradient(900px 500px at 0% 0%, rgba(20, 184, 166, .55), transparent 60%), linear-gradient(160deg, #0f766e 0%, #0d5c63 55%, #134e4a 100%); }
.auth-aside::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 48px solid rgba(255, 255, 255, .06); }
.auth-hero { font-family: var(--font-title); font-size: 34px; line-height: 42px; font-weight: 800; color: #fff; margin: 0; letter-spacing: -.02em; max-width: 520px; }
.auth-hero-sub { font-size: 16px; line-height: 24px; color: #ccfbf1; margin: 0; max-width: 480px; }
.auth-benefits { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 14px; max-width: 480px; }
.auth-benefits li { display: flex; gap: 14px; align-items: flex-start; }
.auth-benefits .icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; }
.auth-benefits strong { display: block; color: #fff; font-weight: 600; }
.auth-benefits span { color: #ccfbf1; font-size: 14px; }
.auth-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.auth-trust span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 13px; font-weight: 500; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-panel { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-3); padding: 36px; }
.auth-title { font-size: 26px; line-height: 34px; margin: 0; }
.auth-lead { color: var(--muted); margin: 6px 0 22px; }
.auth-form .field { margin-bottom: 14px; }
.auth-form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.btn-lg { padding: 12px 18px; font-size: 15px; }
.auth-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 14px; }
.password-field { position: relative; }
.password-field input { padding-right: 44px; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.password-toggle:hover { background: var(--bg-alt); color: var(--caption); }
@media (max-width: 900px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-aside { padding: 32px 20px 24px; gap: 12px; }
    .auth-hero { font-size: 22px; line-height: 29px; }
    .auth-hero-sub, .auth-benefits { display: none; }
    .auth-trust span { padding: 4px 10px; font-size: 12px; }
    .auth-main { padding: 24px 16px 40px; }
    .auth-panel { padding: 24px; }
}
@media (max-width: 480px) { .auth-two { grid-template-columns: 1fr; } }

/* Auth: two-factor & code fields ------------------------------------------- */
.auth-code-input {
  width: 100%;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: .18em;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 10px 14px;
  min-height: 48px;
}
.two-factor-steps {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.two-factor-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
}
.two-factor-step-num {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-600);
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.two-factor-step-body {
  flex: 1;
  min-width: 0;
}
.two-factor-qr-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px 0 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.two-factor-qr-wrap canvas {
  display: block;
  max-width: 180px;
  height: auto;
}
.two-factor-manual {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.two-factor-manual-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--caption);
  margin-bottom: 4px;
}
.two-factor-manual-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.two-factor-manual-code {
  font-family: monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--title);
  word-break: break-all;
  user-select: all;
  background: transparent;
  padding: 0;
}
.two-factor-lost {
  margin: 14px 0;
  font-size: 13px;
}
.two-factor-lost summary {
  color: var(--primary);
  cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  list-style-position: inside;
}
.two-factor-lost summary:hover {
  color: var(--primary-600);
}
.two-factor-lost-box {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--caption);
  line-height: 18px;
}
.two-factor-lost-box p {
  margin: 0 0 6px;
}
.two-factor-lost-box p:last-child {
  margin-bottom: 0;
}

/* Recovery codes ----------------------------------------------------------- */
.recovery-codes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.recovery-code-item {
  display: block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  text-align: center;
  font-family: monospace;
  font-size: 12px;
  color: var(--title);
  user-select: all;
  letter-spacing: .02em;
}
.recovery-actions {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}
.recovery-actions .btn {
  flex: 1;
}
.btn.disabled, .btn[aria-disabled="true"] {
  opacity: .5;
  pointer-events: none;
  cursor: not-allowed;
}

@media (max-width: 390px) {
  .auth-card {
    padding: 24px 18px;
  }
  .recovery-code-item {
    font-size: 11px;
    padding: 6px 4px;
    letter-spacing: 0;
  }
  .two-factor-manual-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Ajuda (J48) ------------------------------------------------------------- */
.btn-topbar-help {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
  flex-shrink: 0;
}
.btn-topbar-help:hover {
  background: #0d5c63;
  color: #fff;
  transform: scale(1.05);
}
.btn-topbar-help .icon {
  color: #fff;
  font-size: 18px;
}

/* Onboarding Primeiros Passos (J48) ---------------------------------------- */
.onboarding-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-1);
}
.onboarding-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.onboarding-card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}
.onboarding-card-head h2 {
  font-size: 20px;
  line-height: 26px;
  margin: 0;
  color: var(--title);
}
.btn-hide-onboarding {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all .15s ease;
}
.btn-hide-onboarding:hover {
  color: var(--danger);
  background: var(--danger-soft);
}
.onboarding-progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 99px;
  margin: 16px 0 20px;
  overflow: hidden;
}
.onboarding-progress-fill {
  height: 100%;
  background: #0f766e;
  border-radius: 99px;
  transition: width .3s ease;
}
.onboarding-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 16px;
  margin-bottom: 20px;
}
.onboarding-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}
.onboarding-step-item.done {
  color: #64748b;
  text-decoration: line-through;
}
.onboarding-step-item.done .icon {
  color: #10b981;
  text-decoration: none;
}
.onboarding-step-item.pending .icon {
  color: #cbd5e1;
}
.onboarding-step-item.next {
  font-weight: 600;
  color: var(--title);
}
.onboarding-step-item.next .icon {
  color: var(--primary);
}
.onboarding-next-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 14px 18px;
}
.onboarding-next-info {
  flex: 1;
}
.onboarding-next-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #16a34a;
  display: block;
  margin-bottom: 2px;
}
.onboarding-next-info strong {
  font-size: 14px;
  color: #0f172a;
}
.onboarding-next-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .onboarding-next-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .onboarding-next-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.help-public-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--surface-tint, #f0fdfa);
  border: 1px solid var(--border, #ccfbf1);
  border-radius: var(--radius-lg, 12px);
  padding: 14px 20px;
  margin-bottom: 28px;
}
.help-public-notice-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--title, #0f172a);
}
.help-public-notice-text .icon {
  color: var(--primary, #0f766e);
}
@media (max-width: 640px) {
  .help-public-notice {
    flex-direction: column;
    align-items: flex-start;
  }
}
.help-discrete-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--muted, #64748b);
  text-decoration: none;
  transition: color .15s ease;
}
.help-discrete-link:hover {
  color: var(--primary, #0f766e);
  text-decoration: underline;
}
.help-discrete-link .icon {
  font-size: 16px;
}

.help-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  color: #fff;
  background: radial-gradient(800px 400px at 100% 0%, rgba(20, 184, 166, .25), transparent 70%), linear-gradient(135deg, #042f2e 0%, #064e3b 45%, #0d5c63 100%);
  box-shadow: var(--shadow-3);
  margin-bottom: 28px;
}
.help-hero-watermark {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 78px;
  font-weight: 800;
  color: rgba(255, 255, 255, .12);
  user-select: none;
  pointer-events: none;
}
.help-hero h1 {
  color: #fff;
  font-size: 32px;
  line-height: 38px;
  margin-bottom: 6px;
}
.help-hero-sub {
  color: #ccfbf1;
  font-size: 15px;
  margin: 0 0 20px;
  max-width: 600px;
}
.help-search-form {
  position: relative;
  max-width: 680px;
}
.help-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 6px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
}
.help-search-box .icon {
  color: #64748b;
  font-size: 22px;
}
.help-search-box input {
  flex: 1;
  border: 0;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: #0f172a;
  background: transparent;
  padding: 8px 0;
}
.help-search-box input::placeholder {
  color: #94a3b8;
}
.help-search-box .kbd-hint {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2px 8px;
  line-height: 1.2;
}
.help-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.help-quick-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
  color: #f0fdfa;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.help-quick-tag:hover {
  background: rgba(255, 255, 255, .24);
  color: #fff;
  transform: translateY(-1px);
}

/* Sections on /ajuda */
.help-section-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--title);
  margin: 0 0 14px;
}
.help-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.help-section-head .help-section-title {
  margin: 0;
}
.help-section-head a {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Profiles grid */
.help-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.help-profile-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.help-profile-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-1);
}
.help-profile-card.active {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.help-profile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.help-profile-icon.p-rh { background: #dcfce7; color: #15803d; }
.help-profile-icon.p-gestor { background: #e0f2fe; color: #0284c7; }
.help-profile-icon.p-funcionario { background: #fef3c7; color: #b45309; }
.help-profile-icon.p-relogio { background: #f3e8ff; color: #7e22ce; }
.help-profile-info strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 2px;
}
.help-profile-info span {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

/* Category cards grid */
.help-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}
.help-category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.help-category-card:hover {
  border-color: var(--border-control);
  box-shadow: var(--shadow-1);
}
.help-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.help-cat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.help-cat-icon.c1 { background: #dcfce7; color: #15803d; }
.help-cat-icon.c2 { background: #e0f2fe; color: #0284c7; }
.help-cat-icon.c3 { background: #fef3c7; color: #b45309; }
.help-cat-icon.c4 { background: #ccfbf1; color: #0f766e; }
.help-cat-icon.c8 { background: #f3e8ff; color: #7e22ce; }
.help-cat-title {
  flex: 1;
}
.help-cat-title h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--title);
}
.help-cat-title span {
  font-size: 12px;
  color: var(--muted);
}
.help-article-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.help-article-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
  text-decoration: none;
}
.help-article-list li a:hover {
  color: var(--primary);
}
.help-article-list li a .icon {
  font-size: 18px;
  color: var(--muted);
}
.help-cat-footer a {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* FAQ accordion */
.help-faq-section {
  margin-bottom: 36px;
}
.help-faq-accordion {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .15s ease;
}
.help-faq-accordion[open] {
  border-color: var(--primary-accent);
}
.help-faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--title);
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.help-faq-summary::-webkit-details-marker {
  display: none;
}
.help-faq-summary .icon {
  color: var(--muted);
  transition: transform .2s ease;
}
.help-faq-accordion[open] .help-faq-summary .icon {
  transform: rotate(180deg);
}
.help-faq-content {
  padding: 0 20px 18px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
.help-faq-content p {
  margin: 0 0 10px;
}
.help-faq-content p:last-child {
  margin-bottom: 0;
}

/* Footer / support */
.help-footer-support {
  text-align: center;
  padding: 24px 0 12px;
  font-size: 14px;
  color: var(--muted);
}
.help-footer-support a {
  font-weight: 600;
  color: var(--primary);
}

/* Article view layout (2 columns) */
.help-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: flex-start;
}
.help-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.help-breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}
.help-breadcrumbs a:hover {
  color: var(--primary);
}
.help-breadcrumbs .sep {
  color: #cbd5e1;
}
.help-breadcrumbs .current {
  color: var(--title);
  font-weight: 500;
}
.help-article-header h1 {
  font-size: 30px;
  line-height: 38px;
  margin-bottom: 10px;
}
.help-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.help-article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.help-article-summary {
  font-size: 16px;
  line-height: 24px;
  color: #475569;
  margin-bottom: 24px;
}

/* Faixa Caminho */
.help-caminho-bar {
  background: #061d24;
  border-radius: 16px;
  padding: 16px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-1);
}
.help-caminho-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.help-caminho-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2dd4bf;
}
.help-caminho-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #e2e8f0;
}
.help-caminho-steps .arrow {
  color: #5eead4;
  font-size: 14px;
}
.help-caminho-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  background: #0d9488;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s ease;
}
.help-caminho-btn:hover {
  background: #0f766e;
  color: #fff;
}

/* Steps list (ol.help-steps) */
ol.help-steps {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  counter-reset: help-step;
}
ol.help-steps > li {
  position: relative;
  padding-left: 54px;
  margin-bottom: 26px;
  counter-increment: help-step;
  font-size: 14px;
  line-height: 1.6;
}
ol.help-steps > li::before {
  content: counter(help-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 118, 110, .25);
}
.help-article-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  margin: 14px 0 8px;
}

/* Callouts */
.help-callout {
  border-radius: 14px;
  padding: 16px 20px;
  margin: 22px 0;
  border: 1px solid transparent;
}
.help-callout-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.help-callout-body {
  font-size: 14px;
  line-height: 1.5;
}
.help-callout-body p {
  margin: 0;
}
.help-callout-ready {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.help-callout-ready .help-callout-header {
  color: #15803d;
}
.help-callout-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.help-callout-warning .help-callout-header {
  color: #b45309;
}
.help-callout-tip {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #075985;
}
.help-callout-tip .help-callout-header {
  color: #0284c7;
}

/* Article Sidebar */
.help-article-sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.help-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
}
.help-sidebar-card.highlight {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.help-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.help-sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.help-sidebar-links a {
  display: block;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  line-height: 1.4;
  transition: color .15s ease;
}
.help-sidebar-links a:hover {
  color: var(--primary);
}
.help-sidebar-card.highlight strong {
  display: block;
  font-size: 14px;
  color: #166534;
  margin-bottom: 6px;
}
.help-sidebar-card.highlight a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #15803d;
}

/* Isto ajudou? Feedback bar */
.help-feedback-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  margin-top: 36px;
  border-radius: 14px;
  background: var(--surface);
}
.help-feedback-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.help-feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-control);
  background: var(--surface);
  color: var(--caption);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
}
.help-feedback-btn:hover {
  background: var(--bg-alt);
  border-color: var(--muted);
}
.help-feedback-btn.voted {
  background: var(--primary-tint);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}
.help-feedback-stat {
  font-size: 13px;
  color: var(--muted);
}

/* Category detail view */
.help-cat-header-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.help-cat-article-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.help-cat-article-item:hover {
  border-color: var(--primary);
  transform: translateX(2px);
}
.help-cat-article-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.help-order-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}
.help-cat-article-info strong {
  display: block;
  font-size: 15px;
  color: var(--title);
  margin-bottom: 2px;
}
.help-cat-article-info span {
  font-size: 13px;
  color: var(--muted);
}

/* Responsive adjustments for 390px mobile */
@media (max-width: 992px) {
  .help-article-layout {
    grid-template-columns: 1fr;
  }
  .help-article-sidebar {
    position: static;
    margin-top: 24px;
  }
}
@media (max-width: 640px) {
  .btn-topbar-help {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
  flex-shrink: 0;
}
.btn-topbar-help:hover {
  background: #0d5c63;
  color: #fff;
  transform: scale(1.05);
}
.btn-topbar-help .icon {
  color: #fff;
  font-size: 18px;
}

/* Onboarding Primeiros Passos (J48) ---------------------------------------- */
.onboarding-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-1);
}
.onboarding-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.onboarding-card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}
.onboarding-card-head h2 {
  font-size: 20px;
  line-height: 26px;
  margin: 0;
  color: var(--title);
}
.btn-hide-onboarding {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all .15s ease;
}
.btn-hide-onboarding:hover {
  color: var(--danger);
  background: var(--danger-soft);
}
.onboarding-progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 99px;
  margin: 16px 0 20px;
  overflow: hidden;
}
.onboarding-progress-fill {
  height: 100%;
  background: #0f766e;
  border-radius: 99px;
  transition: width .3s ease;
}
.onboarding-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 16px;
  margin-bottom: 20px;
}
.onboarding-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}
.onboarding-step-item.done {
  color: #64748b;
  text-decoration: line-through;
}
.onboarding-step-item.done .icon {
  color: #10b981;
  text-decoration: none;
}
.onboarding-step-item.pending .icon {
  color: #cbd5e1;
}
.onboarding-step-item.next {
  font-weight: 600;
  color: var(--title);
}
.onboarding-step-item.next .icon {
  color: var(--primary);
}
.onboarding-next-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 14px 18px;
}
.onboarding-next-info {
  flex: 1;
}
.onboarding-next-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #16a34a;
  display: block;
  margin-bottom: 2px;
}
.onboarding-next-info strong {
  font-size: 14px;
  color: #0f172a;
}
.onboarding-next-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .onboarding-next-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .onboarding-next-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.help-hero {
    padding: 24px 20px;
  }
  .help-hero h1 {
    font-size: 24px;
    line-height: 30px;
  }
  .help-hero-watermark {
    display: none;
  }
  .help-caminho-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .help-caminho-btn {
    width: 100%;
    justify-content: center;
  }
  .help-feedback-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

