/* ==========================================================================
   Novo Padrão Visual — Oficial (.os-*)
   Identidade extraída de oficialsport.com.br — dark-only.
   Fonte da verdade: hauxtech-documentacao/infraestrutura/padronizacao/oficial/
   (padrao.md + layout.md + design-system.html). Piloto: multi-financeiro.
   ========================================================================== */

:root {
  --os-bg: #14161B;
  --os-panel: #393C43;
  --os-glass: rgba(255, 255, 255, 0.23);

  --os-primary: #B4181E;
  --os-primary-emphasis: #D3051D;
  --os-secondary: #0592B0;

  --os-text: #FFFFFF;
  --os-text-muted: #C9CDD3;

  --os-success: #8fae1b;
  --os-error: #d9534f;
  --os-error-strong: #b81c23;
  --os-info: #1e85be;
  --os-neutral: #cccccc;
  --os-warning: #958e09;

  --os-font: 'Work Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --os-navbar-h: 56px;
  --os-sidebar-w: 230px;
  --os-footer-h: 32px;

  color-scheme: dark;
}

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

html, body { height: 100%; margin: 0; padding: 0; overflow: hidden; }

body {
  background: var(--os-bg);
  color: var(--os-text);
  font-family: var(--os-font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--os-primary); color: #fff; }
:focus-visible { outline: 1.5px solid var(--os-secondary); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--os-font); font-weight: 600; margin: 0; color: var(--os-text); }
hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- NAVBAR ---------- */
.os-navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--os-navbar-h); z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem;
  background: var(--os-bg); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.os-brand { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: 1.05rem; color: var(--os-text); }
.os-brand img { height: 30px; }
.os-navbar-toggle {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.12); color: var(--os-text-muted);
  border-radius: 6px; padding: .25rem .5rem; font-size: 1.1rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; margin-right: .75rem; transition: all .15s ease;
}
.os-navbar-toggle:hover { color: var(--os-secondary); border-color: var(--os-secondary); }
.os-navbar-left { display: flex; align-items: center; }

.os-user { position: relative; }
.os-user-btn {
  display: flex; align-items: center; gap: .55rem; background: var(--os-panel);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; padding: .3rem .9rem .3rem .3rem;
  color: var(--os-text); font-family: var(--os-font); font-size: .85rem; cursor: pointer;
}
.os-user-btn:hover { border-color: var(--os-secondary); }
.os-avatar, .os-avatar-fallback {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 146, 176, 0.18); color: var(--os-secondary);
}
.os-dropdown {
  position: absolute; top: calc(100% + .6rem); right: 0; min-width: 200px;
  background: var(--os-panel); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: .6rem; padding: .45rem;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .15s, transform .15s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35); z-index: 1001;
}
.os-dropdown.open { opacity: 1; transform: none; pointer-events: auto; }
.os-dropdown-header { font-size: .72rem; letter-spacing: .04em; color: var(--os-text-muted); padding: .5rem .6rem; text-transform: uppercase; }
.os-dropdown hr { margin: .3rem 0; }
.os-dropdown-item {
  display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left;
  background: none; border: 0; color: var(--os-text); font-family: var(--os-font); font-size: .86rem;
  padding: .55rem .6rem; border-radius: .5rem; cursor: pointer;
}
.os-dropdown-item i { font-size: 1rem; width: 1.1rem; }
.os-dropdown-item:hover { background: rgba(255, 255, 255, 0.06); }
.os-dropdown-item.danger:hover { background: rgba(217, 83, 79, 0.15); color: var(--os-error); }

