:root {
    --voip-navy: #1e439a;
    --voip-view: #40c8ff;
    --voip-text: #2b3a55;
    --voip-muted: #9f9f9f;
    --voip-line: #e6edf5;
    --voip-white: #ffffff;
    --voip-sidebar: 118px;
    --voip-header: 82px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body.voip-body {
    font-family: "Open Sans", "Segoe UI", sans-serif;
    color: var(--voip-text);
    background: var(--voip-white);
}
img { max-width: 100%; border: 0; }
a { color: var(--voip-view); text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.voip-icon { display: inline-block; vertical-align: middle; object-fit: contain; }
.voip-app { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.voip-header {
    height: var(--voip-header);
    display: grid;
    grid-template-columns: 240px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 0 28px;
    border-bottom: 1px solid var(--voip-line);
    background: #fff;
    position: sticky; top: 0; z-index: 20;
}
.voip-logo img { height: 44px; width: auto; max-width: 220px; object-fit: contain; }
.voip-search { position: relative; max-width: 640px; width: 100%; margin: 0 auto; }
.voip-search input[type="search"] {
    width: 100%; height: 42px; border: 1px solid #dbe4ef; background: #f4f4f4;
    border-radius: 22px; padding: 0 46px 0 18px; color: var(--voip-text); font-size: 14px; outline: none;
}
.voip-search input::placeholder { color: #b0b0b0; }
.voip-search-btn {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer;
    display: grid; place-items: center; padding: 0;
}
.voip-search-btn img, .voip-search-btn svg { width: 18px; height: 18px; }
.voip-user { display: flex; align-items: center; gap: 12px; }
.voip-user-avatar { width: 42px; height: 42px; display: grid; place-items: center; }
.voip-user-avatar img, .voip-user-avatar svg { width: 42px; height: 42px; }
.voip-user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.voip-user-name { color: var(--voip-navy); font-weight: 600; font-size: 14px; }
.voip-user-role { color: var(--voip-muted); font-size: 12px; }
.voip-logout { width: 34px; height: 34px; display: grid; place-items: center; }
.voip-logout img { width: 22px; height: 22px; }
.voip-shell { display: flex; flex: 1; min-height: 0; background: #f4f6f8; }
.voip-sidebar {
    width: var(--voip-sidebar); flex: 0 0 var(--voip-sidebar);
    padding: 18px 14px; display: flex; flex-direction: column; gap: 0; background: #fff;
    position: relative; z-index: 5;
}
.voip-nav {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; min-height: 108px; border: 1px solid #eef1f6; color: var(--voip-navy);
    font-size: 13px; padding: 16px 6px 14px; text-decoration: none; text-align: center;
    position: relative; z-index: 6; cursor: pointer;
}
.voip-nav img, .voip-nav svg, .voip-nav span { pointer-events: none; }
.voip-nav + .voip-nav { border-top: 0; }
.voip-nav img, .voip-nav svg { width: 46px; height: 46px; }
.voip-nav.is-active, .voip-nav:hover { background: #e8ebf4; }
.voip-main { flex: 1; padding: 22px 40px 80px; min-width: 0; background: #fff; }
.voip-crumbs, .voip-crumbs a, .voip-crumb-sep { color: #40c8ff; font-size: 13px; }
.voip-crumbs { margin-bottom: 8px; }
.voip-crumbs .is-current { text-decoration: underline; color: var(--voip-navy); }
.voip-crumb-sep { margin: 0 6px; }
.voip-page-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.voip-page-head h1 {
    margin: 0; color: var(--voip-navy); font-size: 36px; font-weight: 300; letter-spacing: -0.02em;
}
.voip-btn {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
    border: 0; border-radius: 2px; padding: 12px 16px; font-size: 14px; cursor: pointer;
    color: #fff; background: var(--voip-navy); text-decoration: none; min-height: 42px; line-height: 1;
}
.voip-btn img, .voip-btn svg { width: 18px; height: 18px; }
.voip-btn-light { background: #40c8ff; }
.voip-btn-sky { background: #e8ebf4; color: var(--voip-navy); }
.voip-footer { padding: 8px 28px 14px; text-align: right; }
.voip-footer p { margin: 0; color: #c0c7d2; font-size: 12px; }
.voip-flash { margin-bottom: 16px; padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.voip-flash-ok { background: #e8f7ee; color: #1b6b3a; }
.voip-flash-err { background: #fdeeee; color: #a12828; }
.voip-table-wrap { overflow: auto; max-height: calc(100vh - 320px); }
.voip-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.voip-table th, .voip-table td {
    text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--voip-line);
    white-space: nowrap; vertical-align: middle;
}
.voip-table th { color: var(--voip-navy); font-weight: 400; background: #fff; position: sticky; top: 0; }
.voip-table td { color: var(--voip-muted); }
.voip-empty { color: var(--voip-muted); text-align: center; padding: 28px 12px; }
.voip-welcome { text-align: center; padding: 72px 16px 40px; }
.voip-welcome h2 { margin: 0 0 12px; color: #40c8ff; font-size: 32px; font-weight: 300; }
.voip-welcome p { margin: 0 0 36px; color: var(--voip-muted); font-size: 16px; }
.voip-welcome-logo img { height: 120px; width: auto; }
.voip-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.voip-tab {
    display: inline-block; padding: 10px 16px; background: #eef3f8; color: var(--voip-navy);
    font-size: 13px; border-radius: 2px;
}
.voip-tab.is-active { background: var(--voip-navy); color: #fff; }
.voip-totals { display: flex; gap: 36px; margin-top: 16px; color: var(--voip-navy); font-size: 14px; }
.voip-issue-copy { color: var(--voip-muted); margin: 0 0 24px; }
.voip-issue-grid { display: grid; grid-template-columns: 280px 1fr; gap: 36px; max-width: 980px; }
.voip-field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
.voip-field > span { color: var(--voip-muted); font-size: 13px; }
.voip-field select, .voip-field textarea, .voip-field input {
    width: 100%; border: 0; background: #f0f2f5; padding: 10px 12px; color: #6b778c; font-size: 14px; outline: none;
}
.voip-field textarea { min-height: 220px; resize: vertical; }
.voip-form-actions { display: flex; gap: 12px; margin-top: 12px; }
.voip-billing { display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: start; }
.voip-year { margin-bottom: 28px; }
.voip-year h2 { margin: 0 0 12px; color: var(--voip-navy); font-size: 22px; font-weight: 400; }
.voip-month-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 720px; }
.voip-month {
    display: block; padding: 14px 12px; background: #eef3f8; color: var(--voip-navy);
    text-align: center; font-size: 13px;
}
.voip-month.is-active { background: var(--voip-navy); color: #fff; }
.voip-bill-side { background: #fff; }
.voip-export-wrap { position: relative; margin-bottom: 18px; }
.voip-dropdown { margin-top: 8px; background: #eef3f8; }
.voip-dropdown a { display: block; padding: 8px 12px; color: var(--voip-navy); font-size: 14px; }
.voip-bill-side h3 { margin: 0 0 16px; color: var(--voip-navy); font-size: 18px; font-weight: 400; }
.voip-bill-row { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; color: var(--voip-muted); font-size: 14px; }
.voip-bill-row strong { color: var(--voip-navy); font-weight: 600; }
.voip-bill-status { margin: 18px 0; color: var(--voip-muted); }
.voip-contract { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 20px; margin-bottom: 36px; }
.voip-dl { margin: 0; }
.voip-dl dt { color: var(--voip-muted); font-size: 13px; margin: 0 0 6px; }
.voip-dl dd { margin: 0; color: #6b778c; font-size: 15px; white-space: pre-line; background: #f4f4f4; padding: 8px 10px; min-height: 36px; }

body.voip-login-body {
    min-height: 100vh;
    background: radial-gradient(circle at 50% 42%, #5aa7ff 0%, #2f6fe0 42%, #1e439a 100%);
    position: relative;
}
body.voip-login-body::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(#ffffff 1.1px, transparent 1.3px);
    background-size: 14px 18px;
    opacity: 0.28;
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 18%, transparent 62%);
    mask-image: radial-gradient(ellipse at 50% 45%, #000 18%, transparent 62%);
    pointer-events: none;
}
.voip-login-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px 72px; position: relative; z-index: 1;
}
.voip-login-card { width: 520px; max-width: 100%; background: #fff; padding: 28px 36px 24px; }
.voip-login-logo { text-align: center; padding-bottom: 16px; border-bottom: 1px solid #e6edf5; margin-bottom: 22px; }
.voip-login-logo img { height: 44px; width: auto; }
.voip-login-row { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 16px; margin-bottom: 16px; }
.voip-login-row label { color: var(--voip-muted); font-size: 14px; }
.voip-login-row input {
    width: 100%; border: 0; background: #f0f2f5; padding: 10px 12px; font-size: 14px; color: #6b778c; outline: none;
}
.voip-login-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.voip-login-actions a { color: #40c8ff; text-decoration: underline; font-size: 14px; }
.voip-login-msg { color: #a12828; font-size: 14px; }
.voip-login-msg.ok { color: #1b6b3a; }
body.voip-login-body .voip-footer { position: absolute; right: 20px; bottom: 8px; z-index: 1; }
body.voip-login-body .voip-footer p { color: rgba(255,255,255,0.65); }
