@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=DM+Sans:wght@400;500;700&display=swap');

:root {
    /* Palette matched to voxtransit.com */
    --vt-navy: #07101f;
    --vt-navy-light: #0b172d;
    --vt-border: #253953;
    --vt-blue: #2563eb;
    --vt-blue-dark: #1d4ed8;
    --vt-teal: #2dd4bf;
    --vt-teal-dark: #14b8a6;
    --vt-light: #f7f9fc;
    --vt-text-dark: #0f172a;
    --vt-text-muted: #9fb2d0;
    --vt-font-heading: 'Space Grotesk', sans-serif;
    --vt-font-body: 'DM Sans', Arial, sans-serif;
}

body {
    font-family: var(--vt-font-body);
}

h1, h2, h3, h4, .kpi-value, .logo-text {
    font-family: var(--vt-font-heading);
}

.voip-container {
    background: rgba(255, 255, 255, 0.9); /* semi-transparent white */
    padding: 20px;
    border-radius: 10px;
    max-width: 1200px;
    margin: auto;
}

.voip-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 30px;
}

.voip-card {
    width: 220px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
    background-color: #f9f9f9;
}

.voip-card h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.voip-card p {
    margin-bottom: 10px;
    font-weight: bold;
}

.btn-primary {
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--vt-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.btn-primary:hover {
    background-color: var(--vt-blue-dark);
}

.voip-table-container {
    margin-top: 30px;
}

.voip-table {
    width: 100%;
    border-collapse: collapse;
}

.voip-table th,
.voip-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ccc;
}

.status-active {
    color: green;
    font-weight: bold;
}

.status-inactive {
    color: red;
    font-weight: bold;
}

.btn-secondary {
    padding: 5px 10px;
    background-color: #ffc107;
    color: black;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 5px;
}

.btn-danger {
    padding: 5px 10px;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.container {
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
}

.issue-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

h2 {
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

textarea {
    height: 100px;
}

.btn-primary {
    background-color: var(--vt-blue);
    border: none;
    padding: 10px;
    font-size: 16px;
}

.btn-primary:hover {
    background-color: var(--vt-blue-dark);
}

.logo-text {
    background-color: #54463d;
    color: #f5f1eb; /* Light cream color for contrast */
    padding: 10px;
    font-size: 2rem;
    font-weight: bold;
    display: inline-block;
}

#balance-select {
    margin-top: 10px;
    padding: 6px;
    width: 100%;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
  }
  

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.background {
    background-image: url('{{ url_for("static", filename="background.jpg") }}');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

nav {
    background-color: rgba(13, 21, 36, 0.85);
    color: #fff;
    border-bottom: 2px solid var(--vt-teal);
    padding: 1em;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav a {
    color: #fff;
    margin: 0 1em;
    text-decoration: none;
}

nav .logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-right: auto;
    border-radius: 6px;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.home-content {
    text-align: center;
}

.home-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.home-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
}


h1 {
    color: #333;
}

form {
    max-width: 600px;
    margin: 0 auto;
    padding: 1em;
    background-color: #fff;
    border-radius: 7px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-bottom: 0.5em;
}

form input, form textarea {
    width: 100%;
    padding: 0.5em;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    width: 100%;
    padding: 0.7em;
    background-color: var(--vt-navy);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: var(--vt-blue);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 0.5em;
    text-align: left;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--vt-blue);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .button:hover {
    background-color: var(--vt-blue-dark);
  }
  
  .button__icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
  }
  
.bijli-gif {
    margin: 10px 1;
    width: 800px;
}

.features {
    display: flex;
    justify-content: space-around;
    margin-top: 50px;
}

.feature {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 30%;
}

.feature h2 {
    color: #007BFF;
    margin-bottom: 15px;
}

.feature p {
    color: #555;
}


.about-content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-content h1,
.about-content h2 {
    color: #007BFF;
}

.about-content p {
    color: #333;
    line-height: 1.6;
}

.values-list {
    list-style-type: none;
    padding: 0;
}

.values-list li {
    background: #f9f9f9;
    margin: 10px 0;
    padding: 10px;
    border-left: 5px solid #007BFF;
}

.values-list li strong {
    display: block;
    margin-bottom: 5px;
}

.join-button {
    display: inline-block;
    padding: 15px 30px;
    margin-top: 20px;
    background-color: #007BFF;
    color: #fff;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    cursor: pointer;
}

.join-button:hover {
    background-color: #0056b3;
}


.join-button:hover {
    background-color: #0056b3;
}


/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Dashboard container */
.dashboard-container {
    display: flex;
    height: 200vh;
    transition: all 0.3s ease-in-out;
}

/* Sidebar Styling */
/* .sidebar {
    width: 1300px;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease-in-out;
    overflow: hidden;
    white-space: nowrap;
} */

/* Sidebar styling */
.sidebar {
    flex: 0 0 250px;
    width: 1250px;
    background-color: var(--vt-navy);
    color: var(--vt-light);
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

/* Upper Pane (Header) */
.header {
    background-color: var(--vt-navy);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Collapsed Sidebar */
.sidebar.collapsed {
    width: 70px;
}

.sidebar h2 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
}

/* Hide text when collapsed */
.sidebar.collapsed h2,
.sidebar.collapsed p {
    opacity: 0;
}

/* Sidebar Buttons */
.sidebar-button {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 10px 0;
    background-color: var(--vt-navy-light);
    color: var(--vt-light);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar-button__icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    transition: margin 0.3s ease-in-out;
}

.sidebar.collapsed .sidebar-button__icon {
    margin-right: 0;
}

.sidebar-button:hover {
    background-color: var(--vt-teal);
    color: var(--vt-navy);
}

/* Toggle Sidebar Button */
.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--vt-teal);
    border: none;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    margin-top: 40px;
    transition: background-color 0.3s ease-in-out;
}

.sidebar-toggle:hover {
    background-color: var(--vt-teal-dark);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 20px;
    background-color: var(--vt-light);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: margin-left 0.3s ease-in-out;
}

/* Adjust main content when sidebar is collapsed */
.sidebar.collapsed + .main-content {
    margin-left: -180px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }

    .sidebar.collapsed {
        width: 100%;
        height: auto;
    }
}


/* Settings container */
.settings-container {
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    max-width: 600px;
    margin: 20px auto;
}

.settings-header {
    border-bottom: 2px solid var(--vt-blue);
    padding-bottom: 10px;
}

.settings-content {
    margin-top: 20px;
}

.settings-item {
    margin-bottom: 15px;
}

.settings-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.settings-item p {
    font-size: 16px;
    color: #555;
    margin: 0;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.contact-info {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.contact-info h2 {
    color: var(--vt-blue);
    margin-bottom: 10px;
}

.contact-info p {
    margin: 5px 0;
    color: #555;
}

.contact-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    color: var(--vt-blue);
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.contact-form button {
    background-color: var(--vt-blue);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: var(--vt-blue-dark);
}

.chart-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
  }
  
  .chart-box {
    flex: 1 1 30%;
    min-width: 300px;
    max-width: 450px;
    background: #fff;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--vt-teal);
    border-radius: 18px;
    text-align: center;
  }

/* KPI summary cards */
.kpi-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 0 0 24px;
}

.kpi-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 160px;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--vt-navy), var(--vt-navy-light));
    color: var(--vt-light);
    border-radius: 10px;
    border-bottom: 3px solid var(--vt-teal);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.kpi-label {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vt-teal);
}

.kpi-value {
    font-size: 1.8em;
    font-weight: bold;
}

/* Backend console theme */
* { box-sizing: border-box; }

body {
    margin: 0;
    min-width: 320px;
    color: var(--vt-text-dark);
    background: #eef3f8;
    font-family: var(--vt-font-body);
}

.app-shell { min-height: 100vh; }

.topbar {
    min-height: 72px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--vt-navy);
    border-bottom: 1px solid rgba(159, 178, 208, 0.18);
}

