:root{--brand:#173a5e;--dark:#1d2836;--bg:#f4f7fb;--line:#e2e7ee;--ink:#192839;--muted:#64758a;--radius:13px}*{box-sizing:border-box}html{font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--ink);font-size:14px}body{margin:0;background:var(--bg)}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}.shell{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;align-self:flex-start;width:249px;min-width:249px;background:var(--dark);color:#fff;height:100vh;overflow-y:auto;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;padding:24px 18px 29px;border-bottom:1px solid #334152}.brand-mark{background:#e3f3ff;color:var(--brand);font-size:23px;font-weight:900;width:40px;height:40px;border-radius:10px;display:grid;place-items:center}.brand-logo{width:43px;height:43px;object-fit:contain;background:white;border-radius:9px}.brand-title{min-width:0;display:flex;flex-direction:column;gap:4px}.brand-title strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:150px}.brand-title small{font-size:9px;letter-spacing:2px;color:#bed0df}.side-caption{font-size:9px;color:#8d9eb2;letter-spacing:1.4px;font-weight:700;padding:22px 19px 8px}.side-link{color:#d6e0ea;display:flex;align-items:center;gap:14px;min-height:39px;padding:9px 20px;font-size:12px}.side-link:hover{background:#324355;color:white;text-decoration:none}.side-foot{margin-top:auto;padding:20px;color:#93a7b9;font-size:10px;line-height:1.8}.workspace{min-width:0;flex:1;display:flex;flex-direction:column}.topbar{height:72px;background:white;border-bottom:1px solid var(--line);padding:0 35px;display:flex;align-items:center;justify-content:space-between;gap:16px}.breadcrumb{color:#73869a;font-size:12px}.account{display:flex;align-items:center;gap:14px}.user-chip{font-size:12px;display:flex;flex-direction:column;text-align:right;gap:2px;font-weight:700}.user-chip small{font-size:10px;color:var(--muted);font-weight:400}.logout{border:1px solid var(--line);background:white;padding:9px 13px;border-radius:8px;cursor:pointer}.content{max-width:1570px;width:100%;margin:0 auto;padding:37px;flex:1}.footer{font-size:10px;color:#9aa6b5;padding:18px 35px}.heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:26px}.heading h1{font-size:27px;letter-spacing:-.8px;margin:4px 0 7px}.heading p{color:var(--muted);margin:0}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--brand)!important;font-weight:800}.button{border:1px solid #d6e1ec;border-radius:9px;padding:11px 15px;font:inherit;background:white;color:var(--ink);font-weight:700;cursor:pointer;display:inline-block;text-align:center}.button:hover{text-decoration:none;filter:brightness(.96)}.button-primary{background:var(--brand);color:white;border-color:var(--brand)}.toolbar{display:flex;gap:8px;flex-wrap:wrap}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 23px}.stat{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:21px;display:flex;flex-direction:column;min-height:122px}.stat>span{font-size:12px;color:#5f7185}.stat strong{font-size:30px;margin:8px 0;font-weight:750;letter-spacing:-1px}.stat strong.small-status{font-size:16px;margin:16px 0}.stat small{font-size:10px;color:#95a0aa}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:25px;margin-bottom:17px;min-width:0}.panel h2{margin:0 0 20px;font-size:16px}.panel p{line-height:1.7}.panel-heading{display:flex;align-items:center;justify-content:space-between}.panel-heading h2{margin:0 0 18px}.columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(310px,1fr);gap:18px;align-items:start}.table-scroll{width:100%;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px}td,th{text-align:left;border-bottom:1px solid #edf1f4;padding:13px 10px}th{font-weight:700;color:#647487;background:#f9fbfd}td a{font-weight:700}.pill{display:inline-block;border-radius:15px;background:#e9f7f0;color:#17885a;padding:4px 9px;font-size:10px;font-weight:700}.notice{border-left:4px solid #5c93bd;background:#eaf3fa;padding:14px 18px;border-radius:6px;font-size:12px;color:#476275}.empty{padding:46px 20px;text-align:center;color:#6e8090;font-size:13px;line-height:1.8}.domain-list{display:flex;flex-direction:column;gap:8px}.domain{display:flex;align-items:center;gap:13px;padding:13px;border-radius:11px;border:1px solid var(--line);color:var(--ink)}.domain:hover{background:#f4f8fc;text-decoration:none}.domain-icon{height:42px;width:42px;flex:none;border-radius:10px;color:white;display:grid;place-items:center;font-weight:800}.domain div:nth-child(2){display:flex;flex-direction:column;gap:5px;flex:1}.domain small{color:var(--muted);font-size:10px}.form-column{display:flex;flex-direction:column;gap:15px}.form-column label{font-size:12px;font-weight:700;display:flex;flex-direction:column;gap:7px}.form-column input,.form-column select{border:1px solid #d7e0e9;background:#fff;border-radius:9px;padding:12px 11px;font:inherit;width:100%;height:43px;outline:none;color:var(--ink)}.form-column input:focus,.form-column select:focus{border-color:#5a99c4;box-shadow:0 0 0 3px #dceef9}.hint{font-size:11px;color:#8997a8;line-height:1.6}.muted{color:var(--muted)}.check-list{display:flex;flex-direction:column;gap:9px}.check-list label{display:flex;flex-direction:row;align-items:center;font-weight:400}.check-list input{height:auto;width:auto}.mini-row{padding:13px 0;display:flex;justify-content:space-between;border-top:1px solid var(--line)}.preview{border-radius:10px;border:1px solid var(--line);padding:28px;text-align:center}.preview-mark{width:65px;height:65px;border-radius:14px;display:grid;place-items:center;margin:auto;color:white;font-size:30px;font-weight:900}.preview-logo{max-width:180px;max-height:95px;object-fit:contain}.preview h3{font-size:20px}.login-layout{min-height:100vh;display:grid;place-items:center;padding:22px;background:radial-gradient(circle at top left,#d9e9f7 0,transparent 45%),#f1f5fa}.login-card{width:100%;max-width:410px;padding:38px;border:1px solid #dce5ec;background:white;border-radius:18px;box-shadow:0 20px 60px #15314d15;text-align:center}.login-badge{margin:0 auto 18px;width:70px;height:70px;border-radius:17px;display:grid;place-items:center;color:white}.login-initial{font-size:40px;font-weight:900}.login-logo{max-width:60px;max-height:60px;object-fit:contain}.login-card h1{font-size:23px;margin:8px 0}.subtitle{color:var(--muted);margin:0 0 25px;font-size:12px}.login-card .form-column{text-align:left}.login-card .button{margin-top:8px}.fineprint{color:#9eabb6;font-size:10px;margin:24px 0 0}.small{font-size:10px}.error{background:#fff0f0;color:#ad283b;padding:10px;border-radius:8px;margin-bottom:15px}
@media(max-width:1100px){.stat-grid{grid-template-columns:repeat(2,1fr)}.columns{grid-template-columns:1fr}.sidebar{width:210px;min-width:210px}.content{padding:26px}}@media(max-width:700px){.shell{display:block}.sidebar{position:relative;width:100%;min-width:0;height:auto;max-height:180px;overflow-y:auto}.brand{padding:13px}.side-caption{padding-top:12px}.side-foot{display:none}.topbar{height:auto;min-height:64px;padding:12px 16px;flex-wrap:wrap}.content{padding:18px}.heading{align-items:start;flex-direction:column}.stat-grid{gap:9px}.stat{padding:14px}.stat strong{font-size:25px}.panel{padding:15px}.account{margin-left:auto}.footer{padding:16px}}
.lab-chip{display:inline-flex;white-space:nowrap;align-items:center;border:1px solid #dfcc98;border-radius:999px;background:#fff9e8;color:#81601c;padding:8px 12px;font-size:11px;font-weight:700}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.trace{padding-left:21px;color:var(--ink)}.trace li{margin:12px 0;line-height:1.5}.pill-warning{background:#fff1e3;color:#985d1b}.button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:550px){.form-grid{grid-template-columns:1fr}}
/* v0.4.0 — dashboard modular aprovado: dados reais locais, sem telemetria FreeSWITCH simulada. */
.header-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.top-menu{position:relative}.top-menu summary{list-style:none;cursor:pointer}.top-menu summary::-webkit-details-marker{display:none}.top-icon{display:flex;align-items:center;justify-content:center;width:41px;height:41px;border:1px solid #dbe4ef;border-radius:10px;color:#213c5b;background:#f7f9fc;font-size:20px;user-select:none}.top-icon:hover,.top-menu[open] .top-icon{background:#e6f2ff;border-color:#93b9eb}.menu-panel{position:absolute;top:50px;right:0;z-index:90;min-width:180px;background:#1a2d48;border:1px solid #375477;border-radius:13px;box-shadow:0 12px 38px #030e2490;padding:15px;color:#fff}.menu-panel h3{font-size:13px;margin:2px 0 13px}.menu-panel p{font-size:11px;color:#b9cce5}.menu-panel button{font:inherit}.menu-line{width:100%;display:block;border:0;background:transparent;color:#edf4ff;text-align:left;padding:10px 12px;border-radius:8px;cursor:pointer;font-size:12px}.menu-line:hover,.menu-line.chosen{background:#254a75}.module-panel{width:325px}.module-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.module-tile{background:#1d3a60;border:1px solid #35567c;border-radius:11px;min-height:117px;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;color:#fff;padding:11px 8px;gap:6px}.module-tile:hover{text-decoration:none;background:#295380}.module-tile>span{font-size:28px;color:#47baff}.module-tile.type-call_center>span{color:#c57cfd}.module-tile.type-recorder>span{color:#fe6878}.module-tile.type-reports>span{color:#ffd16d}.module-tile strong{font-size:12px}.module-tile small{font-size:9px;color:#bacde5;line-height:1.4}.module-tile.locked{opacity:.52;cursor:not-allowed}.six-grid{display:grid;grid-template-columns:repeat(3,5px);grid-template-rows:repeat(2,5px);gap:3px}.six-grid i{display:block;width:5px;height:5px;border-radius:1px;background:currentColor}.profile-panel{min-width:215px}.profile-panel .menu-line{border-top:1px solid #425878;margin-top:8px}.modules-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.modules-admin-grid .panel{margin:0}
.dashboard-theme{background:#0c1d33;color:#e6f2ff}.dashboard-theme .workspace{background:radial-gradient(ellipse at top,#193859,#0b1c31 70%)}.dashboard-theme .topbar{background:#112a47;border-color:#2a4769}.dashboard-theme .top-icon{background:#1b395a;color:#e2f4ff;border-color:#385879}.dashboard-theme .top-icon:hover{background:#2e5279}.dashboard-theme .sidebar{background:#0c1b2f;border-right:1px solid #294761}.dashboard-theme .footer{color:#7a9aba}.dashboard-theme .breadcrumb,.dashboard-theme .breadcrumb a{color:#c3d5ed}.dashboard-theme .content{max-width:1750px;padding:30px}.dash-intro{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.dash-intro h1{font-size:27px;letter-spacing:-.7px;margin:5px 0}.dash-intro p{margin:0 0 8px;color:#aec3dd}.dash-overline{font-size:10px!important;letter-spacing:1.9px;color:#56aef0!important;font-weight:700}.dash-subscope{font-size:11px;color:#7698ba}.dash-outline-btn{display:inline-block;background:#1b4b77;border:1px solid #396aa0;color:#eef7ff;border-radius:10px;padding:12px 14px;font-weight:700;white-space:nowrap}.dash-outline-btn:hover{text-decoration:none;background:#265c8b}.dash-section{background:linear-gradient(135deg,#142e4e,#112741);border:1px solid #254b70;border-radius:14px;padding:20px;margin-bottom:18px;min-width:0;box-shadow:0 5px 24px #09172930}.dash-section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}.dash-section-heading>div{display:flex;align-items:center;gap:12px}.dash-section-heading h2{margin:0;font-size:17px;letter-spacing:-.2px}.dash-section-heading small{font-size:11px;color:#9cb6d0}.dash-section-icon{display:grid;place-items:center;background:#173c62;border:1px solid #2a5c84;border-radius:10px;width:37px;height:37px;color:#58c2fa;font-size:20px}.dash-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.dash-kpi{background:linear-gradient(135deg,#132942,#102238);border:1px solid #2b4f72;border-radius:11px;padding:19px;min-width:0}.dash-kpi>span{display:block;color:#b6c9df;font-size:12px}.dash-kpi strong{display:block;font-size:32px;margin:13px 0;color:#fff}.dash-kpi small{font-size:10px;color:#91acc9;line-height:1.5}.dash-compact{display:flex;align-items:center;flex-wrap:wrap;gap:22px;border-top:1px solid #254461;margin-top:15px;padding:16px 3px 0;font-size:12px;color:#a9c1db}.dash-compact b{color:#f0f8ff}.dash-muted{color:#87a0bd}.dash-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.dash-alert-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dash-alert{display:flex;flex-direction:column;border:1px solid #395778;border-radius:10px;padding:18px;gap:8px;min-height:128px}.dash-alert>span{font-size:18px}.dash-alert strong{font-size:28px}.dash-alert small{font-size:11px;line-height:1.5}.dash-alert.warning{background:#352d39;border-color:#ad7542;color:#f9c681}.dash-alert.neutral{background:#162f4b;color:#8ac6fe}.dash-note{font-size:10px;color:#95acc9;line-height:1.55}.server-gauges{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.server-gauge{display:flex;align-items:center;flex-direction:column;gap:12px;padding:4px}.server-gauge b{font-size:11px;color:#c4d8ed}.gauge-ring{--pct:0;width:98px;height:98px;position:relative;border-radius:50%;background:conic-gradient(#46b7ef calc(var(--pct)*1%),#29465f 0);display:grid;place-items:center}.gauge-ring:before{content:'';position:absolute;border-radius:50%;background:#142a44;inset:12px}.gauge-ring span{position:relative;font-size:20px;font-weight:800}.dash-placeholder{min-height:178px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:#8ca9c4;text-align:center}.dash-placeholder span{font-size:36px}.dash-placeholder p{font-size:12px}.dash-modules{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.dash-module{min-width:0;background:#112943;border:1px solid #355574;border-radius:10px;padding:16px}.dash-module-title{display:flex;align-items:center;gap:10px;margin-bottom:14px}.module-symbol{display:grid;place-items:center;border-radius:8px;width:33px;height:33px;background:#16487c;color:#63c4ff;font-size:22px}.dash-module.type-call_center .module-symbol{color:#cc8aff;background:#503569}.dash-module.type-recorder .module-symbol{color:#fb757e;background:#512e40}.dash-module.type-reports .module-symbol{color:#ffd16b;background:#64461c}.dash-module-title strong{font-size:13px}.dash-module-status{display:inline-block;font-size:10px;padding:5px 9px;border-radius:13px}.dash-module-status.yes{background:#114d42;color:#61dfae}.dash-module-status.no{background:#3c4052;color:#bfcce0}.dash-module-amount{font-size:27px;font-weight:750;margin:11px 0}.dash-module-amount small{font-size:10px;color:#acc3db;font-weight:400}.dash-module>small{color:#a5bed8;font-size:10px;line-height:1.4}.dash-progress{height:6px;border-radius:7px;background:#243e5e;overflow:hidden;margin:9px 0}.dash-progress span{display:block;background:#4d9cfa;height:100%;border-radius:7px}.dash-lab-status{font-size:10px;color:#87a9cb;border-top:1px solid #294761;padding-top:9px;margin:12px 0 0;line-height:1.5}.dash-tenant-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dash-tenant-list a{color:#edf8ff;background:#173653;border:1px solid #315477;padding:13px;border-radius:8px;display:flex;justify-content:space-between;gap:10px}.dash-tenant-list a:hover{text-decoration:none;background:#23486c}.dash-tenant-list a small{color:#9fbad7}.dash-tenant-list b{font-size:11px}.dash-small-link{color:#a3d7ff}.dash-lab-banner{background:#173653;border-left:4px solid #4a9fdd;border-radius:7px;padding:14px;font-size:11px;color:#bad1e8;line-height:1.6}
@media(max-width:1150px){.dash-modules,.dash-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-columns{grid-template-columns:1fr}}
@media(max-width:740px){.dashboard-theme .content{padding:17px}.dash-intro{align-items:start;flex-direction:column}.dash-intro h1{font-size:24px}.dash-section{padding:15px}.dash-section-heading{align-items:start;flex-direction:column}.dash-module{padding:13px}.menu-panel{right:-45px}.module-panel{width:min(325px,calc(100vw - 25px))}.dash-tenant-list{grid-template-columns:1fr}.modules-admin-grid{grid-template-columns:1fr}.header-actions{gap:6px}.top-icon{width:36px;height:36px}}
@media(max-width:450px){.dash-stats,.dash-modules{grid-template-columns:1fr}.server-gauges{gap:5px}.gauge-ring{height:75px;width:75px}.gauge-ring:before{inset:9px}.gauge-ring span{font-size:15px}}

/* v0.6.0 — configuração profissional de ramais */
.small-button{padding:7px 11px;font-size:11px;white-space:nowrap}.profile-status{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding-bottom:20px}.profile-status p{margin:6px 0 0}.extension-tabs{display:flex;gap:5px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin:22px 0}.extension-tabs a{font-size:12px;font-weight:700;color:var(--muted);padding:13px 18px;border-bottom:3px solid transparent}.extension-tabs a.active{color:var(--brand);border-color:var(--brand);background:#f1f6fc;border-radius:7px 7px 0 0}.form-section-title{margin:7px 0 12px}.form-section-title h2{margin:0 0 8px}.form-section-title p{color:var(--muted);max-width:850px;margin:0}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-column textarea{border:1px solid #d7e0e9;border-radius:9px;padding:11px;font:inherit;width:100%;color:var(--ink);resize:vertical}.form-column input[readonly]{background:#f3f5f8;color:#5f7185}.form-column .toggle-line,.toggle-line{display:flex;align-items:center;flex-direction:row;gap:10px;padding:12px;border:1px solid var(--line);border-radius:9px;font-size:12px;font-weight:600}.form-column .toggle-line input,.toggle-line input{width:17px;height:17px;flex-shrink:0;margin:0;accent-color:var(--brand)}.switch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.profile-actions{display:flex;gap:10px;flex-wrap:wrap;padding-top:7px}.profile-actions .button-primary{min-width:200px}.danger-section{border-color:#f0d5da}.danger-section h2{color:#a52d47}.danger-button{background:#9e2943;color:white;border-color:#9e2943}.delete-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.delete-form label{font-size:12px;font-weight:600;display:flex;flex-direction:column;gap:7px}.delete-form input{height:43px;border:1px solid #d7e0e9;padding:10px;border-radius:8px;max-width:250px}.danger-section p{font-size:12px}@media(max-width:700px){.field-grid,.switch-grid{grid-template-columns:1fr}.extension-tabs a{padding:12px}.profile-status{flex-direction:column;align-items:flex-start}}

/* v0.8.0 — one-step ramal form */
.extension-oneform{gap:12px}.editor-section{border:1px solid #d9e2ed;border-radius:12px;margin:0 0 12px;padding:16px 18px;background:#fff}.editor-section>summary{cursor:pointer;list-style:none;font-size:15px;font-weight:750;color:#233e61;display:flex;align-items:center;justify-content:space-between}.editor-section>summary:after{content:"+";font-size:21px;color:#6495c5}.editor-section[open]>summary{margin-bottom:20px;padding-bottom:13px;border-bottom:1px solid #e2eaf1}.editor-section[open]>summary:after{content:"−"}.editor-section .field-grid{margin:8px 0 16px}.editor-section h3{font-size:13px;margin:20px 0 4px}.editor-section .hint{font-size:12px}.editor-section .toggle-line{margin:8px 0}.extension-oneform .profile-actions{position:static;background:#fff;padding:18px 0 2px;margin-top:8px;border-top:1px solid #e0e7ef}.editor-section label{min-width:0}.button[disabled]{opacity:.55;cursor:not-allowed}

/* v0.8.0 visual hotfix: respect hidden fields */
.extension-oneform [hidden]{display:none!important}

/* Individual activation and SIP observations; text labels carry meaning beyond color. */
.status-panel-heading{align-items:flex-start;gap:12px;flex-wrap:wrap}.extension-status-table th{white-space:nowrap}.sip-state{display:inline-block;max-width:230px;padding:5px 9px;border-radius:7px;font-size:11px;font-weight:700;background:#edf1f5;color:#4a596b;white-space:normal;line-height:1.5}.sip-state[data-code="registered"],.sip-state[data-code="provisioned"]{background:#e6f5ed;color:#176442}.sip-state[data-code="pending"]{background:#fff3dc;color:#785515}.sip-state[data-code="failed"]{background:#fde9ea;color:#9c2941}.sip-state[data-code="offline"]{background:#edf0f6;color:#4e5e78}.status-observed{display:block;max-width:230px;margin-top:7px;font-size:10px;color:#64758a;overflow-wrap:anywhere}.status-diagnostic{font-size:11px;max-width:290px;color:#53667b;margin:0 0 8px;overflow-wrap:anywhere}.status-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:15px}.status-card-grid>div{display:flex;align-items:flex-start;flex-direction:column;gap:8px}.extension-status-card .status-observed{max-width:100%}@media(max-width:700px){.status-card-grid{grid-template-columns:1fr}.status-panel-heading{display:block}.status-panel-heading>.hint{display:block;margin-bottom:12px}}

.ivr-panels { display: grid; gap: 1rem; }
.ivr-options { display: grid; gap: .5rem; }
.ivr-option, .ivr-option-head {
  display: grid;
  grid-template-columns: 3rem minmax(8rem, 1fr) minmax(10rem, 1fr) minmax(8rem, 1fr);
  gap: .6rem;
  align-items: center;
}
.ivr-option-head { font-weight: 600; }
.ivr-option :is(input, select) { width: 100%; min-width: 0; }
@media (max-width: 760px) {
  .ivr-option-head { display: none; }
  .ivr-option { grid-template-columns: 2rem minmax(0, 1fr); }
  .ivr-option > :nth-child(n+3) { grid-column: 2; }
}

.audio-digest { overflow-wrap: anywhere; }