/* ---------- NOTIFICAÇÕES ---------- */
.os-notif-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  background: var(--os-panel); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50%;
  width: 38px; height: 38px; color: var(--os-text-muted); font-size: 1.1rem; cursor: pointer;
  margin-right: .75rem; transition: all .15s ease;
}
.os-notif-btn:hover { color: var(--os-secondary); border-color: var(--os-secondary); }
.os-notif-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 3px;
  background: var(--os-error); color: #fff;
  border-radius: 8px; font-size: .6rem; font-weight: 700;
  line-height: 16px; text-align: center; pointer-events: none;
}
.os-notif-panel { width: 320px; max-height: 420px; padding: 0; }
.os-notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem .8rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.os-notif-header .fw-bold { font-weight: 600; font-size: .82rem; color: var(--os-text); }
.os-notif-marcar-todas {
  background: none; border: 0; color: var(--os-secondary); font-family: var(--os-font);
  font-size: .72rem; cursor: pointer; padding: 0;
}
.os-notif-lista { overflow-y: auto; max-height: 340px; }
.os-notif-item {
  display: flex; gap: 10px; padding: .6rem .8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none; cursor: pointer; transition: background .15s;
}
.os-notif-item:last-child { border-bottom: none; }
.os-notif-item:hover { background: rgba(255, 255, 255, 0.05); }
.os-notif-item.nao-lida { background: rgba(5, 146, 176, 0.07); }
.os-notif-item.nao-lida .os-notif-titulo { font-weight: 700; }
.os-notif-icon { font-size: 1.05rem; flex-shrink: 0; margin-top: 2px; }
.os-notif-titulo { font-size: .8rem; color: var(--os-text); line-height: 1.3; }
.os-notif-msg { font-size: .72rem; color: var(--os-text-muted); line-height: 1.3; margin-top: 1px; }
.os-notif-tempo { font-size: .68rem; color: var(--os-text-muted); margin-top: 3px; }
.os-notif-vazia { text-align: center; padding: 2rem 1rem; color: var(--os-text-muted); font-size: .8rem; }
.os-notif-ponto {
  width: 7px; height: 7px; border-radius: 50%; background: var(--os-secondary);
  flex-shrink: 0; align-self: flex-start; margin-top: .5rem;
}
.text-success { color: var(--os-success) !important; }
.text-danger { color: var(--os-error) !important; }
.text-warning { color: var(--os-warning) !important; }
.text-info { color: var(--os-info) !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.flex-grow-1 { flex-grow: 1; }
.overflow-hidden { overflow: hidden; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-4 { font-size: 1.5rem; }
.mb-2 { margin-bottom: .5rem; }
.me-1 { margin-right: .25rem; }

/* ---------- SIDEBAR ---------- */
.os-sidebar {
  position: fixed; top: var(--os-navbar-h); left: 0; bottom: var(--os-footer-h); width: var(--os-sidebar-w); z-index: 999;
  background: #101217; border-right: 1px solid rgba(255, 255, 255, 0.1); overflow-y: auto; padding: .75rem 0;
  transition: transform .2s ease;
}
.os-sidebar.collapsed { transform: translateX(-100%); }
.os-nav-link {
  display: flex; align-items: center; gap: .75rem; padding: .65rem 1.25rem;
  color: var(--os-text-muted); font-size: .88rem; font-weight: 500;
  border-right: 2px solid transparent; transition: all .15s ease; white-space: nowrap;
}
.os-nav-link i { font-size: 1.05rem; width: 1.1rem; text-align: center; }
.os-nav-link:hover { color: var(--os-text); background: rgba(255, 255, 255, 0.04); }
.os-nav-link.active { color: var(--os-secondary); background: rgba(5, 146, 176, 0.1); border-color: var(--os-secondary); }

/* ---------- LAYOUT ---------- */
.os-layout {
  margin-top: var(--os-navbar-h); margin-left: var(--os-sidebar-w);
  height: calc(100vh - var(--os-navbar-h) - var(--os-footer-h));
  display: flex; flex-direction: column; overflow: hidden; transition: margin-left .2s ease;
}
.os-layout.sidebar-collapsed { margin-left: 0; }
.os-layout-nosession { margin-left: 0; }
.os-main { flex: 1; padding: 1.5rem 1.75rem; overflow-y: auto; display: flex; flex-direction: column; min-height: 0; }

.os-footer {
  position: fixed; bottom: 0; left: var(--os-sidebar-w); right: 0; height: var(--os-footer-h); z-index: 998;
  display: flex; align-items: center; justify-content: center; gap: .4rem; flex-wrap: wrap;
  font-size: .72rem; color: var(--os-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1); background: var(--os-bg); transition: left .2s ease;
}
.os-footer.sidebar-collapsed { left: 0; }
.os-footer a { color: var(--os-secondary); }

@media (max-width: 767.98px) {
  .os-sidebar { transform: translateX(-100%); }
  .os-sidebar.mobile-open { transform: none; box-shadow: 0 0 30px rgba(0,0,0,.5); }
  .os-layout { margin-left: 0; }
  .os-footer { left: 0; }
  .os-main { padding: 1rem; }
}

/* ---------- PAGE HEADER ---------- */
.os-page-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.os-page-header h1 {
  font-size: 1.25rem; display: flex; align-items: center; gap: .55rem;
}
.os-page-header h1 i { color: var(--os-secondary); font-size: 1.2rem; }
.os-page-subtitle { display: block; font-size: .8rem; color: var(--os-text-muted); font-weight: 400; margin-top: .1rem; }

/* ---------- TABS ---------- */
.os-tabs { display: flex; gap: .25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); margin-bottom: 1.1rem; flex-wrap: wrap; }
.os-tab-btn {
  padding: .6rem 1rem; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--os-text-muted); cursor: pointer; font-family: var(--os-font); font-weight: 500; font-size: .85rem;
  display: flex; align-items: center; gap: .45rem;
}
.os-tab-btn:hover { color: var(--os-text); }
.os-tab-btn.active { color: var(--os-secondary); border-color: var(--os-secondary); }
.os-tab-panel { display: none; }
.os-tab-panel.active { display: block; animation: fadeInUp .25s ease; }
.os-tabs-wrap { margin-bottom: 0; }

