/* ============================================================
   viho.css — Impulso +PME — layout Viho (igual à plataforma J.RAQUEL)
   Tokens em variáveis CSS (--vh-*). Tipo de letra Barlow servido localmente.
   ============================================================ */

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/barlow-800.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/barlow-900.woff2') format('woff2'); }

/* ─── 1. Tokens ─────────────────────────────────────────── */
:root {
  /* Cor de marca — alterada em tempo real pelo personalizador */
  --vh-primary:   #2B9FBF;
  --vh-secondary: #3D4451;

  --vh-primary-dark:  color-mix(in srgb, var(--vh-primary) 76%, #000);
  --vh-primary-light: color-mix(in srgb, var(--vh-primary) 72%, #fff);
  --vh-primary-tint:  color-mix(in srgb, var(--vh-primary) 10%, transparent);
  --vh-primary-tint2: color-mix(in srgb, var(--vh-primary) 18%, transparent);
  --vh-on-primary:    #ffffff;
  --vh-active-text:   color-mix(in srgb, var(--vh-primary) 12%, #fff);

  /* Superfícies e texto — esquema claro (omissão) */
  --vh-bg:         #F5F7FB;
  --vh-surface:    #FFFFFF;
  --vh-surface-2:  #F5F7FB;
  --vh-surface-3:  #EEF2F6;
  --vh-border:     #E6EDEF;
  --vh-line:       #EDF1F4;
  --vh-heading:    #2C323F;
  --vh-text:       #242934;
  --vh-text-2:     #3F475A;
  --vh-muted:      #717171;
  --vh-label:      #59667A;
  --vh-input-bg:   #FFFFFF;
  --vh-hover:      rgba(36, 41, 52, 0.035);

  --vh-header-bg:  var(--vh-surface);
  --vh-sidebar-bg: var(--vh-surface);
  --vh-side-text:  #222222;
  --vh-side-muted: #8A8F98;
  --vh-side-title: var(--vh-heading);
  --vh-side-line:  var(--vh-border);
  --vh-logo-zone:  var(--vh-surface);

  --vh-success: #0E9F6E;
  --vh-warning: #D97706;
  --vh-danger:  #D22D3D;
  --vh-info:    #717171;
  --vh-purple:  #7C3AED;

  /* Geometria */
  --vh-header-h: 82px;
  --vh-side-w:   290px;
  --vh-gutter:   30px;
  --vh-off:      0px;              /* deslocamento do modo caixa */
  --vh-radius-btn: 5px;
  --vh-radius-nav: 10px;
  --vh-radius-card: 0px;

  --vh-shadow-header: 0 0 20px rgba(25, 124, 207, 0.08);
  --vh-shadow-card:   0 0 11px 5px rgba(113, 113, 113, 0.06);
  --vh-shadow-drop:   0 0 12px 3px rgba(25, 124, 207, 0.08);
  --vh-shadow-modal:  0 20px 35px rgba(0, 0, 0, 0.21);

  --vh-font: 'Barlow', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* ── Nomes antigos (compatibilidade com o código existente) ── */
  --blue:        var(--vh-primary);
  --blue-dark:   var(--vh-primary-dark);
  --blue-light:  var(--vh-primary-light);
  --blue-glow:   var(--vh-primary-tint2);
  --bg:          var(--vh-bg);
  --bg-card:     var(--vh-surface);
  --bg-card2:    var(--vh-surface-2);
  --bg-sidebar:  var(--vh-sidebar-bg);
  --border:      var(--vh-border);
  --border-blue: color-mix(in srgb, var(--vh-primary) 30%, transparent);
  --text:        var(--vh-text);
  --text-dim:    var(--vh-text-2);
  --text-muted:  var(--vh-muted);
  --green:       var(--vh-success);
  --amber:       var(--vh-warning);
  --purple:      var(--vh-purple);
  --red:         var(--vh-danger);
  --font-display: var(--vh-font);
  --font-body:    var(--vh-font);
  --radius:       var(--vh-radius-btn);
  --radius-lg:    8px;
  --shadow:       var(--vh-shadow-modal);
  --shadow-blue:  var(--vh-shadow-card);
  color-scheme: light;
}

/* Esquema: menu escuro */
html[data-scheme="dark-sidebar"] {
  --vh-sidebar-bg: #111727;
  --vh-side-text:  rgba(255, 255, 255, 0.72);
  --vh-side-muted: rgba(255, 255, 255, 0.45);
  --vh-side-title: rgba(255, 255, 255, 0.85);
  --vh-side-line:  color-mix(in srgb, var(--vh-primary) 22%, transparent);
  --vh-logo-zone:  #111727;
}

/* Esquema: escuro */
html[data-scheme="dark"] {
  --vh-bg:         #202938;
  --vh-surface:    #111727;
  --vh-surface-2:  #1A2233;
  --vh-surface-3:  #222B3D;
  --vh-border:     color-mix(in srgb, var(--vh-primary) 24%, #1f2738);
  --vh-line:       rgba(255, 255, 255, 0.06);
  --vh-heading:    #FFFFFF;
  --vh-text:       rgba(255, 255, 255, 0.86);
  --vh-text-2:     rgba(255, 255, 255, 0.72);
  --vh-muted:      rgba(255, 255, 255, 0.5);
  --vh-label:      rgba(255, 255, 255, 0.66);
  --vh-input-bg:   #1A2233;
  --vh-hover:      rgba(255, 255, 255, 0.03);
  --vh-sidebar-bg: #111727;
  --vh-side-text:  rgba(255, 255, 255, 0.72);
  --vh-side-muted: rgba(255, 255, 255, 0.45);
  --vh-side-title: rgba(255, 255, 255, 0.85);
  --vh-side-line:  var(--vh-border);
  --vh-logo-zone:  #111727;
  --vh-success: #10B981;
  --vh-warning: #F59E0B;
  --vh-danger:  #EF4444;
  --vh-info:    #9CA3AF;
  --vh-purple:  #A78BFA;
  --vh-shadow-header: 0 0 18px 3px #0b0f1a;
  --vh-shadow-card:   1px 1px 2px 1px rgba(0, 0, 0, 0.2);
  --vh-shadow-drop:   0 0 14px rgba(0, 0, 0, 0.45);
  --vh-active-text:   #FFFFFF;
  color-scheme: dark;
}

/* ─── 2. Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--vh-font);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.1px;
  background: var(--vh-bg);
  color: var(--vh-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--vh-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--vh-primary-dark); }
h1, h2, h3, h4, h5, h6 { color: var(--vh-heading); font-weight: 700; }
h6 { font-weight: 600; }
p { line-height: 1.7; }
::selection { background: var(--vh-primary-tint2); }
select option { background: var(--vh-surface); color: var(--vh-text); }
input, select, textarea { color-scheme: inherit; }

/* ─── 3. Formulários ────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label, label {
  font-weight: 600;
  color: var(--vh-label);
}
.form-group label {
  display: block; font-size: 13px; margin-bottom: 6px;
  text-transform: none; letter-spacing: 0;
}
.form-group input, .form-group select, .form-group textarea,
.form-control, .vh-input {
  width: 100%;
  background: var(--vh-input-bg);
  border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius-btn);
  padding: 10px 14px;
  color: var(--vh-text);
  font-family: var(--vh-font); font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
.form-control:focus, .vh-input:focus {
  border-color: var(--vh-primary);
  box-shadow: 0 0 0 3px var(--vh-primary-tint);
}
input::placeholder, textarea::placeholder { color: var(--vh-muted); opacity: 0.8; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--vh-primary); }

/* ─── 4. Botões ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0.5rem 1.25rem;
  border-radius: var(--vh-radius-btn);
  font-family: var(--vh-font); font-size: 13px; font-weight: 600;
  line-height: 1.4;
  cursor: pointer; border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.1s;
  text-decoration: none; text-transform: none; letter-spacing: 0.2px;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn[disabled] { opacity: 0.55; cursor: not-allowed; box-shadow: none !important; }
.btn-primary { background: var(--vh-primary); border-color: var(--vh-primary); color: var(--vh-on-primary); }
.btn-primary:hover { background: var(--vh-primary-dark); border-color: var(--vh-primary-dark); color: #fff; box-shadow: 0 5px 10px 2px color-mix(in srgb, var(--vh-primary) 19%, transparent); }
.btn-secondary { background: var(--vh-secondary); border-color: var(--vh-secondary); color: #fff; }
.btn-success { background: var(--vh-success); border-color: var(--vh-success); color: #fff; }
.btn-success:hover { filter: brightness(0.92); color: #fff; }
.btn-warning { background: var(--vh-warning); border-color: var(--vh-warning); color: #fff; }
.btn-warning:hover { filter: brightness(0.92); color: #fff; }
.btn-danger {
  background: color-mix(in srgb, var(--vh-danger) 10%, transparent);
  color: var(--vh-danger);
  border-color: color-mix(in srgb, var(--vh-danger) 25%, transparent);
}
.btn-danger:hover { background: var(--vh-danger); color: #fff; border-color: var(--vh-danger); }
.btn-ghost, .btn-light {
  background: var(--vh-surface-2);
  color: var(--vh-text-2);
  border-color: var(--vh-border);
}
.btn-ghost:hover, .btn-light:hover {
  background: var(--vh-primary-tint);
  color: var(--vh-primary);
  border-color: color-mix(in srgb, var(--vh-primary) 30%, transparent);
}
.btn-primary-light, .btn-outline {
  background: var(--vh-primary-tint);
  color: var(--vh-primary);
  border-color: transparent;
}
.btn-primary-light:hover, .btn-outline:hover { background: var(--vh-primary); color: #fff; }
.btn-sm { padding: 0.3rem 0.8rem; font-size: 12px; }
.btn-lg { padding: 0.7rem 1.6rem; font-size: 14px; }
.btn-xl { padding: 0.9rem 2rem; font-size: 15px; border-radius: 8px; }
.btn-block { width: 100%; }


/* ─── 5. Shell Viho ─────────────────────────────────────── */
.dashboard { display: block; min-height: 100vh; }

/* Header */
.vh-header {
  position: fixed; top: 0; left: var(--vh-off); right: var(--vh-off);
  height: var(--vh-header-h);
  z-index: 120;
  display: flex; align-items: stretch;
  background: var(--vh-header-bg);
  box-shadow: var(--vh-shadow-header);
  transition: left 0.3s, right 0.3s, top 0.3s;
}
.vh-header-left {
  width: var(--vh-side-w); flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px 0 30px;
  background: var(--vh-logo-zone);
  border-right: 1px solid var(--vh-side-line);
  transition: width 0.3s;
}
.vh-logo {
  display: block; width: 180px; height: 60px;
  background: left center / contain no-repeat;
}
.vh-header-mid { flex: 1; display: flex; align-items: center; padding: 0 22px; min-width: 0; }
.vh-header-right { display: flex; align-items: center; gap: 6px; padding: 0 26px 0 10px; flex-shrink: 0; }

.vh-icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; border-radius: 6px;
  color: var(--vh-text); cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.vh-icon-btn:hover, .vh-icon-btn[aria-expanded="true"] { background: var(--vh-primary-tint); color: var(--vh-primary); }
.vh-icon-btn:focus-visible { outline: 2px solid var(--vh-primary); outline-offset: 2px; }
.vh-icon-btn svg { width: 20px; height: 20px; }
.vh-header-left .vh-icon-btn { color: var(--vh-side-text); }
html[data-scheme="dark-sidebar"] .vh-header-left .vh-icon-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
.vh-badge {
  position: absolute; top: 3px; right: 1px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--vh-danger); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--vh-header-bg);
}
.vh-badge[hidden] { display: none; }

/* Pesquisa */
.vh-search { position: relative; width: 100%; max-width: 420px; }
.vh-search-field {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 12px;
  border-radius: 6px; border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.vh-search-field:focus-within { border-color: var(--vh-border); background: var(--vh-surface-2); }
.vh-search-field svg { width: 17px; height: 17px; color: var(--vh-primary); flex-shrink: 0; }
.vh-search-field input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: var(--vh-font); font-size: 14px; color: var(--vh-text);
}
.vh-kbd {
  font-size: 11px; font-weight: 600; color: var(--vh-muted);
  border: 1px solid var(--vh-border); border-radius: 4px; padding: 1px 6px;
}
.vh-search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  max-height: 380px; overflow-y: auto;
  background: var(--vh-surface); border: 1px solid var(--vh-border);
  box-shadow: var(--vh-shadow-drop); border-radius: 6px;
  padding: 6px; display: none;
}
.vh-search-results.open { display: block; animation: vhDrop 0.18s ease; }
.vh-result {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 9px 10px; border: none; background: none; border-radius: 5px;
  font-family: var(--vh-font); text-align: left; cursor: pointer; color: var(--vh-text);
}
.vh-result svg { width: 16px; height: 16px; color: var(--vh-muted); flex-shrink: 0; }
.vh-result-label { flex: 1; font-size: 13.5px; font-weight: 600; }
.vh-result-section { font-size: 11.5px; color: var(--vh-muted); }
.vh-result.focus, .vh-result:hover { background: var(--vh-primary-tint); }
.vh-result.focus svg, .vh-result:hover svg { color: var(--vh-primary); }
.vh-result mark { background: none; color: var(--vh-primary); }
.vh-empty { padding: 14px 10px; font-size: 13px; color: var(--vh-muted); }

/* Botão terminar sessão (o original, movido para o header) */
.vh-header .btn-logout {
  width: auto; margin-left: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: var(--vh-primary-tint);
  border: none; border-radius: var(--vh-radius-btn);
  color: var(--vh-primary);
  font-family: var(--vh-font); font-size: 13.5px; font-weight: 600;
  text-transform: none; letter-spacing: 0;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.vh-header .btn-logout:hover { background: var(--vh-primary); color: #fff; }
.vh-header .btn-logout svg { width: 16px; height: 16px; }

/* Sidebar */
.sidebar {
  position: fixed; z-index: 100;
  top: var(--vh-header-h); left: var(--vh-off); bottom: 0;
  width: var(--vh-side-w);
  display: flex; flex-direction: column;
  background: var(--vh-sidebar-bg);
  border-right: 1px solid var(--vh-side-line);
  overflow-y: auto; overflow-x: hidden;
  transition: transform 0.3s, width 0.3s, left 0.3s, opacity 0.3s;
  scrollbar-width: thin;
}
.sidebar-logo { display: none; }
body:not(.vh) .sidebar-logo { display: block; padding: 24px 20px; }
.sidebar-nav { flex: 1; padding: 0 20px 20px; overflow: visible; }

/* Bloco de perfil (Viho .sidebar-user) */
.vh-profile {
  position: relative;
  padding: 28px 24px 22px;
  margin-bottom: 14px;
  text-align: center;
  border-bottom: 1px solid var(--vh-side-line);
}
.vh-profile .sidebar-user { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 0; }
.vh-profile .sidebar-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--vh-primary-tint2); color: var(--vh-primary);
  font-family: var(--vh-font); font-size: 26px; font-weight: 700;
  overflow: hidden;
  box-shadow: 0 0 0 4px var(--vh-sidebar-bg), 0 0 0 5px color-mix(in srgb, var(--vh-primary) 30%, transparent);
}
.vh-profile .sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vh-profile .sidebar-user-info { margin-top: 16px; }
.vh-profile .sidebar-user-name { font-size: 14px; font-weight: 600; color: var(--vh-side-title); line-height: 1.35; }
.vh-profile .sidebar-user-role {
  display: inline-block; margin-top: 6px;
  padding: 2px 10px; border-radius: 10px;
  font-size: 11.5px; font-weight: 600;
  background: var(--vh-primary-tint); color: var(--vh-primary);
}
html[data-scheme="dark-sidebar"] .vh-profile .sidebar-user-role,
html[data-scheme="dark"] .vh-profile .sidebar-user-role { color: var(--vh-primary-light); background: rgba(255,255,255,0.06); }
.vh-profile-gear {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--vh-primary-tint); color: var(--vh-primary);
  transition: transform 0.4s, background 0.2s, color 0.2s;
}
.vh-profile-gear:hover { transform: rotate(60deg); background: var(--vh-primary); color: #fff; }
.vh-profile-gear svg { width: 15px; height: 15px; }
.sidebar-footer { display: none; }
body:not(.vh) .sidebar-footer { display: block; padding: 14px 18px; }

/* Secções e itens do menu */
.nav-section { margin: 0 0 6px; }
.nav-section-title, .sidebar .nav-section:not(:has(.nav-item)) {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px 10px; margin: 14px 0 10px;
  border-bottom: 1px solid var(--vh-side-line);
  font-size: 14px !important; font-weight: 700 !important;
  text-transform: none !important; letter-spacing: 0 !important;
  color: var(--vh-side-title) !important; opacity: 1 !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  user-select: none;
}
.accordion-title { cursor: pointer; }
.accordion-title:hover { color: var(--vh-primary) !important; }
.accordion-title > span[id$="-icon"] {
  font-size: 0 !important; width: 18px; height: 18px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--vh-side-muted);
}
.accordion-title > span[id$="-icon"]::before {
  content: ''; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}