.topbar--internal {
    padding-left: 28px;
    padding-right: 28px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, #2dd4bf, #2563eb);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.brand, .topbar-actions { display: flex; align-items: center; gap: 14px; }
.brand { color: #fff; font: 700 1.15rem var(--vt-font-heading); text-decoration: none; }
.brand-logo { display: block; width: 156px; height: 42px; object-fit: contain; object-position: left center; }
.topbar .logo { height: 36px; width: 36px; object-fit: contain; border-radius: 6px; }
.topbar-link { color: #fff; text-decoration: none; font-size: .9rem; font-weight: 700; }
.topbar-link--quiet { color: var(--vt-text-muted); }
.user-chip { padding: 7px 10px; color: var(--vt-teal); background: rgba(45, 212, 191, .1); border: 1px solid rgba(45, 212, 191, .22); border-radius: 5px; font-size: .8rem; font-weight: 700; }

.content { padding: 28px; }
.flash { max-width: 1200px; margin: 0 auto 18px; padding: 12px 14px; border-radius: 6px; font-weight: 700; }
.flash--success { color: #065f46; background: #d1fae5; }
.flash--danger { color: #991b1b; background: #fee2e2; }

.inner-workspace-page {
    max-width: 1280px;
    margin: 0 auto;
}

.workspace-card {
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(148,163,184,0.35);
    border-radius: 18px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.04);
    padding: 16px;
}

.section-heading {
    margin-bottom: 20px;
}

.form-card {
    max-width: 840px;
    margin: 0 auto;
}

.form-panel {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 8px 10px;
}

.dashboard-container { display: grid; grid-template-columns: 245px minmax(0, 1fr); max-width: 1440px; min-height: calc(100vh - 128px); margin: 0 auto; overflow: hidden; background: #fff; border: 1px solid #dce5f0; border-radius: 8px; box-shadow: 0 18px 45px rgba(7, 16, 31, .1); }
.sidebar { width: auto; padding: 28px 18px; color: var(--vt-light); background: var(--vt-navy); box-shadow: none; }
.sidebar-header { padding: 0 10px 24px; border-bottom: 1px solid rgba(159, 178, 208, .17); }
.sidebar-kicker, .eyebrow { display: block; color: var(--vt-teal-dark); font-size: .73rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sidebar h2 { margin: 6px 0 6px; text-align: left; color: #fff; font-size: 1.4rem; }
.sidebar p { margin: 0; color: var(--vt-text-muted); font-size: .88rem; line-height: 1.5; }
.account-selector { padding: 22px 10px; }
.account-selector label { display: block; margin-bottom: 7px; color: var(--vt-text-muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.account-selector select { width: 100%; padding: 9px; color: #fff; background: var(--vt-navy-light); border: 1px solid var(--vt-border); border-radius: 5px; font-family: inherit; }
.sidebar-actions { display: grid; gap: 4px; }
.sidebar-button { display: block; margin: 0; padding: 10px; color: #c9d7eb; background: transparent; border: 1px solid transparent; border-radius: 5px; font-size: .9rem; font-weight: 700; }
.sidebar-button:hover, .sidebar-button--active { color: #fff; background: rgba(37, 99, 235, .22); border-color: rgba(45, 212, 191, .22); }
.sidebar-footer { margin-top: 28px; padding: 12px 10px; color: var(--vt-text-muted); border-top: 1px solid rgba(159, 178, 208, .17); font-size: .75rem; }

.main-content { min-width: 0; padding: 36px; background: #f8fafc; box-shadow: none; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading h1 { margin: 5px 0 8px; color: var(--vt-text-dark); font-size: 2rem; }
.page-heading p { margin: 0; color: #64748b; font-size: .98rem; }
.button { display: inline-block; padding: 11px 16px; color: #fff; background: var(--vt-blue); border-radius: 5px; font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.button:hover { background: var(--vt-blue-dark); }
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; justify-content: stretch; margin-bottom: 20px; }
.kpi-card { min-width: 0; align-items: flex-start; padding: 19px; color: var(--vt-text-dark); background: #fff; border: 1px solid #dce5f0; border-top: 3px solid var(--vt-teal); border-radius: 6px; box-shadow: none; }
.kpi-label { color: #64748b; font-size: .72rem; font-weight: 700; letter-spacing: .06em; }
.kpi-value { font-size: 1.9rem; color: var(--vt-navy); }
.chart-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; justify-content: stretch; }
.chart-box { min-width: 0; max-width: none; padding: 12px; background: #fff; border: 1px solid #dce5f0; border-top: 3px solid var(--vt-blue); border-radius: 6px; text-align: left; }
.chart-box:last-child { grid-column: span 2; }
.chart-box .plotly-graph-div { width: 100% !important; }

@media (max-width: 900px) {
    .content { padding: 16px; }
    .dashboard-container { grid-template-columns: 1fr; }
    .sidebar { padding: 20px; }
    .sidebar-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sidebar-footer { display: none; }
    .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .topbar { min-height: 62px; padding: 0 16px; }
    .topbar-link--quiet, .user-chip { display: none; }
    .main-content { padding: 22px 16px; }
    .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }
    .page-heading h1 { font-size: 1.65rem; }
    .sidebar-actions, .kpi-row, .chart-row { grid-template-columns: 1fr; }
    .chart-box:last-child { grid-column: auto; }
}

/* Premium internal dashboard layout */
.dashboard-shell {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 32px);
    background: #edf4fb;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.sidebar-panel {
    width: 290px;
    background: linear-gradient(180deg, #081a2f 0%, #0d233d 100%);
    color: #fff;
    padding: 22px 18px 16px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 2px 4px 14px;
}

.brand-label {
    display: block;
    color: #5fe2d1;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
}

.sidebar-brand h2 {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.1;
    font-family: var(--vt-font-heading);
    font-weight: 700;
}

.welcome-text {
    color: rgba(255,255,255,0.75);
    margin: 14px 4px 20px;
    font-size: 1rem;
}

.account-picker {
    margin-bottom: 18px;
}

.account-picker label {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.account-picker select {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    color: #fff;
    padding: 13px 14px;
    font-size: 1rem;
    outline: none;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.nav-item {
    display: block;
    padding: 14px 14px;
    color: rgba(255,255,255,0.9);
    border-radius: 12px;
    font-size: 1.03rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: rgba(255,255,255,0.04);
}

.nav-item.active {
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
}

.help-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.workspace-panel {
    flex: 1;
    background: #edf4fb;
    padding: 18px 22px 22px;
}

.workspace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(186, 199, 214, 0.9);
    border-radius: 12px;
    height: 52px;
    padding: 0 16px;
}

.search-icon {
    color: #6b7280;
    font-size: 1.4rem;
    line-height: 1;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #344054;
    outline: none;
}

.search-bar input::placeholder {
    color: #7b8796;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148,163,184,0.35);
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    font-size: 1.1rem;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(148,163,184,0.35);
    font-size: 0.96rem;
    font-weight: 700;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d4ed8, #2dd4bf);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.caret { color: #475569; }
.caret.small { font-size: 0.8rem; }

.overview-area {
    background: transparent;
}

.overview-header-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 8px 0 24px;
}

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #14b8a6;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status-dot {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    background: #00c28b;
    box-shadow: 0 0 0 4px rgba(0, 194, 139, 0.12);
}

.status-dot.green {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.12);
}

.overview-header-row h1 {
    margin: 6px 0 10px;
    font-size: 3rem;
    line-height: 1.05;
    letter-spacing: -0.06em;
    color: #0f172a;
    font-family: var(--vt-font-heading);
}

.overview-header-row p {
    margin: 0;
    color: #64748b;
    font-size: 1.05rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mini-filter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(148,163,184,0.35);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    color: #0f172a;
}

.mini-filter.online {
    gap: 8px;
    color: #0f172a;
}

.mini-icon {
    font-size: 1.1rem;
}

.primary-action {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border-radius: 12px;
    padding: 14px 22px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.kpi-card {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(148,163,184,0.35);
    border-top: 4px solid var(--color);
    border-radius: 16px;
    padding: 18px 18px 14px;
    min-height: 170px;
    box-shadow: 0 8px 18px rgba(15,23,42,0.02);
}

.kpi-card.blue { --color: #4b9dff; }
.kpi-card.teal { --color: #2dd4bf; }
.kpi-card.purple { --color: #8b5cf6; }
.kpi-card.orange { --color: #f59e0b; }

.kpi-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #475569;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
}

.kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(37,99,235,0.08);
    color: #2563eb;
    font-size: 1rem;
}

.kpi-card.teal .kpi-icon { background: rgba(45,212,191,0.12); color: #0f766e; }
.kpi-card.purple .kpi-icon { background: rgba(139,92,246,0.12); color: #7c3aed; }
.kpi-card.orange .kpi-icon { background: rgba(245,158,11,0.12); color: #d97706; }

.kpi-value {
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
    color: #0f172a;
    font-family: var(--vt-font-heading);
    letter-spacing: -0.06em;
}

.kpi-trend {
    margin-top: 10px;
    color: #0f766e;
    font-size: 0.95rem;
    font-weight: 700;
}

.kpi-trend span {
    color: #64748b;
    font-weight: 500;
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1.6fr 1.6fr 0.82fr;
    gap: 18px;
    margin-bottom: 20px;
}

.chart-panel,
.insights-panel {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(148,163,184,0.35);
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(15,23,42,0.02);
}

.panel-large {
    min-height: 390px;
    padding: 16px 18px 8px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.panel-header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 800;
}

.panel-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.85rem;
}

.segmented-control {
    background: rgba(226,232,240,0.4);
    border: 1px solid rgba(148,163,184,0.35);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.82rem;
    color: #475569;
    font-weight: 700;
}

.plot-wrap {
    width: 100%;
    overflow: hidden;
}

.plot-wrap .js-plotly-plot,
.plot-wrap .plotly,
.plot-wrap svg {
    width: 100% !important;
    max-width: 100% !important;
}

.insights-panel {
    padding: 18px 16px 12px;
}

.compact-header {
    margin-bottom: 14px;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(148,163,184,0.18);
}

.insight-item:last-child {
    border-bottom: none;
}

.insight-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.insight-icon.blue { background: #2563eb; }
.insight-icon.teal { background: #2dd4bf; }
.insight-icon.amber { background: #f59e0b; }
.insight-icon.green { background: #22c55e; }

.insight-title {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 700;
}

.insight-value {
    font-size: 1.02rem;
    color: #0f172a;
    font-weight: 800;
    margin-top: 3px;
}

.insight-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(148,163,184,0.35);
    border-radius: 18px;
    min-height: 92px;
    padding: 18px 18px;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(15,23,42,0.02);
}

.action-card strong {
    display: block;
    font-size: 1.06rem;
    margin-bottom: 4px;
}

.action-card small {
    color: #64748b;
    font-size: 0.8rem;
}

.action-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.action-icon.blue { background: #2563eb; }
.action-icon.green { background: #10b981; }
.action-icon.purple { background: #8b5cf6; }
.action-icon.amber { background: #f59e0b; }

.action-arrow {
    margin-left: auto;
    color: #64748b;
    font-size: 2rem;
    line-height: 1;
}

@media (max-width: 1200px) {
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .analytics-grid { grid-template-columns: 1fr 1fr; }
    .insights-panel { grid-column: span 2; }
    .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .dashboard-shell {
        flex-direction: column;
    }
    .sidebar-panel {
        width: 100%;
    }
    .workspace-panel {
        padding: 14px 16px 18px;
    }
    .overview-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .workspace-header {
        flex-direction: column;
        align-items: stretch;
    }
    .header-tools {
        justify-content: space-between;
    }
    .kpi-grid,
    .analytics-grid,
    .quick-actions {
        grid-template-columns: 1fr;
    }
    .insights-panel { grid-column: auto; }
    .overview-header-row h1 {
        font-size: 2.4rem;
    }
}

/* Final dashboard density and contrast refinement */
.dashboard-shell {
    min-height: calc(100vh - 118px);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.sidebar-panel {
    width: 258px;
    padding: 20px 16px 14px;
    background: linear-gradient(180deg, #061426 0%, #091b31 58%, #071525 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.12);
}

.sidebar-brand {
    padding: 0 5px 12px;
}

.brand-label {
    margin-bottom: 7px;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
}

.sidebar-brand h2 {
    font-size: 1.95rem;
}

.welcome-text {
    margin: 10px 5px 16px;
    font-size: 0.88rem;
}

.account-picker {
    margin-bottom: 14px;
}

.account-picker label {
    margin-bottom: 7px;
    font-size: 0.65rem;
}

.account-picker select {
    padding: 10px 11px;
    border-radius: 8px;
    font-size: 0.86rem;
    background: rgba(255, 255, 255, 0.045);
}

.sidebar-nav {
    gap: 3px;
    margin-top: 4px;
}

.nav-item {
    padding: 11px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.nav-item.active {
    background: linear-gradient(90deg, #1746ad 0%, #1f5ee2 100%);
    box-shadow: inset 3px 0 0 #5fe2d1;
}

.help-box {
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 0.85rem;
}

.workspace-panel {
    padding: 16px 18px 18px;
}

.workspace-header {
    gap: 14px;
    margin-bottom: 14px;
}

.search-bar {
    height: 46px;
    padding: 0 13px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.92);
}

.search-bar input {
    font-size: 0.9rem;
}

.header-tools {
    gap: 9px;
}

.icon-button {
    width: 38px;
    height: 38px;
}

.user-pill {
    padding: 4px 9px 4px 6px;
    gap: 7px;
    font-size: 0.82rem;
}

.user-avatar {
    width: 28px;
    height: 28px;
}

.overview-header-row {
    gap: 14px;
    margin: 5px 0 18px;
}

.live-status {
    font-size: 0.67rem;
    letter-spacing: 0.1em;
}

.overview-header-row h1 {
    margin: 5px 0 7px;
    font-size: 2.45rem;
    letter-spacing: -0.045em;
}

.overview-header-row p {
    font-size: 0.92rem;
}

.header-actions {
    gap: 8px;
}

.mini-filter {
    gap: 7px;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 0.79rem;
}

.primary-action {
    padding: 11px 15px;
    border-radius: 9px;
    font-size: 0.84rem;
}

.kpi-grid {
    gap: 12px;
    margin-bottom: 16px;
}

.kpi-card {
    min-height: 142px;
    padding: 14px 15px 11px;
    border-top-width: 3px;
    border-radius: 12px;
}

.kpi-top {
    gap: 8px;
    margin-bottom: 9px;
    font-size: 0.66rem;
}

.kpi-icon {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    font-size: 0.86rem;
}

.kpi-value {
    font-size: 2.35rem;
}

.kpi-trend {
    margin-top: 8px;
    font-size: 0.78rem;
}

.analytics-grid {
    gap: 12px;
    margin-bottom: 14px;
}

.chart-panel,
.insights-panel {
    border: 1px solid #d5dfeb;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.055), inset 0 1px 0 rgba(255,255,255,0.9);
}

.panel-large {
    min-height: 330px;
    padding: 14px 15px 5px;
}

.panel-header {
    margin-bottom: 12px;
}

.panel-header h3 {
    font-size: 0.91rem;
}

.panel-header p {
    margin-top: 3px;
    font-size: 0.76rem;
}

.segmented-control {
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 0.72rem;
}

.plot-wrap {
    min-height: 265px;
}

.plot-wrap .plotly-graph-div {
    min-height: 265px !important;
}

.insights-panel {
    padding: 14px 13px 8px;
}

.compact-header {
    margin-bottom: 7px;
}

.insight-item {
    gap: 9px;
    padding: 9px 4px;
}

.insight-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.82rem;
}

.insight-title {
    font-size: 0.76rem;
}

.insight-value {
    font-size: 0.82rem;
}

.insight-meta {
    font-size: 0.68rem;
}

.quick-actions {
    gap: 11px;
    margin-top: 4px;
}

.action-card {
    min-height: 76px;
    gap: 11px;
    padding: 13px 14px;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.04);
}

.action-card strong {
    margin-bottom: 2px;
    font-size: 0.91rem;
}

.action-card small {
    font-size: 0.7rem;
}

.action-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 0.9rem;
}

.action-arrow {
    font-size: 1.6rem;
}

.featured-kpi,
.featured-chart {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1), 0 9px 20px rgba(37, 99, 235, 0.08);
}

.action-muted {
    opacity: 0.72;
}

.settings-form {
    max-width: 760px;
    margin-top: 16px;
    padding: 22px;
}

.settings-form h2 {
    margin: 0 0 6px;
    color: var(--vt-text-dark);
}

.settings-form p {
    margin: 0 0 18px;
    color: #64748b;
}

.settings-form label {
    display: block;
    margin: 14px 0 7px;
    color: var(--vt-text-dark);
    font-weight: 700;
}

.settings-form input,
.settings-form select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    background: #f8fbff;
    font: 400 1rem var(--vt-font-body);
    box-sizing: border-box;
}

.settings-form .button {
    margin-top: 18px;
}

@media (max-width: 1200px) {
    .sidebar-panel {
        width: 238px;
    }
}

@media (max-width: 700px) {
    .dashboard-shell {
        min-height: calc(100vh - 88px);
        border-radius: 12px;
    }

    .sidebar-panel {
        width: 100%;
        padding: 16px 14px 12px;
    }

    .sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-panel {
        padding: 13px 12px 14px;
    }

    .overview-header-row h1 {
        font-size: 2rem;
    }
}

/* Shared workflow page styling */
.workflow-page {
    max-width: 1160px;
    margin: 0 auto;
    padding: 6px 0 18px;
}

.workflow-page--wide {
    max-width: 1300px;
}

.panel {
    background: #fff;
    border: 1px solid #dce5f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(7, 16, 31, 0.06);
}

.form-panel {
    max-width: 760px;
    padding: 28px;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--vt-text-dark);
    font-weight: 700;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    font: 400 1rem var(--vt-font-body);
    color: var(--vt-text-dark);
    background: #f8fbff;
    box-sizing: border-box;
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--vt-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.button--secondary {
    background: #e2e8f0;
    color: var(--vt-text-dark);
}

.button--secondary:hover {
    background: #dfeaf9;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 18px 0 20px;
    padding: 18px 22px;
    align-items: end;
}

.filter-bar .form-field {
    flex: 1 1 180px;
    margin-bottom: 0;
}

.filter-bar .button {
    margin-top: 0;
}

.report-chart {
    margin-bottom: 20px;
    padding: 18px;
}

.report-chart img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 6px;
}

.table-panel {
    overflow: hidden;
}

.table-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 12px;
    border-bottom: 1px solid #eef3f8;
}

.table-panel__header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--vt-text-dark);
}

.table-panel__header span {
    color: #64748b;
    font-size: .85rem;
    font-weight: 700;
}

.table-scroll {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

.data-table th {
    background: #f8fafc;
    color: var(--vt-navy);
    font-size: .76rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.details-panel {
    max-width: 760px;
    padding: 14px 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 6px;
    border-bottom: 1px solid #edf2f7;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span {
    color: #64748b;
    font-weight: 700;
}

.detail-row strong {
    color: var(--vt-text-dark);
    text-align: right;
}

.voip-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0 30px;
}

.voip-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 16px;
    margin: 24px 0 26px;
}

.voip-card {
    padding: 18px 16px;
    text-align: left;
    background: #fff;
    border: 1px solid #dce5f0;
    border-radius: 10px;
    box-shadow: 0 9px 18px rgba(7, 16, 31, 0.04);
}

.voip-card h3 {
    margin: 0 0 12px;
    color: #64748b;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.voip-card p {
    margin: 0 0 18px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vt-navy);
}

.voip-card .btn-primary {
    width: 100%;
    text-align: center;
}

.voip-table-container {
    background: #fff;
    border: 1px solid #dce5f0;
    border-radius: 12px;
    padding: 18px 20px 20px;
    overflow: hidden;
}

.voip-table-container h2 {
    margin: 0 0 14px;
    color: var(--vt-text-dark);
}

.voip-table {
    width: 100%;
    border-collapse: collapse;
}

.voip-table th,
.voip-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
}

.voip-table th {
    background: #f8fafc;
    color: var(--vt-navy);
    font-size: .76rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.calling-card-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.6fr); gap: 16px; align-items: start; }
.calling-card-editor { max-width: none; }
.calling-card-editor h2 { margin: 0 0 18px; color: var(--vt-text-dark); font: 700 1.25rem var(--vt-font-heading); }
.calling-card-editor form { margin: 0; }
.calling-card-editor .field-hint { margin-top: 12px; }
.calling-card-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.calling-card-list-heading h2 { margin: 0; color: var(--vt-text-dark); }
.calling-card-list-heading p { margin: 4px 0 0; color: #64748b; font-size: .88rem; }
.calling-card-count { display: grid; place-items: center; width: 36px; aspect-ratio: 1; border-radius: 50%; background: #e8f3f1; color: #145e5a; font-weight: 700; }
.calling-card-table-wrap { width: 100%; overflow-x: auto; }
.calling-card-table { min-width: 710px; }
.calling-card-vendor { display: block; margin-top: 4px; color: #64748b; font-size: .82rem; }
.calling-card-masked { color: #596879; font-size: .85rem; }
.calling-card-pin { padding: 4px 7px; border-radius: 4px; background: #edf4f2; color: #145e5a; font-size: .95rem; }
.calling-card-actions { display: flex; align-items: center; gap: 8px; }
.calling-card-action-form { display: inline; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.calling-card-action-form button { margin: 0; white-space: nowrap; cursor: pointer; }
.calling-card-delete { padding: 8px 10px; border: 1px solid #eccaca; border-radius: 6px; background: #fff4f4; color: #922e2e; font-size: .8rem; font-weight: 700; }
.calling-card-empty { margin: 0; padding: 22px 10px; color: #596879; }
.calling-card-collection { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 16px; }
.customer-calling-card { min-width: 0; padding: 20px; border: 1px solid #dce5f0; border-top: 3px solid var(--vt-teal-dark); border-radius: 8px; background: #fff; }
.customer-calling-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #edf2f7; }
.customer-calling-card-heading .eyebrow { color: #526273; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.customer-calling-card-heading h3 { margin: 5px 0 0; color: var(--vt-text-dark); font: 700 1.18rem var(--vt-font-heading); overflow-wrap: anywhere; }
.calling-card-status { flex: none; padding: 5px 9px; border-radius: 4px; background: #eaf7f2; color: #146c50; font-size: .78rem; font-weight: 700; }
.customer-calling-card-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; padding: 17px 0; }
.calling-card-detail { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 8px; min-width: 0; }
.calling-card-detail > span:first-child { grid-column: 1 / -1; color: #64748b; font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.calling-card-detail strong, .calling-card-detail code { min-width: 0; color: var(--vt-text-dark); font-size: .96rem; overflow-wrap: anywhere; }
.calling-card-detail .btn-secondary { grid-column: 2; grid-row: 2; margin: 0; padding: 6px 9px; white-space: nowrap; }
.calling-card-balance strong { color: #126655; font: 700 1.1rem var(--vt-font-heading); }
.customer-caller-id-form { margin: 0; padding: 14px; border: 1px solid #e4ebf2; border-radius: 6px; background: #f8fafc; }
.customer-caller-id-form label { display: block; margin-bottom: 8px; color: var(--vt-text-dark); font-weight: 700; }
.customer-caller-id-form > div { display: flex; gap: 8px; }
.customer-caller-id-form input { min-width: 0; flex: 1; padding: 10px 11px; border: 1px solid #cbd5e1; border-radius: 4px; font: inherit; }
.customer-caller-id-form button { flex: none; margin: 0; white-space: nowrap; }
.customer-caller-id-form small { display: block; margin-top: 7px; color: #64748b; line-height: 1.45; }
.calling-card-instructions { margin-top: 14px; color: #334155; }
.calling-card-instructions summary { width: fit-content; color: #145e5a; font-weight: 700; cursor: pointer; }
.calling-card-instructions p { margin: 9px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.calling-card-support { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #edf2f7; }

@media (max-width: 920px) {
    .calling-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .customer-calling-card { padding: 16px; }
    .customer-calling-card-details { grid-template-columns: 1fr; }
    .customer-caller-id-form > div, .calling-card-support { align-items: stretch; flex-direction: column; }
    .customer-caller-id-form button, .calling-card-support .button { width: 100%; text-align: center; }
}

.status-online,
.status-active {
    color: #047857;
    font-weight: 700;
}

.btn-secondary,
.btn-danger {
    display: inline-block;
    margin-right: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
}

.btn-secondary {
    background: #eef6ff;
    color: var(--vt-blue);
}

.btn-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.payment-layout {
    max-width: 520px;
    margin: 0 auto;
}

.payment-shell {
    padding: 22px;
}

.payment-card {
    background: #fff;
    border: 1px solid #dce5f0;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(7, 16, 31, 0.06);
    padding: 28px 24px;
}

.payment-card h1 {
    margin: 0 0 8px;
    font-size: 2rem;
    color: var(--vt-text-dark);
}

.payment-card p {
    margin: 0 0 22px;
    color: #64748b;
}

.payment-card label {
    display: block;
    margin-bottom: 8px;
    color: var(--vt-text-dark);
    font-weight: 700;
}

.payment-card select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    font: 400 1rem var(--vt-font-body);
    background: #f8fbff;
    color: var(--vt-text-dark);
}

#paypal-button-container {
    margin-top: 8px;
}

.form-container {
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dce5f0;
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 12px 30px rgba(7, 16, 31, 0.06);
}

.form-container h1 {
    margin: 0 0 12px;
    color: var(--vt-text-dark);
    font-size: 2rem;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-container label {
    display: block;
    color: var(--vt-text-dark);
    font-weight: 700;
    margin-top: 10px;
}

.form-container .form-input,
.form-container input,
.form-container select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    background: #f8fbff;
    box-sizing: border-box;
}

.form-container .form-button,
.form-container button {
    margin-top: 18px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: var(--vt-blue);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.form-container .form-button:hover,
.form-container button:hover {
    background: var(--vt-blue-dark);
}

.errors {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    color: #b91c1c;
    font-size: .85rem;
}

@media (max-width: 820px) {
    .voip-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .voip-summary { grid-template-columns: 1fr; }
    .detail-row { flex-direction: column; align-items: flex-start; }
    .detail-row strong { text-align: left; }
}

body:has(.auth-layout) {
    min-height: 100vh;
    background: #e9eef3;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 450px);
    width: min(1060px, 100%);
    min-height: 560px;
    margin: auto;
    background: #0b172d;
    border: 1px solid #253953;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(7, 16, 31, .16);
}

.auth-aside {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(32px, 6vw, 72px);
    color: #fff;
    background: linear-gradient(145deg, #102b3b 0%, #0b172d 58%, #142b38 100%);
}

.auth-kicker,
.form-eyebrow {
    color: #128a7c;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.auth-aside .auth-kicker { color: #54ddc2; }
.auth-aside h1 { margin: 16px 0; color: #fff; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; }
.auth-aside p { max-width: 440px; margin: 0; color: #c4d3dd; font-size: 1.05rem; line-height: 1.7; }

.auth-panel {
    align-self: center;
    padding: 42px 36px;
    background: #fff;
}

.auth-panel h2 { margin: 10px 0 4px; color: var(--vt-text-dark); font: 700 1.8rem var(--vt-font-heading); }
.auth-panel .form-subtitle { margin: 0 0 20px; color: #596879; }
.auth-panel form { display: flex; flex-direction: column; gap: 8px; max-width: none; margin: 0; padding: 0; background: transparent; border-radius: 0; box-shadow: none; }
.auth-panel form label { margin: 8px 0 0; color: #1c2b39; font-size: .9rem; font-weight: 700; }
.auth-panel form input:not([type="checkbox"]) { box-sizing: border-box; width: 100%; min-height: 46px; margin: 0; padding: 11px 13px; border: 1px solid #b9c6d1; border-radius: 5px; background: #fff; color: #12212e; font: 400 1rem var(--vt-font-body); }
.auth-panel form input:focus-visible,
.auth-panel form button:focus-visible,
.auth-panel a:focus-visible { outline: 3px solid #157e78; outline-offset: 2px; }
.password-field { display: flex; align-items: stretch; gap: 8px; }
.password-field input { flex: 1; min-width: 0; }
.password-toggle { width: 58px; padding: 0; border: 0; background: transparent; color: #145e5a; font: 700 .85rem var(--vt-font-body); cursor: pointer; }
.auth-inline { display: flex; justify-content: flex-end; margin: 4px 0; }
.auth-panel a { color: #145e5a; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.auth-submit { width: 100%; min-height: 48px; margin-top: 12px; padding: 12px 16px; border: 0; border-radius: 5px; background: #155d58; color: #fff; font: 700 1rem var(--vt-font-body); cursor: pointer; }
.auth-submit:hover { background: #0c4945; }
.auth-submit:disabled { opacity: .72; cursor: progress; }
.auth-footnote { margin: 22px 0 0; color: #536272; font-size: .92rem; text-align: center; }
.terms-check { display: flex !important; align-items: flex-start; gap: 9px; margin-top: 14px !important; font-weight: 400 !important; line-height: 1.5; }
.terms-check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: #155d58; flex: none; }
.field-hint { margin: 0; color: #596879; font-size: .8rem; line-height: 1.4; }
.auth-layout--signup { min-height: 0; }
.auth-layout--signup .auth-aside { min-height: 520px; }
.auth-layout--signup .auth-panel { padding-top: 32px; padding-bottom: 32px; }

@media (max-width: 760px) {
    .content:has(.auth-layout) { justify-content: flex-start; padding: 18px 14px 28px; }
    .auth-layout { grid-template-columns: 1fr; min-height: 0; }
    .auth-aside { min-height: 190px; padding: 26px; }
    .auth-aside h1 { margin: 10px 0; font-size: 2rem; }
    .auth-aside p { font-size: .92rem; }
    .auth-panel { padding: 30px 24px; }
    .auth-layout--signup .auth-aside { min-height: 180px; }
}

.auth-submit--link { display: flex; align-items: center; justify-content: center; box-sizing: border-box; text-decoration: none; }
.logout-form { display: inline-flex; width: auto; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.logout-form button { width: auto; margin: 0; padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.logout-form button:hover { background: transparent; color: #54ddc2; }
.account-page { width: min(920px, 100%); margin: 0 auto; color: #14212e; }
.account-heading { margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid #cbd5dd; }
.account-heading h1 { margin: 7px 0; color: #14212e; font: 700 2rem var(--vt-font-heading); }
.account-heading p { margin: 0; color: #5a6875; }
.account-form { padding: 26px; border: 1px solid #cbd5dd; border-radius: 6px; background: #fff; }
.account-form h2 { margin: 0 0 18px; color: #14212e; font: 700 1.25rem var(--vt-font-heading); }
.account-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.account-form label { display: flex; flex-direction: column; gap: 7px; color: #263747; font-size: .9rem; font-weight: 700; }
.account-form input { box-sizing: border-box; width: 100%; min-height: 44px; margin: 0; padding: 10px 12px; border: 1px solid #b9c6d1; border-radius: 4px; background: #fff; color: #14212e; font: 400 1rem var(--vt-font-body); }
.account-form input:focus-visible { outline: 3px solid #157e78; outline-offset: 2px; }
.account-form .span-two { grid-column: span 2; }
.account-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 22px; }
.account-actions .auth-submit { width: auto; min-width: 170px; margin: 0; }
.button--quiet { padding: 12px 16px; color: #145e5a; font-weight: 700; text-decoration: none; }
.account-stack { display: grid; gap: 16px; }
.account-stack .auth-submit { justify-self: start; width: auto; min-width: 190px; }
.security-status { display: flex; justify-content: space-between; margin-top: 26px; padding-top: 16px; border-top: 1px solid #dce3e9; color: #334454; }
.security-status strong { color: #116052; }
.account-danger-zone { margin-top: 22px; border-color: #e3b7b7; }
.account-danger-zone h2 { color: #8a2727; }
.account-danger-zone p { color: #5b4545; line-height: 1.5; }
.danger-submit { background: #9f3030; }
.danger-submit:hover { background: #7d2222; }
.access-panel { width: min(480px, 100%); margin: auto; }

.content:has(.carrier-page) { display: block; width: 100%; max-width: none; padding: 0 clamp(16px, 3vw, 44px); }
.carrier-page { --portal-ink: #17252d; --portal-muted: #66747a; --portal-line: #d7e0df; --portal-paper: #fff; --portal-wash: #f1f6f4; --portal-teal: #176b61; --portal-coral: #b84d3c; max-width: 1480px; margin: 0 auto; padding: 30px 0 56px; color: var(--portal-ink); }
.carrier-page .eyebrow { color: var(--portal-teal); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.carrier-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 0 0 22px; }
.carrier-heading h1 { margin: 6px 0; color: var(--portal-ink); font: 700 2rem var(--vt-font-heading); }
.carrier-heading p { margin: 0; color: var(--portal-muted); }
.portal-nav { display: flex; gap: 5px; flex-wrap: nowrap; width: 100%; overflow-x: auto; border-bottom: 1px solid var(--portal-line); scrollbar-width: thin; }
.portal-nav a { flex: 0 0 auto; padding: 12px 14px; color: #40535a; font-size: .88rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
.portal-nav a:hover, .portal-nav a:focus-visible { color: var(--portal-teal); }
.portal-nav a.is-active { border-color: var(--portal-teal); color: var(--portal-teal); }
.portal-subnav { display: flex; gap: 2px; margin: 6px 0 22px; }
.portal-subnav a { padding: 6px 12px; color: #68777b; font-size: .8rem; }
.period-picker { display: flex; align-items: center; gap: 10px; color: var(--portal-muted); font-size: .85rem; }
.period-picker select, .report-filters select, .report-filters input, .rate-search input { min-height: 40px; padding: 8px 11px; border: 1px solid var(--portal-line); border-radius: 4px; background: var(--portal-paper); color: var(--portal-ink); font: inherit; }
.balance-strip { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); margin: 20px 0; border: 1px solid var(--portal-line); border-left: 4px solid var(--portal-teal); background: linear-gradient(110deg, #e8f2ef 0%, #fff 58%); }
.balance-strip > div { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; padding: 18px 20px; border-right: 1px solid var(--portal-line); }
.balance-strip > div:last-child { border: 0; }
.balance-strip span, .sms-summary-grid span { color: var(--portal-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.balance-strip strong { color: var(--portal-ink); font: 700 1.3rem var(--vt-font-heading); overflow-wrap: anywhere; }
.balance-strip .balance-primary strong { font-size: 1.7rem; }
.balance-strip small { color: var(--portal-muted); font-size: .74rem; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--portal-line); background: var(--portal-line); }
.metric-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 20px 0; }
.metric-tile { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 112px; padding: 17px 18px; background: var(--portal-paper); }
.metric-tile span { color: var(--portal-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.metric-tile strong { color: var(--portal-ink); font: 700 1.5rem var(--vt-font-heading); overflow-wrap: anywhere; }
.metric-tile small { color: var(--portal-muted); font-size: .76rem; }
.metric-good strong { color: #25705b; }
.metric-warn strong { color: var(--portal-coral); }
.metric-accent { border-top: 3px solid #df8c42; }
.portal-section { margin-top: 26px; border-top: 1px solid var(--portal-line); padding-top: 18px; }
.section-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.section-bar h2 { margin: 3px 0 0; color: var(--portal-ink); font: 700 1.25rem var(--vt-font-heading); }
.section-bar > a { color: var(--portal-teal); font-size: .84rem; font-weight: 700; text-decoration: none; }
.route-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; margin-bottom: 16px; border: 1px solid var(--portal-line); background: var(--portal-line); }
.route-highlights > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 13px; background: var(--portal-paper); }
.route-highlights span { color: var(--portal-coral); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.route-highlights strong { color: var(--portal-ink); overflow-wrap: anywhere; }
.route-highlights small { color: var(--portal-muted); }
.quality-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--portal-line); background: var(--portal-paper); }
.quality-grid > div { display: flex; flex-direction: column; gap: 8px; padding: 15px; border-right: 1px solid var(--portal-line); }
.quality-grid > div:last-child { border: 0; }
.quality-grid span { color: var(--portal-muted); font-size: .75rem; font-weight: 700; }
.quality-grid strong { font: 700 1rem var(--vt-font-heading); }
.table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--portal-line); background: var(--portal-paper); }
.analytics-table-scroll { max-width: 100%; overscroll-behavior-x: contain; scrollbar-width: thin; }
.analytics-table { min-width: 920px; }
.portal-table { width: 100%; border-collapse: collapse; color: var(--portal-ink); font-size: .84rem; white-space: nowrap; }
.portal-table th, .portal-table td { padding: 11px 13px; border: 1px solid var(--portal-line); text-align: left; }
.portal-table th { background: #eaf0ee; color: #46565b; font-size: .72rem; text-transform: uppercase; }
.portal-table tbody tr:nth-child(even) { background: #f7f9f8; }
.portal-table tbody tr:hover { background: #edf6f2; }
.empty-state { margin: 0; padding: 18px; border-left: 3px solid #df8c42; background: #fff8ef; color: #655644; }
.sms-summary { padding-bottom: 16px; }
.sms-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--portal-line); background: var(--portal-line); }
.sms-summary-grid > div { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--portal-paper); }
.sms-summary-grid strong { font: 700 1.2rem var(--vt-font-heading); overflow-wrap: anywhere; }
.report-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 12px; margin: 0 0 16px; padding: 14px; border: 1px solid var(--portal-line); border-radius: 8px; background: var(--portal-paper); box-shadow: 0 1px 4px rgb(16 42 67 / 5%); }
.report-filters label, .rate-search label { display: flex; flex-direction: column; gap: 6px; color: var(--portal-muted); font-size: .78rem; font-weight: 700; }
.report-filters label { min-width: 0; }
.report-filters input, .report-filters select, .rate-search input { box-sizing: border-box; width: 100%; min-width: 0; }
.report-filters .button { width: auto; min-width: 104px; }
.rate-search { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 20px 0; padding: 16px 0; border-bottom: 1px solid var(--portal-line); }
.rate-search input { min-width: min(360px, 70vw); }
.download-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 14px; color: var(--portal-muted); font-size: .8rem; }
.pagination a { color: var(--portal-teal); font-weight: 700; text-decoration: none; }
.carrier-page .button { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; padding: 9px 14px; border: 1px solid var(--portal-teal); border-radius: 4px; background: var(--portal-teal); color: #fff; font: 700 .82rem var(--vt-font-body); text-decoration: none; cursor: pointer; }
.carrier-page .button:hover { background: #0f554c; }
.carrier-page .button-secondary { background: transparent; color: var(--portal-teal); }
.balance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; border: 1px solid var(--portal-line); background: var(--portal-paper); }
.balance-grid section { padding: 24px; }
.balance-grid section + section { border-left: 1px solid var(--portal-line); }
.balance-grid h2 { margin: 9px 0 0; font: 700 2rem var(--vt-font-heading); overflow-wrap: anywhere; }
.balance-grid p, .balance-grid small { color: var(--portal-muted); }
.balance-grid dl { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 22px 0; padding-top: 16px; border-top: 1px solid var(--portal-line); }
.balance-grid dt { color: var(--portal-muted); }
.balance-grid dd { margin: 0; font-weight: 700; text-align: right; }

.console-page { width: 100%; max-width: 1480px; }
.console-page-heading { align-items: flex-end; margin-bottom: 18px; }
.console-page-heading__actions { display: flex; align-items: center; gap: 10px; }
.console-page .portal-nav { margin-bottom: 20px; }
.portal-secondary-nav { display: flex; gap: 3px; overflow-x: auto; margin: -4px 0 18px; padding: 5px; border-radius: 6px; background: #193753; scrollbar-width: thin; }
.portal-secondary-nav a { flex: 0 0 auto; padding: 9px 13px; border-radius: 4px; color: #d2dfeb; font-size: .76rem; font-weight: 600; text-decoration: none; }
.portal-secondary-nav a:hover { background: #254762; color: #fff; }
.portal-secondary-nav a.is-active { background: #e5f4f1; color: #08796e; }
.console-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.console-controls .period-picker { min-height: 38px; padding: 0 8px 0 12px; border: 1px solid var(--portal-line); border-radius: 5px; background: #fff; }
.sms-kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.sms-kpi-card { display: grid; align-content: start; gap: 8px; min-width: 0; min-height: 112px; padding: 14px 15px; border: 1px solid var(--portal-line); border-radius: 7px; background: #fff; box-shadow: 0 1px 3px rgb(16 42 67 / 5%); }
.sms-kpi-card > span { color: var(--portal-muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.sms-kpi-card > strong { color: var(--portal-ink); font: 700 1.35rem var(--vt-font-heading); overflow-wrap: anywhere; }
.sms-kpi-card > small { color: var(--portal-muted); font-size: .67rem; }
.sms-kpi-card--positive > strong { color: #25705b; }
.sms-kpi-card--negative > strong { color: #ae5157; }
.console-analytics-grid { margin-bottom: 14px; }
.console-table-panel { margin-bottom: 14px; }
.console-table-panel .panel-heading { margin-bottom: 10px; }
.console-table-panel .dashboard-table { font-size: .7rem; }
.rates-workspace { padding: 18px; }
.rates-filter-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 12px; margin: 0 0 16px; padding: 14px 0; border-top: 1px solid var(--portal-line); border-bottom: 1px solid var(--portal-line); }
.rates-filter-bar label, .report-builder__form label, .settings-preferences label { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: #61778b; font-size: .7rem; font-weight: 700; }
.rates-filter-bar input, .rates-filter-bar select, .report-builder__form input, .report-builder__form select, .settings-preferences input, .settings-preferences select { box-sizing: border-box; width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #dce5ed; border-radius: 5px; background: #fff; color: var(--dash-ink, #102a43); font: 400 .77rem var(--vt-font-body); }
.rates-filter-bar input:focus, .rates-filter-bar select:focus, .report-builder__form input:focus, .report-builder__form select:focus, .settings-preferences input:focus, .settings-preferences select:focus { outline: 2px solid #69b8b0; outline-offset: 1px; }
.rates-filter-bar select:disabled { background: #f4f7f9; color: #8a9aaa; }
.rates-filter-bar .button, .report-builder__actions .button { width: auto; }
.rates-table th, .rates-table td { min-width: 95px; }
.report-builder { margin-bottom: 14px; padding: 18px; }
.report-builder__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); align-items: end; gap: 12px; padding: 14px 0; border-top: 1px solid var(--portal-line); }
.report-builder__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.report-builder__actions .button { min-height: 38px; }
.report-export-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--portal-line); color: var(--portal-muted); font-size: .7rem; }
.format-choice, .format-unavailable { display: inline-flex; align-items: center; min-height: 29px; padding: 0 10px; border: 1px solid #dce5ed; border-radius: 4px; color: #536b81; font-size: .69rem; text-decoration: none; }
.format-choice:hover, .format-choice.is-selected { border-color: #8dc9c1; background: #edf7f5; color: #08796e; }
.format-unavailable { border-style: dashed; color: #8796a4; }
.record-count { color: var(--portal-muted); font-size: .7rem; }
.report-kpi-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: 12px; border: 1px solid var(--portal-line); background: var(--portal-line); }
.report-kpi-summary > div { display: grid; gap: 6px; padding: 11px; background: #fff; }
.report-kpi-summary span { color: var(--portal-muted); font-size: .67rem; }
.report-kpi-summary strong { color: var(--portal-ink); font: 700 .95rem var(--vt-font-heading); }
.recent-reports-panel { margin-top: 14px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.settings-card { display: flex; flex-direction: column; min-width: 0; padding: 17px; }
.settings-card .panel-heading { min-height: 39px; }
.settings-details { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr); gap: 0 12px; margin: 0; }
.settings-details dt, .settings-details dd { min-width: 0; margin: 0; padding: 9px 0; border-bottom: 1px solid #edf1f4; font-size: .74rem; overflow-wrap: anywhere; }
.settings-details dt { color: var(--portal-muted); }
.settings-details dd { color: #29445e; font-weight: 600; }
.settings-card__link { align-self: flex-start; margin-top: auto; padding-top: 12px; color: #148577; font-size: .73rem; font-weight: 700; text-decoration: none; }
.settings-notice { padding: 13px; border: 1px dashed #dbe4ea; border-radius: 5px; color: #778b9d; font-size: .75rem; }
.settings-preferences { gap: 12px; }
.settings-preferences .panel-heading { margin-bottom: 0; }
.settings-preferences .button { align-self: flex-start; margin-top: 4px; }

@media (max-width: 850px) {
    .balance-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .balance-strip > div:nth-child(2) { border-right: 0; }
    .balance-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--portal-line); }
    .quality-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .quality-grid > div:nth-child(4) { border-right: 0; }
    .quality-grid > div:nth-child(-n+4) { border-bottom: 1px solid var(--portal-line); }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sms-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rates-filter-bar, .report-builder__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .content:has(.carrier-page) { padding: 0 14px; }
    .carrier-page { padding-top: 22px; }
    .carrier-heading { align-items: flex-start; flex-direction: column; }
    .carrier-heading h1 { font-size: 1.7rem; }
    .portal-nav { gap: 0; }
    .portal-nav a { padding: 10px 9px; font-size: .75rem; }
    .portal-subnav { margin-bottom: 16px; }
    .balance-strip { grid-template-columns: 1fr 1fr; }
    .balance-strip > div { padding: 13px; }
    .balance-strip strong { font-size: 1.05rem; }
    .balance-strip .balance-primary strong { font-size: 1.3rem; }
    .metric-grid, .metric-grid--four { grid-template-columns: 1fr 1fr; }
    .metric-tile { min-height: 98px; padding: 13px; }
    .metric-tile strong { font-size: 1.2rem; }
    .quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quality-grid > div:nth-child(odd) { border-right: 1px solid var(--portal-line); }
    .quality-grid > div:nth-child(even) { border-right: 0; }
    .quality-grid > div:nth-child(4) { border-bottom: 1px solid var(--portal-line); }
    .section-bar { align-items: flex-start; flex-direction: column; gap: 8px; }
    .sms-summary-grid, .balance-grid { grid-template-columns: 1fr; }
    .balance-grid section + section { border-top: 1px solid var(--portal-line); border-left: 0; }
    .report-filters { grid-template-columns: 1fr; }
    .report-filters .button { width: 100%; }
    .sms-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .sms-kpi-card { min-height: 100px; padding: 11px; }
    .sms-kpi-card > strong { font-size: 1.15rem; }
    .rates-filter-bar, .report-builder__form, .settings-grid { grid-template-columns: 1fr; }
    .report-kpi-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rates-workspace, .report-builder { padding: 13px 11px; }
    .console-page-heading { align-items: flex-start; }
    .console-page-heading__actions { width: 100%; }
    .console-controls { align-items: flex-start; flex-direction: column; }
    .settings-card { padding: 14px 12px; }
}

@media (prefers-color-scheme: dark) {
    .carrier-page { --portal-ink: #edf4f1; --portal-muted: #a7b7b2; --portal-line: #354741; --portal-paper: #18231f; --portal-wash: #202d28; }
    .balance-strip { background: linear-gradient(110deg, #203b35 0%, #18231f 58%); }
    .portal-nav a, .portal-subnav a { color: #c3d0cb; }
    .portal-table th { background: #263630; color: #d5e1dc; }
    .portal-table tbody tr:nth-child(even), .portal-table tbody tr:hover { background: #202f29; }
    .period-picker select, .report-filters select, .report-filters input, .rate-search input { background: var(--portal-paper); color: var(--portal-ink); }
    .empty-state { background: #392e20; color: #f0d9b9; }
}

@media (max-width: 600px) {
    .account-form { padding: 20px 16px; }
    .account-form-grid { grid-template-columns: 1fr; }
    .account-form .span-two { grid-column: auto; }
    .account-actions { align-items: stretch; flex-direction: column-reverse; }
    .account-actions .auth-submit { width: 100%; }
    .account-actions .button--quiet { text-align: center; }
}

.app-shell:has(.voice-dashboard) { min-height: 100vh; }
.content:has(.voice-dashboard) { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
body:has(.voice-dashboard) { margin: 0; background: #f6f8fb; }
.console-shell {
    --dash-bg: #f4f7fa;
    --dash-surface: #fff;
    --dash-ink: #102a43;
    --dash-muted: #627d98;
    --dash-line: #dfe7ee;
    --dash-accent: #139b8a;
    --dash-accent-dark: #087c70;
    --dash-positive: #18876a;
    --dash-negative: #cf5d63;
    --dash-warning: #b7791f;
    min-height: 100vh;
    background: var(--dash-bg);
    color: var(--dash-ink);
    color-scheme: light;
}
.console-shell a { color: #087c70; text-decoration: none; }
.console-shell a:hover { color: #075f57; }
.voice-dashboard {
    --dash-bg: #f6f8fb;
    --dash-surface: #fff;
    --dash-ink: #102a43;
    --dash-muted: #627d98;
    --dash-line: #e3eaf1;
    --dash-accent: #139b8a;
    --dash-accent-dark: #087c70;
    --dash-positive: #18876a;
    --dash-negative: #cf5d63;
    --dash-warning: #b7791f;
    --portal-ink: #17252d;
    --portal-muted: #66747a;
    --portal-line: #d7e0df;
    --portal-paper: #fff;
    --portal-wash: #f1f6f4;
    --portal-teal: #176b61;
    min-height: 100vh;
    background: var(--dash-bg);
    color: var(--dash-ink);
    font-family: var(--vt-font-body);
    font-size: 14px;
    color-scheme: light;
}
.voice-dashboard *, .voice-dashboard *::before, .voice-dashboard *::after { box-sizing: border-box; }
.voice-dashboard button, .voice-dashboard select, .voice-dashboard input { font: inherit; }
.voice-dashboard a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dashboard-topbar { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; height: 64px; padding: 0 24px; border-bottom: 1px solid #203a5b; background: #102a43; color: #f7fbff; }
.dashboard-brand { display: flex; align-items: center; gap: 16px; min-width: 238px; text-decoration: none; }
.dashboard-brand img { display: block; width: 132px; height: 36px; object-fit: contain; object-position: left center; }
.dashboard-brand__divider { width: 1px; height: 25px; background: #49627c; }
.dashboard-brand__area { color: #dce8f3; font-size: .83rem; font-weight: 600; }
.dashboard-topbar__right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.topbar-range { color: #e0e9f1; font-size: .82rem; font-variant-numeric: tabular-nums; }
.notification-menu, .user-menu, .export-menu { position: relative; }
.notification-menu summary, .user-menu summary, .export-menu summary { display: flex; align-items: center; list-style: none; cursor: pointer; }
.notification-menu summary::-webkit-details-marker, .user-menu summary::-webkit-details-marker, .export-menu summary::-webkit-details-marker { display: none; }
.notification-menu summary { justify-content: center; width: 36px; height: 36px; border-radius: 6px; color: #e5edf5; }
.notification-menu summary:hover { background: #203a59; }
.user-menu summary { gap: 9px; min-height: 42px; padding: 4px 8px; border-radius: 7px; }
.user-menu summary:hover { background: #203a59; }
.user-avatar { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: #dceef0; color: #116b69; font-size: .82rem; font-weight: 700; }
.user-menu__identity { display: grid; gap: 2px; max-width: 180px; }
.user-menu__identity strong { overflow: hidden; color: #f5f8fb; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.user-menu__identity small { overflow: hidden; color: #b9c9d7; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.topbar-popover, .export-menu__items { position: absolute; z-index: 45; top: calc(100% + 9px); right: 0; width: 230px; padding: 15px; border: 1px solid var(--dash-line); border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgb(16 42 67 / 16%); color: var(--dash-ink); }
.topbar-popover strong { font-size: .85rem; }
.topbar-popover p { margin: 8px 0 0; color: var(--dash-muted); font-size: .78rem; }
.user-menu__popover { display: grid; gap: 6px; padding: 8px; }
.user-menu__popover a, .user-menu__popover button, .export-menu__items a { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--dash-ink); font-size: .82rem; text-align: left; text-decoration: none; cursor: pointer; }
.user-menu__popover a:hover, .user-menu__popover button:hover, .export-menu__items a:hover { background: #f0f5f8; }
.user-menu__popover form { margin: 0; }
.sidebar-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-right: 12px; border: 0; border-radius: 6px; background: transparent; color: #e5edf5; cursor: pointer; }
.sidebar-toggle:hover { background: #203a59; }
.dashboard-frame { display: grid; grid-template-columns: 224px minmax(0, 1fr); align-items: start; min-height: calc(100vh - 64px); }
.dashboard-sidebar { position: sticky; top: 64px; display: flex; flex-direction: column; justify-content: space-between; width: 224px; height: calc(100vh - 64px); min-height: 500px; padding: 18px 12px 14px; border-right: 1px solid var(--dash-line); background: #fff; transition: width .18s ease, transform .18s ease; }
.dashboard-nav { display: grid; gap: 4px; }
.dashboard-nav__item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 6px; color: #4f657a; font-size: .82rem; font-weight: 600; text-decoration: none; }
.dashboard-nav__item svg { flex: 0 0 18px; color: #71869b; }
.dashboard-nav__item:hover { background: #f1f6f9; color: var(--dash-ink); }
.dashboard-nav__item.is-active { background: #e7f5f3; color: #087b70; }
.dashboard-nav__item.is-active::before { position: absolute; top: 7px; bottom: 7px; left: -12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--dash-accent); content: ''; }
.dashboard-nav__item.is-active svg { color: var(--dash-accent-dark); }
.sidebar-account { display: flex; align-items: center; gap: 10px; padding: 12px 7px 0; border-top: 1px solid var(--dash-line); }
.sidebar-account__mark { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 7px; background: #e8f0f6; color: #345b7d; font-weight: 700; }
.sidebar-account > span:last-child { display: grid; gap: 3px; min-width: 0; }
.sidebar-account strong { overflow: hidden; font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account small { color: var(--dash-muted); font-size: .68rem; }
.sidebar-backdrop { display: none; }
.dashboard-main { position: relative; width: 100%; max-width: 1700px; min-width: 0; margin: 0 auto; padding: 20px clamp(18px, 2vw, 30px) 18px; }
.dashboard-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.page-eyebrow { color: var(--dash-accent-dark); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-page-heading h1 { margin: 4px 0 5px; color: var(--dash-ink); font: 700 1.85rem/1.2 var(--vt-font-heading); letter-spacing: 0; }
.dashboard-page-heading p { margin: 0; color: var(--dash-muted); font-size: .84rem; }
.page-heading-actions, .live-panel__actions { display: flex; align-items: center; gap: 12px; }
.page-range { color: var(--dash-muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.export-button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 13px; border: 1px solid #0e8d81; border-radius: 6px; background: #0e8d81; color: #fff; font-size: .79rem; font-weight: 700; }
.export-button:hover { background: #08796f; }
.export-menu__items { display: grid; gap: 3px; width: 155px; padding: 6px; }
.dashboard-controls { display: flex; align-items: center; justify-content: space-between; min-height: 40px; margin: 0 0 14px; }
.date-range-form { display: inline-flex; align-items: center; gap: 9px; min-height: 38px; padding: 0 8px 0 11px; border: 1px solid var(--dash-line); border-radius: 6px; background: #fff; }
.date-range-form label { display: inline-flex; align-items: center; gap: 7px; color: var(--dash-muted); font-size: .75rem; font-weight: 600; }
.date-range-form label svg { color: #668198; }
.date-range-form select { max-width: 118px; height: 32px; border: 0; outline: 0; background: transparent; color: var(--dash-ink); font-size: .75rem; font-weight: 600; }
.refresh-button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 5px; background: transparent; color: #5a7187; cursor: pointer; }
.refresh-button:hover { background: #edf4f7; color: var(--dash-accent-dark); }
.period-caption { color: var(--dash-muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi-card { display: flex; flex-direction: column; min-width: 0; min-height: 114px; padding: 12px 13px 10px; border: 1px solid var(--dash-line); border-radius: 12px; background: var(--dash-surface); box-shadow: 0 2px 6px rgb(16 42 67 / 4%); }
.kpi-card__top { display: flex; align-items: center; gap: 8px; min-height: 25px; }
.kpi-card__icon { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 50%; background: #e4f5f2; color: #128b7d; }
.kpi-card__icon--answered { background: #e9f5f0; color: #288364; }
.kpi-card__icon--asr { background: #e8f0fa; color: #4778ac; }
.kpi-card__icon--acd { background: #eff2f6; color: #61788d; }
.kpi-card__icon--spend { background: #e8f5f3; color: #168a7b; }
.kpi-card__label { overflow: hidden; color: #526a80; font-size: .75rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.kpi-card__trend { margin-left: auto; font-size: .8rem; font-weight: 700; }
.kpi-card__trend--good, .kpi-card__comparison--good { color: var(--dash-positive); }
.kpi-card__trend--bad, .kpi-card__comparison--bad { color: var(--dash-negative); }
.kpi-card__trend--neutral, .kpi-card__comparison--neutral { color: #7d91a4; }
.kpi-card__value { margin: 8px 0 6px; color: #15385a; font: 700 1.45rem/1.1 var(--vt-font-heading); letter-spacing: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-card__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-height: 28px; margin-top: auto; }
.kpi-card__comparison { display: grid; gap: 2px; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.kpi-card__comparison span { color: #8395a7; font-size: .62rem; font-weight: 400; }
.kpi-sparkline { flex: 0 1 74px; width: 74px; height: 27px; overflow: visible; }
.kpi-sparkline polyline { fill: none; stroke: #11a28e; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.kpi-sparkline--bad polyline { stroke: #cf5d63; }
.kpi-sparkline--neutral polyline { stroke: #8ea4b8; }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(280px, .92fr); gap: 12px; margin-bottom: 12px; }
.dashboard-panel { min-width: 0; padding: 14px; border: 1px solid var(--dash-line); border-radius: 12px; background: var(--dash-surface); box-shadow: 0 2px 7px rgb(16 42 67 / 4%); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.panel-heading h2 { margin: 0; color: var(--dash-ink); font: 700 1rem/1.35 var(--vt-font-heading); letter-spacing: 0; }
.panel-heading p { margin: 3px 0 0; color: #7a8fa2; font-size: .71rem; }
.panel-link { flex: 0 0 auto; color: #168779 !important; font-size: .72rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.panel-link:hover { color: #075f57 !important; }
.chart-legend { display: flex; align-items: center; gap: 17px; padding: 3px 2px 8px; color: #5e758b; font-size: .69rem; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .chart-unit-label { margin-left: auto; color: #91a0ae; font-size: .64rem; }
.legend-dot { display: inline-block; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.legend-dot--calls { color: #548ee2; }
.legend-dot--spend { color: #12a890; }
.legend-dot--complete { color: #10a58f; }
.legend-dot--failed { color: #e66b71; }
.legend-dot--no-answer { color: #a8b7d2; }
.chart-svg-wrap { width: 100%; height: 214px; }
.traffic-chart__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-gridline { stroke: #e9eef3; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-axis-label, .chart-date-label { fill: #8194a6; font-family: var(--vt-font-body); font-size: 10px; }
.chart-date-label { font-size: 9px; }
.chart-bar { fill: #548ee2; opacity: .9; }
.chart-spend-line { fill: none; stroke: #11a88f; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-spend-point { fill: #fff; stroke: #11a88f; stroke-width: 2; vector-effect: non-scaling-stroke; }
.outcome-layout { display: grid; grid-template-columns: minmax(130px, .85fr) minmax(150px, 1.15fr); align-items: center; gap: 12px; min-height: 216px; }
.outcome-donut { display: grid; place-items: center; width: min(100%, 176px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: conic-gradient(from -90deg, #10a58f 0deg var(--done), #e66b71 var(--done) calc(var(--done) + (var(--failed-end) - var(--done))), #a8b7d2 var(--failed-end) 360deg); }
.outcome-donut::before { grid-area: 1 / 1; width: 72%; aspect-ratio: 1; border-radius: 50%; background: #fff; content: ''; }
.outcome-donut__center { z-index: 1; grid-area: 1 / 1; display: grid; justify-items: center; gap: 3px; }
.outcome-donut__center strong { color: #183c60; font: 700 1.4rem var(--vt-font-heading); font-variant-numeric: tabular-nums; }
.outcome-donut__center span { color: var(--dash-muted); font-size: .67rem; }
.outcome-legend { display: grid; align-content: center; }
.outcome-row { display: grid; grid-template-columns: 9px minmax(65px, 1fr) auto auto; align-items: center; gap: 8px; min-height: 45px; border-bottom: 1px solid #edf1f5; color: #556d83; font-size: .68rem; }
.outcome-row:last-child { border-bottom: 0; }
.outcome-row strong { color: #294660; font-size: .74rem; font-variant-numeric: tabular-nums; }
.outcome-row small { min-width: 38px; color: #7e91a3; font-size: .66rem; text-align: right; }
.insights-grid { display: grid; grid-template-columns: minmax(320px, .95fr) minmax(420px, 1.35fr); gap: 12px; margin-bottom: 12px; }
.quality-source { align-self: center; color: #7d91a4; font-size: .65rem; white-space: nowrap; }
.voice-dashboard .quality-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.quality-card { display: grid; gap: 5px; min-width: 0; padding: 9px; border: 1px solid #e8edf2; border-radius: 9px; background: #fbfcfd; }
.quality-card > span { color: #788da1; font-size: .63rem; font-weight: 600; }
.quality-card strong { color: #1c3c5a; font: 700 .88rem var(--vt-font-heading); font-variant-numeric: tabular-nums; white-space: nowrap; }
.quality-card small { color: #93a2b0; font-size: .59rem; }
.dashboard-table-scroll { border: 0; border-radius: 0; box-shadow: none; }
.dashboard-table { width: 100%; border-collapse: collapse; color: #435c72; font-size: .68rem; text-align: left; white-space: nowrap; }
.dashboard-table th { padding: 9px 9px; border-bottom: 1px solid #e6edf3; background: #f8fafc; color: #71869a; font-size: .59rem; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.dashboard-table td { height: 38px; padding: 7px 9px; border-bottom: 1px solid #edf1f5; font-variant-numeric: tabular-nums; }
.dashboard-table tbody tr:last-child td { border-bottom: 0; }
.dashboard-table tbody tr:hover { background: #f7fafc; }
.country-cell { display: flex; align-items: center; gap: 7px; color: #294660; font-weight: 600; }
.country-mark { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: #eaf2f7; color: #52728e; font-size: .56rem; font-weight: 700; }
.quality-panel, .destinations-panel { padding-bottom: 12px; }
.live-panel { margin-bottom: 0; }
.live-panel__heading { align-items: center; }
.live-panel__actions { gap: 16px; }
.activity-search input { width: 150px; height: 31px; padding: 0 9px; border: 1px solid #dfe7ee; border-radius: 5px; background: #fff; color: var(--dash-ink); font-size: .68rem; }
.activity-search input::placeholder { color: #8da0b1; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 20px; font-size: .62rem; font-weight: 700; }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-badge--completed { background: #e3f4ee; color: #167756; }
.status-badge--failed { background: #fbe9e9; color: #b94b54; }
.status-badge--no-answer { background: #edf1f6; color: #6e8095; }
.activity-empty { padding: 12px; color: var(--dash-muted); font-size: .75rem; }
.dashboard-empty { display: grid; place-items: center; min-height: 112px; padding: 18px; border: 1px dashed #d8e2ea; border-radius: 9px; color: #71869a; font-size: .78rem; text-align: center; }
.dashboard-footer { display: flex; justify-content: space-between; gap: 12px; padding: 15px 2px 0; color: #8495a4; font-size: .64rem; }
.dashboard-loading { position: fixed; z-index: 60; inset: 64px 0 auto 224px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-bottom: 1px solid #deebef; background: rgb(255 255 255 / 96%); color: #52718a; font-size: .76rem; box-shadow: 0 4px 14px rgb(16 42 67 / 6%); }
.dashboard-loading[hidden] { display: none; }
.loading-pulse { width: 40px; height: 8px; border-radius: 5px; background: linear-gradient(90deg, #e7eff4 25%, #d4e4e9 50%, #e7eff4 75%); background-size: 200% 100%; animation: dashboard-shimmer 1.1s linear infinite; }
@keyframes dashboard-shimmer { to { background-position: -200% 0; } }
.voice-dashboard :focus-visible { outline: 3px solid #4caeab; outline-offset: 2px; }
.voice-dashboard details[open] > summary { outline: none; }
.voice-dashboard summary { user-select: none; }
.sidebar-collapsed .dashboard-frame { grid-template-columns: 72px minmax(0, 1fr); }
.sidebar-collapsed .dashboard-sidebar { width: 72px; padding-right: 8px; padding-left: 8px; }
.sidebar-collapsed .dashboard-nav__item { justify-content: center; padding: 0; }
.sidebar-collapsed .dashboard-nav__item span, .sidebar-collapsed .sidebar-account > span:last-child { display: none; }
.sidebar-collapsed .dashboard-nav__item.is-active::before { left: -8px; }
.sidebar-collapsed .sidebar-account { justify-content: center; padding-right: 0; padding-left: 0; }
.sidebar-collapsed .dashboard-loading { left: 72px; }

.console-shell .console-page { display: grid; align-content: start; gap: 12px; }
.console-shell .console-page > * { min-width: 0; margin-top: 0; margin-bottom: 0; }
.console-shell .console-page-heading { margin-bottom: 0; }
.voice-dashboard .balance-strip { background: linear-gradient(110deg, #e8f2ef 0%, #fff 58%); }
.console-shell .carrier-page {
    --portal-ink: #17252d;
    --portal-muted: #66747a;
    --portal-line: #d7e0df;
    --portal-paper: #fff;
    --portal-wash: #f1f6f4;
}
.console-shell .balance-strip { background: linear-gradient(110deg, #e8f2ef 0%, #fff 58%); }
.console-shell .dashboard-panel { border-radius: 12px; box-shadow: 0 2px 8px rgb(16 42 67 / 5%); }
.console-shell .report-filters { margin: 0; padding: 12px; border-radius: 10px; }
.console-shell .report-filters input, .console-shell .report-filters select,
.console-shell .rates-filter-bar input, .console-shell .rates-filter-bar select,
.console-shell .report-builder__form input, .console-shell .report-builder__form select {
    min-height: 40px;
    border-color: #d7e1e9;
    border-radius: 7px;
    background: #fff;
    color: var(--dash-ink);
}
.console-shell .report-filters input:focus, .console-shell .report-filters select:focus,
.console-shell .rates-filter-bar input:focus, .console-shell .rates-filter-bar select:focus,
.console-shell .report-builder__form input:focus, .console-shell .report-builder__form select:focus {
    outline: 3px solid rgb(19 155 138 / 16%);
    border-color: #139b8a;
}
.console-shell .report-filters .button, .console-shell .rates-filter-bar .button,
.console-shell .report-builder__actions .button, .console-shell .carrier-page .button {
    min-height: 40px;
    border-radius: 8px;
}
.console-shell .analytics-table th, .console-shell .analytics-table td { padding-right: 12px; padding-left: 12px; }
.console-shell .analytics-table th { background: #f2f6f8; }
.console-shell .analytics-table th { color: #46565b; }
.console-shell .analytics-table tbody tr:nth-child(even) { background: #f7f9f8; }
.console-shell .analytics-table tbody tr:hover { background: #f2f8f7; }
.console-shell .dashboard-table { background: #fff; color: #435c72; }
.console-shell .dashboard-table th { background: #f2f6f8; color: #71869a; }
.console-shell .dashboard-table tbody tr:nth-child(even) { background: #f8fafb; }
.console-shell .dashboard-table tbody tr:hover { background: #f2f8f7; }
.console-shell .pagination { margin-top: 0; padding: 10px 12px; border: 1px solid var(--dash-line); border-radius: 9px; background: #fff; }

@media (max-width: 1280px) {
    .kpi-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
    .kpi-card { padding-right: 11px; padding-left: 11px; }
    .kpi-sparkline { flex-basis: 58px; width: 58px; }
    .insights-grid { grid-template-columns: minmax(310px, .9fr) minmax(420px, 1.25fr); }
}
@media (max-width: 1100px) {
    .dashboard-frame { grid-template-columns: 198px minmax(0, 1fr); }
    .dashboard-sidebar { width: 198px; }
    .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .analytics-grid { grid-template-columns: minmax(0, 1.4fr) minmax(270px, .9fr); }
    .insights-grid { grid-template-columns: 1fr; }
    .console-shell .console-page { gap: 10px; }
    .dashboard-loading { left: 198px; }
}
@media (max-width: 800px) {
    .dashboard-topbar { height: 58px; padding: 0 14px; }
    .dashboard-brand { min-width: 0; gap: 10px; }
    .dashboard-brand img { width: 112px; height: 32px; }
    .dashboard-brand__area, .dashboard-brand__divider { display: none; }
    .dashboard-topbar__right { gap: 9px; }
    .topbar-range { display: none; }
    .dashboard-frame { display: block; min-height: calc(100vh - 58px); }
    .dashboard-sidebar { position: fixed; z-index: 52; top: 58px; bottom: 0; left: 0; width: min(280px, 84vw); height: calc(100dvh - 58px); min-height: 0; transform: translateX(-102%); box-shadow: 12px 0 28px rgb(16 42 67 / 12%); }
    body.sidebar-open .dashboard-sidebar { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; z-index: 50; inset: 58px 0 0; display: block; visibility: hidden; border: 0; background: rgb(16 42 67 / 28%); opacity: 0; transition: opacity .18s ease, visibility .18s ease; }
    body.sidebar-open .sidebar-backdrop { visibility: visible; opacity: 1; }
    .dashboard-main { padding: 18px 16px 14px; }
    .analytics-grid { grid-template-columns: 1fr; }
    .outcome-layout { grid-template-columns: minmax(140px, .8fr) minmax(200px, 1.2fr); }
    .dashboard-loading { inset: 58px 0 auto 0; }
    .sidebar-collapsed .dashboard-frame { grid-template-columns: none; }
    .sidebar-collapsed .dashboard-sidebar { width: min(280px, 84vw); }
}
@media (max-width: 560px) {
    .dashboard-topbar { padding: 0 10px; }
    .sidebar-toggle { margin-right: 4px; }
    .dashboard-brand img { width: 103px; }
    .user-menu__identity, .user-menu summary > svg { display: none; }
    .dashboard-topbar__right { gap: 4px; }
    .user-menu summary { padding: 3px; }
    .dashboard-main { padding: 14px 11px 12px; }
    .dashboard-page-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 15px; }
    .dashboard-page-heading h1 { font-size: 1.55rem; }
    .dashboard-page-heading p { max-width: 34ch; font-size: .78rem; line-height: 1.5; }
    .page-heading-actions { width: 100%; justify-content: space-between; }
    .dashboard-controls { margin-bottom: 10px; }
    .period-caption { font-size: .68rem; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .kpi-card { min-height: 116px; padding: 11px 10px 9px; }
    .kpi-card__value { font-size: 1.2rem; }
    .kpi-card__label { font-size: .68rem; }
    .kpi-card__comparison { font-size: .62rem; }
    .kpi-sparkline { flex-basis: 45px; width: 45px; height: 23px; }
    .dashboard-panel { padding: 12px 10px; border-radius: 10px; }
    .panel-heading { gap: 9px; }
    .panel-heading h2 { font-size: .94rem; }
    .panel-heading p { font-size: .66rem; }
    .chart-svg-wrap { height: 188px; }
    .chart-axis-label { font-size: 9px; }
    .chart-date-label { font-size: 8px; }
    .outcome-layout { grid-template-columns: minmax(112px, .75fr) minmax(150px, 1.25fr); gap: 6px; min-height: 160px; }
    .outcome-donut { width: min(100%, 136px); }
    .outcome-row { grid-template-columns: 8px minmax(54px, 1fr) auto auto; gap: 5px; font-size: .62rem; }
    .voice-dashboard .quality-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
    .quality-card { padding: 8px 6px; }
    .quality-card strong { font-size: .75rem; }
    .quality-card small { font-size: .53rem; }
    .quality-source { display: none; }
    .live-panel__heading { align-items: flex-start; flex-direction: column; }
    .live-panel__actions { width: 100%; justify-content: space-between; }
    .activity-search input { width: 130px; }
    .dashboard-footer { font-size: .6rem; }
    .console-shell .console-page { gap: 9px; }
    .console-shell .report-filters { padding: 10px; }
    .console-shell .console-page-heading p { max-width: 48ch; line-height: 1.45; }
}
@media (prefers-reduced-motion: reduce) {
    .voice-dashboard *, .voice-dashboard *::before, .voice-dashboard *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