/* ---------- BUTTONS ---------- */
.os-btn {
  font-family: var(--os-font); font-weight: 600; font-size: .85rem;
  padding: .6rem 1.1rem; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; cursor: pointer;
  border: 1px solid transparent; transition: box-shadow .2s, transform .2s, opacity .2s, border-color .2s, background .2s;
  white-space: nowrap;
}
.os-btn i { font-size: 1rem; }
.os-btn:hover { transform: translateY(-1px); }
.os-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.os-btn-primary { background: var(--os-primary); color: #fff; }
.os-btn-primary:hover { background: var(--os-primary-emphasis); box-shadow: 0 0 16px rgba(180, 24, 30, .4); }
.os-btn-secondary { background: var(--os-secondary); color: #fff; }
.os-btn-secondary:hover { background: #067a94; box-shadow: 0 0 16px rgba(5, 146, 176, .4); }
.os-btn-outline { background: transparent; border-color: rgba(255, 255, 255, 0.3); color: var(--os-text); }
.os-btn-outline:hover { border-color: var(--os-text); background: rgba(255, 255, 255, 0.05); }
.os-btn-danger { background: var(--os-error-strong); color: #fff; }
.os-btn-danger:hover { background: #931519; box-shadow: 0 0 16px rgba(184, 28, 35, .4); }

.os-btn-xs { padding: .3rem .6rem; font-size: .74rem; border-radius: 3px; }
.os-btn-sm { padding: .45rem .85rem; font-size: .8rem; border-radius: 4px; }
.os-btn-lg { padding: .75rem 1.4rem; font-size: .95rem; border-radius: 8px; }
.os-btn-xl { padding: .9rem 1.7rem; font-size: 1rem; border-radius: 10px; }
.os-btn-icon { padding: .5rem; border-radius: 6px; }
.os-btn-block { width: 100%; }

/* ---------- CARDS ---------- */
.os-card {
  position: relative; padding: 1.35rem;
  background: var(--os-panel);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .15);
  transition: box-shadow .2s, border-color .2s;
}
.os-card-hover:hover { box-shadow: 0 0 30px rgba(0, 0, 0, .15); border-color: rgba(5, 146, 176, .35); }

/* Texto que é link (ex.: quebra de um contador do Dashboard levando à lista já
   filtrada) — discreto no estado normal, afordância só ao passar o mouse. */
.os-link { color: inherit; text-decoration: none; border-bottom: 1px dotted transparent; transition: border-color .15s, color .15s; }
.os-link:hover { color: var(--os-secondary); border-color: var(--os-secondary); }

/* Variantes semânticas de .os-link (ex.: sub-contagens por status dentro de
   um card do Dashboard — "Pendentes"/"Finalizadas"/"Em Falta"). Especifi-
   cidade de .os-link:hover é maior que a de uma única classe, então o hover
   ainda assume a cor de destaque padrão. */
.os-link-success { color: var(--os-success); }
.os-link-danger { color: var(--os-error); }
.os-link-neutral { color: var(--os-neutral); }
.os-link-info { color: #5cb6e0; }
.os-link-warning { color: var(--os-warning); }
.os-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 1100px) { .os-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .os-grid { grid-template-columns: 1fr; } }

.os-stat-icon {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 146, 176, .12); color: var(--os-secondary); font-size: 1.15rem; margin-bottom: .6rem;
}
.os-stat-num { font-size: 1.6rem; font-weight: 700; color: var(--os-text); display: block; line-height: 1.2; }
.os-stat-label { font-size: .78rem; color: var(--os-text-muted); }

/* Destaque semântico de cards de estatística (ex.: status/estágio no
   Dashboard) — reaproveita as mesmas cores de .os-badge-*. */
.os-stat-success .os-stat-icon { background: rgba(143, 174, 27, .14); color: var(--os-success); }
.os-stat-success .os-stat-num { color: var(--os-success); }
.os-stat-danger .os-stat-icon { background: rgba(217, 83, 79, .14); color: var(--os-error); }
.os-stat-danger .os-stat-num { color: var(--os-error); }
.os-stat-neutral .os-stat-icon { background: rgba(204, 204, 204, .14); color: var(--os-neutral); }
.os-stat-neutral .os-stat-num { color: var(--os-neutral); }
.os-stat-info .os-stat-icon { background: rgba(30, 133, 190, .14); color: #5cb6e0; }
.os-stat-info .os-stat-num { color: #5cb6e0; }
.os-stat-warning .os-stat-icon { background: rgba(149, 142, 9, .14); color: var(--os-warning); }
.os-stat-warning .os-stat-num { color: var(--os-warning); }

/* ---------- BADGES ---------- */
.os-badge {
  display: inline-flex; align-items: center; gap: .3rem; font-weight: 500;
  font-size: .72rem; letter-spacing: .02em;
  padding: .22rem .6rem; border-radius: 3px;
  background: rgba(5, 146, 176, .12); color: var(--os-secondary); border: 1px solid rgba(5, 146, 176, .3);
}
.os-badge-danger { background: rgba(217, 83, 79, .12); color: var(--os-error); border-color: rgba(217, 83, 79, .3); }
.os-badge-info { background: rgba(30, 133, 190, .12); color: #5cb6e0; border-color: rgba(30, 133, 190, .3); }
.os-badge-success { background: rgba(143, 174, 27, .14); color: var(--os-success); border-color: rgba(143, 174, 27, .35); }
.os-badge-neutral { background: rgba(204, 204, 204, .1); color: var(--os-neutral); border-color: rgba(204, 204, 204, .3); }
.os-badge-warning { background: rgba(149, 142, 9, .14); color: var(--os-warning); border-color: rgba(149, 142, 9, .35); }

/* ---------- EMPTY STATE ---------- */
.os-empty { text-align: center; padding: 3rem 1rem; color: var(--os-text-muted); }
.os-empty i { font-size: 2.3rem; margin-bottom: 1rem; display: block; color: var(--os-text-muted); }
.os-empty p { margin-bottom: 1.1rem; }

/* ---------- TABLE ---------- */
.os-table-wrap { overflow-x: auto; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 5px; }
.os-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.os-table th {
  text-align: left; font-weight: 600; font-size: .72rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--os-text-muted); padding: .75rem .9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.02);
}
.os-table td { padding: .7rem .9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); color: var(--os-text); vertical-align: middle; }
.os-table tr:last-child td { border-bottom: 0; }
.os-table tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
.os-table tr:hover td { background: rgba(5, 146, 176, .05); }
.os-table td.text-end, .os-table th.text-end { text-align: right; }
.os-table-actions { display: flex; gap: .35rem; justify-content: flex-end; }

/* ---------- PAGINATION ---------- */
.os-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }
.os-pagination-links { display: flex; gap: .4rem; }
.os-pagination-links a, .os-pagination-links span {
  display: flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem;
  border-radius: 4px; font-size: .8rem; color: var(--os-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.os-pagination-links a:hover { border-color: var(--os-secondary); color: var(--os-text); }
.os-pagination-links span.disabled { opacity: .35; }
.os-pagination-links .current { background: rgba(5, 146, 176, .15); color: var(--os-secondary); border-color: var(--os-secondary); }
.os-pagination-info { font-size: .78rem; color: var(--os-text-muted); }
.os-pagination-info .separator { margin: 0 .5rem; opacity: .5; }

/* ---------- FORMS ---------- */
.os-form-wrap { max-width: 640px; margin: 0 auto; width: 100%; }
.os-form-wrap.wide { max-width: 820px; }

.os-field { margin-bottom: 1.1rem; }
.os-field label {
  display: block; font-weight: 500; font-size: .74rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--os-text-muted); margin-bottom: .4rem;
}
.os-field .help-text, .os-field .form-text { font-size: .76rem; color: var(--os-text-muted); margin-top: .3rem; }
.os-field-error, .errorlist { color: var(--os-error); font-size: .78rem; margin-top: .35rem; list-style: none; padding: 0; }
.os-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .os-form-row { grid-template-columns: 1fr; } }
.os-form-actions { display: flex; gap: .75rem; margin-top: 1.4rem; }

.os-card form p { margin: 0 0 1.1rem; }
.os-card form p:last-child { margin-bottom: 0; }
.os-card form p label {
  display: block; font-weight: 500; font-size: .74rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--os-text-muted); margin-bottom: .4rem;
}

.form-control, .form-select {
  width: 100%; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 4px;
  background: rgba(0, 0, 0, .25); color: var(--os-text); font-family: var(--os-font); font-size: .92rem;
  padding: .6rem .85rem; transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  outline: 0; border-color: var(--os-secondary); box-shadow: inset 0 0 0 1px var(--os-secondary);
}
.form-control::placeholder { color: var(--os-text-muted); opacity: .7; }
.form-control option, .form-select option { background: #1d2027; color: var(--os-text); }
.form-check-input { accent-color: var(--os-secondary); width: 1rem; height: 1rem; vertical-align: middle; }

/* ---------- CONFIRM DELETE ---------- */
.os-confirm { max-width: 420px; margin: auto; text-align: center; }
.os-confirm i { font-size: 2.4rem; color: var(--os-error); margin: 0 auto 1rem; }
.os-confirm h2 { font-size: 1.1rem; margin-bottom: .6rem; }
.os-confirm p { color: var(--os-text-muted); margin-bottom: 1.3rem; font-size: .9rem; }
.os-confirm-actions { display: flex; gap: .75rem; justify-content: center; }

/* ---------- MODAL ---------- */
.os-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 1050;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.os-modal-backdrop.open { display: flex; animation: fadeInUp .15s ease; }
.os-modal-dialog { width: 100%; }

/* ---------- ALERTS ---------- */
.os-alert {
  display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-radius: 6px;
  font-size: .86rem; margin-bottom: 1rem; border: 1px solid;
}
.os-alert i { flex-shrink: 0; font-size: 1.05rem; }
.os-alert-success { background: rgba(143, 174, 27, .12); border-color: rgba(143, 174, 27, .35); color: var(--os-success); }
.os-alert-error, .os-alert-danger { background: rgba(217, 83, 79, .12); border-color: rgba(217, 83, 79, .35); color: var(--os-error); }
.os-alert-warning { background: rgba(149, 142, 9, .16); border-color: rgba(149, 142, 9, .4); color: #d8cf3a; }
.os-alert-info { background: rgba(30, 133, 190, .12); border-color: rgba(30, 133, 190, .3); color: #5cb6e0; }
.os-alert-dismiss { margin-left: auto; background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; font-size: 1rem; }
.os-alert-dismiss:hover { opacity: 1; }

/* ---------- KANBAN (módulo Chamados) ---------- */
.os-kanban-board { display: flex; gap: .75rem; padding: .25rem 0; overflow-x: auto; align-items: flex-start; }
.os-kanban-col {
  flex: 1 1 200px; min-width: 200px; background: var(--os-panel); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px; display: flex; flex-direction: column;
  max-height: calc(100vh - var(--os-navbar-h) - var(--os-footer-h) - 140px);
}
.os-kanban-col-header {
  padding: .55rem .75rem; border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px 8px 0 0; font-weight: 600; font-size: .85rem; color: var(--os-text);
  display: flex; justify-content: space-between; align-items: center;
}
.os-kanban-col-aberto .os-kanban-col-header { border-bottom-color: var(--os-info); }
.os-kanban-col-pendente .os-kanban-col-header { border-bottom-color: var(--os-warning); }
.os-kanban-col-iniciado .os-kanban-col-header { border-bottom-color: var(--os-neutral); }
.os-kanban-col-finalizado .os-kanban-col-header { border-bottom-color: var(--os-success); }
.os-kanban-col-cancelado .os-kanban-col-header { border-bottom-color: var(--os-error); }
.os-kanban-col-body { padding: .5rem; overflow-y: auto; flex-grow: 1; min-height: 70px; transition: background .15s; }
.os-kanban-col-body.drag-over { background: rgba(5, 146, 176, .08); outline: 2px dashed var(--os-secondary); outline-offset: -2px; }
.os-kanban-card {
  background: var(--os-bg); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px;
  padding: .55rem .7rem; margin-bottom: .5rem; cursor: grab; transition: box-shadow .15s, transform .1s;
}
.os-kanban-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.os-kanban-card.dragging { opacity: .5; transform: rotate(1deg); }
.os-kanban-card-titulo { display: block; font-size: .84rem; color: var(--os-text); font-weight: 600; text-decoration: none; line-height: 1.3; }
.os-kanban-card-titulo:hover { color: var(--os-secondary); }
.os-kanban-card-meta { font-size: .72rem; color: var(--os-text-muted); margin-top: .35rem; display: flex; gap: .5rem; align-items: center; }
.os-kanban-vazio { text-align: center; padding: 1rem .5rem; color: var(--os-text-muted); font-size: .78rem; opacity: .6; }

/* ---------- MANUAL DO USUÁRIO (Markdown renderizado) ---------- */
.os-manual-conteudo h1 { color: var(--os-secondary); margin-top: 0; }
.os-manual-conteudo h2 {
  color: var(--os-secondary); border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: .4rem; margin-top: 1.8rem;
}
.os-manual-conteudo h3 { color: var(--os-secondary); margin-top: 1.4rem; }
.os-manual-conteudo h4 { color: var(--os-success); }
.os-manual-conteudo table { width: 100%; margin: 1rem 0; border-collapse: collapse; }
.os-manual-conteudo table th, .os-manual-conteudo table td {
  border: 1px solid rgba(255, 255, 255, 0.12); padding: .5rem .75rem; color: var(--os-text);
}
.os-manual-conteudo table th { background: rgba(255, 255, 255, 0.04); }
.os-manual-conteudo code { background: rgba(255, 255, 255, 0.06); padding: .1rem .35rem; border-radius: 4px; }
.os-manual-conteudo pre { background: rgba(255, 255, 255, 0.06); padding: .75rem; border-radius: 6px; overflow-x: auto; }
.os-manual-conteudo blockquote { border-left: 3px solid var(--os-secondary); padding-left: 1rem; color: var(--os-text-muted); }
.os-manual-conteudo hr { border-color: rgba(255, 255, 255, 0.12); }
.os-manual-conteudo a { color: var(--os-secondary); }

/* ---------- AVATAR (Meu Perfil) ---------- */
.os-avatar-wrap { display: flex; align-items: center; gap: 1rem; }
.os-avatar-preview { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.15); }
.os-avatar-placeholder { font-size: 72px; line-height: 1; color: var(--os-text-muted); }

/* ---------- NAV GROUP (sidebar com submenus colapsáveis) ---------- */
.os-nav-group-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: .65rem 1.25rem; background: none; border: 0; cursor: pointer;
  color: var(--os-text-muted); font-size: .88rem; font-weight: 500; font-family: var(--os-font);
}
.os-nav-group-toggle:hover { color: var(--os-text); background: rgba(255, 255, 255, 0.04); }
.os-nav-group-toggle .os-nav-group-chevron { transition: transform .15s ease; font-size: .7rem; }
.os-nav-group.open .os-nav-group-toggle .os-nav-group-chevron { transform: rotate(180deg); }
.os-nav-group-body { display: none; }
.os-nav-group.open .os-nav-group-body { display: block; }
.os-nav-link.sub { padding-left: 2.75rem; font-size: .82rem; }

/* ---------- TOAST ---------- */
.os-toast {
  position: fixed; bottom: 1rem; right: 1rem; z-index: 1100;
  background: var(--os-panel); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: .6rem;
  padding: .75rem 1rem; display: flex; align-items: center; gap: .6rem; min-width: 280px; max-width: 360px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.os-toast.show { opacity: 1; transform: none; pointer-events: auto; }
.os-toast-dismiss { margin-left: auto; background: none; border: 0; color: var(--os-text-muted); opacity: .7; cursor: pointer; }
.os-toast-dismiss:hover { opacity: 1; }

/* ---------- BANNER "EM DESENVOLVIMENTO" (login, apps <100%) ---------- */
.em-breve {
  display: flex; align-items: center; gap: .75rem;
  background: linear-gradient(135deg, rgba(180, 24, 30, 0.12), rgba(5, 146, 176, 0.1));
  border: 1px solid var(--os-primary); border-radius: .5rem; padding: .75rem 1rem;
  animation: em-breve-pulse-border 2.5s ease-in-out infinite;
}
.em-breve-icon { font-size: 1.4rem; color: var(--os-primary); animation: em-breve-spin-slow 4s linear infinite; flex-shrink: 0; }
.em-breve-titulo { display: block; font-weight: 700; font-size: .95rem; color: var(--os-primary); letter-spacing: .5px; }
.em-breve-sub { display: block; font-size: .75rem; color: var(--os-text-muted); margin-top: .1rem; }
.em-breve-percentual { font-size: .8rem; font-weight: 700; color: var(--os-secondary); letter-spacing: .3px; }
.em-breve-progress {
  position: relative; width: 100%; height: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); overflow: hidden; margin: .4rem 0 .3rem;
}
.em-breve-progress-fill {
  --progresso: 0%;
  position: relative; height: 100%; width: var(--progresso); border-radius: 999px;
  background: linear-gradient(90deg, var(--os-primary), var(--os-secondary));
  animation: em-breve-preencher 1.2s ease-out forwards; transform-origin: left;
}
.em-breve-progress-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: em-breve-brilho 2.4s ease-in-out infinite;
}
@keyframes em-breve-preencher { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes em-breve-brilho { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes em-breve-pulse-border { 0%, 100% { box-shadow: 0 0 0 0 rgba(180, 24, 30, 0); } 50% { box-shadow: 0 0 0 4px rgba(180, 24, 30, 0.15); } }
@keyframes em-breve-spin-slow { 0% { transform: rotate(0deg); } 50% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }

/* ---------- MANUAL DO USUÁRIO (Markdown renderizado) ---------- */
.manual-conteudo { line-height: 1.6; }
.manual-conteudo h2 {
  color: var(--os-primary); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: .4rem; margin-top: 1.8rem;
}
.manual-conteudo h2:first-child { margin-top: 0; }
.manual-conteudo h3 { color: var(--os-secondary); margin-top: 1.4rem; }
.manual-conteudo h4 { color: var(--os-text); margin-top: 1rem; }
.manual-conteudo table { width: 100%; margin: 1rem 0; border-collapse: collapse; }
.manual-conteudo table th, .manual-conteudo table td {
  border: 1px solid rgba(255, 255, 255, 0.1); padding: .5rem .75rem; text-align: left;
}
.manual-conteudo table th { background: var(--os-panel); }
.manual-conteudo code {
  background: var(--os-panel); padding: .1rem .35rem; border-radius: .25rem; font-size: .9em;
}
.manual-conteudo pre {
  background: var(--os-panel); padding: .75rem; border-radius: .5rem; overflow-x: auto;
}
.manual-conteudo blockquote {
  border-left: 3px solid var(--os-primary); padding-left: 1rem; color: var(--os-text-muted); margin: 1rem 0;
}
.manual-conteudo hr { border: none; border-top: 1px solid rgba(255, 255, 255, 0.1); margin: 1.5rem 0; }
.manual-conteudo ul, .manual-conteudo ol { padding-left: 1.4rem; }
.manual-conteudo a { color: var(--os-secondary); }
