/* Voicetelo portal shell — layout glue on top of the Industry design system.
   Mirrors the structure already used by Voicetelo Portal.dc.html (the design
   preview): a fixed dark sidebar, sticky header, and a content column. */

/* Guards against any design-system component class (e.g. .dialog-backdrop)
   setting `display` unconditionally, which would otherwise silently
   override the browser's default [hidden] behavior — see marketing.css
   for where this was actually hit. */
[hidden] { display: none !important; }

body { margin: 0; -webkit-font-smoothing: antialiased; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-800); }

.vt-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
@media (max-width: 1079px) { .vt-shell { grid-template-columns: minmax(0, 1fr); } }

.vt-sidebar { display: flex; background: var(--color-accent-900); color: #f2f2f3; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
@media (max-width: 1079px) { .vt-sidebar { display: none; } }
.vt-sidebar.vt-open { display: flex; position: fixed; inset: 0 20% 0 0; height: 100vh; z-index: 60; }

.vt-brand { padding: 20px 22px; border-bottom: 1px solid rgba(242,242,243,0.14); display: flex; align-items: center; gap: 10px; text-decoration: none; color: #f2f2f3; }
.vt-brand span { font-family: var(--font-heading); font-size: 19px; letter-spacing: 0.06em; }

.vt-nav { flex: 1; padding: 20px 12px; }
.vt-nav-kicker { margin: 0 0 10px 10px; font-family: var(--font-heading); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #22d3ee; }
.vt-nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.vt-nav-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; background: transparent; border: 0; border-left: 2px solid transparent; padding: 10px 12px; color: rgba(242,242,243,0.78); font-family: var(--font-heading); font-weight: 600; font-size: 16px; letter-spacing: 0.02em; }
.vt-nav-item:hover { background: rgba(34,211,238,0.08); }
.vt-nav-item.active { background: rgba(34,211,238,0.14); border-left-color: #22d3ee; color: #f2f2f3; }

.vt-account { padding: 16px 22px 22px; border-top: 1px solid rgba(242,242,243,0.14); }
.vt-account p { margin: 0 0 4px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #22d3ee; }
.vt-account .vt-account-name { margin: 0 0 12px; font-family: var(--font-heading); font-size: 16px; word-break: break-all; }

.vt-back-link { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(242,242,243,0.14); font-family: var(--font-heading); font-weight: 600; font-size: 13.5px; letter-spacing: 0.02em; color: rgba(242,242,243,0.85); text-decoration: none; }
.vt-back-link:hover { color: #22d3ee; }

.vt-header { position: sticky; top: 0; z-index: 40; background: var(--color-bg); border-bottom: 1px solid var(--color-divider); padding: 0 34px; height: 66px; display: flex; align-items: center; gap: 18px; }
@media (max-width: 759px) { .vt-header { padding: 0 18px; } }
.vt-header h1 { margin: 0; font-family: var(--font-heading); font-size: 20px; margin-right: auto; font-weight: var(--font-heading-weight); }
.vt-burger { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; background: transparent; border: 1px solid var(--color-divider); color: var(--color-text); cursor: pointer; flex: none; }
@media (max-width: 1079px) { .vt-burger { display: flex; } }

.vt-main { flex: 1; padding: 34px; max-width: none; width: 100%; min-width: 0; }
@media (max-width: 759px) { .vt-main { padding: 24px 18px 56px; } }

.vt-lede { max-width: 68ch; margin-bottom: 30px; }
.vt-lede h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); }

.vt-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; margin-bottom: 34px; }
@media (max-width: 1079px) { .vt-stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 599px) { .vt-stats { grid-template-columns: 1fr; } }

.vt-note { padding: 30px 24px; text-align: center; background: var(--color-neutral-100); margin-bottom: 26px; }
.vt-note h6 { margin: 0 0 6px; color: var(--color-accent-700); font-family: var(--font-heading); font-size: 15px; }
.vt-note p { margin: 0; font-size: 13.5px; }

.vt-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; align-items: end; }
.vt-loading { padding: 14px 0; }

.vt-panel { padding: 22px; margin-bottom: 24px; }
.vt-panel h3 { margin: 0 0 14px; font-size: 19px; }

.vt-flash { padding: 12px 16px; margin-bottom: 18px; font-size: 13.5px; border: 1px solid var(--color-divider); }
.vt-flash.vt-flash-error { color: #8a2f2f; border-color: #8a2f2f; }
.vt-flash.vt-flash-ok { color: var(--color-accent-800); border-color: var(--color-accent-500); }

.vt-form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }
@media (max-width: 599px) { .vt-form-row { grid-template-columns: 1fr; } }

/* .radio (design system) is built for a custom radio dot and sets
   position:absolute/opacity:0/pointer-events:none on its <input> — reset
   all of that where this wrapper is reused for a real checkbox (ticket
   internal-note toggle, Billing System "Require SSL"). */
.vt-checkbox-fix input[type="checkbox"] { position: static; opacity: 1; width: 16px; height: 16px; flex: none; margin-top: 2px; accent-color: var(--color-accent); pointer-events: auto; }
/* Voicetelo theme accents */
.vt-sidebar { background: linear-gradient(180deg, #0b1220 0%, #111c38 100%); }
.btn, button.btn, .vt-btn { border-radius: var(--radius-md); }
.card, .vt-card, .panel { border-radius: var(--radius-lg); }
input, select, textarea { border-radius: var(--radius-sm); }
/* ── Voicetelo polish: portals & login ───────────────────────────────── */
.vt-sidebar { background: linear-gradient(180deg, #0b1220 0%, #111c38 100%) !important; }
.vt-nav-item { border-radius: 10px; margin: 2px 8px; width: calc(100% - 16px) !important; }
.vt-nav-item.active { background: rgba(34,211,238,0.16) !important; border-left-color: transparent !important; color: #fff !important; }
.vt-nav-item.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: #22d3ee; }
.vt-nav-item { position: relative; }
.btn { border-radius: 999px !important; }
.btn-primary { background: linear-gradient(135deg, #6366f1, #4f46e5) !important; border-color: transparent !important; color: #fff !important; }
.card, .vt-card, .panel, table.table { border-radius: 14px !important; }
.card { border: 1px solid #e2e8f0 !important; box-shadow: 0 2px 10px rgba(11,18,32,0.04); }
input, select, textarea { border-radius: 10px !important; }
input:focus, select:focus, textarea:focus { border-color: #4f46e5 !important; box-shadow: 0 0 0 3px rgba(79,70,229,0.15) !important; outline: none; }
.vt-header { backdrop-filter: blur(10px); background: rgba(248,250,252,0.9) !important; }
/* ── Voicetelo palette: portals ──────────────────────────────────────── */
.vt-sidebar { background: linear-gradient(180deg, #0b1220 0%, #111c38 100%) !important; }
.vt-nav-item.active { background: rgba(99,102,241,0.18) !important; }
.vt-nav-item.active::before { background: linear-gradient(180deg, #818cf8, #22d3ee) !important; }
.btn-primary { background: linear-gradient(135deg, #6366f1, #4f46e5) !important; }
a { color: #4f46e5; }
.vt-sidebar a { color: inherit; }