.accordion-body { padding-bottom: 4px; }

.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 15px; margin: 2px 0;
  border-radius: var(--vh-radius-nav);
  font-size: 14px; font-weight: 500; line-height: 1.35;
  color: var(--vh-side-text);
  text-decoration: none; cursor: pointer;
  border: none; border-left: none;
  transition: background 0.3s, color 0.3s;
}
.nav-item .vh-ico, .nav-item > svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 2; }
.nav-item > i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.nav-item:hover { background: var(--vh-primary-tint); color: var(--vh-primary); }
.nav-item.active, .nav-item.active:hover {
  background: var(--vh-primary); color: var(--vh-active-text);
  font-weight: 600;
}
html[data-scheme="dark-sidebar"] .nav-item:hover,
html[data-scheme="dark"] .nav-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-item[target="_blank"]::after {
  content: ''; margin-left: auto; width: 6px; height: 6px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  opacity: 0.45;
}

/* Ligações "Escritório" / "Administração" */
.nav-admin-return { margin-top: 18px; padding: 16px 0 0; border-top: 1px solid var(--vh-side-line); }
.nav-office-entry { margin: 12px 0 8px; padding-top: 0; border-top: none; }
.nav-admin-return .nav-admin-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 15px; border-radius: var(--vh-radius-nav);
  border: 1px dashed color-mix(in srgb, var(--vh-primary) 35%, transparent);
  background: var(--vh-primary-tint);
  color: var(--vh-primary);
  font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none;
  text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-admin-return .nav-admin-link:hover { background: var(--vh-primary); border-color: var(--vh-primary); color: #fff; transform: none; }
.nav-admin-return .nav-admin-link i, .nav-admin-link .vh-link-ico {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--vh-primary) 16%, transparent); color: inherit; font-size: 11px;
}
html[data-scheme="dark-sidebar"] .nav-admin-return .nav-admin-link,
html[data-scheme="dark"] .nav-admin-return .nav-admin-link { color: var(--vh-primary-light); }
html[data-scheme="dark-sidebar"] .nav-admin-return .nav-admin-link:hover,
html[data-scheme="dark"] .nav-admin-return .nav-admin-link:hover { color: #fff; }

/* Corpo */
.main-content {
  margin-left: calc(var(--vh-off) + var(--vh-side-w));
  margin-right: var(--vh-off);
  padding: calc(var(--vh-header-h) + var(--vh-gutter)) var(--vh-gutter) 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  transition: margin-left 0.3s;
}
.main-content > * { flex-shrink: 0; }
.vh-footer {
  margin: auto calc(var(--vh-gutter) * -1) 0;
  padding: 15px var(--vh-gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: var(--vh-surface);
  border-top: 1px solid var(--vh-border);
  font-size: 13.5px; font-weight: 500; color: #999;
}
html[data-scheme="dark"] .vh-footer { color: var(--vh-muted); }
.vh-footer-spacer { flex: 1 0 30px; }
.vh-footer strong { color: var(--vh-primary); font-weight: 600; }

/* Cabeçalho de página */
.page-header {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.page-title {
  font-family: var(--vh-font);
  font-size: 24px; font-weight: 600; line-height: 1.3;
  color: var(--vh-heading);
  text-transform: none; letter-spacing: 0;
}
.page-subtitle { color: var(--vh-muted); font-size: 13px; margin-top: 4px; }
.vh-crumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0;
  margin-top: 6px; list-style: none;
  font-size: 13px; font-weight: 500; letter-spacing: 0.6px; color: #717171;
}
html[data-scheme="dark"] .vh-crumb { color: var(--vh-muted); }
.vh-crumb li { display: inline-flex; align-items: center; }
.vh-crumb li + li::before { content: '/'; padding: 0 8px; color: var(--vh-muted); opacity: 0.7; }
.vh-crumb a { color: var(--vh-primary); display: inline-flex; align-items: center; }
.vh-crumb svg { width: 14px; height: 14px; }
.vh-crumb + .page-subtitle { margin-top: 2px; }

/* Colapsado (botão do header) */
body.vh.vh-collapsed .sidebar { transform: translateX(-100%); opacity: 0; pointer-events: none; }
body.vh.vh-collapsed .main-content { margin-left: var(--vh-off); }
html[dir="rtl"] body.vh.vh-collapsed .sidebar { transform: translateX(100%); }

/* Overlay e botão hambúrguer antigos */
.hamburger-btn { display: none !important; }
.sidebar-overlay {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(17, 23, 39, 0.45);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.sidebar-overlay.active, .sidebar-overlay.open { opacity: 1; pointer-events: auto; }
@media (min-width: 992px) { .sidebar-overlay { display: none; } }

/* Esconde botões flutuantes antigos que passaram para o header */
body.vh .theme-btn { display: none !important; }
@media (min-width: 992px) {
}


/* ─── 6. Modos de layout ─────────────────────────────────── */
/* Compacto: só ícones com etiqueta por baixo */
@media (min-width: 992px) {
  html[data-layout="compact"] { --vh-side-w: 150px; }
  html[data-layout="compact"] .vh-header-left { padding: 0 10px 0 14px; gap: 6px; }
  html[data-layout="compact"] .vh-logo { width: 84px; height: 52px; }
  html[data-layout="compact"] .sidebar-nav { padding: 0 12px 20px; }
  html[data-layout="compact"] .vh-profile { padding: 22px 8px 16px; }
  html[data-layout="compact"] .vh-profile .sidebar-avatar { width: 48px; height: 48px; font-size: 17px; }
  html[data-layout="compact"] .vh-profile .sidebar-user-info,
  html[data-layout="compact"] .vh-profile-gear { display: none; }
  html[data-layout="compact"] .nav-section-title,
  html[data-layout="compact"] .sidebar .nav-section:not(:has(.nav-item)) {
    justify-content: center; font-size: 11px !important; padding: 0 0 6px; margin: 10px 0 6px;
    text-transform: uppercase !important; letter-spacing: 0.6px !important; color: var(--vh-side-muted) !important;
  }
  html[data-layout="compact"] .accordion-title > span[id$="-icon"] { display: none; }
  html[data-layout="compact"] .accordion-body { display: block !important; }
  html[data-layout="compact"] .nav-item {
    flex-direction: column; gap: 4px; text-align: center;
    padding: 8px 4px; font-size: 11.5px; font-weight: 600;
  }
  html[data-layout="compact"] .nav-item .vh-ico { width: 40px; height: 40px; padding: 10px; border-radius: 6px; background: var(--vh-surface-2); }
  html[data-layout="compact"] .nav-item.active { background: transparent; color: var(--vh-primary); }
  html[data-layout="compact"] .nav-item.active .vh-ico { background: var(--vh-primary); color: #fff; }
  html[data-layout="compact"][data-scheme="dark-sidebar"] .nav-item .vh-ico,
  html[data-layout="compact"][data-scheme="dark"] .nav-item .vh-ico { background: rgba(255,255,255,0.05); }
  html[data-layout="compact"] .nav-item[target="_blank"]::after { display: none; }
  html[data-layout="compact"] .nav-admin-return .nav-admin-link { flex-direction: column; gap: 6px; text-align: center; padding: 10px 6px; font-size: 12px; }
}

/* Moderno: janela com cantos arredondados sobre fundo tingido */
@media (min-width: 1200px) {
  html[data-layout="modern"] { --vh-off: 0px; }
  html[data-layout="modern"] body.vh { background: color-mix(in srgb, var(--vh-primary) 15%, var(--vh-bg)); }
  html[data-layout="modern"] body.vh::before,
  html[data-layout="modern"] body.vh::after {
    content: ''; position: fixed; left: 0; right: 0; height: 30px; z-index: 110;
    background: color-mix(in srgb, var(--vh-primary) 15%, var(--vh-bg));
  }
  html[data-layout="modern"] body.vh::before { top: 0; }
  html[data-layout="modern"] body.vh::after { bottom: 0; }
  html[data-layout="modern"] .vh-header { top: 30px; left: 30px; right: 30px; border-radius: 20px 20px 0 0; overflow: visible; }
  html[data-layout="modern"] .vh-header-left { border-top-left-radius: 20px; }
  html[data-layout="modern"] .sidebar {
    top: calc(30px + var(--vh-header-h) + 1px); left: 30px; bottom: 30px;
    border-bottom-left-radius: 20px;
  }
  html[data-layout="modern"] .main-content {
    margin: 0 30px 0 calc(30px + var(--vh-side-w));
    padding-top: calc(30px + var(--vh-header-h) + var(--vh-gutter));
    padding-bottom: 30px;
    background: transparent;
  }
  html[data-layout="modern"] .vh-footer { border-radius: 0 0 20px 0; margin-bottom: 0; }
  html[data-layout="modern"] body.vh.vh-collapsed .main-content { margin-left: 30px; }
  html[data-layout="modern"] body.vh.vh-collapsed .vh-footer { border-radius: 0 0 20px 20px; }
}

/* Caixa: contentor de 1280px centrado */
@media (min-width: 1360px) {
  html[data-boxed="1"]:not([data-layout="modern"]) { --vh-off: calc((100vw - 1280px) / 2); }
  html[data-boxed="1"]:not([data-layout="modern"]) body.vh { background: color-mix(in srgb, var(--vh-primary) 7%, var(--vh-bg)); }
  html[data-boxed="1"]:not([data-layout="modern"]) .main-content { background: var(--vh-bg); box-shadow: 0 0 0 1px var(--vh-border); }
}


/* ─── 8. KPIs ──────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px; margin-bottom: 30px;
}
.stat-card {
  position: relative; overflow: hidden;
  background: var(--vh-surface);
  border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius-card);
  padding: 22px 22px 20px 22px;
  box-shadow: var(--vh-shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(25, 124, 207, 0.08); }
.stat-card::before {
  content: ''; position: absolute; top: 18px; right: 18px;
  width: 42px; height: 42px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent, var(--vh-primary)) 12%, transparent);
}
.stat-card::after {
  content: ''; position: absolute; top: 33px; right: 33px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent, var(--vh-primary));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, var(--vh-primary)) 22%, transparent);
}
.stat-value {
  font-family: var(--vh-font); font-size: 28px; font-weight: 700; white-space: nowrap;
  color: var(--vh-heading); line-height: 1.1; margin-bottom: 8px;
  padding-right: 50px;
  font-variant-numeric: tabular-nums;
}
.stat-accent { color: var(--accent, var(--vh-primary)); }
.stat-label {
  font-size: 13px; font-weight: 500; color: var(--vh-muted);
  text-transform: none; letter-spacing: 0.2px;
}

/* ─── 9. Cards ─────────────────────────────────────────── */
.card {
  background: var(--vh-surface);
  border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius-card);
  padding: 26px 28px;
  margin-bottom: 30px;
  box-shadow: var(--vh-shadow-card);
  letter-spacing: 0.2px;
  transition: box-shadow 0.3s;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.card-title {
  font-family: var(--vh-font);
  font-size: 17px; font-weight: 700; line-height: 1.35;
  color: var(--vh-heading);
  text-transform: none; letter-spacing: 0;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.two-col > .card { margin-bottom: 30px; }


/* ─── 11. Tabelas ───────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  background: var(--vh-surface-2);
  padding: 12px 14px; text-align: left;
  font-size: 12.5px; font-weight: 600; color: var(--vh-heading);
  text-transform: none; letter-spacing: 0.2px;
  border-bottom: 1px solid var(--vh-border);
  white-space: nowrap;
}

/* ─── 13. Interruptor ──────────────────────────────────── */
.toggle-switch { position: relative; width: 44px; height: 24px; display: inline-block; }
.toggle-switch input { display: none; }
.toggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--vh-surface-3); border: 1px solid var(--vh-border);
  border-radius: 12px; transition: background 0.2s, border-color 0.2s;
}
.toggle-slider::after {
  content: ''; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px;
  background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--vh-primary); border-color: var(--vh-primary); }
.toggle-switch input:checked + .toggle-slider::after { transform: translateX(20px); }


.vh-taptop {
  position: fixed; right: 24px; bottom: 150px; z-index: 9990;
  width: 42px; height: 42px; border-radius: 6px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--vh-primary); color: #fff;
  box-shadow: 0 5px 12px color-mix(in srgb, var(--vh-primary) 35%, transparent);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.vh-taptop.show { opacity: 1; visibility: visible; transform: none; }
.vh-taptop svg { width: 18px; height: 18px; }

/* Personalizador — botões flutuantes à direita */
.vh-cz-links {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 9000;
  display: flex; flex-direction: column;
  background: var(--vh-surface); border: 1px solid var(--vh-border); border-right: none;
  border-radius: 8px 0 0 8px; box-shadow: var(--vh-shadow-drop);
  overflow: hidden; transition: right 0.3s;
}
.vh-cz-links button {
  width: 46px; height: 46px; border: none; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--vh-text-2);
  transition: background 0.2s, color 0.2s;
}
.vh-cz-links button + button { border-top: 1px solid var(--vh-border); }
.vh-cz-links button:hover, .vh-cz-links button.on { background: var(--vh-primary-tint); color: var(--vh-primary); }
.vh-cz-links svg { width: 19px; height: 19px; }
.vh-cz-links.open { right: 340px; }

.vh-cz {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 9001;
  width: 340px; max-width: 100vw;
  display: flex; flex-direction: column;
  background: var(--vh-surface); border-left: 1px solid var(--vh-border);
  box-shadow: -10px 0 30px rgba(17, 23, 39, 0.1);
  transform: translateX(100%); transition: transform 0.3s;
}
.vh-cz.open { transform: none; }
.vh-cz-head { padding: 22px 24px; border-bottom: 1px solid var(--vh-border); position: relative; }
.vh-cz-head h5 { font-size: 16px; font-weight: 700; color: var(--vh-heading); }
.vh-cz-head p { margin-top: 2px; font-size: 12.5px; color: var(--vh-muted); line-height: 1.4; }
.vh-cz-close { position: absolute; top: 18px; right: 16px; }
.vh-cz-tabs { display: flex; padding: 0 16px; border-bottom: 1px solid var(--vh-border); }
.vh-cz-tabs button {
  flex: 1; padding: 12px 6px; border: none; background: none; cursor: pointer;
  font-family: var(--vh-font); font-size: 13px; font-weight: 600; color: var(--vh-text-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.vh-cz-tabs button.on { color: var(--vh-primary); border-bottom-color: var(--vh-primary); }
.vh-cz-body { flex: 1; overflow-y: auto; padding: 22px 24px 30px; }
.vh-cz-pane { display: none; }
.vh-cz-pane.on { display: block; }
.vh-cz h6 { font-size: 13px; font-weight: 700; color: var(--vh-heading); margin: 4px 0 12px; }
.vh-cz h6:not(:first-child) { margin-top: 24px; }
.vh-cz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vh-cz-opt {
  border: 1px solid var(--vh-border); border-radius: 6px; padding: 6px;
  background: var(--vh-surface); cursor: pointer; text-align: center;
  font-family: var(--vh-font); font-size: 11.5px; font-weight: 600; color: var(--vh-text-2);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.vh-cz-opt:hover { border-color: color-mix(in srgb, var(--vh-primary) 45%, transparent); }
.vh-cz-opt.on { border-color: var(--vh-primary); box-shadow: 0 0 0 3px var(--vh-primary-tint); color: var(--vh-primary); }
.vh-mini { display: block; height: 54px; border-radius: 4px; overflow: hidden; margin-bottom: 6px; background: #F5F7FB; position: relative; border: 1px solid #E6EDEF; }
.vh-mini i { position: absolute; display: block; }
.vh-mini .h { left: 0; right: 0; top: 0; height: 10px; background: #fff; border-bottom: 1px solid #E6EDEF; }
.vh-mini .s { left: 0; top: 10px; bottom: 0; width: 24px; background: #fff; border-right: 1px solid #E6EDEF; }
.vh-mini .b { left: 30px; right: 6px; top: 16px; height: 8px; background: #E6EDEF; border-radius: 2px; }
.vh-mini .b2 { left: 30px; right: 26px; top: 28px; height: 18px; background: #fff; border: 1px solid #E6EDEF; }
.vh-mini.compact .s { width: 12px; }
.vh-mini.compact .b, .vh-mini.compact .b2 { left: 18px; }
.vh-mini.modern { background: color-mix(in srgb, var(--vh-primary) 22%, #F5F7FB); }
.vh-mini.modern .h { left: 5px; right: 5px; top: 5px; border-radius: 3px 3px 0 0; }
.vh-mini.modern .s { left: 5px; top: 15px; bottom: 5px; border-radius: 0 0 0 3px; }
.vh-mini.boxed .h, .vh-mini.boxed .s { }
.vh-mini.boxed { background: #E9EDF2; }
.vh-mini.boxed .h { left: 12px; right: 12px; }
.vh-mini.boxed .s { left: 12px; }
.vh-mini.boxed .b { left: 42px; right: 18px; }
.vh-mini.boxed .b2 { left: 42px; right: 34px; }
.vh-mini.ds .s { background: #111727; border-color: #111727; }
.vh-mini.dk { background: #202938; border-color: #202938; }
.vh-mini.dk .h, .vh-mini.dk .s { background: #111727; border-color: #111727; }
.vh-mini.dk .b { background: #2b3446; }
.vh-mini.dk .b2 { background: #111727; border-color: #2b3446; }
.vh-mini .acc { background: var(--vh-primary); }
.vh-swatches { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.vh-swatch {
  aspect-ratio: 1; border-radius: 50%; border: none; cursor: pointer; position: relative;
  background: linear-gradient(135deg, var(--c1) 0 50%, var(--c2) 50% 100%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
  transition: transform 0.15s;
}
.vh-swatch:hover { transform: scale(1.08); }
.vh-swatch.on { box-shadow: 0 0 0 2px var(--vh-surface), 0 0 0 4px var(--c1); }
.vh-cz-custom { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--vh-text-2); }
.vh-cz-custom input[type="color"] { width: 40px; height: 32px; padding: 0; border: 1px solid var(--vh-border); border-radius: 5px; background: none; cursor: pointer; }
.vh-cz-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--vh-line); font-size: 13px; color: var(--vh-text-2); }
.vh-cz-row:first-of-type { border-top: none; }
.vh-cz-foot { padding: 16px 24px; border-top: 1px solid var(--vh-border); }
.vh-cz-backdrop { position: fixed; inset: 0; z-index: 8999; background: rgba(17, 23, 39, 0.25); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.vh-cz-backdrop.open { opacity: 1; pointer-events: auto; }


.login-card {
  position: relative; z-index: 1; width: 100%; max-width: 440px;
  background: var(--vh-surface);
  border: 1px solid var(--vh-border); border-radius: 10px;
  padding: 44px 40px 40px;
  box-shadow: 0 0 37px rgba(8, 21, 66, 0.06);
}
.login-logo { text-align: center; margin-bottom: 26px; }
.login-logo img { height: 56px; }
.login-title { font-family: var(--vh-font); font-size: 22px; font-weight: 700; text-align: center; color: var(--vh-heading); text-transform: none; letter-spacing: 0; margin-bottom: 4px; }
.login-subtitle { text-align: center; color: var(--vh-muted); font-size: 13.5px; margin-bottom: 28px; }
.btn-login { width: 100%; margin-top: 6px; padding: 12px; background: var(--vh-primary); color: #fff; border: none; border-radius: var(--vh-radius-btn); font-family: var(--vh-font); font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-login:hover { background: var(--vh-primary-dark); }
.login-error { color: var(--vh-danger); font-size: 13px; text-align: center; margin: 0 0 14px; display: none; padding: 10px 12px; border-radius: 5px; background: color-mix(in srgb, currentColor 8%, transparent); }
.login-foot { margin-top: 26px; text-align: center; font-size: 12.5px; color: var(--vh-muted); }

/* ─── 21. Animações ─────────────────────────────────────── */
@keyframes slideInRight { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes vhFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vhDrop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn 0.35s ease both; }

/* ─── 22. Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--vh-primary) 22%, transparent); border-radius: 13px; }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--vh-primary) 40%, transparent); }

.status-badge, .role-badge, .history-status {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0.3em 0.75em; border-radius: 20px;
  font-size: 11px; font-weight: 600; line-height: 1.3;
  text-transform: none; letter-spacing: 0.2px;
}
.status-badge.free { background: var(--vh-surface-3); color: var(--vh-muted); }
.status-badge.open { background: color-mix(in srgb, var(--vh-success) 12%, transparent); color: var(--vh-success); }
.status-badge.attending { background: var(--vh-primary-tint2); color: var(--vh-primary); }
.status-badge.closed { background: color-mix(in srgb, var(--vh-danger) 10%, transparent); color: var(--vh-danger); }
.role-badge.admin { background: var(--vh-primary-tint2); color: var(--vh-primary); }
.role-badge.colaborador { background: color-mix(in srgb, var(--vh-purple) 12%, transparent); color: var(--vh-purple); }
.role-badge.chefe_loja { background: color-mix(in srgb, var(--vh-warning) 14%, transparent); color: var(--vh-warning); }


.service-row-nums { font-size: 12px; color: var(--vh-muted); margin-top: 2px; }

.interpret-text {
  background: var(--vh-primary-tint); border-left: 3px solid var(--vh-primary);
  padding: 12px 16px; border-radius: 0 5px 5px 0; margin-top: 14px;
  font-size: 13px; color: var(--vh-text-2); line-height: 1.7; font-family: var(--vh-font);
}


/* ═══════════════════════════════════════════════════════════
   24. Componentes de conteúdo Viho (js/vh-widgets.js)
   ═══════════════════════════════════════════════════════════ */

/* Grelha de 12 colunas */
.vh-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 30px; margin-bottom: 30px; align-items: stretch; }
.vh-row > * { min-width: 0; }
.vh-row > .card, .vh-row > * > .card { margin-bottom: 0; height: 100%; }
.c-12 { grid-column: span 12; } .c-9 { grid-column: span 9; } .c-8 { grid-column: span 8; } .c-7 { grid-column: span 7; }
.c-6 { grid-column: span 6; } .c-5 { grid-column: span 5; } .c-4 { grid-column: span 4; } .c-3 { grid-column: span 3; }
@media (max-width: 1399px) { .vh-row { gap: 24px; } .c-3 { grid-column: span 6; } }
@media (max-width: 1199px) { .c-4, .c-5 { grid-column: span 6; } .c-7, .c-8, .c-9 { grid-column: span 12; } }
@media (max-width: 991px) { .vh-row { gap: 20px; margin-bottom: 20px; } .c-3, .c-4, .c-5, .c-6 { grid-column: span 12; } }

/* Cabeçalho de cartão Viho: título · centro · ações */
.card-header { position: relative; }
.vh-center { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-right: auto; margin-left: 18px; font-size: 13px; color: var(--vh-muted); }
.vh-center b { color: var(--vh-primary); font-weight: 700; }
.vh-up { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--vh-primary-tint2); color: var(--vh-primary); }
.vh-up svg { width: 12px; height: 12px; stroke-width: 2.6; }
.vh-up.down { background: color-mix(in srgb, var(--vh-danger) 14%, transparent); color: var(--vh-danger); }
.card-body-flush { margin: 0 -28px -26px; }
.card-sub { font-size: 12.5px; color: var(--vh-muted); margin-top: 3px; font-weight: 500; }

/* Barra de ações (roda dentada) */
.vh-tools { position: relative; z-index: 6; margin-left: auto; display: flex; align-items: center; }
.vh-tools.open, .vh-tools:hover, .vh-tools:focus-within { z-index: 30; }
.vh-tools-gear {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--vh-primary-tint); color: var(--vh-primary); position: relative; z-index: 2;
  transition: background 0.2s, color 0.2s;
}
.vh-tools-gear svg { width: 16px; height: 16px; transition: transform 0.5s; }
.vh-tools:hover .vh-tools-gear svg, .vh-tools.open .vh-tools-gear svg { transform: rotate(90deg); }
.vh-tools-list {
  position: absolute; right: 0; top: 0; height: 34px; z-index: 1;
  display: flex; align-items: center; gap: 2px; padding: 0 38px 0 6px;
  background: color-mix(in srgb, var(--vh-primary) 12%, var(--vh-surface)); border-radius: 17px;
  box-shadow: 0 4px 14px rgba(8, 21, 66, 0.12);
  max-width: 34px; overflow: hidden; opacity: 0; pointer-events: none;
  transition: max-width 0.35s ease, opacity 0.2s;
}
.vh-tools:hover .vh-tools-list, .vh-tools.open .vh-tools-list, .vh-tools:focus-within .vh-tools-list { max-width: 220px; opacity: 1; pointer-events: auto; }
.vh-tools-gear { background: color-mix(in srgb, var(--vh-primary) 12%, var(--vh-surface)); }
.vh-tools-list button {
  width: 28px; height: 28px; border: none; background: none; cursor: pointer; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--vh-primary); flex-shrink: 0;
}
.vh-tools-list button:hover { background: var(--vh-surface); }
.vh-tools-list svg { width: 15px; height: 15px; }
.card.vh-card-min > :not(.card-header) { display: none !important; }
.card.vh-card-min { height: auto !important; }
.card.vh-card-min > .card-header { margin-bottom: 0; }
.card.vh-card-closed { display: none !important; }
.card.vh-card-max {
  position: fixed !important; inset: 30px; z-index: 1300; margin: 0 !important; height: auto !important;
  overflow: auto; box-shadow: var(--vh-shadow-modal);
}
.card.vh-card-max .chart-box { height: calc(100vh - 230px) !important; }
.vh-max-backdrop { position: fixed; inset: 0; z-index: 1299; background: rgba(17, 23, 39, 0.5); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.vh-max-backdrop.open { opacity: 1; pointer-events: auto; }
.card.vh-card-loading { position: relative; }
.card.vh-card-loading::after {
  content: ''; position: absolute; inset: 0; z-index: 5;
  background: color-mix(in srgb, var(--vh-surface) 70%, transparent)
    radial-gradient(circle, transparent 13px, var(--vh-primary) 14px, var(--vh-primary) 17px, transparent 18px) center / 40px 40px no-repeat;
  animation: vhFade 0.2s ease;
}

/* KPIs Viho */
.vh-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; height: 100%; }
.vh-kpis.k-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vh-kpis.k-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.vh-kpis.k-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.vh-kpi {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 24px 16px 20px;
  background: var(--vh-surface); border: 1px solid var(--vh-border); border-radius: var(--vh-radius-card);
  box-shadow: var(--vh-shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.vh-kpi::after {
  content: ''; position: absolute; right: -28px; top: -28px; width: 96px; height: 96px; border-radius: 50%;
  border: 14px solid color-mix(in srgb, var(--accent) 7%, transparent);
}
.vh-kpi:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(25, 124, 207, 0.09); }
.vh-kpi-ico {
  width: 54px; height: 54px; border-radius: 50%; margin-bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent);
}
.vh-kpi-ico svg { width: 24px; height: 24px; }
.vh-kpi-val { font-size: 26px; font-weight: 700; color: var(--vh-heading); line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vh-kpi-lbl { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--vh-muted); letter-spacing: 0.4px; line-height: 1.4; }
.vh-kpi-delta { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--vh-muted); flex-wrap: wrap; justify-content: center; }
.vh-kpi-delta b { font-weight: 700; }
.vh-kpi-arrow { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.vh-kpi-arrow svg { width: 12px; height: 12px; stroke-width: 2.6; }
.vh-kpi-delta.good b { color: var(--vh-success); }
.vh-kpi-delta.good .vh-kpi-arrow { background: color-mix(in srgb, var(--vh-success) 13%, transparent); color: var(--vh-success); }
.vh-kpi-delta.bad b { color: var(--vh-danger); }
.vh-kpi-delta.bad .vh-kpi-arrow { background: color-mix(in srgb, var(--vh-danger) 12%, transparent); color: var(--vh-danger); }
.vh-kpi-delta.flat .vh-kpi-arrow { background: var(--vh-surface-3); }
@media (max-width: 1399px) { .vh-kpis.k-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .vh-kpis.k-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .vh-kpis, .vh-kpis.k-4, .vh-kpis.k-5, .vh-kpis.k-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .vh-kpi { padding: 18px 10px 16px; } .vh-kpi-val { font-size: 22px; } .vh-kpi-ico { width: 44px; height: 44px; margin-bottom: 10px; } }

/* Cartão de boas-vindas */
.vh-welcome {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--vh-primary) !important; border-color: var(--vh-primary) !important;
  padding: 38px 30px !important; min-height: 100%;
}
.vh-welcome::before, .vh-welcome::after {
  content: ''; position: absolute; border-radius: 50%; border: 22px solid rgba(255, 255, 255, 0.07);
}
.vh-welcome::before { width: 210px; height: 210px; right: -70px; bottom: -80px; }
.vh-welcome::after { width: 120px; height: 120px; left: -40px; top: -40px; border-width: 16px; }
.vh-welcome-deco i { position: absolute; display: block; width: 10px; height: 18px; border-radius: 3px; background: rgba(255,255,255,0.14); transform: rotate(var(--r, 25deg)); }
.vh-welcome-ico { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.16); margin-bottom: 16px; position: relative; z-index: 1; }
.vh-welcome-ico svg { width: 20px; height: 20px; }
.vh-welcome h3 { color: #fff; font-size: 24px; font-weight: 700; margin-bottom: 10px; position: relative; z-index: 1; }
.vh-welcome p { color: rgba(255, 255, 255, 0.86); font-size: 14px; line-height: 1.75; max-width: 360px; position: relative; z-index: 1; }
.vh-welcome p b { color: #fff; }
.vh-welcome .btn { margin-top: 20px; position: relative; z-index: 1; background: #fff; color: var(--vh-primary); border-color: #fff; }
.vh-welcome .btn:hover { background: rgba(255, 255, 255, 0.88); color: var(--vh-primary-dark); }

/* Gráficos */
.chart-box { position: relative; width: 100%; min-height: 120px; }
.chart-box .apexcharts-canvas { margin: 0 auto; }
.apexcharts-tooltip, .apexcharts-xaxistooltip { font-family: var(--vh-font) !important; border-radius: 6px !important; box-shadow: var(--vh-shadow-drop) !important; }
.apexcharts-legend-text { font-family: var(--vh-font) !important; }

/* Lista de indicadores (Qualidade do serviço) */
.vh-list { list-style: none; margin: 0; padding: 0; }
.vh-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--vh-line); }
.vh-list li:first-child { border-top: none; }
.vh-list .vh-list-ico { width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent, var(--vh-primary)) 12%, transparent); color: var(--accent, var(--vh-primary)); flex-shrink: 0; }
.vh-list .vh-list-ico svg { width: 17px; height: 17px; }
.vh-list .vh-list-lbl { flex: 1; font-size: 13px; color: var(--vh-text-2); font-weight: 500; }
.vh-list .vh-list-val { font-size: 15px; font-weight: 700; color: var(--vh-heading); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Atividade / linha do tempo (Últimas chamadas) */
.vh-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.vh-timeline li { position: relative; display: flex; gap: 14px; padding: 0 0 18px; }
.vh-timeline li:last-child { padding-bottom: 0; }
.vh-timeline li::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 1px; background: var(--vh-border); }
.vh-timeline li:last-child::before { display: none; }
.vh-tl-ico { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--vh-primary-tint2); color: var(--vh-primary); }
.vh-tl-ico svg { width: 16px; height: 16px; }
.vh-tl-ico.recall { background: color-mix(in srgb, var(--vh-warning) 14%, transparent); color: var(--vh-warning); }
.vh-tl-body { flex: 1; min-width: 0; padding-top: 2px; }
.vh-tl-title { font-size: 13.5px; font-weight: 600; color: var(--vh-heading); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vh-tl-sub { font-size: 12px; color: var(--vh-muted); margin-top: 2px; }
.vh-tl-time { font-size: 12px; color: var(--vh-muted); white-space: nowrap; padding-top: 4px; }

/* Tabelas Viho com avatar */
.vh-table td { padding-top: 14px; padding-bottom: 14px; }
.vh-table thead th { background: transparent; border-bottom: 1px solid var(--vh-border); }
.vh-person { display: flex; align-items: center; gap: 12px; }
.vh-av { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; font-size: 14px; background: color-mix(in srgb, var(--accent, var(--vh-primary)) 14%, transparent); color: var(--accent, var(--vh-primary)); }
.vh-person b { display: block; font-size: 13.5px; font-weight: 600; color: var(--vh-heading); }
.vh-person small { font-size: 12px; color: var(--vh-muted); }
.vh-num { text-align: right; font-variant-numeric: tabular-nums; }
.vh-bar { height: 6px; border-radius: 3px; background: var(--vh-surface-3); overflow: hidden; min-width: 60px; }
.vh-bar > span { display: block; height: 100%; border-radius: 3px; background: var(--accent, var(--vh-primary)); transition: width 0.6s; }

/* Alertas da página (Viho alert) */
.vh-alert {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 14px;
  background: var(--vh-surface); border: 1px solid var(--vh-border); border-left: 4px solid var(--accent, var(--vh-warning));
  box-shadow: var(--vh-shadow-card); font-size: 13.5px; color: var(--vh-text);
}
.vh-alert-ico { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent, var(--vh-warning)) 13%, transparent); color: var(--accent, var(--vh-warning)); }
.vh-alert-ico svg { width: 16px; height: 16px; }

/* Barra de filtros dentro de cartão */
.vh-filterbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vh-filterbar .vh-seg { display: inline-flex; border: 1px solid var(--vh-border); border-radius: var(--vh-radius-btn); padding: 3px; background: var(--vh-surface-2); gap: 2px; }
.vh-filterbar .vh-seg .btn { border: none; background: transparent; padding: 0.4rem 1rem; color: var(--vh-text-2); }
.vh-filterbar .vh-seg .btn.active { background: var(--vh-primary); color: #fff; box-shadow: none; }
.vh-filterbar .vh-lbl { font-size: 12.5px; font-weight: 600; color: var(--vh-label); }
.vh-filterbar .vh-grow { flex: 1; }

/* Barras de progresso por serviço */
.vh-progress-row { padding: 12px 0; border-top: 1px solid var(--vh-line); }
.vh-progress-row:first-child { border-top: none; padding-top: 0; }
.vh-progress-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.vh-progress-head b { font-size: 13.5px; font-weight: 600; color: var(--vh-heading); }
.vh-progress-head small { font-size: 12px; color: var(--vh-muted); flex: 1; }
.vh-progress-head span { font-size: 13px; font-weight: 700; color: var(--accent, var(--vh-primary)); }

/* Notificações (dropdown do header) */
.vh-drop-wrap { position: relative; }
.vh-drop-wrap[hidden] { display: none; }
.vh-badge-dot { animation: vhPing 2s infinite; }
@keyframes vhPing { 0%, 100% { box-shadow: 0 0 0 2px var(--vh-header-bg), 0 0 0 2px color-mix(in srgb, var(--vh-danger) 40%, transparent); } 50% { box-shadow: 0 0 0 2px var(--vh-header-bg), 0 0 0 6px transparent; } }
.vh-drop {
  position: absolute; top: calc(100% + 18px); right: -60px; width: 340px; max-width: calc(100vw - 24px);
  background: var(--vh-surface); border: 1px solid var(--vh-border); border-radius: 6px; box-shadow: var(--vh-shadow-drop);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s; z-index: 130;
}
.vh-drop.open { opacity: 1; visibility: visible; transform: none; }
.vh-drop-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--vh-border); font-size: 14px; color: var(--vh-heading); }
.vh-drop-head .badge-pill { background: var(--vh-primary); color: #fff; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 2px 9px; }
.vh-notes { list-style: none; margin: 0; padding: 6px; max-height: 360px; overflow-y: auto; }
.vh-note { display: flex; gap: 12px; padding: 10px; border-radius: 5px; text-decoration: none; color: var(--vh-text); }
a.vh-note:hover { background: var(--vh-hover); }
.vh-note-ico { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.vh-note-ico svg { width: 16px; height: 16px; }
.vh-note-danger .vh-note-ico { background: color-mix(in srgb, var(--vh-danger) 12%, transparent); color: var(--vh-danger); }
.vh-note-warning .vh-note-ico { background: color-mix(in srgb, var(--vh-warning) 14%, transparent); color: var(--vh-warning); }
.vh-note-info .vh-note-ico { background: var(--vh-primary-tint2); color: var(--vh-primary); }
.vh-note-txt { display: flex; flex-direction: column; min-width: 0; }
.vh-note-txt b { font-size: 13px; font-weight: 600; color: var(--vh-heading); line-height: 1.35; }
.vh-note-txt small { font-size: 12px; color: var(--vh-muted); margin-top: 2px; }
.vh-drop-foot { display: block; text-align: center; padding: 12px; border-top: 1px solid var(--vh-border); font-size: 13px; font-weight: 700; }
@media (max-width: 575px) { .vh-drop { right: -100px; } }
.status-badge { white-space: nowrap; }
.vh-kpis.k-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
.vh-kpis.k-7 .vh-kpi { padding: 20px 10px 16px; }
.vh-kpis.k-7 .vh-kpi-val { font-size: 23px; }
@media (max-width: 1399px) { .vh-kpis.k-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) { .vh-kpis.k-7 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vh-svc-grid { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; align-items: center; }
@media (max-width: 575px) { .vh-svc-grid { grid-template-columns: 1fr; } }
.vh-progress-head small { white-space: nowrap; }
@media (max-width: 575px) { .card-header .vh-center { order: 3; flex-basis: 100%; margin-left: 0; } }

/* ═══════════════════════════════════════════════════════════

/* ── 27. Olho da palavra-passe (js/layout.js) ── */
.vh-pw { position: relative; display: block; width: 100%; }
.vh-pw > input { width: 100%; padding-right: 46px !important; box-sizing: border-box; }
.vh-pw-btn, .vh-pw-btn-legacy {
  display: inline-flex !important; align-items: center; justify-content: center;
  color: var(--text-muted) !important; cursor: pointer; line-height: 0 !important;
}
.vh-pw-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; padding: 0; border: none; background: none; border-radius: 6px;
}
.vh-pw-btn:hover, .vh-pw-btn-legacy:hover { color: var(--vh-primary) !important; background: var(--vh-tint) !important; }
.vh-pw-btn:focus-visible { outline: 2px solid var(--vh-primary); outline-offset: 1px; }


/* ── 30. Login Viho (painel da marca + formulário) ── */
input::-ms-reveal, input::-ms-clear { display: none; } /* Edge: evita um segundo olho */
body.vh-login { display: block; padding: 0; min-height: 100vh; background: var(--vh-bg); overflow: auto; }
.vl-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 100vh; }
.vl-brand {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(150deg, color-mix(in srgb, var(--vh-primary) 88%, #fff) 0%, var(--vh-primary) 38%, color-mix(in srgb, var(--vh-primary) 45%, #0b2a3a) 100%);
}
.vl-brand::before, .vl-brand::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; border: 46px solid rgba(255, 255, 255, 0.07); }
.vl-brand::before { width: 520px; height: 520px; right: -220px; top: -160px; }
.vl-brand::after { width: 340px; height: 340px; left: -150px; bottom: -120px; border-width: 34px; }
.vl-brand-in { position: relative; z-index: 1; height: 100%; min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; padding: 48px 56px 36px; }
.vl-brand-logo { height: 58px; width: auto; align-self: flex-start; filter: brightness(0) invert(1); }
.vl-brand-copy { margin: auto 0; max-width: 460px; padding: 40px 0; }
.vl-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.8); margin-bottom: 14px; }
.vl-brand h2 { font-family: var(--vh-font); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.15; font-weight: 700; margin: 0 0 16px; color: #fff; }
.vl-brand p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.85); margin: 0 0 30px; }
.vl-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vl-feats li { display: flex; align-items: center; gap: 14px; font-size: 14.5px; font-weight: 500; color: #fff; }
.vl-feats li span { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.14); }
.vl-feats svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vl-brand-foot { font-size: 12.5px; color: rgba(255,255,255,0.7); }

.vl-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; position: relative; }
.vl-main::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 12%, var(--vh-primary-tint) 0, transparent 40%);
}
body.vh-login .vl-card {
  max-width: 460px; padding: 46px 44px 38px; border-radius: 12px;
  box-shadow: 0 0 37px rgba(8, 21, 66, 0.07);
}
.vl-card-logo { display: none; }
.vl-card-logo img { height: 58px; }
.vl-head .login-title { text-align: left; font-size: 24px; margin-bottom: 6px; }
.vl-head .login-subtitle { text-align: left; margin-bottom: 30px; }
body.vh-login .login-error { text-align: left; }
.vl-form .form-group { margin-bottom: 18px; }
.vl-form label { display: block; font-size: 13px; font-weight: 600; color: var(--vh-label); margin-bottom: 8px; }
.vl-field { position: relative; }
.vl-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; fill: none; stroke: var(--vh-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke 0.15s; }
.vl-field:focus-within .vl-ico { stroke: var(--vh-primary); }
html body.vh-login .vl-field input { width: 100%; height: 48px; padding: 0 48px 0 44px !important; font-size: 14.5px; box-sizing: border-box; }
.vl-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: none; background: none; border-radius: 8px; padding: 0;
}
.vl-caps { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--vh-warning); }
.vl-submit { width: 100%; height: 48px; margin-top: 8px; font-size: 15px !important; font-weight: 600; letter-spacing: 0.3px; }
.vl-help { margin-top: 18px; font-size: 13px; color: var(--vh-muted); text-align: center; }
body.vh-login .login-foot { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--vh-border); }

@media (max-width: 960px) {
  .vl-wrap { grid-template-columns: 1fr; }
  .vl-brand { display: none; }
  .vl-card-logo { display: block; text-align: left; margin-bottom: 26px; }
  .vl-main { min-height: 100vh; }
}
@media (max-width: 480px) {
  body.vh-login .vl-card { padding: 32px 22px 28px; }
  .vl-main { padding: 20px 14px; }
}

.vho-card-sub { font-size: 12.5px; color: var(--vh-muted); margin-top: 4px; font-weight: 500; }

.vh-pagehead { display: flex; flex-wrap: wrap; gap: 12px; align-items: center !important; justify-content: space-between !important; margin-bottom: 26px !important; }
.vh-pagehead > .vh-crumb { margin-top: 0; }
.vh-pagehead .page-subtitle { display: none; }

/* Cabeçalho de cartão: título à esquerda, filtros e exportação à direita */
html body.vh .card > .card-header { gap: 10px; }
html body.vh .card > .card-header > .card-title { margin-right: auto; }
html body.vh .card > .card-header select {
  height: 34px; padding: 0 30px 0 12px !important; font-size: 12.5px !important; border-radius: 6px !important;
  border: 1px solid var(--vh-border) !important; background-color: var(--vh-surface-2) !important; color: var(--vh-text) !important;
}
html body.vh .card > .card-header .btn-ghost { height: 34px; padding: 0 12px !important; font-size: 12.5px !important; font-weight: 600; border-radius: 6px; }


.rq-person { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.rq-av { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.rq-person b { display: block; font-size: 14px; font-weight: 600; color: var(--vh-heading); line-height: 1.3; }
.rq-person small, .rq-period small { display: block; font-size: 12px; color: var(--vh-muted); margin-top: 2px; font-weight: 500; }
.rq-period b { font-size: 13.5px; font-weight: 600; color: var(--vh-heading); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rq-c { text-align: center !important; } .rq-r { text-align: right !important; width: 1%; white-space: nowrap; }
.rq-days { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 28px; padding: 0 8px; border-radius: 6px; background: var(--vh-surface-3); font-weight: 700; font-size: 13px; color: var(--vh-heading); }
.rq-muted { color: var(--vh-text-2); font-size: 13px; }
.rq-late { color: var(--vh-danger) !important; font-weight: 600; font-size: 13px; }
.rq-reason { display: flex; align-items: center; gap: 6px; margin-top: 6px; max-width: 460px; font-size: 12px; color: var(--vh-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq-reason svg { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: var(--vh-danger); stroke-width: 2; }
.rq-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--vh-border); background: var(--vh-surface); color: var(--vh-text-2); font-family: var(--vh-font); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.rq-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.rq-btn:hover { border-color: var(--vh-primary); color: var(--vh-primary); }
.rq-btn.primary { background: var(--vh-primary); border-color: var(--vh-primary); color: #fff; }
.rq-btn.primary:hover { filter: brightness(0.95); color: #fff; }

/* ── 40. Controlos de formulário da plataforma (sem caixas nativas do sistema) ── */
/* Listas: seta própria, igual em todos os browsers */
html body.vh select:not([multiple]):not([size]) {
  -webkit-appearance: none !important; appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a94a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 16px !important;
  padding-right: 36px !important; cursor: pointer;
}
html body.vh select:not([multiple]):focus { border-color: var(--vh-primary) !important; outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--vh-primary) 15%, transparent) !important; }
/* Números sem as setas do sistema */
html body.vh input[type="number"]::-webkit-outer-spin-button, html body.vh input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
html body.vh input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
/* Caixas de seleção na cor da plataforma */
html body.vh input[type="checkbox"], html body.vh input[type="radio"] { accent-color: var(--vh-primary); }
/* Ficheiros */
html body.vh input[type="file"]::file-selector-button { border: 1px solid var(--vh-border); background: var(--vh-surface-2); color: var(--vh-text); border-radius: 6px; padding: 6px 12px; margin-right: 10px; font-family: var(--vh-font); font-weight: 600; cursor: pointer; }
/* Datas e horas: ícone próprio */
html body.vh input.vh-fp-date, html body.vh input.vh-fp-time {
  background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 16px !important; padding-right: 36px !important; cursor: pointer;
}
html body.vh input.vh-fp-date { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a94a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") !important; }
html body.vh input.vh-fp-time { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a94a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") !important; }

/* Calendário flatpickr com as cores da plataforma */
.flatpickr-calendar { font-family: var(--vh-font) !important; border-radius: 10px !important; border: 1px solid var(--vh-border) !important; box-shadow: 0 10px 30px rgba(8, 21, 66, 0.12) !important; background: var(--vh-surface) !important; }
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after, .flatpickr-calendar.arrowBottom::before, .flatpickr-calendar.arrowBottom::after { display: none !important; }
.flatpickr-months { padding: 6px 4px 0; }
.flatpickr-months .flatpickr-month, .flatpickr-current-month input.cur-year, .flatpickr-current-month .flatpickr-monthDropdown-months { color: var(--vh-heading) !important; fill: var(--vh-heading) !important; font-weight: 600 !important; }
.flatpickr-current-month { font-size: 15px !important; }
.flatpickr-current-month .flatpickr-monthDropdown-months { -webkit-appearance: none; appearance: none; background: transparent !important; }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month { color: var(--vh-text-2) !important; fill: var(--vh-text-2) !important; top: 6px !important; }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--vh-primary) !important; }
span.flatpickr-weekday { color: var(--vh-muted) !important; font-weight: 600 !important; font-size: 12px !important; text-transform: capitalize; }
.flatpickr-day { color: var(--vh-text) !important; border-radius: 6px !important; font-size: 13px; }
.flatpickr-day:hover, .flatpickr-day:focus { background: var(--vh-primary-tint) !important; border-color: transparent !important; }
.flatpickr-day.today { border-color: var(--vh-primary) !important; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--vh-primary) !important; border-color: var(--vh-primary) !important; color: #fff !important; }
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay, .flatpickr-day.flatpickr-disabled { color: var(--vh-muted) !important; opacity: 0.5; }
.flatpickr-time input, .flatpickr-time .flatpickr-am-pm, .flatpickr-time .flatpickr-time-separator { color: var(--vh-heading) !important; font-weight: 600 !important; }
.flatpickr-time input:hover, .flatpickr-time input:focus { background: var(--vh-primary-tint) !important; }
.flatpickr-calendar.hasTime.noCalendar { width: 180px !important; }
.numInputWrapper span { border-color: var(--vh-border) !important; }

/* Nomes nas tabelas: peso normal, sem negrito */
html body.vh td.vh-dt-person, html body.vh .rq-person b, html body.vh .vh-person b { font-weight: 500 !important; }

.rq-name span { display: block; font-size: 13.5px; font-weight: 500; color: var(--vh-heading); }
.rq-name small { display: block; font-size: 12px; color: var(--vh-muted); margin-top: 2px; }
.rq-period span { display: block; font-size: 13.5px; font-weight: 500; color: var(--vh-heading); white-space: nowrap; font-variant-numeric: tabular-nums; }
html body.vh .rq-period b { font-weight: 500 !important; }
.rq-num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rq-warn { color: var(--vh-warning) !important; font-weight: 600; font-size: 13px; }
.rq-resp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rq-resp > span { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; }
.rq-resp > span svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.rq-resp .ok { color: var(--vh-success); } .rq-resp .warn { color: var(--vh-warning); } .rq-resp .no { color: var(--vh-danger); }
.rq-note { display: flex; align-items: center; gap: 5px; margin-top: 6px; max-width: 240px; font-size: 12px; color: var(--vh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq-note svg { width: 12px; height: 12px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; }
.rq-prog { min-width: 170px; }
.rq-bar { height: 6px; border-radius: 6px; background: var(--vh-surface-3); overflow: hidden; }
.rq-bar i { display: block; height: 100%; border-radius: 6px; background: var(--vh-warning); }
.rq-prog.ok .rq-bar i { background: var(--vh-success); }
.rq-prog span { display: block; margin-top: 5px; font-size: 12px; color: var(--vh-text-2); }

/* Secções de formulário e etiquetas suaves */
.vh-form-sec { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; font-size: 13px; font-weight: 600; color: var(--vh-heading); }
.vh-form-sec::after { content: ''; flex: 1; height: 1px; background: var(--vh-border); }
.vh-chip-soft { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 6px; font-size: 12.5px; font-weight: 600; background: var(--vh-primary-tint); color: var(--vh-primary); white-space: nowrap; }
.vh-chip-soft.warn { background: color-mix(in srgb, var(--vh-warning) 12%, transparent); color: var(--vh-warning); }
#fd-debug-btn { display: none !important; }

/* Formulários dos módulos: rótulos e campos Viho */
html body.vh .fg label { font-size: 13px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--vh-label) !important; }
html body.vh .fg input, html body.vh .fg select, html body.vh .fg textarea { min-height: 40px; border-radius: 6px !important; border: 1px solid var(--vh-border) !important; background-color: var(--vh-surface) !important; color: var(--vh-text) !important; font-size: 13.5px !important; padding: 9px 12px !important; box-shadow: none; }
html body.vh .fg textarea { min-height: 84px; }
html body.vh .fg input:focus, html body.vh .fg textarea:focus { border-color: var(--vh-primary) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--vh-primary) 15%, transparent) !important; }
html body.vh .fg input[readonly], html body.vh .fg input:disabled { background-color: var(--vh-surface-2) !important; color: var(--vh-text-2) !important; }
html body.vh .card > .card-header select { min-width: 150px; }
.rq-days { white-space: nowrap; }

.fd-empty { text-align: center; color: var(--vh-muted); padding: 28px 16px !important; font-size: 13px; }

.fd-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 6px; font-size: 13px; line-height: 1.5; }
.fd-alert > span { flex-shrink: 0; display: inline-flex; margin-top: 1px; }
.fd-alert svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fd-alert.info { background: var(--vh-primary-tint); color: var(--vh-text-2); } .fd-alert.info > span { color: var(--vh-primary); }
.fd-alert.warn { background: color-mix(in srgb, var(--vh-warning) 10%, transparent); color: var(--vh-text-2); margin-top: 18px; } .fd-alert.warn > span { color: var(--vh-warning); }

.fd-ov { position: fixed; inset: 0; z-index: 1400; display: none; align-items: center; justify-content: center; padding: 18px;
  background: rgba(17, 24, 39, .45); backdrop-filter: blur(2px); }
.fd-ov.open { display: flex; }
.fd-modal { width: min(940px, 100%); max-height: 92vh; display: flex; flex-direction: column; background: var(--vh-surface); border-radius: 8px;
  box-shadow: var(--vh-shadow-modal, 0 24px 60px rgba(0,0,0,.25)); font-family: var(--vh-font); overflow: hidden; }
.fd-mh { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--vh-border); }
.fd-mh-ico { width: 42px; height: 42px; border-radius: 8px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--vh-primary-tint2); color: var(--vh-primary); }
.fd-mh-ico svg, .fd-x svg, .fd-ig .rq-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fd-mh-ico svg { width: 20px; height: 20px; }
.fd-mh-txt { flex: 1; min-width: 0; }
.fd-mh h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--vh-heading); font-family: var(--vh-font); }
.fd-mh p { margin: 3px 0 0; font-size: 13px; color: var(--vh-muted); }
.fd-x { width: 34px; height: 34px; border-radius: 6px; border: 0; background: var(--vh-surface-3); color: var(--vh-text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fd-x svg { width: 16px; height: 16px; } .fd-x:hover { background: color-mix(in srgb, var(--vh-danger) 12%, transparent); color: var(--vh-danger); }
.fd-mb { padding: 22px 24px 6px; overflow-y: auto; }

.fd-acts { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; margin-top: 18px; border-top: 1px solid var(--vh-border); background: var(--vh-surface); }

.vh-acts { display: inline-flex; gap: 6px; justify-content: flex-end; }
.vh-act, .vh-act-ph {
  width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  border: none; padding: 0; flex-shrink: 0;
}
.vh-act { cursor: pointer; background: var(--vh-surface-3); color: var(--vh-text-2); transition: background 0.15s, color 0.15s; }
.vh-act svg, .vh-act-ph svg { width: 16px; height: 16px; }
.vh-act:hover { background: var(--vh-primary-tint2); color: var(--vh-primary); }
.vh-act.warn:hover { background: color-mix(in srgb, var(--vh-warning) 16%, transparent); color: var(--vh-warning); }
.vh-act.ok { color: var(--vh-success); }
.vh-act.ok:hover { background: color-mix(in srgb, var(--vh-success) 14%, transparent); }
.vh-act.danger:hover { background: color-mix(in srgb, var(--vh-danger) 14%, transparent); color: var(--vh-danger); }
.vh-act:focus-visible { outline: 2px solid var(--vh-primary); outline-offset: 1px; }
.vh-act.sm { width: 28px; height: 28px; background: transparent; }
.vh-act-ph { color: var(--vh-muted); opacity: 0.6; }

.vf-svg svg, .vf-bar svg, .vf-card svg, .vf-head svg, .vf-back svg, .vf-add svg, .vf-del svg, .vf-empty svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Barra superior: navegação + pesquisa + ação */
html body.vh .card.vf-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 24px; }
.vf-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.vf-nav-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 6px; background: transparent; color: var(--vh-text-2); font-family: var(--vh-font); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.vf-nav-btn span { display: inline-flex; } .vf-nav-btn svg { width: 16px; height: 16px; }
.vf-nav-btn b { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; background: var(--vh-surface-3); color: var(--vh-text-2); }
.vf-nav-btn:hover { color: var(--vh-primary); }
.vf-nav-btn.active { background: var(--vh-primary); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--vh-primary) 30%, transparent); }
.vf-nav-btn.active b { background: rgba(255,255,255,.22); color: #fff; }
.vf-bar-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vf-search { position: relative; display: flex; align-items: center; margin: 0; }
.vf-search span { position: absolute; left: 12px; display: inline-flex; color: var(--vh-muted); pointer-events: none; } .vf-search svg { width: 16px; height: 16px; }
.vf-search input { width: 300px; height: 40px; padding: 0 12px 0 38px; border: 1px solid var(--vh-border); border-radius: 6px; background: var(--vh-input-bg, var(--vh-surface)); color: var(--vh-text); font-family: var(--vh-font); font-size: 13.5px; outline: none; }
.vf-search input:focus { border-color: var(--vh-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vh-primary) 16%, transparent); }
html body.vh .btn.vf-add { display: inline-flex; align-items: center; gap: 8px; height: 40px; }
html body.vh .btn.vf-add span { display: inline-flex; } .vf-add svg { width: 16px; height: 16px; }
.vf-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.vf-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--vh-border); border-radius: 20px; background: var(--vh-surface); color: var(--vh-text-2); font-family: var(--vh-font); font-size: 13px; font-weight: 600; cursor: pointer; }
.vf-chip b { font-size: 12px; color: var(--vh-muted); font-weight: 700; }
.vf-chip:hover { border-color: var(--vh-primary); color: var(--vh-primary); }
.vf-chip.active { background: var(--vh-primary-tint2); border-color: transparent; color: var(--vh-primary); } .vf-chip.active b { color: var(--vh-primary); }
/* Cartões de veículo (estilo "project card" do Viho) */
.vf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
html body.vh .card.vf-card { display: flex; flex-direction: column; gap: 18px; padding: 24px; margin: 0; cursor: pointer; transition: box-shadow .2s, transform .2s; }
html body.vh .card.vf-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px color-mix(in srgb, var(--vh-primary) 14%, transparent); }
.vf-card:focus-visible { outline: 2px solid var(--vh-primary); outline-offset: 2px; }
.vf-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vf-title { display: flex; align-items: center; gap: 14px; }
.vf-title h6 { margin: 0; font-size: 17px; font-weight: 600; color: var(--vh-heading); font-family: var(--vh-font); }
.vf-title small { display: block; margin-top: 3px; font-size: 13px; color: var(--vh-muted); }
.vf-ico, .vf-head-ico { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: color-mix(in srgb, var(--accent, var(--vh-primary)) 12%, transparent); color: var(--accent, var(--vh-primary)); }
.vf-ico { width: 46px; height: 46px; } .vf-ico svg { width: 21px; height: 21px; }
.vf-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 14px 0; border-top: 1px dashed var(--vh-border); border-bottom: 1px dashed var(--vh-border); }
.vf-stats > div + div { border-left: 1px solid var(--vh-border); }
.vf-stats b { display: block; font-size: 18px; font-weight: 600; color: var(--vh-heading); font-variant-numeric: tabular-nums; }
.vf-stats small { display: block; margin-top: 2px; font-size: 12px; color: var(--vh-muted); }
.vf-prog-h { display: flex; justify-content: space-between; font-size: 13px; color: var(--vh-text-2); margin-bottom: 8px; }
.vf-prog-h b { font-weight: 600; color: var(--vh-heading); }
.vf-prog-bar { height: 6px; border-radius: 6px; background: var(--vh-surface-3); overflow: hidden; }
.vf-prog-bar i { display: block; height: 100%; border-radius: 6px; background: var(--vh-success); }
.vf-prog.warn .vf-prog-bar i { background: var(--vh-warning); } .vf-prog.danger .vf-prog-bar i { background: var(--vh-danger); }
.vf-alerts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.vf-al { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 5px; font-size: 12px; font-weight: 600; background: var(--vh-primary-tint); color: var(--vh-primary); }
.vf-al svg { width: 13px; height: 13px; }
.vf-al.warn { background: color-mix(in srgb, var(--vh-warning) 12%, transparent); color: var(--vh-warning); }
.vf-al.danger { background: color-mix(in srgb, var(--vh-danger) 10%, transparent); color: var(--vh-danger); }
.vf-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; cursor: default; }
.vf-who { min-width: 0; } .vf-who .rq-person { min-width: 0; } .vf-who .rq-av { width: 34px; height: 34px; font-size: 13px; }
.vf-nobody { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--vh-muted); } .vf-nobody svg { width: 16px; height: 16px; }
html body.vh .vf-foot .vh-act { width: 34px; height: 34px; }
html body.vh .vf-foot .vh-act.danger { color: var(--vh-danger); background: color-mix(in srgb, var(--vh-danger) 9%, transparent); }
html body.vh .vf-foot .vh-act.danger:hover { background: var(--vh-danger); color: #fff; }
html body.vh .card.vf-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 44px 20px; margin: 0; text-align: center; }
.vf-empty span { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; align-items: center; justify-content: center; background: var(--vh-primary-tint); color: var(--vh-primary); margin-bottom: 6px; }
.vf-empty svg { width: 22px; height: 22px; } .vf-empty b { font-size: 15px; font-weight: 600; color: var(--vh-heading); } .vf-empty small { font-size: 13px; color: var(--vh-muted); }
.vf-veh { min-width: 150px; } .vf-veh small { display: block; margin-top: 6px; font-size: 13px; color: var(--vh-text-2); }

