/* Nuvox: superfícies de trabalho, marca concentrada na navegação e nas ações. */
:root {
  --bg: #f7f9fa;
  --bg-raised: #f5f7f8;
  --border: #ccd6dc;
  --border-soft: #e1e7eb;
  --text-dim: #5c6b77;
  --radius: 6px;
  --radius-sm: 5px;
}
.sidebar { background: var(--nuvox-navy); height: 100dvh; }
.sidebar-nav { scrollbar-width: thin; }
.sidebar-nav a { min-height: 38px; }
.sidebar-nav a.active { background: #17394b; color: #fff; box-shadow: inset 3px 0 var(--nuvox-cyan); }
.nav-section-label { letter-spacing: .04em; }
.main, .content, .panel, .card, .form-group { min-width: 0; }
.content { max-width: 1480px; padding: 28px clamp(20px, 3vw, 44px) 64px; }
.topbar { border-top: 0; }
.btn { border-radius: 5px; min-height: 36px; text-decoration: none; font-weight: 650; }
.btn:hover { text-decoration: none; }
.btn:disabled { cursor: default; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 3px;
}
.panel, .ops-tile { box-shadow: none; border-radius: 6px; }
.section-head h3, .card > h3 { font-size: 15px; }
.section-head p, .card .card-desc { line-height: 1.6; }
.eyebrow { letter-spacing: .035em; }
.ops-hero { border-radius: 6px; padding: 22px; box-shadow: none; flex-wrap: wrap; }
.ops-hero::after { display: none; }
.ops-hero h1 { font-size: clamp(21px, 2vw, 27px); line-height: 1.3; }
.ops-hero > div:first-child { flex: 1 1 420px; }
.ops-hero-actions { flex-wrap: wrap; margin-left: 0; gap: 8px; }
.ops-hero-actions .btn { background: #fff; border: 1px solid var(--border); color: var(--text); white-space: nowrap; }
.ops-hero-actions .btn:first-child { background: var(--primary); color: #fff; border-color: var(--primary); }
.ops-score { min-width: 90px; }
.ops-grid { gap: 0; background: #fff; border-block: 1px solid var(--border); margin: 20px 0 24px; }
.ops-tile { border: 0; border-right: 1px solid var(--border-soft); border-radius: 0; padding: 18px 20px; }
.ops-tile:last-child { border-right: 0; }
.ops-label { font-size: 11px; letter-spacing: .035em; }
.config-hero, .product-hero {
  background: transparent; color: var(--text); border: 0; border-bottom: 1px solid var(--border);
  border-radius: 0; box-shadow: none; padding: 0 0 22px; margin-bottom: 22px;
}
.config-hero h1, .product-hero h1 { font-size: clamp(23px, 2.2vw, 29px); line-height: 1.3; }
.config-hero .eyebrow, .product-hero .eyebrow { color: var(--primary); }
.config-hero p, .product-hero p, .config-hero-ref span { color: var(--text-mute); }
.plan-summary { background: #fff; border-color: var(--border); }
.plan-summary > span { color: var(--text-dim); }
.provision-local-picker { min-width: min(290px, 100%); max-width: 420px; }
.provision-local-picker label { color: var(--text-mute); font-size: 12px; text-transform: none; letter-spacing: 0; }
.provision-local-picker select { background: #fff; color: var(--text); border-color: var(--border); width: 100%; }
.provision-view-tabs { display: flex; gap: 20px; padding: 0; border: 0; border-radius: 0; background: none; border-bottom: 1px solid var(--border); width: 100%; }
.provision-view-tabs button { border-radius: 0; background: none; box-shadow: none; padding: 12px 2px; border-bottom: 2px solid transparent; }
.provision-view-tabs button.active { background: none; color: var(--primary); border-bottom-color: var(--primary); box-shadow: none; }
.vpn-heading h2 { font-size: 23px; }
.vpn-heading p { font-size: 12px; }
.vpn-address-grid { gap: 0; }
.vpn-address-grid > div { border-radius: 0; background: none; padding: 14px 12px; border: 0; border-top: 1px solid var(--border-soft); }
.vpn-address-grid strong { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.vpn-progress { margin-block: 20px; }
.vpn-details dd { overflow-wrap: anywhere; }
.vpn-diagnostic-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.vpn-diagnostic-row strong { font-size: 12px; }
.vpn-local-check { margin-top: 16px; }
.vpn-local-check summary { cursor: pointer; color: var(--primary); font-weight: 650; padding: 8px 0; }
.vpn-local-check .vpn-script { min-height: 200px; }
.vpn-health + .form-hint { margin: 14px 0; }
#vpn-diagnose { margin-top: 8px; }
.form-group label { line-height: 1.4; }
.form-hint { line-height: 1.55; }
.form-row > *, .form-grid > *, .device-form-grid > * { min-width: 0; }
input, select, textarea { max-width: 100%; }
.modal-open { overflow: hidden; }
.modal { max-height: 90dvh; }
.modal-header, .modal-footer { flex-shrink: 0; }
.modal-header h2 { font-size: 18px; line-height: 1.4; }
.modal-close { width: 36px; height: 36px; flex: 0 0 36px; }
.modal-body { overscroll-behavior: contain; min-height: 0; }
.modal-footer { flex-wrap: wrap; }
.modal-footer .btn { min-height: 40px; }
.modal-discard { flex: 1 0 100%; padding: 12px; background: #fff8eb; border: 1px solid #e3cfaa; border-radius: 5px; }
.modal-discard p { margin-bottom: 10px; color: #74420c; font-size: 13px; }
.modal-discard .btn { margin: 0 6px 4px 0; }
.wiz-erro:not(:empty) { border-left: 3px solid var(--danger); padding: 10px 12px; background: #fff5f5; margin-bottom: 16px; }
.table-wrap, .resource-table { overscroll-behavior-x: contain; }
table th { color: var(--text-mute); }
table td { vertical-align: middle; }
.people-search { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.people-search input { flex: 1 1 280px; max-width: 480px; min-height: 42px; padding: 10px 12px; background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 5px; font: inherit; }
.people-search span { font-size: 12px; color: var(--text-dim); }
@media (max-width: 1100px) {
  .config-hero, .product-hero { flex-wrap: wrap; }
  .ops-hero > div:first-child { flex-basis: 100%; }
  .ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-tile:nth-child(2) { border-right: 0; }
  .ops-tile:nth-child(n+3) { border-top: 1px solid var(--border-soft); }
}
@media (max-width: 860px) {
  .content { padding: 20px 18px 56px; }
  .sidebar-nav a { min-height: 44px; }
  .ops-hero { gap: 16px; }
  .ops-hero > div:first-child { flex: initial; }
  .ops-score { text-align: left; }
  .config-hero, .product-hero { gap: 18px; }
  .provision-local-picker { max-width: none; width: 100%; }
  .toolbar-left, .toolbar-right { min-width: 0; }
}
@media (max-width: 600px) {
  .people-table { overflow: visible; }
  .people-table table, .people-table tbody { display: block; min-width: 0; width: 100%; }
  .people-table thead { display: none; }
  .people-table tr[data-pessoa-busca] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin-bottom: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
  .people-table td { padding: 0; min-width: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .people-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--text-dim); font-size: 11px; font-weight: 500; }
  .people-table .cell-actions { grid-column: 1 / -1; display: flex; justify-content: flex-start; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
  .people-table td[colspan] { display: block; padding: 24px 12px; }
  .content { padding: 16px 12px 48px; }
  .topbar { gap: 8px; padding-inline: 12px; }
  .topbar h2 { font-size: 15px; min-width: 0; line-height: 1.3; }
  .topbar-right { gap: 6px; min-width: 0; }
  #trunk-pill { display: none; }
  #btn-aplicar { white-space: normal; font-size: 11px; max-width: 160px; }
  .btn, .icon-btn, .senha-eye { min-height: 44px; }
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; }
  .ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-tile { padding: 14px 12px; }
  .ops-tile strong { font-size: 20px; }
  .ops-hero-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .ops-hero-actions .btn { white-space: normal; justify-content: center; }
  .provision-view-tabs { gap: 14px; }
  .provision-view-tabs button { flex: 1; font-size: 13px; min-height: 48px; }
  .vpn-heading { align-items: flex-start; flex-wrap: wrap; }
  .vpn-local-toolbar > div { flex-wrap: wrap; }
  .vpn-address-grid { grid-template-columns: 1fr 1fr; }
  .vpn-address-grid strong { font-size: 12px; }
  .vpn-progress { grid-template-columns: 1fr 1fr; gap: 14px 8px; }
  .vpn-progress li { font-size: 11px; min-width: 0; }
  .vpn-progress li::after { display: none; }
  .vpn-grid > section:last-child { order: -1; }
  .vpn-password-line { flex-wrap: wrap; }
  .panel { padding: 16px; }
  .modal { max-height: 94dvh; }
  .modal-footer { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .modal-footer .btn { flex: 1 1 auto; white-space: normal; }
  .toast-container { max-width: calc(100vw - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
