:root {
    color-scheme: dark;
    --bg: #050b15;
    --surface: #0c1829;
    --surface-2: #13243a;
    --surface-3: #1a2e49;
    --line: #223753;
    --text: #f4f7fb;
    --muted: #91a4bd;
    --primary: #d6a84a;
    --primary-2: #f3d17f;
    --blue: #4e9df8;
    --cyan: #42d3d0;
    --danger: #ef6b76;
    --success: #36d399;
    --sidebar: 284px;
    --shadow: 0 20px 55px rgba(0, 0, 0, .26);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; max-width: 100%; overflow-x: hidden; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 85% -10%, rgba(55, 119, 190, .2), transparent 34%),
        radial-gradient(circle at 25% 110%, rgba(210, 164, 70, .09), transparent 30%),
        var(--bg);
    color: var(--text);
    font: 15px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--primary-2); text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    display: flex;
    flex-direction: column;
    padding: 18px 14px 14px;
    background: linear-gradient(180deg, rgba(8, 17, 31, .99), rgba(5, 11, 21, .99));
    border-right: 1px solid var(--line);
    box-shadow: 18px 0 50px rgba(0, 0, 0, .18);
    z-index: 20;
    max-width: 100vw;
    overflow: hidden;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 5px 8px 16px;
    color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(214, 168, 74, .28);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(214, 168, 74, .13), rgba(78, 157, 248, .08));
}
.brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.brand > span:last-child { min-width: 0; display: grid; gap: 2px; }
.brand strong {
    max-width: 180px;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand small { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.sidebar nav {
    display: grid;
    gap: 3px;
    min-height: 0;
    margin-top: 12px;
    padding-right: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(145, 164, 189, .45) transparent;
    scrollbar-width: thin;
}
.nav-section {
    padding: 14px 12px 6px;
    color: #637791;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.sidebar nav a, .logout {
    display: flex;
    align-items: center;
    gap: 11px;
    width: auto;
    max-width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    text-align: left;
    transition: background .18s, color .18s, transform .18s;
}
.sidebar nav a:hover, .sidebar nav a.active {
    background: linear-gradient(90deg, rgba(214, 168, 74, .18), rgba(78, 157, 248, .07));
    color: var(--text);
}
.sidebar nav a.active {
    box-shadow: inset 3px 0 var(--primary);
}
.nav-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
    color: var(--primary-2);
    font-size: 15px;
}
.sidebar-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: auto 5px 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
    flex: 0 0 auto;
}
.sidebar-status > span:last-child { display: grid; }
.sidebar-status b { font-size: 12px; }
.sidebar-status small { font-size: 10px; }
.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(54, 211, 153, .1), 0 0 18px rgba(54, 211, 153, .6);
}
.logout-form { margin-top: 0; }
.logout { color: var(--danger); }
.shell { min-width: 0; margin-left: var(--sidebar); min-height: 100vh; }
header {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 78px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 32px;
    background: rgba(5, 11, 21, .78);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.header-title { display: grid; gap: 2px; }
.header-title strong { font-size: 18px; }
.eyebrow { color: var(--primary); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.header-user > span:last-child { display: grid; min-width: 92px; }
.header-user b { font-size: 12px; }
.header-user small { font-size: 10px; }
#headerClock { color: var(--muted); font-size: 12px; margin-right: 8px; }
.avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(214, 168, 74, .4);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(214, 168, 74, .24), rgba(78, 157, 248, .16));
    color: var(--primary-2);
    font-weight: 800;
}
#menuButton { display: none; background: none; border: 0; color: var(--text); font-size: 24px; }
#menuBackdrop { display: none; }
main { width: 100%; min-width: 0; padding: 30px 32px 46px; max-width: 1600px; margin: auto; }
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
h1, h2, h3, p { margin-top: 0; }
.page-head p, .muted, small { color: var(--muted); }
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.card, .panel {
    min-width: 0;
    background: linear-gradient(145deg, rgba(20, 37, 60, .94), rgba(10, 22, 39, .96));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.card {
    position: relative;
    min-height: 126px;
    padding: 20px;
    overflow: hidden;
}
.card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    right: -32px;
    bottom: -42px;
    border-radius: 50%;
    background: rgba(78, 157, 248, .1);
}
.card.warn::after { background: rgba(239, 107, 118, .12); }
.card.gold::after { background: rgba(214, 168, 74, .13); }
.card strong { display: block; margin-top: 7px; font-size: 30px; letter-spacing: -.03em; }
.card-foot { display: block; margin-top: 8px; color: #6f849e; font-size: 11px; }
.metric-icon {
    position: absolute;
    top: 17px;
    right: 17px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: var(--primary-2);
}
.panel { padding: 22px; margin-bottom: 20px; }
.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.panel-title h2 { margin: 0; font-size: 17px; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.dashboard-main { grid-template-columns: minmax(0, 1.4fr) minmax(310px, .6fr); }
.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 126px;
    margin-bottom: 20px;
    padding: 24px 26px;
    border: 1px solid rgba(214, 168, 74, .2);
    border-radius: 20px;
    background:
        linear-gradient(110deg, rgba(214, 168, 74, .13), transparent 44%),
        linear-gradient(145deg, rgba(20, 39, 65, .95), rgba(8, 19, 34, .97));
    box-shadow: var(--shadow);
}
.dashboard-hero h2 { margin: 3px 0 5px; font-size: clamp(22px, 3vw, 32px); }
.dashboard-hero p { margin: 0; color: var(--muted); }
.hero-state { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.hero-state .status-dot { width: 11px; height: 11px; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 11px;
    background: rgba(255,255,255,.025);
}
.online-list { display: grid; gap: 8px; }
.online-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.online-item:last-child { border-bottom: 0; }
.extension-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(54, 211, 153, .1);
    color: var(--success);
    font-weight: 800;
}
.online-item > span:nth-child(2) { display: grid; min-width: 0; }
.online-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: grid; gap: 6px; color: var(--muted); }
input, select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: none;
    background: #09162a;
    color: var(--text);
}
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(214, 173, 85, .12); }
input[type="checkbox"] { width: 18px; min-height: 18px; }
input[type="file"] { padding: 7px; }
.check { display: flex; align-items: center; gap: 8px; align-self: end; min-height: 42px; }
.full-row { grid-column: 1 / -1; }
.field-help { margin: -3px 0 0; color: var(--muted); font-size: 12px; }
.member-picker {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    max-height: 260px;
    overflow-y: auto;
}
.member-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
}
.member-option span { display: grid; }
.member-option small { margin-top: 2px; }
.member-tags { display: flex; flex-wrap: wrap; gap: 5px; max-width: 360px; }
.member-tags span {
    padding: 4px 7px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    background: rgba(255,255,255,.045);
    font-size: 12px;
}
.member-tags span.online {
    border-color: rgba(54,211,153,.35);
    background: rgba(54,211,153,.1);
    color: #baf6dc;
}
.table-subtitle { display: block; margin-top: 3px; }
.dial-number {
    display: inline-grid;
    place-items: center;
    min-width: 54px;
    padding: 5px 9px;
    border-radius: 8px;
    background: rgba(214,168,74,.13);
    color: var(--primary-2);
    font-weight: 800;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--text);
}
.btn:hover { filter: brightness(1.12); }
.btn.primary { background: linear-gradient(135deg, #b88729, var(--primary)); border-color: var(--primary); color: #111827; font-weight: 700; }
.btn.danger { color: #fff; background: #9d2f3b; border-color: #bd4652; }
.btn.big { width: 100%; min-height: 48px; }
.toolbar, .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 15px; }
.actions { justify-content: flex-end; margin-top: 16px; margin-bottom: 0; }
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #5b2631; color: #ffd9de; font-size: 12px; }
.badge.ok { background: #124a3c; color: #baf6dc; }
.badge.warn { background: #5b4518; color: #ffe3a3; }
.badge.neutral { background: #25384e; color: #d9e7f6; }
.badge.error { background: #5b2631; color: #ffd9de; }
dialog {
    width: min(720px, calc(100vw - 28px));
    max-height: calc(100dvh - 28px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    padding: 22px;
}
dialog::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }
.form-error { grid-column: 1 / -1; margin: 4px 0 0; border: 1px solid #c55b68; }
.page-error { position: sticky; top: 82px; z-index: 30; border: 1px solid #c55b68; box-shadow: 0 12px 32px #0007; }
audio { width: 240px; height: 38px; }
pre { overflow: auto; padding: 15px; border-radius: 10px; background: #050b16; color: #cce0ff; white-space: pre-wrap; }
.log-panel { padding-bottom: 14px; }
.log-console {
    height: min(68vh, 760px);
    margin: 0;
    border: 1px solid rgba(78,157,248,.16);
    background: #030812;
    color: #b9d5f5;
    font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
    white-space: pre;
}
#toast { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 8px; }
.toast { max-width: 360px; padding: 12px 15px; border-radius: 10px; background: #174638; box-shadow: 0 10px 30px #0008; }
.toast.error { background: #7e2c37; }
#loading { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; place-items: center; gap: 12px; background: var(--bg); transition: opacity .2s; }
#loading img { width: 120px; height: 120px; object-fit: contain; animation: pulse 1.3s infinite; }
#loading.hidden { opacity: 0; pointer-events: none; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .7; } }
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card, .setup-card {
    width: min(470px, 100%);
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(12, 26, 47, .96);
    box-shadow: 0 24px 70px #0008;
    text-align: center;
}
.setup-card { width: min(760px, 100%); }
.logo-sistema {
    display: block;
    width: min(220px, 70vw);
    height: auto;
    max-height: 220px;
    margin: 0 auto 16px;
    object-fit: contain;
}

.config-final-body {
    align-items: flex-start;
    padding: 32px 16px;
}

.config-final-card {
    width: min(760px, 100%);
}

.config-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 24px 0;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 68px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    text-align: left;
}

.service-status > span {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 5px rgba(239, 68, 68, .13);
}

.service-status.online > span {
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, .13);
}

.service-status strong,
.service-status small {
    display: block;
}

.service-status small {
    margin-top: 3px;
    color: var(--muted);
}
.login-card form, .setup-form { display: grid; gap: 14px; text-align: left; }
.developer { margin-bottom: 4px; }
.support { display: inline-block; margin-bottom: 20px; font-weight: 700; }
fieldset { display: grid; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
legend { padding: 0 8px; color: var(--primary-2); }
.alert { padding: 11px; margin-bottom: 14px; border-radius: 9px; background: #183c61; }
.alert.error { background: #702c38; }
@media (max-width: 900px) {
    .sidebar {
        width: min(86vw, 320px);
        height: 100dvh;
        transform: translateX(-100%);
        transition: transform .2s;
    }
    .sidebar.open { transform: translateX(0); }
    #menuBackdrop {
        position: fixed;
        inset: 0;
        z-index: 19;
        border: 0;
        background: rgba(0, 0, 0, .64);
        backdrop-filter: blur(3px);
    }
    body.menu-open #menuBackdrop { display: block; }
    body.menu-open { overflow: hidden; }
    .shell { margin-left: 0; }
    #menuButton { display: block; }
    main { padding: 20px 14px; }
    .grid.two, .grid.dashboard-main, .form-grid { grid-template-columns: 1fr; }
    #headerClock { display: none; }
    .header-user > span:last-child { display: none; }
    .dashboard-hero { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
    header { padding: 0 15px; }
    .page-head { align-items: flex-start; }
    .page-head, .toolbar { flex-wrap: wrap; }
    .config-service-grid { grid-template-columns: 1fr; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card { min-height: 112px; padding: 16px; }
    .card strong { font-size: 25px; }
    .metric-icon { display: none; }
}
@media (max-width: 420px) {
    .cards { grid-template-columns: 1fr; }
    dialog { width: calc(100vw - 16px); padding: 16px; }
}

.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(5, 12, 24, .55);
}
.settings-tab {
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
}
.settings-tab:hover { color: var(--text); background: rgba(255,255,255,.035); }
.settings-tab.active {
    border-color: rgba(214,168,74,.42);
    background: linear-gradient(135deg, rgba(184,135,41,.28), rgba(214,168,74,.13));
    color: var(--primary-2);
}
.settings-panel[hidden] { display: none !important; }
.ringtone-settings-grid { align-items: start; }
.ringtone-preview-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 13px;
    padding: 20px;
    border: 1px solid rgba(78,157,248,.18);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(78,157,248,.08), rgba(255,255,255,.025));
}
.ringtone-preview-card > div { display: grid; gap: 4px; }
.ringtone-preview-card audio { grid-column: 1 / -1; width: 100%; margin-top: 8px; }
.ringtone-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(214,168,74,.35);
    border-radius: 14px;
    background: rgba(214,168,74,.12);
    color: var(--primary-2);
    font-size: 25px;
    font-weight: 800;
}
.ringtone-help { margin: 18px 0 0; }

@media (max-width: 720px) {
    .settings-tabs { display: grid; grid-template-columns: 1fr; }
    .settings-tab { width: 100%; }
    .ringtone-settings-grid { grid-template-columns: 1fr; }
}


/* VOIP_SEKRON_MAIN_V831_RESPONSIVE */
.autofill-decoy {
    position: fixed !important;
    left: -10000px !important;
    top: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
}
.table-wrap table {
    width: 100%;
    table-layout: fixed;
}
.table-wrap th,
.table-wrap td {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    vertical-align: top;
}
.table-wrap td:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.table-wrap td:last-child .btn {
    flex: 1 1 auto;
    min-width: 88px;
}
.toolbar > input,
.toolbar > select {
    min-width: 0;
    flex: 1 1 180px;
}
dialog .form-grid > *,
.panel,
.card,
.toolbar,
.actions {
    min-width: 0;
}

@media (max-width: 900px) {
    .table-wrap table,
    .table-wrap tbody,
    .table-wrap tr,
    .table-wrap td {
        display: block;
        width: 100%;
    }
    .table-wrap thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .table-wrap tbody {
        display: grid;
        gap: 12px;
    }
    .table-wrap tr {
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-radius: 13px;
        background: rgba(255,255,255,.025);
    }
    .table-wrap td {
        display: grid !important;
        grid-template-columns: minmax(110px, .42fr) minmax(0, 1fr);
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255,255,255,.055);
    }
    .table-wrap td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .04em;
        text-transform: uppercase;
    }
    .table-wrap td:last-child {
        grid-template-columns: 1fr;
        border-bottom: 0;
        padding-bottom: 2px;
    }
    .table-wrap td:last-child::before {
        content: "Ações";
    }
    .table-wrap td:last-child .btn {
        width: 100%;
    }
}
@media (max-width: 520px) {
    .table-wrap td {
        grid-template-columns: 1fr;
        gap: 3px;
    }
    .toolbar .btn,
    .actions .btn {
        width: 100%;
    }
}
#ataRows td small{display:block;color:var(--muted,#64748b);margin-top:3px}.badge.success{color:#166534;background:#dcfce7}.badge.danger{color:#991b1b;background:#fee2e2}.full{grid-column:1/-1}.btn.small{padding:6px 10px;font-size:.75rem}.btn.danger{background:#dc2626;color:#fff}

/* RAMAIS STATUS CARDS v3.3.3 */
.ramal-status-cards {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
    margin-bottom:18px;
}
.ramal-status-card {
    width:100%;
    min-height:126px;
    display:flex;
    align-items:center;
    gap:16px;
    padding:20px;
    border:1px solid var(--border,#2b3b51);
    border-radius:18px;
    background:var(--panel,#121c2b);
    color:inherit;
    text-align:left;
    cursor:pointer;
    box-shadow:0 10px 26px rgba(0,0,0,.16);
    transition:.16s ease;
}
.ramal-status-card:hover { transform:translateY(-2px); }
.ramal-status-card.active {
    box-shadow:0 0 0 3px rgba(79,140,255,.20),0 14px 32px rgba(0,0,0,.22);
}
.ramal-status-card.online.active { border-color:#38d39f; }
.ramal-status-card.offline.active { border-color:#ff7373; }
.ramal-status-icon {
    width:48px;height:48px;display:grid;place-items:center;
    border-radius:15px;font-size:28px;
}
.ramal-status-card.online .ramal-status-icon {
    color:#38d39f;background:rgba(56,211,159,.13);
}
.ramal-status-card.offline .ramal-status-icon {
    color:#ff7373;background:rgba(255,115,115,.13);
}
.ramal-status-copy { display:grid;gap:3px; }
.ramal-status-copy small {
    font-size:13px;font-weight:700;text-transform:uppercase;opacity:.76;
}
.ramal-status-copy strong { font-size:42px;line-height:1; }
.ramal-status-copy span { font-size:13px;opacity:.7; }
#ramalFilterSummary { margin-left:auto;white-space:nowrap; }
@media (max-width:720px) {
    .ramal-status-cards { grid-template-columns:1fr; }
    #ramalFilterSummary { width:100%;margin-left:0; }
}


/* VOIP_SEKRON_DASHBOARD_SERVIDOR_V1 */
.dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(5, 12, 24, .62);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .14);
}
.dashboard-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 9px 17px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
}
.dashboard-tab:hover { color: var(--text); background: rgba(255,255,255,.035); }
.dashboard-tab.active {
    border-color: rgba(214,168,74,.42);
    background: linear-gradient(135deg, rgba(184,135,41,.28), rgba(214,168,74,.13));
    color: var(--primary-2);
}
.live-pill {
    padding: 3px 7px;
    border: 1px solid rgba(54,211,153,.28);
    border-radius: 999px;
    background: rgba(54,211,153,.1);
    color: var(--success);
    font-size: 8px;
    letter-spacing: .09em;
}
[data-dashboard-panel][hidden] { display: none !important; }
.server-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 23px 25px;
    border: 1px solid rgba(78,157,248,.22);
    border-radius: 19px;
    background:
        linear-gradient(110deg, rgba(78,157,248,.13), transparent 48%),
        linear-gradient(145deg, rgba(20,39,65,.96), rgba(8,19,34,.98));
    box-shadow: var(--shadow);
}
.server-hero h2 { margin: 3px 0 4px; font-size: clamp(21px, 3vw, 29px); }
.server-hero p { margin: 0; color: var(--muted); }
.server-live-state {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 175px;
    padding: 11px 13px;
    border: 1px solid rgba(54,211,153,.16);
    border-radius: 12px;
    background: rgba(54,211,153,.055);
}
.server-live-state > span:last-child { display: grid; }
.server-live-state small { font-size: 10px; }
.server-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.server-metric-card {
    min-width: 0;
    min-height: 150px;
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(20,37,60,.94), rgba(10,22,39,.97));
    box-shadow: var(--shadow);
}
.server-card-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}
.server-card-top span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.server-card-top b { font-size: 23px; letter-spacing: -.03em; }
.server-meter {
    position: relative;
    width: 100%;
    height: 9px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.045);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
}
.server-meter-fill {
    display: block;
    min-width: 2px;
    height: 100%;
    border-radius: inherit;
    transition: width .45s ease;
}
.server-meter-fill.normal { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.server-meter-fill.warning { background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.server-meter-fill.critical { background: linear-gradient(90deg, #e94c5d, var(--danger)); }
.server-card-details {
    display: flex;
    justify-content: space-between;
    gap: 9px;
    margin-top: 13px;
    color: var(--muted);
    font-size: 11px;
}
.server-card-details span:last-child { text-align: right; }
.server-network-upload {
    margin: -8px 0 13px;
    color: var(--cyan);
    font-size: 18px;
    font-weight: 800;
}
.server-detail-grid { align-items: stretch; }
.server-detail-grid > .panel { height: calc(100% - 20px); }
.server-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}
.server-info-item {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 11px;
    background: rgba(255,255,255,.025);
}
.server-info-item b { overflow-wrap: anywhere; }
.server-info-item.full { grid-column: 1 / -1; }
.server-info-item.full .server-meter { margin-top: 7px; }
.server-telephony-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.server-loading {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 130px;
}
.server-loading h2 { margin-bottom: 4px; }
.server-loading p { margin: 0; }
.server-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: server-spin .8s linear infinite;
}
@keyframes server-spin { to { transform: rotate(360deg); } }
@media (max-width: 1180px) {
    .server-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .server-telephony-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .dashboard-tabs { display: grid; grid-template-columns: 1fr 1fr; }
    .dashboard-tab { width: 100%; padding-inline: 10px; }
    .server-hero { align-items: flex-start; flex-direction: column; }
    .server-live-state { width: 100%; }
    .server-summary-grid, .server-info-grid { grid-template-columns: 1fr; }
    .server-telephony-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
    .dashboard-tabs, .server-telephony-cards { grid-template-columns: 1fr; }
    .server-card-details { display: grid; }
    .server-card-details span:last-child { text-align: left; }
}