.fd-modal .fg-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; align-items: end; }
.fd-modal .fg { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; min-width: 0; }
.fd-modal .fg input, .fd-modal .fg select, .fd-modal .fg textarea { width: 100%; }
.fd-modal .fg-full { grid-column: 1 / -1; } .fd-modal .fg-half { grid-column: span 6; } .fd-modal .fg-third { grid-column: span 4; }
.fd-modal .fg-quarter { grid-column: span 3; } .fd-modal .fg-wide { grid-column: span 8; }
@media (max-width: 700px) { .fd-modal .fg-half, .fd-modal .fg-third, .fd-modal .fg-quarter, .fd-modal .fg-wide { grid-column: 1 / -1; } }

input.vh-secret:not(.vh-secret-shown) { -webkit-text-security: disc; text-security: disc; }
input.vh-secret::placeholder { -webkit-text-security: none; }

.vh-result-head { padding: 10px 14px 4px; font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--vh-muted); border-top: 1px solid var(--vh-border); margin-top: 4px; }
.vh-search-results > .vh-result-head:first-child { border-top: 0; margin-top: 0; }

/* ============ 62. Bloco maximizado: botão Fechar sempre visível ============ */
.vh-max-close { position: fixed; top: 44px; right: 46px; z-index: 1302; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 20px; background: var(--vh-danger); color: #fff; font: 600 14px var(--vh-font); cursor: pointer; box-shadow: 0 8px 20px color-mix(in srgb, var(--vh-danger) 35%, transparent); transition: transform .15s, filter .15s; }
.vh-max-close svg { width: 18px; height: 18px; }
.vh-max-close:hover { transform: translateY(-1px); filter: brightness(1.06); }
.vh-max-close:focus-visible { outline: 3px solid color-mix(in srgb, var(--vh-danger) 35%, transparent); outline-offset: 2px; }
body.vh-has-max .card.vh-card-max > .card-header > .vh-tools { visibility: hidden; }
body.vh-has-max .card.vh-card-max > .card-header { padding-right: 120px; }
@media (max-width: 575px) { .vh-max-close { top: auto; bottom: 22px; right: 50%; transform: translateX(50%); height: 46px; padding: 0 22px 0 16px; } .vh-max-close:hover { transform: translateX(50%); } body.vh-has-max .card.vh-card-max > .card-header { padding-right: 0; } }

@media (max-width: 1199px) {
  .vh-header-right { padding-right: 16px; }
  .vh-header .btn-logout .vh-lbl { display: none; }
  .vh-header .btn-logout { padding: 9px 11px; }
  .card { padding: 22px; }
}

@media (max-width: 991px) {
  :root { --vh-header-h: 65px; --vh-gutter: 20px; --vh-off: 0px; }
  .vh-header-left { width: auto; border-right: none; padding: 0 12px 0 16px; gap: 10px; background: var(--vh-surface); }
  .vh-header-left .vh-icon-btn { color: var(--vh-text) !important; }
  .vh-header-mid { padding: 0 6px; justify-content: flex-end; }
  .vh-search { max-width: none; }
  .vh-search-field { width: 40px; padding: 0 11px; overflow: hidden; margin-left: auto; transition: width 0.25s, background 0.2s; }
  .vh-search.open { position: absolute; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); z-index: 6; }
  .vh-search.open .vh-search-field { width: 100%; background: var(--vh-surface); border-color: var(--vh-border); box-shadow: var(--vh-shadow-drop); }
  .vh-search.open .vh-search-results { top: calc(100% + 6px); }
  .vh-kbd { display: none; }
  .vh-header-right { gap: 0; padding: 0 10px 0 0; }
  .vh-hide-sm { display: none !important; }

  .sidebar {
    top: var(--vh-header-h); left: 0; width: 280px;
    transform: translateX(-100%); opacity: 1;
    box-shadow: 8px 0 24px rgba(17, 23, 39, 0.12);
    z-index: 115;
  }
  .sidebar.open, body.vh.vh-mobile-open .sidebar { transform: none; }
  body.vh.vh-collapsed .sidebar { transform: translateX(-100%); opacity: 1; pointer-events: auto; }
  body.vh.vh-collapsed .sidebar.open { transform: none; }
  .main-content, body.vh.vh-collapsed .main-content { margin-left: 0 !important; margin-right: 0; }
  .vh-cz-links { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .stats-grid { gap: 16px; margin-bottom: 22px; }
  .card { padding: 20px; margin-bottom: 20px; }
  .vh-footer { font-size: 12.5px; }
}

@media (max-width: 767px) { .fd-mh, .fd-mb, .fd-acts { padding-left: 16px; padding-right: 16px; } }

/* ═══════════════════════════════════════════════════════════════
   Impulso +PME — adaptações ao layout Viho
   ═══════════════════════════════════════════════════════════════ */
.vh-ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; width: 18px; height: 18px; flex-shrink: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logótipo */
.vh-logo { width: 150px; height: 54px; background-image: url('../img/impulso-pme-logo.png'); }
html[data-scheme="dark"] .vh-logo { background-image: url('../img/impulso-pme-logo-branco.png'); }
@media (max-width: 991px) {
  .vh-logo { width: 104px; height: 38px; background-image: url('../img/impulso-pme-logo.png') !important; }
  html[data-scheme="dark"] .vh-logo { background-image: url('../img/impulso-pme-logo-branco.png') !important; }
}

/* Cabeçalho: sair e notificações */
.vh-header form.vh-logout { margin: 0; display: inline-flex; }
.vh-drop-body { padding: 16px 18px; font-size: 13.5px; color: var(--vh-text-2); }
.vh-drop-body b { color: var(--vh-heading); font-weight: 600; }
.vh-drop-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 18px; border: 0; border-top: 1px solid var(--vh-border); background: none; font: 500 13.5px var(--vh-font); color: var(--vh-text-2); cursor: pointer; text-align: left; }
.vh-drop-row:hover { color: var(--vh-primary); }
.vh-sw { position: relative; width: 36px; height: 20px; border-radius: 10px; background: var(--vh-surface-3); flex-shrink: 0; transition: background .2s; }
.vh-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(17,24,39,.25); transition: transform .2s; }
[aria-pressed="true"] > .vh-sw { background: var(--vh-primary); }
[aria-pressed="true"] > .vh-sw::after { transform: translateX(16px); }

/* Menu lateral */
.vh-profile a.sidebar-avatar { text-decoration: none; }
a.vh-profile-gear { text-decoration: none; }
.nav-section.vh-acc-closed > .accordion-body { display: none; }
.nav-section.vh-acc-closed > .accordion-title > span[id$="-icon"] { transform: rotate(-90deg); }
.accordion-title > span[id$="-icon"] { transition: transform .2s; }
.nav-item > span:first-of-type { flex: 1; min-width: 0; }
.nav-item .vh-nav-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--vh-danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }

/* Cabeçalho de página */
.vh-pagehead .page-title { margin-right: auto; }
.vh-page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vh-page-actions .btn svg { width: 16px; height: 16px; }

/* Avisos (mensagens de sistema) */
.fd-alert { margin-bottom: 22px; }
.fd-alert.ok { background: color-mix(in srgb, var(--vh-success) 10%, transparent); color: var(--vh-text-2); } .fd-alert.ok > span { color: var(--vh-success); }
.fd-alert.err { background: color-mix(in srgb, var(--vh-danger) 9%, transparent); color: var(--vh-text-2); } .fd-alert.err > span { color: var(--vh-danger); }
.fd-alert.warn { margin-top: 0; }
.fd-alert a { font-weight: 600; }

/* Painel: complementos aos componentes do kit (vh-row, vh-kpis, vh-welcome, vh-list, vh-table, vh-timeline) */
a.vh-kpi { text-decoration: none; color: inherit; }
.vh-kpi-delta { margin-top: 8px; }
.chart-box { width: 100%; }
.card.vh-card-max { display: flex; flex-direction: column; }
html body.vh .card > .card-header > div:first-child:not(.card-title) { min-width: 0; }
.status-badge.warn { background: color-mix(in srgb, var(--vh-warning) 14%, transparent); color: var(--vh-warning); }
.status-badge.done { background: color-mix(in srgb, var(--vh-purple) 12%, transparent); color: var(--vh-purple); }
a.vh-person, .vh-list li > a, .vh-tl-title a, .vh-progress-head a { color: inherit; text-decoration: none; }
a.vh-person:hover b, .vh-list li > a:hover, .vh-tl-title a:hover, .vh-progress-head a:hover b { color: var(--vh-primary); }
.vh-list li > a { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.vh-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.vh-av.sq { border-radius: 8px; }
.vh-person > div { min-width: 0; }
.vh-empty-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 26px 12px; text-align: center; color: var(--vh-muted); font-size: 13px; }
.vh-empty-box .vh-ico { width: 30px; height: 30px; stroke-width: 1.6; opacity: .6; }
.vh-cell-bar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.vh-cell-bar .vh-bar { width: 90px; }
.vh-cell-bar b { min-width: 38px; text-align: right; font-weight: 600; color: var(--vh-heading); }
.vh-avs { display: inline-flex; align-items: center; gap: 8px; }
.vh-avs .vh-av { width: 30px; height: 30px; font-size: 12px; }
.vh-avs .vh-av + .vh-av { margin-left: -14px; box-shadow: 0 0 0 2px var(--vh-surface); }
.vh-avs small { font-size: 12.5px; color: var(--vh-muted); }
.vh-person small { display: block; }
.vh-table td { vertical-align: middle; }
@media (max-width: 767px) { .card .table-wrap table.vh-table { min-width: 620px; } }

/* Tabelas dos blocos */
html body.vh .card table.rq-table { border-collapse: separate; border-spacing: 0; width: 100%; }
html body.vh .card table.rq-table thead th { background: var(--vh-surface-2); color: var(--vh-heading); font-size: 13px; font-weight: 600; padding: 14px 16px; border-bottom: 1px solid var(--vh-border); white-space: nowrap; }
html body.vh .card table.rq-table thead th:first-child { border-top-left-radius: 8px; }
html body.vh .card table.rq-table thead th:last-child { border-top-right-radius: 8px; }
html body.vh .card table.rq-table tbody td { border-bottom: 1px solid var(--vh-border); font-size: 13.5px; }
html body.vh .card table.rq-table tbody tr:last-child td { border-bottom: 0; }
.rq-person { text-decoration: none; color: inherit; }
.rq-person .rq-name { min-width: 0; }
.rq-av { background: color-mix(in srgb, var(--accent, var(--vh-primary)) 14%, transparent); color: var(--accent, var(--vh-primary)); overflow: hidden; }
.rq-av.sq { border-radius: 8px; }
.rq-av img { width: 100%; height: 100%; object-fit: cover; }
.rq-avs { display: inline-flex; align-items: center; gap: 10px; }
.rq-avs .rq-av { width: 30px; height: 30px; font-size: 12px; }
.rq-prog { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.rq-prog .rq-bar { flex: 1; }
.rq-prog .rq-bar i { background: var(--vh-primary); }
.rq-prog span { margin: 0; min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.c-0 { --accent: var(--vh-primary); } .c-1 { --accent: var(--vh-success); } .c-2 { --accent: var(--vh-warning); } .c-3 { --accent: var(--vh-purple); } .c-4 { --accent: var(--vh-danger); } .c-5 { --accent: var(--vh-secondary); }
html[data-scheme="dark"] .c-5 { --accent: var(--vh-info); }
@media (max-width: 640px) { .table-wrap table.rq-table { min-width: 640px; } }
html body.vh .card .card-title { letter-spacing: 0; font-size: 16px; }
html body.vh .card table.rq-table tbody td { padding: 14px 16px; }
.rq-table .rq-person { min-width: 190px; }
.rq-table .rq-prog { min-width: 120px; }

/* Entrada na plataforma (login, recuperar e repor palavra-passe) */
.vl-brand-logo { filter: none; height: 64px; }
.vl-card-logo img { height: 52px; }
.vl-head .login-title { margin-top: 0; }
body.vh-login .fd-alert { margin-bottom: 18px; text-align: left; }
.vl-help a { font-weight: 600; }
.vl-help span { padding: 0 6px; opacity: .6; }
.vl-hint { margin-top: 6px; font-size: 12.5px; color: var(--vh-muted); }
html body.vh-login .vl-field .vh-pw { display: block; }
body.vh-login .login-foot { text-align: center; }
button, input, select, textarea { font-family: inherit; }
.vl-field .vl-ico { z-index: 2; }
html[data-scheme="dark"] .vl-card-logo img { filter: brightness(0) invert(1); }
.vl-field .vl-ico { stroke: var(--vh-muted); }
.vl-field:focus-within .vl-ico { stroke: var(--vh-primary); }
.vh-nav-top { padding-bottom: 6px; }
.vh-nav-top .nav-item { font-weight: 600; color: var(--vh-side-title); }
.vh-nav-top .nav-item.active { color: var(--vh-active-text); }
@media (min-width: 992px) { html[data-layout="compact"] .vh-nav-top .nav-item { font-weight: 600; } }
a.vh-icon-btn { text-decoration: none; }
a.vh-icon-btn.on { background: var(--vh-primary-tint); color: var(--vh-primary); }

/* ─── Mensagens (chat) — janela Viho a toda a altura ─────── */
body.vh .main-content.page-chat { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; padding-bottom: var(--vh-gutter); }
body.vh .page-chat > .vh-pagehead, body.vh .page-chat > .vh-footer, body.vh .page-chat > .fd-alert { display: none; }
body.vh .chat-app { flex: 1 1 0; height: auto; max-height: none; min-height: 420px; grid-template-columns: 330px minmax(0, 1fr); background: var(--vh-surface); border: 1px solid var(--vh-border); border-radius: 14px; box-shadow: var(--vh-shadow-card); overflow: hidden; }
body.vh .chat-side { background: var(--vh-surface); border-right: 1px solid var(--vh-border); }
body.vh .chat-side-h { padding: 22px 20px 14px; gap: 12px; min-height: 0; }
body.vh .chat-side-h h2 { margin: 0; font-size: 22px; font-weight: 700; color: var(--vh-heading); flex: 1; }
body.vh .chat-side-ic { width: 42px; height: 42px; border-radius: 10px; background: var(--vh-primary-tint2); color: var(--vh-primary); }
body.vh .chat-side-ic svg { width: 20px; height: 20px; stroke-width: 2; }
body.vh .chat-new-btn { width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--vh-heading); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: none; transition: background .2s, color .2s; }
body.vh .chat-new-btn:hover { background: var(--vh-primary-tint); color: var(--vh-primary); }
body.vh .chat-new-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
body.vh .chat-search { margin: 2px 16px 10px; height: 42px; padding: 0 14px; border-radius: 8px; background: var(--vh-surface-2); gap: 10px; }
body.vh .chat-search svg { stroke: var(--vh-muted); width: 17px; height: 17px; }
body.vh .chat-search input { height: 40px; font-size: 14px; color: var(--vh-text); }
body.vh .chat-recent-h, body.vh .chat-group { font-size: 11.5px; font-weight: 700; letter-spacing: .9px; color: var(--vh-muted); }
body.vh .chat-recent-h { padding: 8px 20px 8px; }
body.vh .chat-recent { padding: 0 20px 12px; }
body.vh .chat-ring { border-color: var(--vh-primary); }
body.vh .chat-group { padding: 14px 12px 8px; gap: 8px; }
body.vh .chat-group span { margin-left: auto; font-weight: 600; letter-spacing: 0; }
body.vh .chat-list { padding: 0 10px 14px; }
body.vh .chat-item { padding: 11px 12px; border-radius: 8px; gap: 12px; color: var(--vh-text-2); text-decoration: none; }
body.vh .chat-item:hover { background: var(--vh-surface-2); }
body.vh .chat-item.active { background: var(--vh-primary-tint); }
body.vh .chat-item-r1 strong { font-size: 14.5px; font-weight: 600; color: var(--vh-heading); }
body.vh .chat-item-r1 small { font-size: 12px; color: var(--vh-muted); }
body.vh .chat-item-r2 .prev { font-size: 13px; color: var(--vh-muted); }
body.vh .chat-item-av .dot { background: var(--vh-danger); border-color: var(--vh-surface); }
body.vh .chat-badge { background: var(--vh-primary); font-size: 11.5px; }
body.vh .chat-none { padding: 16px 12px; font-size: 13px; color: var(--vh-muted); }
body.vh .chat-main { background: var(--vh-bg); }
body.vh .chat-head { min-height: 74px; padding: 12px 22px; gap: 14px; background: var(--vh-surface); border-bottom: 1px solid var(--vh-border); }
body.vh .chat-head-b strong { font-size: 15.5px; font-weight: 700; color: var(--vh-heading); }
body.vh .chat-head-b span { font-size: 13px; color: var(--vh-muted); }
body.vh .chat-head-a { gap: 4px; align-items: center; }
body.vh .chat-head .icon-btn, body.vh .chat-compose .icon-btn { width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--vh-text-2); display: inline-flex; align-items: center; justify-content: center; box-shadow: none; }
body.vh .chat-head .icon-btn:hover, body.vh .chat-compose .icon-btn:hover, body.vh .chat-clip.on { background: var(--vh-primary-tint); color: var(--vh-primary); }
body.vh .chat-head .icon-btn.chat-del-conv:hover { background: color-mix(in srgb, var(--vh-danger) 10%, transparent); color: var(--vh-danger); }
body.vh .chat-head .icon-btn svg, body.vh .chat-compose .icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.vh .chat-scope { background: var(--vh-primary-tint); color: var(--vh-primary); border-radius: 12px; font-size: 12.5px; font-weight: 600; }
body.vh .chat-body { padding: 18px 30px 14px; background: var(--vh-bg); }
body.vh .chat-day { margin: 14px 0 16px; font-size: 13px; color: var(--vh-muted); }
body.vh .chat-day::before, body.vh .chat-day::after { background: var(--vh-border); }
body.vh .chat-row { gap: 12px; margin-top: 14px; }
body.vh .chat-row.grouped { margin-top: 5px; }
body.vh .chat-from { font-size: 13px; font-weight: 600; color: var(--vh-primary); margin: 0 0 6px 2px; }
body.vh .chat-bubble { background: var(--vh-surface); color: var(--vh-heading); border-radius: 4px 12px 12px 12px; padding: 11px 16px; font-size: 14.5px; line-height: 1.5; box-shadow: 0 1px 2px rgba(17, 23, 39, .06); }
body.vh .chat-row.grouped .chat-bubble, body.vh .chat-row.mine.grouped .chat-bubble { border-radius: 12px; }
body.vh .chat-row.mine .chat-bubble { background: var(--vh-primary); color: #fff; border-radius: 12px 4px 12px 12px; box-shadow: 0 2px 6px color-mix(in srgb, var(--vh-primary) 25%, transparent); }
body.vh .chat-row.mine .chat-bubble a:not(.chat-file) { color: #fff; text-decoration: underline; }
body.vh .chat-bubble.chat-deleted { background: transparent; box-shadow: none; border: 1px dashed var(--vh-border); color: var(--vh-muted); font-style: italic; }
body.vh .chat-time { font-size: 12px; color: var(--vh-muted); margin-top: 6px; }
body.vh .chat-read.read svg { stroke: var(--vh-primary); }
body.vh .chat-ctx { background: var(--vh-primary-tint); color: var(--vh-primary); font-size: 12px; }
body.vh .chat-row.mine .chat-ctx { background: rgba(255, 255, 255, .18); color: #fff; text-decoration: none; }
body.vh .chat-compose { background: var(--vh-surface); border-top: 1px solid var(--vh-border); padding: 14px 20px 10px; }
body.vh .chat-compose-r { align-items: center; gap: 8px; }
body.vh .chat-compose textarea { min-height: 44px; padding: 11px 6px !important; font-size: 14.5px; color: var(--vh-text); }
body.vh .chat-send { width: 46px; height: 44px; border-radius: 8px; background: var(--vh-primary); box-shadow: 0 4px 10px color-mix(in srgb, var(--vh-primary) 30%, transparent); transition: background .2s, transform .15s; }
body.vh .chat-send:hover { background: var(--vh-primary-dark); transform: translateY(-1px); }
body.vh .chat-hint { font-size: 12px; color: var(--vh-muted); padding: 6px 0 0 4px; }
body.vh .chat-chip { background: var(--vh-primary-tint); color: var(--vh-primary); font-size: 12px; }
body.vh .chat-empty { max-width: 420px; color: var(--vh-muted); font-size: 14px; }
body.vh .chat-empty-ic { width: 76px; height: 76px; background: var(--vh-primary-tint2); color: var(--vh-primary); margin-bottom: 16px; }
body.vh .chat-empty-ic svg { width: 32px; height: 32px; stroke-width: 1.8; }
body.vh .chat-empty h3 { font-size: 18px; font-weight: 700; color: var(--vh-heading); margin-bottom: 6px; }
body.vh .chat-empty .btn { margin-top: 18px !important; gap: 8px; }
body.vh .chat-empty .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
body.vh .chat-emoji { background: var(--vh-surface); border: 1px solid var(--vh-border); box-shadow: var(--vh-shadow-drop); }
body.vh .chat-file { background: var(--vh-surface-2); border-radius: 8px; color: var(--vh-heading); text-decoration: none; }
body.vh .chat-main.drop { outline-color: var(--vh-primary); background: var(--vh-primary-tint); }
html[data-scheme="dark"] body.vh .chat-app { background: var(--vh-surface); border-color: var(--vh-border); }
html[data-scheme="dark"] body.vh .chat-side, html[data-scheme="dark"] body.vh .chat-head, html[data-scheme="dark"] body.vh .chat-compose { background: var(--vh-surface); border-color: var(--vh-border); }
html[data-scheme="dark"] body.vh .chat-bubble { background: var(--vh-surface); color: var(--vh-heading); }
html[data-scheme="dark"] body.vh .chat-row.mine .chat-bubble { background: var(--vh-primary); color: #fff; }
html[data-scheme="dark"] body.vh .chat-search { background: var(--vh-surface-2); }
html[data-scheme="dark"] body.vh .chat-item.active { background: var(--vh-primary-tint); }
html[data-scheme="dark"] body.vh .chat-item:hover { background: var(--vh-surface-2); }
@media (max-width: 991px) { body.vh .main-content.page-chat { padding-bottom: 16px; } body.vh .chat-app { border-radius: 10px; min-height: 0; } }
@media (max-width: 900px) { body.vh .chat-app { grid-template-columns: minmax(0, 1fr); height: auto; } body.vh .chat-body { padding: 14px; } body.vh .chat-head { padding: 10px 12px; gap: 10px; } body.vh .chat-compose { padding: 10px 12px; } body.vh .chat-scope { display: none; } }
body.vh .chat-head .icon-btn.chat-back { display: none; }
body.vh .chat-compose textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { body.vh .chat-head .icon-btn.chat-back { display: inline-flex; } }
@media (max-width: 575px) { html body.vh .card > .card-header > .vh-center { order: 3; flex-basis: 100%; margin-left: 0; } html body.vh .card > .card-header > .card-title { flex: 1; } }

/* Listagens (Empresas): complementos ao módulo vf-* / rq-* do kit */
a.vf-chip, a.vf-nav-btn, a.vh-act { text-decoration: none; }
a.vh-act { display: inline-flex; align-items: center; justify-content: center; }
form.vf-bar-r { margin: 0; }
.vf-ico { overflow: hidden; font-weight: 700; font-size: 15px; }
.vf-ico img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.vf-title { min-width: 0; } .vf-title > div { min-width: 0; }
.vf-title h6, .vf-title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-card-top .status-badge { flex-shrink: 0; }
.vf-stats b { font-size: 16px; }
.vf-foot .vf-nobody { min-width: 0; } .vf-foot .vf-nobody span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body.vh .card.vf-card.off { opacity: .72; }
.rq-av img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.rq-person { color: inherit; text-decoration: none; }
a.rq-person:hover b { color: var(--vh-primary); }
[data-vf-view][hidden] { display: none !important; }
@media (max-width: 767px) { .vf-search, .vf-search input { width: 100%; } form.vf-bar-r { width: 100%; } .vf-grid { grid-template-columns: minmax(0, 1fr); } html body.vh .card.vf-bar { padding: 12px; } }
html body.vh .card > .table-wrap { overflow-x: auto; max-width: 100%; }
html body.vh .main-content > .card { min-width: 0; max-width: 100%; }
html body.vh .rq-table th, html body.vh .vh-table th { position: relative; }
html body.vh .vf-bar select.vf-select { width: auto; min-width: 190px; max-width: 260px; height: 40px; }
.vf-note { margin: 22px 2px 0; clear: both; font-size: 12.5px; color: var(--vh-muted); }
.vf-who .rq-person { min-width: 0; } .vf-who .rq-person > div { min-width: 0; } .vf-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-prog-h span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) { html body.vh .vf-bar select.vf-select { width: 100%; max-width: none; } }
.vf-grid + .card[hidden] + .vf-note, .vf-grid:not([hidden]) ~ .vf-note { padding-top: 14px; }
.vh-act-form { display: inline-flex; margin: 0; }
html body.vh button.vh-act { border: 0; padding: 0; font: inherit; }
.vh-act.danger:hover { background: color-mix(in srgb, var(--vh-danger) 14%, transparent); color: var(--vh-danger); }
.vf-ico > svg, .rq-av > svg { width: 20px; height: 20px; }
.vf-foot.vf-foot-stack { flex-wrap: wrap; row-gap: 12px; }
.vf-foot.vf-foot-stack > .vf-who, .vf-foot.vf-foot-stack > .vf-nobody { flex: 1 1 100%; }
.vf-foot.vf-foot-stack > .vh-acts { margin-left: auto; }
