:root {
  --navy: #1f3553;
  --navy-deep: #162942;
  --blue: #557397;
  --blue-soft: #edf3f9;
  --ink: #24364b;
  --muted: #6b7d91;
  --line: #dfe7ef;
  --canvas: #f5f8fb;
  --card: #ffffff;
  --green: #26734d;
  --green-soft: #e7f5ed;
  --amber: #94611d;
  --amber-soft: #fff3df;
  --red: #a63f46;
  --red-soft: #fbeaec;
  --shadow-sm: 0 2px 10px rgb(31 53 83 / 5%);
  --shadow-md: 0 12px 32px rgb(31 53 83 / 8%);
  --radius: 14px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { min-width: 320px; background: var(--canvas); }

body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #a8c9ec;
  outline-offset: 2px;
}

button, input, select { font: inherit; }

button {
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

button:hover { transform: translateY(-1px); }

.primary {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 4px 12px rgb(31 53 83 / 16%);
  font-weight: 700;
}

.primary:hover { background: var(--navy-deep); }

.secondary {
  color: var(--navy);
  background: #fff;
  border-color: var(--line);
  font-weight: 650;
}

.brand {
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
}

.brand span { font-weight: 500; }

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.portal-auth {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
  background: radial-gradient(circle at 50% 0%, #eaf1f8 0, var(--canvas) 45%);
}

.auth-card {
  width: min(430px, 100%);
  padding: 42px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.auth-card .eyebrow { margin-top: 34px; }
.auth-card h1 { margin: 0 0 24px; color: var(--navy); font-size: 29px; line-height: 1.2; }
.auth-card label { display: grid; gap: 7px; margin: 16px 0; font-weight: 650; }
.auth-card input { width: 100%; }
.auth-card .primary { width: 100%; margin-top: 12px; }
.auth-card > a { display: block; margin-top: 20px; text-align: center; font-weight: 600; }

input, select {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c8d4e1;
  border-radius: 9px;
}

.error { min-height: 24px; color: var(--red); }
.success { min-height: 24px; padding: 10px 12px; color: var(--green); background: var(--green-soft); border: 1px solid #b9dfc9; border-radius: 9px; font-weight: 650; }

.portal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(20px, 4vw, 58px);
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgb(31 53 83 / 3%);
  backdrop-filter: blur(12px);
}

.portal-header nav {
  display: flex;
  flex: 1;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.portal-header nav::-webkit-scrollbar { display: none; }
.portal-header nav a {
  padding: 9px 11px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.portal-header nav a:hover { color: var(--navy); background: var(--blue-soft); }

.portal-main { width: min(1240px, 100%); margin: 0 auto; padding: 38px clamp(20px, 4vw, 58px) 64px; }
#app, .section, .card { min-width: 0; }
.welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 30px; }
.welcome h1 { margin: 0; color: var(--navy); font-size: clamp(27px, 3vw, 36px); letter-spacing: -.02em; }
.muted { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.card { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.kpi { min-height: 126px; }
.kpi .label { color: var(--muted); font-size: 13px; font-weight: 650; }
.kpi .value { margin-top: 8px; color: var(--navy); font-size: 27px; font-weight: 780; letter-spacing: -.02em; }
.section { margin-top: 32px; }
.section h2, #app > h2 { margin: 0 0 14px; color: var(--navy); font-size: 21px; letter-spacing: -.01em; }

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); background: #f8fafc; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
td { color: var(--ink); font-size: 14px; }
tbody tr:hover { background: #fbfdff; }
tbody tr:last-child td { border-bottom: 0; }

.badge { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 10px; color: var(--blue); background: var(--blue-soft); border-radius: 999px; font-size: 12px; font-weight: 750; }
.badge.green { color: var(--green); background: var(--green-soft); }
.badge.amber { color: var(--amber); background: var(--amber-soft); }
.badge.red { color: var(--red); background: var(--red-soft); }
.empty, .loading, .error-state { padding: 44px 24px; color: var(--muted); text-align: center; }
.empty { border: 1px dashed #c7d3df; border-radius: 12px; }

@media (max-width: 1040px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portal-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .portal-header nav { width: 100%; }
}

@media (max-width: 680px) {
  .portal-auth { padding: 16px; }
  .auth-card { padding: 30px 24px; }
  .portal-main { padding: 27px 16px 48px; }
  .portal-header { gap: 10px; padding: 12px 16px; }
  .portal-header .brand { font-size: 19px; }
  .portal-header nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
  }
  .portal-header nav a {
    min-width: 0;
    padding: 7px 5px;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .welcome { align-items: flex-start; flex-direction: column; margin-bottom: 24px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .card { padding: 17px; }
  .kpi { min-height: 108px; }
  .kpi .value { font-size: 23px; }
  .table-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { width: max-content; min-width: 100%; }
  th, td { max-width: min(70vw, 280px); padding: 12px; white-space: normal; overflow-wrap: anywhere; }
  .empty, .loading, .error-state { width: 100%; max-width: 100%; padding: 32px 16px; white-space: normal; }
  .portal-toolbar, .invoice-meta { min-width: 0; align-items: flex-start; flex-direction: column; }
  .invoice-detail { width: 100%; max-width: 100%; padding: 17px; }
  .card input, .card select, .card button, .auth-card input, .auth-card button { max-width: 100%; }
  .autopay-row > div, .autopay-consent-panel { width: 100%; min-width: 0; }
  .autopay-consent-panel label { min-width: 0; }
  .autopay-consent-panel input[type="checkbox"] { width: 18px; flex: 0 0 18px; }
}

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

@media print {
  .portal-header { position: static; box-shadow: none; }
  .portal-main { padding: 20px; }
  .table-wrap { overflow: visible; box-shadow: none; }
}
.portal-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;flex-wrap:wrap}.invoice-detail{padding:24px}.invoice-meta{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.invoice-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0;padding-top:16px;border-top:1px solid var(--border,#e5e7eb)}.invoice-totals div{display:flex;justify-content:space-between;gap:8px}.autopay-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;border-top:1px solid var(--border,#e5e7eb)}@media(max-width:700px){.invoice-totals{grid-template-columns:1fr}.autopay-row{align-items:flex-start;flex-direction:column}.autopay-row button{min-height:42px}}
.autopay-consent-panel{margin-top:14px;padding:16px;border:1px solid var(--line,#dfe7ef);border-radius:12px;background:#f8fbff}.autopay-consent-panel label{display:flex;gap:10px;align-items:flex-start;margin:12px 0;line-height:1.5}.autopay-consent-panel input{margin-top:4px;min-width:18px;min-height:18px}.autopay-consent-panel button{min-height:42px}

/* Customer Portal UI V2 shell */
:root { --shell-width: 1320px; --nav-height: 74px; }
body { overflow-wrap: break-word; }
.portal-header { min-height: var(--nav-height); padding: 12px max(24px, calc((100vw - var(--shell-width)) / 2 + 32px)); gap: 52px; }
.portal-header .brand { flex: 0 0 auto; color: var(--navy); text-decoration: none; }
.logo-link { display: flex; align-items: center; width: 154px; height: 48px; overflow: hidden; }
.logo-link img { display: block; width: 100%; height: 100%; object-fit: contain; }
.auth-logo { width: 176px; max-width: 58%; margin: 0 auto 24px; }
.auth-logo img { display: block; width: 100%; height: auto; }
.primary-nav { justify-content: flex-end; overflow: visible !important; }
.primary-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 15px !important; }
.primary-nav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.primary-nav a.active { color: var(--navy); background: var(--blue-soft); box-shadow: inset 0 0 0 1px #dae7f2; }
.portal-main { width: min(var(--shell-width), 100%); padding: 42px 32px 82px; }
.welcome { align-items: center; margin-bottom: 28px; }
.welcome-copy { min-width: 0; }
.welcome h1 { max-width: 900px; line-height: 1.12; overflow-wrap: anywhere; }
.welcome .muted { margin: 9px 0 0; }
.section-nav { display: flex; gap: 7px; margin: -6px 0 30px; padding-bottom: 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a, .section-nav button { flex: 0 0 auto; min-height: 38px; padding: 7px 12px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.section-nav a:hover, .section-nav button:hover, .section-nav .active { color: var(--navy); background: var(--blue-soft); transform: none; }
.dashboard-kpis { grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr)); }
.dashboard-kpis .kpi { position: relative; overflow: hidden; }
.metric-link { color: inherit; text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.metric-link:hover { border-color: #cbd9e6; box-shadow: 0 9px 24px rgb(31 53 83 / 9%); transform: translateY(-2px); }
.dashboard-kpis .balance-card { color: #fff; background: linear-gradient(145deg, var(--navy), #294b70); border-color: transparent; box-shadow: 0 16px 34px rgb(31 53 83 / 17%); }
.dashboard-kpis .balance-card .label, .dashboard-kpis .balance-card .value { color: #fff; }
.dashboard-kpis .balance-card .label { opacity: .76; }
.kpi .value.compact { font-size: 21px; }
.home-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; }
.pay-now { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; color: var(--navy); background: #fff; border-radius: 9px; font-weight: 800; text-decoration: none; box-shadow: 0 5px 16px rgb(0 0 0 / 14%); }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 22px; margin-top: 26px; }
.dashboard-panel { min-width: 0; padding: 0; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px 14px; }
.panel-heading h2 { margin: 0; font-size: 18px; }
.panel-heading a { flex: 0 0 auto; font-size: 13px; font-weight: 750; text-decoration: none; }
.recent-invoice { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(90px, .7fr)); align-items: center; gap: 16px; padding: 21px 22px; border-top: 1px solid var(--line); text-decoration: none; }
.recent-invoice:hover { background: #f9fbfd; }
.recent-invoice strong { display: block; color: var(--navy); overflow-wrap: anywhere; }
.recent-invoice small, .summary-item small { display: block; color: var(--muted); font-size: 12px; }
.recent-invoice span { color: var(--ink); }
.service-summary { display: grid; gap: 0; }
.summary-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--line); text-decoration: none; }
.summary-item strong { color: var(--navy); font-size: 20px; }
.summary-item > span:first-child { color: var(--ink); font-weight: 700; }
.home-empty { margin: 0 22px 22px; background: #fafcfe; }
.status-badge { display: inline-flex; padding: 4px 9px; color: var(--green); background: var(--green-soft); border-radius: 999px; font-size: 12px; font-weight: 750; }

@media (max-width: 1040px) {
  .portal-header { align-items: center; flex-direction: row; gap: 28px; padding-inline: 26px; }
  .primary-nav { width: auto !important; }
  .dashboard-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-kpis .balance-card { grid-column: span 2; }
  .portal-main { padding-inline: 26px; }
}

@media (max-width: 900px) {
  .dashboard-columns { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --nav-height: 58px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .portal-header { position: sticky; min-height: var(--nav-height); padding: 10px 18px; border-bottom-color: #e5ebf1; backdrop-filter: none; }
  .logo-link { width: 128px; height: 38px; }
  .primary-nav { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 0 !important; width: 100% !important; padding: 7px 8px calc(6px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 97%); border-top: 1px solid #dce5ee; box-shadow: 0 -8px 30px rgb(31 53 83 / 10%); backdrop-filter: blur(16px); }
  .primary-nav a { display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 54px; padding: 5px 2px !important; font-size: 11px !important; line-height: 1.1 !important; text-align: center; white-space: nowrap !important; }
  .primary-nav a.active { background: transparent; box-shadow: none; }
  .primary-nav a.active::after { position: absolute; top: 0; width: 24px; height: 3px; background: var(--navy); border-radius: 0 0 3px 3px; content: ''; }
  .primary-nav svg { width: 22px; height: 22px; }
  .portal-main { padding: 25px 16px 36px; }
  .welcome { margin-bottom: 21px; }
  .welcome h1 { max-width: 100%; font-size: clamp(25px, 8vw, 32px); }
  .section-nav { margin-bottom: 22px; margin-inline: -16px; padding: 0 16px 11px; }
  .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-kpis .balance-card { grid-column: 1 / -1; min-height: 164px; }
  .dashboard-kpis .kpi { min-height: 112px; }
  .dashboard-columns { grid-template-columns: 1fr; gap: 16px; margin-top: 18px; }
  .recent-invoice { grid-template-columns: minmax(0, 1fr) auto; gap: 13px; }
  .recent-invoice > span:nth-child(2), .recent-invoice > span:nth-child(3) { display: none; }
  .panel-heading { padding: 18px 17px 13px; }
  .recent-invoice, .summary-item { padding: 17px; }
  .home-empty { margin: 0 17px 17px; }
}

@media (max-width: 380px) {
  .dashboard-kpis { grid-template-columns: 1fr; }
  .dashboard-kpis .balance-card { grid-column: auto; }
}

@media print { body { padding-bottom: 0; } .primary-nav { position: static; } }

/* Premium Billing center */
.billing-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 22px; }
.billing-title h2 { margin: 0; color: var(--navy); font-size: clamp(27px, 3vw, 36px); letter-spacing: -.025em; }
.billing-title .muted { margin: 7px 0 0; }
.billing-hero { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 205px; padding: 34px 38px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #172c47 0%, #25496d 72%, #315b82 100%); border: 1px solid rgb(255 255 255 / 10%); border-radius: 18px; box-shadow: 0 18px 38px rgb(22 41 66 / 16%); }
.billing-hero::before { content: none !important; }
.billing-hero::after { position: absolute; inset: 0; z-index: 0; background: linear-gradient(115deg, rgb(255 255 255 / 4%), transparent 38%, rgb(113 157 196 / 7%)); content: ''; pointer-events: none; }
.billing-hero > * { position: relative; z-index: 1; }
.billing-kicker { margin: 0 0 5px; color: #cfdeec; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.billing-hero h2 { margin: 0; color: #fff; font-size: clamp(40px, 5vw, 58px); line-height: 1.05; letter-spacing: -.04em; }
.billing-hero p:last-child { margin: 12px 0 0; color: #d8e4ef; }
.billing-pay { display: grid; min-width: 210px; padding: 15px 19px; color: var(--navy); background: #fff; border-radius: 11px; box-shadow: 0 10px 25px rgb(0 0 0 / 17%); text-decoration: none; }
.billing-pay span { font-size: 16px; font-weight: 850; }
.billing-pay small { margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 650; }
.billing-current { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 16px; color: #e6f8ed; background: rgb(255 255 255 / 11%); border: 1px solid rgb(255 255 255 / 18%); border-radius: 999px; font-weight: 750; }
.billing-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 24px; }
.billing-metrics a { min-width: 0; padding: 17px 18px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.billing-metrics a:hover { border-color: #c6d6e5; box-shadow: 0 10px 24px rgb(31 53 83 / 9%); transform: translateY(-2px); }
.billing-metrics span, .billing-metrics small { display: block; color: var(--muted); font-size: 12px; font-weight: 650; }
.billing-metrics strong { display: block; margin: 5px 0 2px; color: var(--navy); font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
.billing-metrics em { color: var(--muted); font-size: 13px; font-style: normal; font-weight: 650; }
.billing-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(285px, .75fr); gap: 22px; align-items: start; }
.billing-main-column, .billing-side-column { display: grid; min-width: 0; gap: 22px; }
.billing-panel, .billing-side-card { min-width: 0; padding: 0; overflow: hidden; }
.billing-side-card { padding: 22px; }
.billing-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px 15px; }
.billing-side-card .billing-panel-head { padding: 0 0 13px; }
.billing-panel-head .eyebrow { margin-bottom: 3px; }
.billing-panel-head h3, .billing-side-card h3 { margin: 0; color: var(--navy); font-size: 18px; line-height: 1.3; }
.billing-panel-head > a, .billing-text-link { flex: 0 0 auto; color: var(--blue); font-size: 13px; font-weight: 800; text-decoration: none; }
.billing-records { min-width: 0; }
.billing-record { display: grid; grid-template-columns: minmax(135px, 1.35fr) minmax(100px, .85fr) minmax(95px, .72fr) auto; align-items: center; gap: 16px; min-width: 0; padding: 17px 22px; color: var(--ink); border-top: 1px solid var(--line); text-decoration: none; }
a.billing-record:hover { background: #f9fbfd; }
.billing-record > span { min-width: 0; overflow-wrap: anywhere; }
.billing-record strong { color: var(--navy); }
.billing-record small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; }
.billing-status { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.billing-status.due { color: var(--amber); background: var(--amber-soft); }
.billing-status.settled { color: var(--green); background: var(--green-soft); }
.billing-status.neutral { color: var(--muted); background: #eef2f6; }
.billing-status.open { color: var(--amber); background: var(--amber-soft); }
.billing-status.partial { color: #175cd3; background: #eff8ff; }
.billing-status.past-due { color: #b42318; background: #fef3f2; }
.billing-status.paid { color: var(--green); background: var(--green-soft); }
.status-badge.past-due { color: #b42318; background: #fef3f2; }
.status-badge.partial { color: #175cd3; background: #eff8ff; }
.billing-side-card > .muted { margin: 0 0 15px; }
.billing-count { display: inline-grid; min-width: 30px; height: 30px; padding: 0 8px; color: var(--navy); background: var(--blue-soft); border-radius: 999px; place-items: center; font-size: 12px; font-weight: 800; }
.statement-card { display: grid; gap: 17px; color: #fff; background: linear-gradient(145deg, #243d5c, #355d83); border-color: transparent; }
.statement-card h3, .statement-card .eyebrow { color: #fff; }
.statement-card .eyebrow { opacity: .7; }
.statement-card .muted { color: #d5e1ec; }
.statement-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.statement-actions a { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 10px; color: #fff; background: rgb(255 255 255 / 9%); border: 1px solid rgb(255 255 255 / 16%); border-radius: 8px; font-size: 12px; font-weight: 750; text-align: center; text-decoration: none; }
.statement-actions a:first-child { grid-column: 1 / -1; color: var(--navy); background: #fff; }
.billing-empty { display: grid; min-height: 190px; padding: 30px 22px; place-items: center; align-content: center; text-align: center; }
.billing-empty-icon { display: grid; width: 38px; height: 38px; margin-bottom: 10px; color: var(--green); background: var(--green-soft); border-radius: 50%; place-items: center; font-weight: 900; }
.billing-empty strong { color: var(--navy); }
.billing-empty p { max-width: 390px; margin: 5px 0 0; color: var(--muted); font-size: 13px; }

@media (max-width: 1040px) {
  .billing-layout { grid-template-columns: minmax(0, 1.45fr) minmax(270px, .8fr); }
  .billing-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .billing-record { grid-template-columns: minmax(130px, 1.25fr) minmax(90px, .8fr) auto; }
  .billing-record > span:nth-child(2) { display: none; }
}

@media (max-width: 760px) {
  .welcome-copy { width: 100%; }
  .welcome { margin-bottom: 17px; }
  .welcome h1 { display: -webkit-box; max-width: 100%; overflow: hidden; font-size: clamp(23px, 6.5vw, 27px); line-height: 1.14; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .welcome .muted { margin-top: 6px; font-size: 13px; }
  .section-nav[aria-label="billing navigation"] { display: none; }
  .billing-title { margin-bottom: 17px; }
  .billing-title h2 { font-size: 28px; }
  .billing-hero { align-items: stretch; flex-direction: column; gap: 20px; min-height: 0; padding: 24px 20px; border-radius: 16px; box-shadow: 0 13px 28px rgb(22 41 66 / 15%); }
  .billing-hero h2 { font-size: 40px; }
  .billing-pay { min-width: 0; width: 100%; }
  .billing-current { align-self: flex-start; }
  .billing-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 13px 0 18px; }
  .billing-metrics a { padding: 14px; }
  .billing-metrics strong { font-size: 19px; }
  .billing-layout { grid-template-columns: 1fr; gap: 16px; }
  .billing-main-column, .billing-side-column { gap: 16px; }
  .billing-panel-head { padding: 17px 16px 13px; }
  .billing-side-card { padding: 18px 17px; }
  .billing-record { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 15px 16px; }
  .billing-record > span:nth-child(2) { display: none; }
  .billing-record > span:nth-child(3) { text-align: right; }
  .billing-record > .billing-status { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 390px) {
  .billing-metrics { grid-template-columns: 1fr; }
  .billing-record { grid-template-columns: minmax(0, 1fr) auto; }
  .billing-hero h2 { font-size: 38px; }
}

/* Premium Services center */
.services-title { margin-bottom: 22px; }
.services-title h2 { margin: 0; color: var(--navy); font-size: clamp(27px, 3vw, 36px); letter-spacing: -.025em; }
.services-title .muted { max-width: 650px; margin: 7px 0 0; }
.services-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.services-metrics > div { min-width: 0; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-sm); }
.services-metrics span, .services-metrics small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.services-metrics strong { display: inline-block; margin: 4px 8px 0 0; color: var(--navy); font-size: 27px; line-height: 1.15; }
.locations-list { display: grid; gap: 18px; }
.location-card { padding: 0; overflow: hidden; }
.location-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px 24px 20px; background: linear-gradient(180deg, #fff, #fbfdff); }
.location-head > div:first-child { min-width: 0; }
.location-head h3 { margin: 0; color: var(--navy); font-size: 21px; line-height: 1.25; overflow-wrap: anywhere; }
.location-head p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.location-counts { display: flex; flex: 0 0 auto; gap: 8px; }
.location-counts span { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 6px 10px; color: var(--muted); background: var(--blue-soft); border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.location-counts strong { color: var(--navy); }
.location-services { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) auto minmax(230px, 1fr); align-items: center; gap: 18px; min-width: 0; padding: 19px 24px; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-identity { min-width: 0; }
.service-identity strong { display: block; color: var(--navy); font-size: 15px; overflow-wrap: anywhere; }
.service-identity span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 650; }
.service-state { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.service-state.active { color: var(--green); background: var(--green-soft); }
.service-state.pending { color: var(--amber); background: var(--amber-soft); }
.service-state.inactive { color: var(--red); background: var(--red-soft); }
.service-numbers { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; min-width: 0; }
.service-numbers > span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 6px 9px; color: var(--ink); background: #f5f8fb; border: 1px solid #e3ebf2; border-radius: 8px; font-size: 12px; }
.service-numbers b { overflow-wrap: anywhere; }
.service-numbers small { color: var(--muted); font-size: 10px; font-weight: 750; }
.service-no-number { justify-self: end; color: var(--muted); font-size: 12px; font-style: italic; }
.unassigned-lines { padding: 18px 24px; }
.unassigned-lines > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.unassigned-lines > div > span:first-child { min-width: 0; }
.unassigned-lines strong, .unassigned-lines small { display: block; }
.unassigned-lines strong { color: var(--navy); overflow-wrap: anywhere; }
.unassigned-lines small { color: var(--muted); }
.services-empty { display: grid; min-height: 150px; padding: 27px 20px; place-items: center; align-content: center; text-align: center; }
.services-empty > span { display: grid; width: 40px; height: 40px; margin-bottom: 11px; color: var(--blue); background: var(--blue-soft); border-radius: 50%; place-items: center; font-size: 18px; }
.services-empty strong { color: var(--navy); }
.services-empty p { max-width: 440px; margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.services-empty-all { min-height: 260px; }

@media (max-width: 900px) {
  .service-row { grid-template-columns: minmax(0, 1fr) auto; }
  .service-numbers, .service-no-number { grid-column: 1 / -1; justify-content: flex-start; justify-self: start; }
}

@media (max-width: 760px) {
  .services-title { margin-bottom: 17px; }
  .services-title h2 { font-size: 28px; }
  .services-title .muted { font-size: 13px; }
  .services-metrics { gap: 8px; margin-bottom: 16px; }
  .services-metrics > div { padding: 14px 12px; }
  .services-metrics strong { font-size: 22px; }
  .services-metrics small { margin-top: 2px; }
  .locations-list { gap: 14px; }
  .location-head { align-items: flex-start; flex-direction: column; gap: 14px; padding: 19px 17px 16px; }
  .location-head h3 { font-size: 19px; }
  .location-counts { flex-wrap: wrap; }
  .service-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 17px; }
  .service-numbers { gap: 6px; }
  .service-numbers > span { width: 100%; justify-content: space-between; }
  .unassigned-lines { padding: 16px 17px; }
  .services-empty { min-height: 135px; padding: 24px 17px; }
}

@media (max-width: 390px) {
  .services-metrics { grid-template-columns: 1fr 1fr; }
  .services-metrics > div:first-child { grid-column: 1 / -1; }
}

.phone-lines-mobile { display: none; }
.phone-line-card { padding: 17px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.phone-line-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.phone-line-card-head strong { color: var(--navy); font-size: 17px; letter-spacing: .01em; }
.phone-line-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 16px 0 0; }
.phone-line-card dl > div:last-child { grid-column: 1 / -1; }
.phone-line-card dt { margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.phone-line-card dd { margin: 0; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .phone-lines-desktop { display: none; }
  .phone-lines-mobile { display: grid; gap: 11px; }
}

/* Premium Account center */
.account-title { margin-bottom: 22px; }
.account-title h2 { margin: 0; color: var(--navy); font-size: clamp(27px, 3vw, 36px); letter-spacing: -.025em; }
.account-title .muted { margin: 7px 0 0; }
.account-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: 22px; align-items: start; }
.account-layout > div { display: grid; min-width: 0; gap: 18px; }
.account-profile, .account-security, .account-session { min-width: 0; }
.account-profile { padding: 0; overflow: hidden; }
.account-profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 23px 24px; background: linear-gradient(145deg, #1d3655, #2d5378); }
.account-mark { display: grid; width: 48px; height: 48px; color: var(--navy); background: #fff; border-radius: 13px; box-shadow: 0 7px 18px rgb(0 0 0 / 13%); place-items: center; font-size: 21px; font-weight: 850; }
.account-profile-head .eyebrow { color: #cadbea; }
.account-profile-head h3 { margin: 0; color: #fff; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.account-profile-head p:last-child { margin: 4px 0 0; color: #d8e4ee; font-size: 12px; }
.account-status { align-self: start; padding: 4px 9px; color: #e6f8ed; background: rgb(255 255 255 / 12%); border: 1px solid rgb(255 255 255 / 16%); border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: capitalize; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-field { min-width: 0; padding: 18px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-field:nth-child(even) { border-right: 0; }
.profile-field span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .02em; }
.profile-field strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.profile-address { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.account-security { padding: 24px; }
.account-card-head { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.account-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; color: var(--blue); background: var(--blue-soft); border-radius: 11px; place-items: center; }
.account-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-card-head h3, .account-session h3 { margin: 0; color: var(--navy); font-size: 19px; }
.account-card-head p:last-child, .account-session p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.password-form { display: grid; gap: 15px; padding-top: 20px; }
.password-form label { display: grid; min-width: 0; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 750; }
.password-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.password-actions { display: flex; align-items: center; gap: 14px; margin-top: 2px; }
.password-actions span { color: var(--muted); font-size: 11px; }
.password-message { min-height: 22px; margin: 0; padding: 0; font-size: 12px; font-weight: 700; }
.password-message.success-message, .password-message.error-message { padding: 9px 11px; border-radius: 8px; }
.password-message.success-message { color: var(--green); background: var(--green-soft); }
.password-message.error-message { color: var(--red); background: var(--red-soft); }
.account-session { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; }
.account-session .eyebrow { margin-bottom: 2px; }
.account-logout { flex: 0 0 auto; min-height: 40px; padding: 8px 14px; color: var(--muted); box-shadow: none; }
.account-logout:hover { color: var(--navy); border-color: #c8d6e3; }

@media (max-width: 980px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-security { grid-row: 2; }
}

@media (max-width: 760px) {
  .account-title { margin-bottom: 17px; }
  .account-title h2 { font-size: 28px; }
  .account-title .muted { font-size: 13px; }
  .account-layout { gap: 14px; }
  .account-layout > div { gap: 14px; }
  .account-profile-head { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 19px 17px; }
  .account-mark { width: 43px; height: 43px; }
  .account-status { grid-column: 2; justify-self: start; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-field, .profile-field:nth-child(even) { padding: 15px 17px; border-right: 0; }
  .profile-address { grid-column: auto; }
  .account-security { padding: 19px 17px; }
  .password-pair { grid-template-columns: 1fr; }
  .password-actions { align-items: stretch; flex-direction: column; }
  .password-actions button { width: 100%; }
  .account-session { align-items: flex-start; flex-direction: column; padding: 18px 17px; }
  .account-logout { width: auto; }
}

/* MSQ PORTAL REPORT UI V8 — POLISHED LAYOUT */

.report-page,
.statement-page {
  display: grid;
  gap: 22px;
}

.report-title-row,
.statement-page .report-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
}

.report-title-row > div {
  min-width: 0;
}

.report-title-row h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.report-title-row .eyebrow {
  margin-bottom: 7px;
}

.report-title-row .muted {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.report-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 46px;
  padding: 10px 18px;
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgb(31 53 83 / 14%);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.report-primary-action:hover {
  color: #fff;
  background: #294b70;
  box-shadow: 0 10px 22px rgb(31 53 83 / 18%);
}

.report-filter-card,
.statement-builder {
  padding: 24px 26px;
  border-radius: 16px;
}

.report-month-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.report-month-shortcuts button {
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.report-filters {
  display: grid;
  grid-template-columns:
    minmax(150px, .8fr)
    minmax(150px, .8fr)
    minmax(190px, 1.15fr)
    minmax(180px, 1fr)
    minmax(160px, .9fr)
    minmax(126px, auto);
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.report-filters label,
.statement-filter-form label {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.report-filters label > span,
.statement-filter-form label > span {
  color: #60758b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.report-filters input,
.report-filters select,
.statement-filter-form input {
  width: 100%;
  height: 46px;
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd7e3;
  border-radius: 9px;
  box-shadow: inset 0 1px 1px rgb(31 53 83 / 2%);
  font: inherit;
}

.report-filters input:focus,
.report-filters select:focus,
.statement-filter-form input:focus {
  outline: 0;
  border-color: #9db6cf;
  box-shadow: 0 0 0 3px rgb(71 112 153 / 10%);
}

.report-apply {
  min-width: 126px;
  height: 46px;
  min-height: 46px;
  padding-inline: 17px;
  border-radius: 9px;
  white-space: nowrap;
}

.report-filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.report-filter-footer span:last-child {
  text-align: right;
}

.report-filter-footer .error {
  color: #a63b32;
}

.call-report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.call-report-summary article {
  min-height: 96px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.call-report-summary span {
  display: block;
  color: #60758b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.call-report-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 27px;
  line-height: 1;
  letter-spacing: -.02em;
}

.report-results-card {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}

.report-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 24px 16px;
}

.report-results-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
}

.report-results-head .eyebrow {
  margin-bottom: 5px;
}

.report-table-wrap {
  margin: 0;
  overflow-x: auto;
  border-radius: 0;
  box-shadow: none;
}

.report-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.report-table th {
  padding: 12px 14px;
  color: #5d7187;
  background: #f5f8fb;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.report-table td {
  padding: 14px;
  color: #334b63;
  border-bottom: 1px solid #e6edf3;
  font-size: 13px;
  line-height: 1.35;
  vertical-align: middle;
}

.report-table tbody tr:last-child td {
  border-bottom: 0;
}

.report-table tbody tr:hover {
  background: #fbfdff;
}

.report-table td strong {
  color: var(--navy);
}

.report-cell-sub {
  display: block;
  margin-top: 3px;
  color: #8191a2;
  font-size: 10px;
  line-height: 1.2;
}

.call-direction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.call-direction.incoming {
  color: #17663b;
  background: #e9f6ee;
  border-color: #d4ebdc;
}

.call-direction.outgoing {
  color: #315f89;
  background: #edf4fb;
  border-color: #d6e5f2;
}

.report-empty {
  padding: 42px 18px;
  color: var(--muted);
  text-align: center;
}

.statement-builder {
  display: grid;
  gap: 18px;
}

.statement-builder-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.statement-builder-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  letter-spacing: -.015em;
}

.statement-filter-form {
  display: grid;
  grid-template-columns: minmax(180px, .9fr) minmax(180px, .9fr) minmax(320px, 1.35fr);
  gap: 12px;
  align-items: end;
  padding: 20px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.statement-main-actions {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr);
  gap: 10px;
}

.statement-main-actions .primary,
.statement-pdf-action {
  width: 100%;
  height: 46px;
  min-height: 46px;
  border-radius: 9px;
}

.statement-pdf-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: var(--navy);
  background: #fff;
  border: 1px solid #cbd7e3;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.statement-help {
  padding: 18px 20px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.statement-help strong {
  color: var(--navy);
}

.statement-help p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.portal-back-control {
  margin-bottom: 10px;
}

@media (max-width: 1180px) {
  .report-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-apply {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .report-title-row,
  .statement-builder-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .report-primary-action {
    width: 100%;
  }

  .report-filter-card,
  .statement-builder {
    padding: 19px;
  }

  .report-filters {
    grid-template-columns: 1fr 1fr;
  }

  .report-filters label:nth-child(n+3),
  .report-apply {
    grid-column: 1 / -1;
  }

  .call-report-summary {
    grid-template-columns: 1fr 1fr;
  }

  .statement-filter-form {
    grid-template-columns: 1fr 1fr;
  }

  .statement-main-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .report-page,
  .statement-page {
    gap: 14px;
  }

  .report-title-row h2 {
    font-size: 29px;
  }

  .report-filter-card,
  .statement-builder {
    padding: 16px;
    border-radius: 13px;
  }

  .report-filters,
  .statement-filter-form,
  .call-report-summary {
    grid-template-columns: 1fr;
  }

  .report-filters label,
  .report-filters label:nth-child(n+3),
  .report-apply,
  .statement-main-actions {
    grid-column: auto;
  }

  .statement-main-actions {
    grid-template-columns: 1fr;
  }

  .report-filter-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-filter-footer span:last-child {
    text-align: left;
  }

  .report-table {
    min-width: 860px;
  }
}

/* MSQ PORTAL CALL STATEMENTS V11 — PROFESSIONAL WORKSPACE */

.call-history-v11 {
  display: grid;
  gap: 24px;
}

.call-v11-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.call-v11-page-head h2 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: clamp(32px, 3.2vw, 43px);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.call-v11-page-head .muted {
  max-width: 720px;
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.call-v11-report-chip {
  display: grid;
  min-width: 150px;
  padding: 15px 18px;
  background: linear-gradient(180deg, #f9fbfd, #f2f6fa);
  border: 1px solid #d9e3ec;
  border-radius: 12px;
  text-align: right;
}

.call-v11-report-chip span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.call-v11-report-chip strong {
  margin-top: 4px;
  color: var(--navy);
  font-size: 17px;
}

.call-v11-workspace {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.call-v11-controls {
  padding: 0;
  overflow: hidden;
  position: sticky;
  top: 88px;
}

.call-v11-controls-head {
  padding: 20px 21px 17px;
  border-bottom: 1px solid var(--line);
}

.call-v11-controls-head .eyebrow {
  margin-bottom: 5px;
}

.call-v11-controls-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  letter-spacing: -.02em;
}

.call-v11-controls-head p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.call-v11-period-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px 17px 0;
}

.call-v11-period-shortcuts button {
  min-height: 38px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}

.call-v11-form {
  display: grid;
  gap: 13px;
  padding: 16px 17px 17px;
}

.call-v11-date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.call-v11-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.call-v11-field > span {
  color: #536b84;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.call-v11-field input,
.call-v11-field select {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 0 11px;
  color: #243b53;
  background: #fff;
  border: 1px solid #ccd8e3;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 1px 2px rgb(16 42 67 / 3%);
}

.call-v11-field input:focus,
.call-v11-field select:focus {
  outline: none;
  border-color: #7896b4;
  box-shadow: 0 0 0 3px rgb(76 123 168 / 10%);
}

.call-v11-field input:disabled {
  color: #536b84;
  background: #f5f8fb;
}

.call-v11-apply {
  width: 100%;
  min-height: 44px;
  margin-top: 1px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
}

.call-v11-pdf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 17px 17px;
  min-height: 48px;
  padding: 10px 13px;
  color: #fff;
  background: linear-gradient(135deg, #203958, #315d82);
  border: 1px solid #294b6d;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 7px 17px rgb(24 52 80 / 13%);
}

.call-v11-pdf:hover {
  color: #fff;
}

.call-v11-pdf span {
  opacity: .76;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.call-v11-pdf strong {
  font-size: 12px;
}

.call-v11-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.call-v11-summary > div {
  min-height: 73px;
  padding: 14px 17px;
}

.call-v11-summary > div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.call-v11-summary > div:nth-child(-n+2) {
  border-bottom: 1px solid var(--line);
}

.call-v11-summary span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.call-v11-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
}

.call-v11-report {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.call-v11-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 84px;
  padding: 18px 22px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  border-bottom: 1px solid var(--line);
}

.call-v11-report-head .eyebrow {
  margin-bottom: 3px;
}

.call-v11-report-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  letter-spacing: -.02em;
}

.call-v11-report-meta {
  display: grid;
  gap: 3px;
  text-align: right;
}

.call-v11-report-meta span {
  color: var(--muted);
  font-size: 11px;
}

.call-v11-report-meta strong {
  color: var(--ink);
  font-size: 11px;
}

.call-v11-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.call-v11-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  table-layout: fixed;
}

.call-v11-col-date { width: 15%; }
.call-v11-col-direction { width: 12%; }
.call-v11-col-line { width: 17%; }
.call-v11-col-remote { width: 17%; }
.call-v11-col-location { width: 19%; }
.call-v11-col-duration { width: 10%; }
.call-v11-col-status { width: 10%; }

.call-v11-table thead {
  background: #f4f7fa;
}

.call-v11-table th {
  padding: 11px 12px;
  color: #536b84;
  border-bottom: 1px solid #d8e2eb;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .11em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.call-v11-table td {
  height: 59px;
  padding: 10px 12px;
  color: #334e68;
  border-bottom: 1px solid #e5ebf1;
  font-size: 12px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.call-v11-table tbody tr:last-child td {
  border-bottom: 0;
}

.call-v11-table tbody tr:hover {
  background: #fbfdff;
}

.call-v11-table td:first-child strong {
  color: #243b53;
  font-size: 13px;
}

.call-v11-table .report-cell-sub {
  margin-top: 2px;
  color: #829ab1;
  font-size: 9px;
}

.call-v11-table .call-direction {
  min-height: 23px;
  padding: 3px 8px;
  border: 1px solid transparent;
  font-size: 9px;
}

.call-v11-table .call-direction.outgoing {
  color: #2c5f88;
  background: #edf5fb;
  border-color: #d4e5f2;
}

.call-v11-table .call-direction.incoming {
  color: #26734b;
  background: #edf8f2;
  border-color: #d6ebdf;
}

.call-status-label {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  color: #486581;
  font-size: 11px;
  font-weight: 650;
}

.call-v11-table .report-empty {
  padding: 52px 18px;
}

@media (max-width: 1100px) {
  .call-v11-workspace {
    grid-template-columns: 285px minmax(0, 1fr);
    gap: 15px;
  }

  .call-v11-controls-head,
  .call-v11-form {
    padding-left: 15px;
    padding-right: 15px;
  }

  .call-v11-period-shortcuts {
    padding-left: 15px;
    padding-right: 15px;
  }

  .call-v11-pdf {
    margin-left: 15px;
    margin-right: 15px;
  }
}

@media (max-width: 860px) {
  .call-v11-page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .call-v11-report-chip {
    min-width: 0;
    width: 100%;
    text-align: left;
  }

  .call-v11-workspace {
    grid-template-columns: 1fr;
  }

  .call-v11-controls {
    position: static;
  }

  .call-v11-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .call-v11-date-grid,
  .call-v11-field-wide,
  .call-v11-apply {
    grid-column: 1 / -1;
  }

  .call-v11-summary {
    grid-template-columns: repeat(4, 1fr);
  }

  .call-v11-summary > div,
  .call-v11-summary > div:nth-child(odd),
  .call-v11-summary > div:nth-child(-n+2) {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .call-v11-summary > div:last-child {
    border-right: 0;
  }
}

@media (max-width: 600px) {
  .call-history-v11 {
    gap: 17px;
  }

  .call-v11-page-head h2 {
    font-size: 30px;
  }

  .call-v11-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .call-v11-date-grid {
    grid-template-columns: 1fr;
  }

  .call-v11-date-grid,
  .call-v11-field-wide,
  .call-v11-apply {
    grid-column: auto;
  }

  .call-v11-summary {
    grid-template-columns: 1fr 1fr;
  }

  .call-v11-summary > div:nth-child(2) {
    border-right: 0;
  }

  .call-v11-summary > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .call-v11-report-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .call-v11-report-meta {
    text-align: left;
  }
}



/* MSQ PORTAL CALL STATEMENTS V12 — COMPACT REFINEMENT */

/* Reduce excessive whitespace below portal header / section navigation */
.call-history-v11 {
  gap: 18px;
}

.call-v11-page-head {
  align-items: center;
  min-height: 0;
  margin-top: -4px;
  padding: 0;
}

.call-v11-page-head h2 {
  margin-top: 0;
  font-size: clamp(30px, 2.8vw, 38px);
}

.call-v11-page-head .eyebrow {
  margin-bottom: 5px;
}

.call-v11-page-head .muted {
  margin-top: 6px;
  line-height: 1.45;
}

.call-v11-report-chip {
  min-width: 142px;
  padding: 12px 16px;
}

/* More balanced desktop workspace */
.call-v11-workspace {
  grid-template-columns: 305px minmax(0, 1fr);
  gap: 18px;
}

/* Sidebar rhythm */
.call-v11-controls-head {
  padding: 18px 18px 15px;
}

.call-v11-controls-head h3 {
  font-size: 19px;
}

.call-v11-controls-head p:last-child {
  margin-top: 5px;
}

.call-v11-period-shortcuts {
  gap: 8px;
  padding: 14px 16px 0;
}

.call-v11-period-shortcuts button {
  height: 40px;
  min-height: 40px;
  padding: 0 8px;
}

.call-v11-form {
  gap: 12px;
  padding: 14px 16px 16px;
}

.call-v11-date-grid {
  gap: 8px;
}

/* Every field now follows one identical sizing system */
.call-v11-field {
  gap: 5px;
}

.call-v11-field > span {
  min-height: 13px;
  line-height: 13px;
}

.call-v11-field input,
.call-v11-field select {
  display: block;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  line-height: 44px;
}

/* Safari date controls need explicit visual normalization */
.call-v11-field input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  line-height: normal;
}

.call-v11-field input[type="date"]::-webkit-date-and-time-value {
  min-height: 44px;
  padding: 0;
  text-align: center;
}

.call-v11-field select {
  line-height: normal;
}

/* Make date pair visually identical to full-width fields */
.call-v11-date-grid .call-v11-field {
  min-width: 0;
}

.call-v11-date-grid input {
  width: 100%;
}

/* Actions match field width / height */
.call-v11-apply {
  height: 44px;
  min-height: 44px;
  margin-top: 1px;
}

.call-v11-pdf {
  min-height: 46px;
  margin: 0 16px 16px;
  padding: 9px 12px;
}

/* Tighten summary block */
.call-v11-summary > div {
  min-height: 68px;
  padding: 12px 16px;
}

.call-v11-summary strong {
  font-size: 22px;
}

/* Tighten report card top without crowding */
.call-v11-report-head {
  min-height: 76px;
  padding: 15px 20px;
}

.call-v11-report-head h3 {
  font-size: 19px;
}

/* Slightly denser rows */
.call-v11-table td {
  height: 56px;
  padding-top: 9px;
  padding-bottom: 9px;
}

/* Reduce top spacing created by portal navigation area specifically on this page */
.portal-back-control + .section-nav + .call-history-v11,
.section-nav + .call-history-v11 {
  margin-top: -2px;
}

@media (max-width: 1100px) {
  .call-v11-workspace {
    grid-template-columns: 290px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .call-v11-page-head {
    align-items: flex-start;
  }

  .call-v11-workspace {
    grid-template-columns: 1fr;
  }

  .call-v11-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .call-v11-date-grid {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .call-v11-page-head h2 {
    font-size: 28px;
  }

  .call-v11-form {
    grid-template-columns: 1fr;
  }

  .call-v11-date-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MSQ CUSTOMER PORTAL — CANONICAL DESIGN SYSTEM P3
   Presentation layer only.
   Existing routes, content, IDs, APIs and actions are unchanged.
   ========================================================= */

:root {
  --portal-width: 1360px;

  --portal-bg: #f3f6fa;
  --portal-surface: #ffffff;
  --portal-surface-soft: #f8fafc;
  --portal-surface-blue: #f2f7fc;

  --portal-navy: #193754;
  --portal-navy-2: #274f73;
  --portal-blue: #346f9f;

  --portal-text: #2d465f;
  --portal-muted: #708296;

  --portal-line: #dce5ee;
  --portal-line-strong: #cbd8e5;

  --portal-radius: 16px;
  --portal-radius-sm: 11px;

  --portal-shadow:
    0 1px 2px rgb(28 49 72 / 4%),
    0 8px 24px rgb(28 49 72 / 5%);

  --portal-control-height: 46px;
}

/* =========================================================
   GLOBAL
   ========================================================= */

html {
  background: var(--portal-bg);
}

body {
  color: var(--portal-text);
  background:
    linear-gradient(180deg, #f8fafc 0, var(--portal-bg) 260px);
}

.card,
.table-wrap,
.billing-panel,
.billing-side-card,
.location-card,
.phone-line-card,
.account-profile,
.account-security,
.account-session,
.statement-builder {
  border: 1px solid var(--portal-line);
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
  box-shadow: var(--portal-shadow);
}

/* =========================================================
   TOP HEADER
   ========================================================= */

.portal-header {
  position: relative;
  z-index: 20;

  min-height: 74px;

  padding:
    10px
    max(28px, calc((100vw - var(--portal-width)) / 2 + 32px));

  gap: 34px;

  background: rgb(255 255 255 / 97%);
  border-bottom: 1px solid var(--portal-line);
  box-shadow: 0 2px 12px rgb(28 49 72 / 4%);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logo-link {
  flex: 0 0 auto;
  width: 170px;
  height: 52px;
}

.logo-link img,
.portal-header .brand img,
.portal-header > a:first-child img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 52px;
  object-fit: contain;
}

.primary-nav {
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 48px;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;

  padding: 8px 14px !important;

  color: #60768b;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 700;

  transition:
    color .15s ease,
    background .15s ease,
    border-color .15s ease;
}

.primary-nav a:hover {
  color: var(--portal-navy);
  background: #f4f7fa;
}

.primary-nav a.active {
  color: var(--portal-navy);
  background: #edf4fa;
  border-color: #d7e4ef;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */

.portal-main {
  width: min(var(--portal-width), 100%);
  margin: 0 auto;
  padding: 26px 32px 76px;
}

/* =========================================================
   HOME
   ========================================================= */

.welcome {
  margin: 0 0 24px;
  padding: 25px 27px;

  background:
    linear-gradient(135deg, #ffffff 0%, #f3f8fc 100%);

  border: 1px solid #d9e5ef;
  border-radius: 18px;
  box-shadow: var(--portal-shadow);
}

.welcome h1 {
  margin: 0;
  color: var(--portal-navy);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 790;
  letter-spacing: -.035em;
}

.welcome .muted {
  margin-top: 6px;
  color: var(--portal-muted);
  font-size: 13px;
  font-weight: 650;
}

/* =========================================================
   BACK LINK
   ========================================================= */

.portal-back-control {
  min-height: 18px;
  margin: 0 0 9px;
}

.portal-back-control a {
  display: inline-flex;
  align-items: center;

  color: #697e92;

  font-size: 12px;
  font-weight: 700;

  text-decoration: none;
}

.portal-back-control a:hover {
  color: var(--portal-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   PAGE HEADER
   ========================================================= */

.portal-page-header-v13 {
  display: block;

  width: 100%;

  margin: 0 0 13px;
  padding: 21px 23px;

  background:
    linear-gradient(135deg, #ffffff 0%, #f6fafe 100%);

  border: 1px solid var(--portal-line);
  border-radius: var(--portal-radius);

  box-shadow: var(--portal-shadow);
}

.portal-page-header-v14-inner {
  min-height: 0;
}

.portal-page-header-v13 h1 {
  margin: 0;

  color: var(--portal-navy);

  font-size: clamp(27px, 2.4vw, 32px);
  font-weight: 790;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.portal-page-header-v13 p {
  max-width: 760px;

  margin: 6px 0 0;

  color: var(--portal-muted);

  font-size: 13px;
  line-height: 1.48;
}

/* =========================================================
   SECTION TABS
   ========================================================= */

.section-nav {
  display: flex;
  align-items: center;

  gap: 5px;

  min-height: 50px;

  margin: 0 0 23px;
  padding: 5px;

  background: #ffffff;

  border: 1px solid var(--portal-line);
  border-radius: 13px;

  box-shadow: 0 1px 4px rgb(28 49 72 / 3%);

  overflow-x: auto;
  overflow-y: hidden;

  scrollbar-width: none;
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.section-nav a,
.section-nav button {
  flex: 0 0 auto;

  min-height: 38px;

  margin: 0;
  padding: 8px 13px;

  color: #667b90;
  background: transparent;

  border: 0;
  border-radius: 9px;

  font-size: 12px;
  font-weight: 720;

  text-decoration: none;
  white-space: nowrap;
}

.section-nav a:hover,
.section-nav button:hover {
  color: var(--portal-navy);
  background: #f4f7fa;
}

.section-nav a.active,
.section-nav button.active,
.section-nav .active {
  color: var(--portal-navy);
  background: #eaf2f9;

  box-shadow: inset 0 0 0 1px #d5e3ee;
}

.section-nav a.active::after,
.section-nav button.active::after,
.section-nav .active::after {
  display: none;
}

/* =========================================================
   REMOVE LEGACY DUPLICATE TITLES
   ========================================================= */

.portal-page-body-v13 {
  margin: 0;
  padding: 0;
}

.portal-page-body-v13 > .billing-title:first-child,
.portal-page-body-v13 > .services-title:first-child,
.portal-page-body-v13 > .account-title:first-child,
.portal-page-body-v13 > .report-title-row:first-child,
.portal-page-body-v13 > h1:first-child,
.portal-page-body-v13 > h2:first-child,

.portal-page-body-v13 .call-history-v11 > .call-v11-page-head:first-child,
.portal-page-body-v13 .call-history-v11 > .report-title-row:first-child,
.portal-page-body-v13 .call-history-v11 > header:first-child,

.portal-page-body-v13 .report-page > .report-title-row:first-child,
.portal-page-body-v13 .phone-lines-page > h2:first-child {
  display: none !important;
}

/* =========================================================
   COMMON TABLES
   ========================================================= */

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-wrap thead {
  background: #f5f8fb;
}

.table-wrap th {
  padding: 13px 17px;

  color: #647b91;

  border-bottom: 1px solid var(--portal-line);

  font-size: 10px;
  font-weight: 820;
  letter-spacing: .055em;

  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.table-wrap td {
  padding: 16px 17px;

  color: #334f68;

  border-bottom: 1px solid #e7edf3;

  font-size: 13px;
  vertical-align: middle;
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap tbody tr {
  transition: background .14s ease;
}

.table-wrap tbody tr:hover {
  background: #f8fbfd;
}

.table-wrap td a {
  color: #2f6f9f;
  font-weight: 720;
}

/* =========================================================
   ACTION LINKS
   ========================================================= */

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 32px;

  margin: 2px 3px 2px 0;
  padding: 5px 9px;

  color: #315f85;

  background: #f1f6fa;
  border: 1px solid #d7e4ee;
  border-radius: 8px;

  font-size: 11px;
  font-weight: 760;

  text-decoration: none;
}

.button-link:hover {
  color: var(--portal-navy);
  background: #e7f0f7;
}

/* =========================================================
   EMPTY STATES
   ========================================================= */

.empty,
.billing-empty,
.services-empty {
  display: grid;

  min-height: 180px;

  padding: 34px 24px;

  place-items: center;
  align-content: center;

  color: var(--portal-muted);

  background:
    linear-gradient(180deg, #ffffff, #fafcfe);

  border: 1px solid var(--portal-line);
  border-radius: var(--portal-radius);

  box-shadow: var(--portal-shadow);

  font-size: 13px;
  text-align: center;
}

/* =========================================================
   BILLING
   ========================================================= */

.billing-hero {
  border-radius: 18px;

  background:
    linear-gradient(135deg, #193754 0%, #285678 100%);

  box-shadow: 0 14px 34px rgb(25 55 84 / 16%);
}

.billing-metrics {
  gap: 14px;
}

.billing-metrics > *,
.billing-metrics a {
  border: 1px solid var(--portal-line);
  border-radius: 14px;

  background: #fff;

  box-shadow: var(--portal-shadow);
}

.billing-layout {
  gap: 20px;
}

.billing-main-column,
.billing-side-column {
  gap: 20px;
}

.billing-panel,
.billing-side-card {
  overflow: hidden;
}

.billing-panel-head {
  padding: 20px 21px 15px;

  background:
    linear-gradient(180deg, #ffffff, #fbfcfe);
}

.billing-record {
  padding: 17px 21px;
}

.statement-card {
  background:
    linear-gradient(145deg, #203d5a, #315f82);
}

/* =========================================================
   SERVICES SUMMARY
   ========================================================= */

.services-metrics {
  gap: 14px;
  margin-bottom: 20px;
}

.services-metrics > div {
  position: relative;

  padding: 20px 21px;

  background:
    linear-gradient(145deg, #ffffff, #f8fbfd);

  border: 1px solid var(--portal-line);
  border-radius: 15px;

  box-shadow: var(--portal-shadow);
}

.services-metrics > div::before {
  position: absolute;

  top: 0;
  right: 18px;
  left: 18px;

  height: 3px;

  background:
    linear-gradient(90deg, #5286af, #9cbdd5);

  border-radius: 0 0 4px 4px;

  content: "";
}

.services-metrics strong {
  color: var(--portal-navy);
  font-size: 28px;
}

.locations-list {
  gap: 18px;
}

.location-card {
  overflow: hidden;
}

.location-head {
  padding: 21px 22px 18px;

  background:
    linear-gradient(135deg, #ffffff, #f6fafe);
}

.location-head h3 {
  color: var(--portal-navy);
  font-size: 20px;
}

.location-counts {
  gap: 7px;
}

.location-counts span {
  background: #edf4fa;
  border: 1px solid #dbe8f1;
}

.service-row {
  padding: 18px 22px;
}

.service-row:hover {
  background: #fafcfe;
}

.service-numbers > span {
  background: #f5f8fb;

  border: 1px solid #dfe8f0;
  border-radius: 9px;
}

/* =========================================================
   PHONE LINES
   ========================================================= */

.phone-line-card {
  padding: 18px;
}

.phone-line-card-head strong {
  color: var(--portal-navy);
}

.phone-line-card dl {
  padding-top: 14px;
  border-top: 1px solid var(--portal-line);
}

/* =========================================================
   ACCOUNT
   ========================================================= */

.account-layout {
  gap: 20px;
}

.account-layout > div {
  gap: 18px;
}

.account-profile {
  overflow: hidden;
}

.account-profile-head {
  padding: 22px 23px;

  background:
    linear-gradient(135deg, #193754 0%, #2d5c80 100%);
}

.account-mark {
  border-radius: 12px;
}

.profile-field {
  padding: 18px 20px;
}

.account-security {
  padding: 22px;
}

.account-session {
  padding: 19px 21px;
}

/* =========================================================
   SHARED FORM CONTROLS
   ========================================================= */

.call-v11-field input,
.call-v11-field select,
.statement-filter-form input,
.password-form input {
  display: block;

  box-sizing: border-box;

  width: 100%;
  height: var(--portal-control-height);
  min-height: var(--portal-control-height);

  margin: 0;
  padding: 0 13px;

  color: var(--portal-text);

  background: #ffffff;

  border: 1px solid var(--portal-line-strong);
  border-radius: 10px;

  box-shadow:
    inset 0 1px 1px rgb(28 49 72 / 2%),
    0 1px 2px rgb(28 49 72 / 3%);

  font: inherit;
  font-size: 13px;

  transition:
    border-color .15s ease,
    box-shadow .15s ease;
}

.call-v11-field input:focus,
.call-v11-field select:focus,
.statement-filter-form input:focus,
.password-form input:focus {
  outline: none;

  border-color: #7ba4c5;

  box-shadow:
    0 0 0 3px rgb(71 123 164 / 11%);
}

.call-v11-field input[type="date"],
.statement-filter-form input[type="date"] {
  -webkit-appearance: none;
  appearance: none;

  text-align: left;
}

.call-v11-field input[type="date"]::-webkit-date-and-time-value,
.statement-filter-form input[type="date"]::-webkit-date-and-time-value {
  width: 100%;
  min-height: 44px;

  margin: 0;
  padding: 0;

  text-align: left;
}


/* =========================================================
   SERVICES SECTION NAV — P11
   Stable navigation for:
   Sites / Services / Phone Lines / Call Statements
   ========================================================= */

.section-nav[aria-label="services navigation"] {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;

  align-items: stretch;

  gap: 8px !important;

  width: 100% !important;

  padding: 8px !important;

  box-sizing: border-box;
}

.section-nav[aria-label="services navigation"] > a {
  display: flex !important;

  align-items: center;
  justify-content: center;

  width: 100% !important;
  min-width: 0 !important;

  margin: 0 !important;

  text-align: center;
}

/* Keep the active destination visually clear. */
.section-nav[aria-label="services navigation"] > a.active {
  width: 100% !important;
}

/* iPhone / narrow layouts: horizontal strip instead of squeezed labels. */
@media (max-width: 720px) {
  .section-nav[aria-label="services navigation"] {
    display: flex !important;

    gap: 6px !important;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
  }

  .section-nav[aria-label="services navigation"] > a {
    flex: 0 0 auto;

    width: auto !important;
    min-width: max-content !important;

    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* =========================================================
   INVOICE TABLE ACTIONS — P23
   Customer-facing status + PDF document icon
   ========================================================= */

.invoice-table-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.invoice-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.invoice-action-separator {
  color: var(--muted);
}

.table-wrap td a.invoice-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.invoice-pdf-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =========================================================
   BILLING SECTION NAV — P22
   Match Services navigation geometry:
   Overview / Invoices / Payments / Statements / AutoPay /
   Credits & Refunds
   ========================================================= */

.section-nav[aria-label="billing navigation"] {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;

  align-items: stretch;

  gap: 8px !important;

  width: 100% !important;

  padding: 8px !important;

  box-sizing: border-box;
}

.section-nav[aria-label="billing navigation"] > a {
  display: flex !important;

  align-items: center;
  justify-content: center;

  width: 100% !important;
  min-width: 0 !important;

  margin: 0 !important;

  text-align: center;
}

.section-nav[aria-label="billing navigation"] > a.active {
  width: 100% !important;
}

/* Narrow layouts: same horizontal-strip behavior as Services. */
@media (max-width: 720px) {
  .section-nav[aria-label="billing navigation"] {
    display: flex !important;

    gap: 6px !important;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
  }

  .section-nav[aria-label="billing navigation"] > a {
    flex: 0 0 auto;

    width: auto !important;
    min-width: max-content !important;

    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}


/* =========================================================
   CALL STATEMENTS — PAGE COMPLETE P10
   Canonical field geometry + Safari/iPad date control
   ========================================================= */

/* ---------------------------------------------------------
   PAGE WORKSPACE
   --------------------------------------------------------- */

.call-history-v11 {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.call-v11-workspace {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 20px !important;
  min-width: 0;
}

.call-v11-workspace > * {
  min-width: 0;
}

.call-v11-controls {
  position: static !important;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.call-v11-controls-head {
  padding: 18px 18px 15px;
  background:
    linear-gradient(135deg, #f9fbfd 0%, #f2f7fb 100%);
  border-bottom: 1px solid var(--portal-line, #dce5ed);
}

.call-v11-controls-head .eyebrow {
  margin-bottom: 5px;
}

.call-v11-controls-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.25;
}

.call-v11-controls-head p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

/* ---------------------------------------------------------
   MONTH SHORTCUTS
   --------------------------------------------------------- */

.call-v11-period-shortcuts {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100%;
  min-width: 0;
  padding: 14px 16px 0;
}

.call-v11-period-shortcuts button {
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  box-sizing: border-box;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 760;
}

/* ---------------------------------------------------------
   FILTER GRID

   Row 1:
     FROM                       TO

   Row 2:
     PHONE LINE    LOCATION     DIRECTION

   Row 3:
     APPLY FILTERS
   --------------------------------------------------------- */

.call-v11-form {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100%;
  min-width: 0;
  padding: 14px 16px 16px !important;
  box-sizing: border-box;
}

.call-v11-date-grid {
  display: grid !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.call-v11-field,
.call-v11-date-grid .call-v11-field {
  display: grid !important;
  grid-column: auto !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.call-v11-field-wide {
  grid-column: auto !important;
}

.call-v11-field > span {
  display: block;
  min-height: 12px;
  margin: 0;
  color: #65798e;
  font-size: 9px;
  font-weight: 850;
  line-height: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   ONE CONTROL GEOMETRY
   --------------------------------------------------------- */

.call-v11-field input,
.call-v11-field select {
  display: block !important;

  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;

  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;

  margin: 0 !important;
  padding: 0 13px !important;

  box-sizing: border-box !important;

  color: #263f59;
  background-color: #fff;

  border: 1px solid #cbd8e4 !important;
  border-radius: 10px !important;

  outline: none;

  font-family: inherit;
  font-size: 13px;
  font-weight: 520;
  line-height: normal;

  box-shadow:
    0 1px 2px rgb(25 48 73 / 2%);
}

.call-v11-field input:focus,
.call-v11-field select:focus {
  border-color: #7398b8 !important;
  box-shadow:
    0 0 0 3px rgb(69 127 172 / 10%);
}

.call-v11-field input:disabled {
  color: #526a81;
  background: #f5f8fb;
}

/* ---------------------------------------------------------
   DATE CONTROLS — STABLE SAFARI / iPAD SHELL

   Safari keeps the real native picker.
   MSQ owns the visible field geometry.
   --------------------------------------------------------- */

.call-v11-date-field {
  min-width: 0 !important;
}

.call-v11-date-shell {
  position: relative;

  display: flex;
  align-items: center;

  width: 100%;
  min-width: 0;
  max-width: 100%;

  height: 46px;
  min-height: 46px;
  max-height: 46px;

  box-sizing: border-box;

  color: #263f59;
  background: #fff;

  border: 1px solid #cbd8e4;
  border-radius: 10px;

  box-shadow: 0 1px 2px rgb(25 48 73 / 2%);

  overflow: hidden;
}

.call-v11-date-shell:focus-within {
  border-color: #7398b8;

  box-shadow:
    0 0 0 3px rgb(69 127 172 / 10%);
}

.call-v11-date-display {
  display: block;
  flex: 1 1 auto;

  min-width: 0;

  padding: 0 44px 0 13px;

  box-sizing: border-box;

  color: #263f59;

  font-family: inherit;
  font-size: 13px;
  font-weight: 520;
  line-height: 44px;

  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  pointer-events: none;
  user-select: none;
}

.call-v11-date-icon {
  position: absolute;

  top: 50%;
  right: 13px;

  width: 18px;
  height: 18px;

  transform: translateY(-50%);

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235d7892' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;

  pointer-events: none;
}

.call-v11-date-shell > .call-v11-date-native,
.call-v11-date-field input.call-v11-date-native[type="date"] {
  -webkit-appearance: auto !important;
  appearance: auto !important;

  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;

  display: block !important;

  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;

  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  box-sizing: border-box !important;

  color: transparent !important;
  background: transparent !important;

  border: 0 !important;
  border-radius: 10px !important;

  box-shadow: none !important;

  opacity: 0 !important;

  cursor: pointer;
}

.call-v11-date-native::-webkit-date-and-time-value,
.call-v11-date-native::-webkit-datetime-edit,
.call-v11-date-native::-webkit-calendar-picker-indicator {
  opacity: 0 !important;
}

/* ---------------------------------------------------------
   ACTIONS
   --------------------------------------------------------- */

.call-v11-apply {
  grid-column: 1 / -1 !important;

  width: 100% !important;

  height: 46px !important;
  min-height: 46px !important;

  margin: 0 !important;

  border-radius: 10px !important;

  font-size: 13px;
  font-weight: 820;
}

.call-v11-pdf {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  min-height: 46px;

  margin: 0 16px 16px !important;
  padding: 9px 13px !important;

  color: #fff !important;

  background:
    linear-gradient(135deg, #203a5b 0%, #286286 100%) !important;

  border: 1px solid #2c5879 !important;
  border-radius: 10px !important;

  text-decoration: none;

  box-shadow:
    0 6px 15px rgb(29 61 91 / 11%);
}

.call-v11-pdf:hover {
  color: #fff !important;
}

.call-v11-pdf span {
  color: rgb(255 255 255 / 75%);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.call-v11-pdf strong {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

/* ---------------------------------------------------------
   SUMMARY
   --------------------------------------------------------- */

.call-v11-summary {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;

  width: 100%;
  min-width: 0;

  border-top: 1px solid var(--portal-line, #dce5ed);
}

.call-v11-summary > div,
.call-v11-summary > div:nth-child(odd),
.call-v11-summary > div:nth-child(-n+2) {
  min-width: 0;

  padding: 12px 16px;

  border-right: 1px solid var(--portal-line, #dce5ed);
  border-bottom: 0;
}

.call-v11-summary > div:last-child {
  border-right: 0;
}

.call-v11-summary span {
  display: block;

  color: #687d92;

  font-size: 8px;
  font-weight: 850;
  letter-spacing: .11em;

  text-transform: uppercase;
}

.call-v11-summary strong {
  display: block;

  margin-top: 4px;

  color: var(--navy);

  font-size: 22px;
  line-height: 1;
}

/* ---------------------------------------------------------
   RESULT CARD
   --------------------------------------------------------- */

.call-v11-report {
  width: 100%;
  min-width: 0;

  padding: 0;
  overflow: hidden;
}

.call-v11-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  min-height: 74px;

  padding: 15px 20px;

  background:
    linear-gradient(180deg, #fff 0%, #fbfcfe 100%);

  border-bottom: 1px solid var(--portal-line, #dce5ed);
}

.call-v11-report-head h3 {
  margin: 0;

  color: var(--navy);

  font-size: 19px;
  letter-spacing: -.02em;
}

.call-v11-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .call-v11-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .call-v11-date-grid {
    grid-column: 1 / -1 !important;
  }

  .call-v11-apply {
    grid-column: 1 / -1 !important;
  }
}

/* ---------------------------------------------------------
   PHONE / NARROW
   --------------------------------------------------------- */

@media (max-width: 720px) {
  .call-v11-period-shortcuts {
    grid-template-columns: 1fr !important;
  }

  .call-v11-form {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .call-v11-date-grid {
    grid-column: auto !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .call-v11-field,
  .call-v11-field-wide,
  .call-v11-apply {
    grid-column: auto !important;
  }

  .call-v11-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .call-v11-summary > div:nth-child(2) {
    border-right: 0;
  }

  .call-v11-summary > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--portal-line, #dce5ed);
  }

  .call-v11-report-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .call-v11-report-meta {
    text-align: left;
  }
}



/* =========================================================
   PHONE LINE DETAIL — P12
   Billing History + detail-route polish
   ========================================================= */

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

.phone-line-card-actions > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  text-align: center;
}

.phone-line-history-page {
  display: grid;
  gap: 18px;
}

.phone-line-history-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;

  padding: 2px 2px 0;
}

.phone-line-history-head-copy {
  min-width: 0;
}

.phone-line-history-head .eyebrow {
  margin: 0 0 6px;
}

.phone-line-history-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
}

.phone-line-history-title-row h2 {
  margin: 0;

  color: var(--portal-navy);

  font-size: clamp(25px, 2.5vw, 31px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.phone-line-history-number {
  display: inline-flex;
  align-items: center;

  min-height: 32px;

  padding: 5px 10px;

  color: #49657e;
  background: #eef4f8;
  border: 1px solid #d8e4ed;
  border-radius: 8px;

  font-size: 13px;
  font-weight: 750;
  letter-spacing: .01em;
}

.phone-line-history-head > p {
  max-width: 470px;

  margin: 0;

  color: #6c8195;

  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

.phone-line-history-table {
  min-width: 0;
}

.phone-line-history-table .table-wrap {
  margin: 0;
}

.phone-line-history-empty {
  display: flex;
  align-items: center;
  gap: 16px;

  min-height: 0;

  padding: 24px 26px;
}

.phone-line-history-empty-icon {
  display: grid;
  flex: 0 0 46px;

  width: 46px;
  height: 46px;

  color: #557792;
  background: #eef5fa;
  border: 1px solid #d9e5ee;
  border-radius: 12px;

  place-items: center;
}

.phone-line-history-empty-icon svg {
  width: 23px;
  height: 23px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-line-history-empty > div {
  min-width: 0;
}

.phone-line-history-empty strong {
  display: block;

  margin: 0 0 4px;

  color: var(--portal-navy);

  font-size: 15px;
  line-height: 1.35;
}

.phone-line-history-empty p {
  margin: 0;

  color: #6d8194;

  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .phone-line-history-page {
    gap: 15px;
  }

  .phone-line-history-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .phone-line-history-head > p {
    max-width: none;
    text-align: left;
  }

  .phone-line-history-title-row {
    gap: 8px;
  }

  .phone-line-history-title-row h2 {
    font-size: 25px;
  }

  .phone-line-history-empty {
    align-items: flex-start;
    padding: 20px 18px;
  }
}

@media (max-width: 430px) {
  .phone-line-card-actions {
    grid-template-columns: 1fr;
  }

  .phone-line-history-empty {
    gap: 13px;
  }

  .phone-line-history-empty-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
}


/* =========================================================
   SERVICES AUTHORITATIVE LINE OWNERSHIP — P13
   Each displayed phone line belongs to its service_id.
   Actions belong to the individual line, not the service row.
   ========================================================= */

.service-row {
  grid-template-columns:
    minmax(220px, .85fr)
    auto
    minmax(430px, 1.55fr) !important;

  align-items: start !important;
  column-gap: 22px !important;
}

.service-line-list {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.service-line-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-width: 0;
  gap: 14px;

  padding: 9px 10px 9px 12px;

  background: #f8fafc;
  border: 1px solid #dce6ef;
  border-radius: 10px;
}

.service-line-main {
  display: flex;
  align-items: center;

  min-width: 0;
  gap: 8px;
}

.service-line-main strong {
  color: var(--portal-navy);
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
}

.service-line-badge {
  display: inline-flex;
  align-items: center;

  min-height: 22px;

  padding: 3px 7px;

  color: #26724b;
  background: #eaf7ef;
  border-radius: 999px;

  font-size: 9px;
  font-weight: 800;
  letter-spacing: .035em;
}

.service-line-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;

  gap: 6px;
}

.service-line-actions .button-link {
  min-height: 31px;

  padding: 5px 9px;

  font-size: 11px;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .service-row {
    grid-template-columns:
      minmax(0, 1fr)
      auto !important;
  }

  .service-line-list,
  .service-no-number {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .service-line-item {
    align-items: stretch;
    flex-direction: column;
  }

  .service-line-actions {
    justify-content: flex-start;
  }
}


/* =========================================================
   SERVICES CUSTOMER POLISH — P16
   Lightweight column guidance + Device/Port context.
   ========================================================= */

.service-columns-head {
  display: grid;
  grid-template-columns:
    minmax(220px, .85fr)
    auto
    minmax(430px, 1.55fr);

  align-items: center;

  gap: 22px;

  min-height: 40px;
  padding: 11px 10px 10px;

  background: #fbfcfe;
  border-bottom: 1px solid #e6edf4;

  color: #71859a;

  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.service-columns-line {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  padding: 0 10px 0 12px;
}

.service-columns-line > span:last-child {
  min-width: 232px;
  text-align: center;
}

.service-line-main {
  flex: 1 1 auto;
}

.service-line-text {
  display: grid;

  min-width: 0;

  gap: 2px;
}

.service-line-text strong {
  line-height: 1.15;
}

.service-line-text small {
  color: #71859a;

  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
}

.service-line-actions .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 112px;
  min-height: 31px;

  text-align: center;
}

@media (max-width: 1100px) {
  .service-columns-head {
    grid-template-columns:
      minmax(0, 1fr)
      auto;
  }

  .service-columns-line {
    display: none;
  }
}

@media (max-width: 700px) {
  .service-columns-head {
    display: none;
  }

  .service-line-main {
    width: 100%;
  }

  .service-line-actions {
    width: 100%;
  }

  .service-line-actions .button-link {
    flex: 1 1 140px;
  }
}

/* =========================================================
   PDF RED FILE ICON — P24
   Customer invoice PDF action
   ========================================================= */

.invoice-pdf-icon {
  width: 23px !important;
  height: 26px !important;
  flex: 0 0 auto;
  overflow: visible;
  vertical-align: middle;

  fill: initial !important;
  stroke: none !important;
}

.invoice-pdf-icon .pdf-file-shape {
  fill: #ef4444 !important;
  stroke: none !important;
}

.invoice-pdf-icon .pdf-file-fold {
  fill: #fecaca !important;
  stroke: none !important;
}

.invoice-pdf-icon .pdf-file-band {
  fill: #c81e1e !important;
  stroke: none !important;
}

.invoice-pdf-icon .pdf-file-text {
  fill: #ffffff !important;
  stroke: none !important;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 6.4px;
  font-weight: 800;
  letter-spacing: .15px;

  pointer-events: none;
}

.table-wrap td a.invoice-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


/* =========================================================
   OFFICIAL ADOBE PDF ICON — P25
   Use unmodified 24x24 Adobe PDF file icon.
   ========================================================= */

.invoice-action-separator {
  display: none !important;
}

.invoice-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 24px !important;
}

.table-wrap td a.invoice-pdf-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  width: 24px !important;
  height: 24px !important;

  padding: 0 !important;
  margin: 0 !important;

  text-decoration: none !important;
}

.invoice-pdf-official-icon {
  display: block;

  width: 24px !important;
  height: 24px !important;

  max-width: none !important;

  object-fit: contain;
}


/* =========================================================
   INVOICE DETAIL CUSTOMER POLISH — P30
   Customer-facing invoice View page only
   ========================================================= */

.invoice-detail-page-v30 {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.invoice-detail-toolbar-v30 {
  align-items: center;
  margin-bottom: 18px;
}

.invoice-back-v30 {
  color: var(--navy);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.invoice-detail-pdf-v30 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  color: var(--navy);
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 2px 7px rgb(31 53 83 / 5%);
}

.invoice-detail-pdf-v30:hover {
  border-color: #bccddd;
  background: #f8fbfd;
}

.invoice-detail-pdf-v30 img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.invoice-detail-v30 {
  padding: 0 !important;
  overflow: hidden;
}

.invoice-detail-head-v30 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 30px 26px;
  border-bottom: 1px solid var(--line);
}

.invoice-detail-head-v30 .eyebrow {
  margin: 0 0 6px;
}

.invoice-detail-head-v30 h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(25px, 3vw, 32px);
  letter-spacing: -.025em;
}

.invoice-detail-dates-v30 {
  display: flex;
  gap: 28px;
  margin-top: 18px;
}

.invoice-detail-dates-v30 span {
  display: grid;
  gap: 3px;
}

.invoice-detail-dates-v30 small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.invoice-detail-dates-v30 strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.invoice-detail-status-v30 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.invoice-detail-status-v30.paid {
  color: #147a4b;
  background: #eaf8f1;
}

.invoice-detail-status-v30.open {
  color: #315b82;
  background: #edf4fa;
}

.invoice-detail-status-v30.partial {
  color: #8a6214;
  background: #fff7df;
}

.invoice-detail-status-v30.past-due {
  color: #b42318;
  background: #fef0ee;
}

.invoice-detail-status-v30.void {
  color: #64748b;
  background: #f1f5f9;
}

.invoice-detail-items-v30 .table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.invoice-detail-items-v30 table {
  margin: 0;
}

.invoice-detail-items-v30 th {
  background: #f7f9fc;
}

.invoice-detail-items-v30 th,
.invoice-detail-items-v30 td {
  padding-top: 15px;
  padding-bottom: 15px;
}

.invoice-detail-items-v30 th:first-child,
.invoice-detail-items-v30 td:first-child {
  padding-left: 30px;
}

.invoice-detail-items-v30 th:last-child,
.invoice-detail-items-v30 td:last-child {
  padding-right: 30px;
}

.invoice-detail-items-v30 th:nth-child(2),
.invoice-detail-items-v30 td:nth-child(2),
.invoice-detail-items-v30 th:nth-child(3),
.invoice-detail-items-v30 td:nth-child(3),
.invoice-detail-items-v30 th:nth-child(4),
.invoice-detail-items-v30 td:nth-child(4) {
  text-align: right;
}

.invoice-no-items-v30 {
  color: var(--muted);
  text-align: center !important;
}

.invoice-detail-totals-v30 {
  display: grid;
  width: min(430px, calc(100% - 60px));
  margin: 24px 30px 0 auto;
}

.invoice-detail-totals-v30 > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.invoice-detail-totals-v30 strong {
  color: var(--ink);
}

.invoice-detail-totals-v30 .balance {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
}

.invoice-detail-totals-v30 .balance strong {
  color: var(--navy);
  font-size: 20px;
}

.invoice-payment-action-v30,
.invoice-payment-state-v30 {
  margin: 24px 30px 30px;
}

.invoice-payment-action-v30 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.invoice-payment-action-v30 p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.invoice-payment-action-v30 button {
  min-height: 44px;
  padding-inline: 20px;
}

.invoice-payment-state-v30 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  border: 1px solid #d8eee3;
  border-radius: 11px;
  background: #f3fbf7;
}

.invoice-payment-state-v30 strong {
  display: block;
  color: #147a4b;
}

.invoice-payment-state-v30 p {
  margin: 3px 0 0;
  color: #557064;
  font-size: 13px;
}

.invoice-payment-state-v30.neutral {
  border-color: #e1e7ee;
  background: #f8fafc;
}

.invoice-payment-state-v30.neutral strong {
  color: var(--navy);
}

.invoice-payment-state-v30.neutral p {
  color: var(--muted);
}

.invoice-payment-check-v30 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  color: #147a4b;
  background: #dcf3e7;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
}

@media (max-width: 700px) {
  .invoice-detail-page-v30 {
    max-width: 100%;
  }

  .invoice-detail-toolbar-v30 {
    align-items: stretch;
  }

  .invoice-detail-pdf-v30 {
    width: 100%;
  }

  .invoice-detail-head-v30 {
    flex-direction: column;
    gap: 18px;
    padding: 22px 18px;
  }

  .invoice-detail-dates-v30 {
    gap: 22px;
  }

  .invoice-detail-items-v30 th:first-child,
  .invoice-detail-items-v30 td:first-child {
    padding-left: 18px;
  }

  .invoice-detail-items-v30 th:last-child,
  .invoice-detail-items-v30 td:last-child {
    padding-right: 18px;
  }

  .invoice-detail-totals-v30 {
    width: calc(100% - 36px);
    margin: 20px 18px 0;
  }

  .invoice-payment-action-v30,
  .invoice-payment-state-v30 {
    margin: 20px 18px 22px;
  }

  .invoice-payment-action-v30 {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .invoice-payment-action-v30 button {
    width: 100%;
  }
}


/* INVOICE DETAIL STACKED PHONE NUMBERS — P35 */
.invoice-item-description-v35 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.invoice-item-label-v35 {
  color: var(--ink);
  font-weight: 600;
}
.invoice-item-phone-v35 {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* =========================================================
   STATEMENTS — CANONICAL CUSTOMER LAYOUT P38
   Compact customer statement selector
   ========================================================= */

.statement-page-v38 {
  width: 100%;
  min-width: 0;
}

.statement-builder-v38 {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.statement-head-v38 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;

  padding: 19px 28px 18px;

  background:
    linear-gradient(135deg, #fbfcfe 0%, #f6f9fc 100%);

  border-bottom: 1px solid var(--portal-line);
}

.statement-head-copy-v38 {
  min-width: 0;
}

.statement-head-copy-v38 .eyebrow {
  margin: 0 0 6px;
}

.statement-head-copy-v38 h2 {
  margin: 0;

  color: var(--navy);

  font-size: 20px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: -.018em;
}

.statement-quick-buttons-v38 {
  display: grid;
  grid-template-columns: repeat(2, minmax(145px, 1fr));

  gap: 10px;
}

.statement-quick-buttons-v38 button {
  min-width: 0;

  height: 40px;
  min-height: 40px;

  margin: 0;
  padding: 0 15px;

  border-radius: 9px;

  font-size: 12px;
  font-weight: 800;

  white-space: nowrap;
}

.statement-filter-form.statement-filter-v38 {
  display: block;

  margin: 0;
  padding: 20px 28px 21px;

  background: #fff;

  border: 0;
  border-radius: 0;
}

.statement-date-grid-v38 {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(220px, 300px));

  gap: 14px;

  width: 100%;
  max-width: 620px;
}

.statement-date-field-v39 {
  display: grid;

  gap: 7px;

  min-width: 0;
}

.statement-date-field-v39 > span {
  color: #60758b;

  font-size: 10px;
  font-weight: 850;
  line-height: 1;

  letter-spacing: .08em;

  text-transform: uppercase;
}

.statement-date-shell-v39 {
  position: relative;

  display: flex;
  align-items: center;

  width: 100%;
  min-width: 0;

  height: 46px;
  min-height: 46px;
  max-height: 46px;

  box-sizing: border-box;

  color: #263f59;
  background: #fff;

  border: 1px solid #cbd8e4;
  border-radius: 10px;

  box-shadow:
    0 1px 2px rgb(25 48 73 / 2%);

  overflow: hidden;
}

.statement-date-shell-v39:focus-within {
  border-color: #7398b8;

  box-shadow:
    0 0 0 3px rgb(69 127 172 / 10%);
}

.statement-date-display-v39 {
  display: block;

  flex: 1 1 auto;

  min-width: 0;

  padding: 0 44px 0 13px;

  box-sizing: border-box;

  color: #263f59;

  font-family: inherit;
  font-size: 13px;
  font-weight: 560;
  line-height: 44px;

  text-align: left;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  pointer-events: none;
  user-select: none;
}

.statement-date-icon-v39 {
  position: absolute;

  top: 50%;
  right: 13px;

  width: 18px;
  height: 18px;

  transform: translateY(-50%);

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235d7892' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;

  pointer-events: none;
}

.statement-date-shell-v39 >
input.statement-date-native-v39[type="date"] {
  -webkit-appearance: auto !important;
  appearance: auto !important;

  position: absolute !important;

  inset: 0 !important;

  z-index: 2;

  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;

  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;

  box-shadow: none !important;

  opacity: 0;

  cursor: pointer;

  font-size: 16px !important;
}

.statement-date-shell-v39 >
input.statement-date-native-v39[type="date"]:focus {
  outline: none !important;
}

.statement-actions-v38 {
  display: flex;

  justify-content: flex-end;

  gap: 10px;

  margin-top: 16px;
  padding-top: 16px;

  border-top: 1px solid var(--portal-line);
}

.statement-actions-v38 .statement-view-v38,
.statement-actions-v38 .statement-pdf-v38 {
  width: auto;

  min-width: 180px;

  height: 46px;
  min-height: 46px;

  margin: 0;

  box-sizing: border-box;

  border-radius: 9px;
}

.statement-pdf-v38 {
  display: inline-flex !important;

  align-items: center;
  justify-content: center;

  gap: 8px;

  padding: 0 18px;

  color: var(--navy);

  background: #fff;

  border: 1px solid var(--portal-line-strong);

  font-size: 13px;
  font-weight: 800;

  text-decoration: none;
}

.statement-pdf-v38 img {
  display: block;

  width: 18px;
  height: 18px;

  flex: 0 0 18px;

  object-fit: contain;
}

@media (max-width: 720px) {

  .statement-head-v38 {
    grid-template-columns: 1fr;

    gap: 14px;

    padding: 18px 19px 16px;
  }

  .statement-quick-buttons-v38 {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    width: 100%;
  }

  .statement-filter-form.statement-filter-v38 {
    padding: 18px 19px 19px;
  }

  .statement-date-grid-v38 {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .statement-actions-v38 {
    display: grid;
    grid-template-columns: 1fr;

    margin-top: 16px;
    padding-top: 16px;
  }

  .statement-actions-v38 .statement-view-v38,
  .statement-actions-v38 .statement-pdf-v38 {
    width: 100%;
    min-width: 0;
  }
}

/*
 * =========================================================
 * MSQ CUSTOMER PORTAL — ACCOUNT AUTOPAY PRESENTATION V3
 * =========================================================
 */

.portal-account-autopay-v3 {
  padding: 30px;
  overflow: hidden;
}

.portal-autopay-title-block {
  margin-bottom: 24px;
}

.portal-autopay-eyebrow-v3,
.portal-autopay-modal-eyebrow {
  margin-bottom: 8px;
  color: #60758b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-autopay-title-row-v3 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.portal-autopay-title-row-v3 h2 {
  margin: 0 0 8px;
}

.portal-autopay-title-row-v3 p {
  margin: 0;
  color: #60758b;
  line-height: 1.55;
}

.portal-autopay-state-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.portal-autopay-state-badge.is-active {
  border-color: #ccebd9;
  background: #edf9f2;
  color: #197047;
}

.portal-autopay-state-badge.is-off {
  border-color: #dbe3ec;
  background: #f5f7fa;
  color: #52667a;
}

.portal-autopay-state-badge.is-attention {
  border-color: #f2ddb0;
  background: #fff8e8;
  color: #855f10;
}

.portal-autopay-summary-v3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.portal-autopay-summary-card-v3 {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e1e7ee;
  border-radius: 14px;
  background: #f8fafc;
}

.portal-autopay-summary-label-v3 {
  display: block;
  margin-bottom: 7px;
  color: #60758b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.portal-autopay-summary-card-v3 strong,
.portal-autopay-payment-copy-v3 strong {
  display: block;
  margin-bottom: 6px;
  color: #21364d;
  font-size: 16px;
  line-height: 1.35;
}

.portal-autopay-summary-card-v3 p,
.portal-autopay-payment-copy-v3 p,
.portal-autopay-enable-row-v3 p {
  margin: 0;
  color: #60758b;
  line-height: 1.5;
}

.portal-autopay-payment-row-v3,
.portal-autopay-enable-row-v3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px;
  border: 1px solid #e1e7ee;
  border-radius: 14px;
  background: #fff;
}

.portal-autopay-enable-row-v3 strong {
  display: block;
  margin-bottom: 5px;
  color: #21364d;
}

.portal-autopay-main-action-v3 {
  flex: 0 0 auto;
  min-width: 150px;
}

.portal-autopay-modal-backdrop {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 31, 46, .46);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.portal-autopay-modal {
  width: min(100%, 560px);
  padding: 24px;
  border: 1px solid #dce4ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(26, 43, 61, .22);
}

.portal-autopay-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.portal-autopay-modal-header h3 {
  margin: 0;
  color: #21364d;
  font-size: 22px;
  line-height: 1.25;
}

.portal-autopay-modal-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #dce4ec;
  border-radius: 10px;
  background: #fff;
  color: #52667a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.portal-autopay-modal-copy {
  margin: 18px 0;
  color: #52667a;
  line-height: 1.55;
}

.portal-autopay-consent-v3 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #dce4ec;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
}

.portal-autopay-consent-v3 input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
}

.portal-autopay-consent-v3 span {
  display: block;
  min-width: 0;
}

.portal-autopay-consent-v3 strong {
  display: block;
  margin-bottom: 5px;
  color: #21364d;
}

.portal-autopay-consent-v3 small {
  display: block;
  color: #60758b;
  font-size: 14px;
  line-height: 1.5;
}

.portal-autopay-disable-warning {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #f0d6d6;
  border-radius: 12px;
  background: #fff7f7;
}

.portal-autopay-disable-warning strong {
  display: block;
  margin-bottom: 6px;
  color: #7c2f2f;
}

.portal-autopay-disable-warning p {
  margin: 0;
  color: #6c5353;
  line-height: 1.5;
}

.portal-autopay-modal-message {
  min-height: 0;
  margin-top: 12px;
  color: #a33a3a;
  font-size: 14px;
  line-height: 1.45;
}

.portal-autopay-modal-message:not(:empty) {
  min-height: 20px;
}

.portal-autopay-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.portal-autopay-danger {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid #b63d3d;
  border-radius: 9px;
  background: #b63d3d;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.portal-autopay-danger:hover {
  background: #9f3131;
}

.portal-autopay-danger:disabled,
.portal-autopay-modal button:disabled {
  cursor: default;
  opacity: .55;
}

@media (max-width: 720px) {
  .portal-account-autopay-v3 {
    padding: 22px;
  }

  .portal-autopay-title-row-v3,
  .portal-autopay-payment-row-v3,
  .portal-autopay-enable-row-v3 {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-autopay-state-badge {
    align-self: flex-start;
  }

  .portal-autopay-summary-v3 {
    grid-template-columns: 1fr;
  }

  .portal-autopay-main-action-v3 {
    width: 100%;
  }

  .portal-autopay-modal-backdrop {
    align-items: flex-end;
    padding: 14px;
  }

  .portal-autopay-modal {
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    border-radius: 18px;
  }

  .portal-autopay-modal-actions {
    flex-direction: column-reverse;
  }

  .portal-autopay-modal-actions button {
    width: 100%;
  }
}

/*
 * ==========================================================
 * MSQ CUSTOMER PORTAL — PAYMENTS POLISH P1
 * ==========================================================
 */

.payments-page-v1 {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.payments-page-head-v1 {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 2px 0;
}

.payments-page-head-v1 .eyebrow {
  margin: 0 0 4px;
}

.payments-page-head-v1 h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.payments-page-head-v1 .muted {
  max-width: 620px;
  margin: 7px 0 0;
}

.payment-date-v1,
.payment-amount-v1 {
  color: var(--navy);
}

.payment-event-type-v1 {
  font-weight: 750;
}

.payment-event-status-v1 {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.payment-event-status-v1.payment {
  color: var(--green);
  background: var(--green-soft);
}

.payment-event-status-v1.refund {
  color: var(--blue);
  background: var(--blue-soft);
}

.payment-event-status-v1.reversal {
  color: var(--amber);
  background: var(--amber-soft);
}

.payment-event-type-v1.refund {
  color: var(--blue);
}

.payment-event-type-v1.reversal {
  color: var(--amber);
}

@media (max-width: 700px) {
  .payments-page-v1 {
    gap: 15px;
  }

  .payments-page-head-v1 {
    padding: 0;
  }

  .payments-page-head-v1 h2 {
    font-size: 25px;
  }
}

/*
 * ==========================================================
 * MSQ CUSTOMER PORTAL — CREDITS & REFUNDS POLISH P1
 * ==========================================================
 */

.credits-refunds-page-v1 {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.credits-refunds-head-v1 {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 2px 2px 0;
}

.credits-refunds-head-v1 .eyebrow {
  margin: 0 0 4px;
}

.credits-refunds-head-v1 h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.credits-refunds-head-v1 .muted {
  max-width: 650px;
  margin: 7px 0 0;
}

.credits-refunds-count-v1 {
  display: grid;
  flex: 0 0 auto;
  min-width: 118px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: right;
}

.credits-refunds-count-v1 strong {
  color: var(--navy);
  font-size: 22px;
  line-height: 1.1;
}

.credits-refunds-count-v1 span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.credit-event-date-v1,
.credit-event-amount-v1 {
  color: var(--navy);
}

.credit-event-reference-v1 {
  color: var(--ink);
  font-weight: 650;
}

.credit-event-type-v1 {
  font-weight: 750;
}

.credit-event-type-v1.credit {
  color: var(--green);
}

.credit-event-type-v1.refund {
  color: var(--blue);
}

.credit-event-type-v1.reversal {
  color: var(--amber);
}

.credit-event-status-v1 {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.credit-event-status-v1.credit {
  color: var(--green);
  background: var(--green-soft);
}

.credit-event-status-v1.refund {
  color: var(--blue);
  background: var(--blue-soft);
}

.credit-event-status-v1.reversal {
  color: var(--amber);
  background: var(--amber-soft);
}

.credit-event-status-v1.neutral {
  color: var(--muted);
  background: #eef2f6;
}

@media (max-width: 700px) {
  .credits-refunds-page-v1 {
    gap: 15px;
  }

  .credits-refunds-head-v1 {
    align-items: stretch;
    flex-direction: column;
    padding: 0;
  }

  .credits-refunds-head-v1 h2 {
    font-size: 25px;
  }

  .credits-refunds-count-v1 {
    width: 100%;
    text-align: left;
  }
}

/*
 * ==========================================================
 * MSQ CUSTOMER PORTAL — ACCOUNT & SECURITY POLISH P1
 * ==========================================================
 */

.account-page-v1,
.account-security-page-v1 {
  display: grid;
  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(290px, .65fr);
  gap: 22px;
  align-items: start;
  min-width: 0;
}

.account-security-page-v1 {
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(290px, .65fr);
}

.account-page-main-v1,
.account-page-side-v1,
.account-security-main-v1,
.account-security-side-v1 {
  min-width: 0;
}

.account-page-side-v1,
.account-security-side-v1 {
  display: grid;
  gap: 18px;
  align-content: start;
}

.account-profile-v1 {
  margin: 0;
}

.account-security-summary-v1,
.security-info-card-v1 {
  padding: 22px;
}

.account-security-summary-v1 {
  display: grid;
  gap: 15px;
}

.account-security-summary-icon-v1 {
  display: grid;
  width: 44px;
  height: 44px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 12px;
  place-items: center;
}

.account-security-summary-icon-v1 svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-security-summary-v1 .eyebrow,
.security-info-card-v1 .eyebrow {
  margin-bottom: 3px;
}

.account-security-summary-v1 h3,
.security-info-card-v1 h3 {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.3;
}

.account-security-summary-v1 .muted {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.account-security-link-v1 {
  justify-self: start;
}

.account-session-v1 {
  margin: 0;
}

.account-security-v1 {
  margin: 0;
}

.password-security-note-v1 {
  display: grid;
  gap: 3px;
  margin-top: 16px;
  padding: 13px 14px;
  color: var(--ink);
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.password-security-note-v1 strong {
  color: var(--navy);
  font-size: 12px;
}

.password-security-note-v1 span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.security-info-card-v1 p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .account-page-v1,
  .account-security-page-v1 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .account-page-v1,
  .account-security-page-v1,
  .account-page-side-v1,
  .account-security-side-v1 {
    gap: 14px;
  }

  .account-security-summary-v1,
  .security-info-card-v1 {
    padding: 18px 17px;
  }

  .account-security-link-v1 {
    width: 100%;
    justify-content: center;
  }
}


/*
 * ==========================================================
 * MSQ CUSTOMER PORTAL — PAYMENT METHOD MANAGEMENT V1
 * ==========================================================
 */

.portal-payment-method-row-v1 {
  margin-bottom: 14px;
}

.portal-payment-element-v1 {
  min-height: 92px;
  margin: 18px 0 12px;
  padding: 16px;
  border: 1px solid #dce4ec;
  border-radius: 12px;
  background: #fff;
}

.portal-payment-method-security-v1 {
  margin: 0 0 10px;
  padding: 11px 13px;
  border: 1px solid #e1e7ee;
  border-radius: 10px;
  background: #f8fafc;
  color: #60758b;
  font-size: 12px;
  line-height: 1.5;
}

.portal-autopay-state-action-v1 {
  margin-top: 0;
}

@media (max-width: 720px) {
  .portal-payment-method-row-v1,
  .portal-autopay-state-action-v1 {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-payment-element-v1 {
    padding: 13px;
  }
}


/* MSQ CUSTOMER PORTAL — SIGNED AGREEMENTS V1 */
.portal-documents-page{
  display:grid;
  gap:14px;
}
.portal-documents-intro{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:20px;
}
.portal-documents-intro h2{
  margin:2px 0 6px;
}
.portal-documents-count{
  flex:0 0 auto;
  border:1px solid #d0d5dd;
  border-radius:999px;
  background:#f9fafb;
  color:#475467;
  padding:5px 10px;
  font-size:12px;
  font-weight:700;
}
.portal-document-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 20px;
}
.portal-document-card-main{
  min-width:0;
  flex:1 1 auto;
}
.portal-document-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.portal-document-card-head h3{
  margin:2px 0 0;
  color:#10213d;
  font-size:18px;
  overflow-wrap:anywhere;
}
.portal-document-title{
  margin:8px 0 0;
  color:#263d5c;
  font-weight:600;
}
.portal-document-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px 14px;
  margin-top:8px;
  color:#71849b;
  font-size:12px;
}
.portal-document-badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:flex-end;
}
.portal-document-badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  border-radius:999px;
  padding:3px 8px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.portal-document-badge.signed,
.portal-document-badge.current{
  border:1px solid #abefc6;
  background:#ecfdf3;
  color:#067647;
}
.portal-document-badge.test{
  border:1px solid #fed7aa;
  background:#fff7ed;
  color:#9a3412;
}
.portal-document-badge.historical{
  border:1px solid #e4e7ec;
  background:#f9fafb;
  color:#71849b;
}
.portal-document-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}
.portal-document-action{
  min-height:36px;
  white-space:nowrap;
}
.portal-document-action.primary{
  background:#10213d;
  border-color:#10213d;
  color:#fff;
}
.portal-documents-empty{
  min-height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.account-documents-summary-v1 .account-security-summary-icon-v1 svg{
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
@media(max-width:760px){
  .portal-documents-intro,
  .portal-document-card,
  .portal-document-card-head{
    flex-direction:column;
    align-items:flex-start;
  }
  .portal-document-badges{
    justify-content:flex-start;
  }
  .portal-document-actions{
    width:100%;
    flex-direction:column;
    align-items:stretch;
  }
  .portal-document-action{
    width:100%;
    text-align:center;
    justify-content:center;
  }
}


/*
 * =========================================================
 * MSQ CUSTOMER PORTAL - UNIFIED PROFESSIONAL DESIGN V2
 * =========================================================
 * Final visual authority for portal.msq-tech.com.
 * Presentation only. Existing routes, APIs, Stripe, AutoPay,
 * documents, call reports and security behavior are unchanged.
 * Future portal visual changes should replace/edit this block
 * instead of stacking additional overrides after it.
 * =========================================================
 */

:root{
  --portal-v1-blue:#1768df;
  --portal-v1-blue-dark:#1158bd;
  --portal-v1-blue-soft:#edf7ff;
  --portal-v1-navy:#10213d;
  --portal-v1-text:#263d5c;
  --portal-v1-sub:#71849b;
  --portal-v1-muted:#829ab1;
  --portal-v1-line:#e0e7ef;
  --portal-v1-line-strong:#c8d5e4;
  --portal-v1-bg:#f4f8fd;
  --portal-v1-card:#fff;
  --portal-v1-green:#067647;
  --portal-v1-green-soft:#ecfdf3;
  --portal-v1-amber:#b54708;
  --portal-v1-amber-soft:#fff7e8;
  --portal-v1-red:#b42318;
  --portal-v1-red-soft:#fef3f2;
  --portal-v1-radius:12px;
  --portal-v1-shadow:0 1px 2px rgba(16,24,40,.025),0 5px 18px rgba(16,24,40,.035);
  --portal-v1-width:1420px;
}

html,body{background:linear-gradient(180deg,#f8fbff 0%,#f4f8fd 44%,#eef5fb 100%) fixed!important;color:var(--portal-v1-text)}
body{font-size:14px}
.portal-header{position:sticky!important;top:0!important;z-index:1000!important;min-height:74px!important;display:flex!important;align-items:center!important;flex-direction:row!important;gap:24px!important;padding:0 max(20px,calc((100vw - var(--portal-v1-width))/2 + 22px))!important;background:rgba(255,255,255,.975)!important;border-bottom:1px solid rgba(200,213,228,.92)!important;box-shadow:0 1px 0 rgba(23,104,223,.035),0 8px 24px rgba(16,33,61,.045)!important;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.logo-link{flex:0 0 132px!important;width:132px!important;min-width:132px!important;height:54px!important;display:flex!important;align-items:center!important;overflow:visible!important}
.logo-link img,.portal-header .brand img,.portal-header>a:first-child img{width:132px!important;height:auto!important;max-height:54px!important;object-fit:contain!important}
.primary-nav{flex:1 1 auto!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:4px!important;min-height:44px!important;overflow-x:auto!important;overflow-y:visible!important;scrollbar-width:none!important;white-space:nowrap!important}
.primary-nav::-webkit-scrollbar{display:none!important}
.primary-nav a{position:relative!important;flex:0 0 auto!important;min-height:42px!important;display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:7px!important;padding:0 13px!important;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:#263d5c!important;font-size:12px!important;font-weight:720!important;line-height:1!important;text-decoration:none!important;white-space:nowrap!important}
.primary-nav a:hover{color:#1768df!important;background:#f4f8fd!important}.primary-nav a.active{color:#1768df!important;background:#edf7ff!important;border-color:#cfe0f8!important;box-shadow:inset 0 -2px 0 #1768df!important}.primary-nav a.active::after{display:none!important}.primary-nav svg{width:16px!important;height:16px!important;flex:0 0 16px!important}
.portal-main{width:min(var(--portal-v1-width),100%)!important;margin:0 auto!important;padding:24px 22px 70px!important}#app{min-width:0}.card{border:1px solid rgba(200,213,228,.92)!important;border-radius:var(--portal-v1-radius)!important;background:rgba(255,255,255,.985)!important;box-shadow:0 1px 2px rgba(16,33,61,.025),0 10px 28px rgba(16,33,61,.055),0 0 0 1px rgba(23,104,223,.012)!important}.muted{color:var(--portal-v1-sub)!important}.eyebrow{color:#1768df!important;font-size:9px!important;font-weight:850!important;letter-spacing:.1em!important}
.welcome{position:relative!important;min-height:118px!important;display:flex!important;align-items:center!important;margin:0 0 16px!important;padding:20px 23px!important;overflow:hidden!important;border:1px solid #dbe7f7!important;border-radius:14px!important;background:radial-gradient(circle at 88% 45%,rgba(66,181,255,.16),transparent 34%),linear-gradient(135deg,#fbfdff 0%,#edf7ff 65%,#e8f2ff 100%)!important;box-shadow:0 1px 2px rgba(16,24,40,.03)!important}.welcome-copy{position:relative;z-index:1;min-width:0}.welcome-copy::before{content:"CUSTOMER PORTAL";display:block;margin-bottom:7px;color:#1768df;font-size:9px;line-height:1;font-weight:850;letter-spacing:.13em}.welcome h1{margin:0!important;color:var(--portal-v1-navy)!important;font-size:clamp(27px,2.5vw,34px)!important;line-height:1.05!important;font-weight:830!important;letter-spacing:-.035em!important}.welcome .muted{margin:7px 0 0!important;font-size:11.5px!important;font-weight:650!important}
.dashboard-kpis{grid-template-columns:1.25fr repeat(4,minmax(0,1fr))!important;gap:10px!important}.dashboard-kpis .kpi{min-height:118px!important;padding:15px 16px!important;border-radius:11px!important;box-shadow:none!important}.dashboard-kpis .kpi::before{content:"";position:absolute;top:0;left:13px;right:13px;height:2px;border-radius:0 0 3px 3px;background:#dbe8fb}.dashboard-kpis .kpi .label{color:#71849b!important;font-size:9px!important;font-weight:820!important;letter-spacing:.055em!important;text-transform:uppercase!important}.dashboard-kpis .kpi .value{margin-top:8px!important;color:#10213d!important;font-size:25px!important;font-weight:840!important;line-height:1.05!important}.dashboard-kpis .kpi .value.compact{font-size:17px!important;line-height:1.2!important}.dashboard-kpis .balance-card{color:var(--portal-v1-text)!important;background:#fff!important;border-color:#cfe0f8!important;box-shadow:none!important}.dashboard-kpis .balance-card::before{background:#42b5ff!important}.dashboard-kpis .balance-card .label{color:#71849b!important;opacity:1!important}.dashboard-kpis .balance-card .value{color:#1768df!important}.home-actions{margin-top:13px!important;font-size:10px!important;color:#71849b!important}.pay-now{min-height:32px!important;padding:6px 10px!important;border:1px solid #1768df!important;border-radius:7px!important;background:#1768df!important;color:#fff!important;box-shadow:none!important;font-size:10px!important;font-weight:800!important}.metric-link:hover{transform:none!important;border-color:#b7ccef!important;box-shadow:0 4px 12px rgba(16,24,40,.045)!important}
.dashboard-columns{grid-template-columns:minmax(0,1.45fr) minmax(300px,.85fr)!important;gap:12px!important;margin-top:14px!important;align-items:start!important}.dashboard-panel{padding:0!important;overflow:hidden!important;align-self:start!important}.panel-heading{padding:15px 17px 11px!important}.panel-heading h2{color:#10213d!important;font-size:14px!important;font-weight:820!important}.panel-heading a{color:#1768df!important;font-size:10px!important;font-weight:800!important}.recent-invoice{padding:15px 17px!important;gap:12px!important;border-top-color:#e0e7ef!important}.recent-invoice strong{color:#10213d!important;font-size:11.5px!important}.recent-invoice small,.summary-item small{font-size:9.5px!important;color:#829ab1!important}.summary-item{padding:14px 17px!important;border-top-color:#e0e7ef!important}.summary-item>span:first-child{font-size:11px!important;color:#263d5c!important}.summary-item strong{font-size:15px!important;color:#10213d!important}.status-badge{min-height:22px!important;padding:3px 7px!important;font-size:8.5px!important}
.portal-back-control{margin:0 0 9px!important}.portal-back-control a{display:inline-flex!important;align-items:center!important;min-height:30px!important;padding:0 9px!important;border:1px solid #d6dee8!important;border-radius:7px!important;background:#fff!important;color:#526178!important;font-size:10px!important;font-weight:760!important;text-decoration:none!important}.portal-back-control a:hover{color:#1768df!important;border-color:#b7ccef!important;background:#f8fbff!important;text-decoration:none!important}.portal-page-header-v13{position:relative!important;min-height:100px!important;margin:0 0 12px!important;padding:18px 20px!important;overflow:hidden!important;border:1px solid #dbe7f7!important;border-radius:13px!important;background:radial-gradient(circle at 88% 45%,rgba(66,181,255,.13),transparent 34%),linear-gradient(135deg,#fbfdff 0%,#edf7ff 68%,#e9f3ff 100%)!important;box-shadow:0 1px 2px rgba(16,24,40,.025)!important}.portal-page-header-v13 h1{color:#10213d!important;font-size:27px!important;font-weight:830!important;letter-spacing:-.035em!important}.portal-page-header-v13 h1::before{content:"CUSTOMER PORTAL";display:block;margin:0 0 7px;color:#1768df;font-size:8px;line-height:1;font-weight:850;letter-spacing:.12em}.portal-page-header-v13 p{margin-top:6px!important;color:#71849b!important;font-size:11px!important}
.section-nav,.section-nav[aria-label="services navigation"],.section-nav[aria-label="billing navigation"]{display:flex!important;align-items:center!important;gap:5px!important;width:100%!important;min-height:44px!important;margin:0 0 14px!important;padding:4px!important;overflow-x:auto!important;overflow-y:hidden!important;border:1px solid #e0e7ef!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;scrollbar-width:none!important}.section-nav::-webkit-scrollbar{display:none!important}.section-nav a,.section-nav button,.section-nav[aria-label="services navigation"]>a,.section-nav[aria-label="billing navigation"]>a{flex:1 0 auto!important;width:auto!important;min-width:max-content!important;min-height:34px!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:0 11px!important;border:1px solid transparent!important;border-radius:7px!important;background:transparent!important;color:#526178!important;font-size:10px!important;font-weight:760!important;white-space:nowrap!important}.section-nav a:hover,.section-nav button:hover{background:#f4f8fd!important;color:#1768df!important}.section-nav a.active,.section-nav button.active,.section-nav .active{border-color:#b7cef3!important;background:#edf7ff!important;color:#1768df!important;box-shadow:none!important}
.table-wrap{width:100%!important;overflow-x:auto!important;border:1px solid #e0e7ef!important;border-radius:11px!important;background:#fff!important;box-shadow:none!important;-webkit-overflow-scrolling:touch}.table-wrap table{border-collapse:separate!important;border-spacing:0!important}.table-wrap thead{background:#f7f9fc!important}.table-wrap th{padding:10px 12px!important;color:#71849b!important;border-bottom:1px solid #e4e9f0!important;font-size:8px!important;font-weight:850!important;letter-spacing:.06em!important}.table-wrap td{padding:12px!important;color:#263d5c!important;border-bottom:1px solid #edf1f5!important;font-size:10.5px!important;line-height:1.35!important}.table-wrap tbody tr:hover{background:#fafcff!important}.table-wrap td a{color:#1768df!important;font-weight:760!important}.invoice-table-status,.payment-event-status-v1,.credit-event-status-v1{min-height:22px!important;padding:3px 7px!important;font-size:8.5px!important}.button-link,.portal-document-action{min-height:31px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:5px 9px!important;border:1px solid #c8d5e4!important;border-radius:7px!important;background:#fff!important;color:#263d5c!important;font-size:9.5px!important;font-weight:780!important;text-decoration:none!important;box-shadow:none!important}.button-link:hover,.portal-document-action:hover{border-color:#aebaca!important;background:#f8fafc!important;color:#1768df!important}
.billing-hero{min-height:138px!important;padding:20px 22px!important;color:#10213d!important;border:1px solid #d7e5f8!important;border-radius:14px!important;background:radial-gradient(circle at 88% 50%,rgba(66,181,255,.16),transparent 36%),linear-gradient(135deg,#fbfdff 0%,#edf7ff 63%,#e6f1ff 100%)!important;box-shadow:0 1px 2px rgba(16,24,40,.03)!important}.billing-hero::after{display:none!important}.billing-kicker{color:#1768df!important;font-size:8.5px!important;letter-spacing:.11em!important}.billing-hero h2{color:#10213d!important;font-size:42px!important;font-weight:850!important}.billing-hero p:last-child{margin-top:8px!important;color:#71849b!important;font-size:11px!important}.billing-pay{min-width:170px!important;padding:11px 14px!important;border:1px solid #1768df!important;border-radius:9px!important;background:#1768df!important;color:#fff!important;box-shadow:0 4px 10px rgba(23,92,211,.14)!important}.billing-pay span{font-size:12px!important}.billing-pay small{color:#dce9ff!important;font-size:8.5px!important}.billing-current{min-height:32px!important;padding:6px 10px!important;color:#067647!important;background:#ecfdf3!important;border-color:#abefc6!important;font-size:9.5px!important}.billing-metrics{gap:10px!important;margin:12px 0 14px!important}.billing-metrics a{padding:13px 14px!important;border-radius:10px!important;box-shadow:none!important}.billing-metrics a:hover{transform:none!important;box-shadow:0 4px 12px rgba(16,24,40,.045)!important}.billing-metrics span,.billing-metrics small{font-size:9px!important}.billing-metrics strong{margin:4px 0 2px!important;color:#10213d!important;font-size:17px!important}.billing-layout{grid-template-columns:minmax(0,1.52fr) minmax(290px,.8fr)!important;gap:12px!important}.billing-main-column,.billing-side-column{gap:12px!important}.billing-panel-head{padding:14px 15px 10px!important}.billing-panel-head h3,.billing-side-card h3{color:#10213d!important;font-size:13px!important}.billing-panel-head>a,.billing-text-link{color:#1768df!important;font-size:9.5px!important}.billing-record{padding:12px 15px!important;gap:10px!important}.billing-record strong{color:#10213d!important;font-size:10.5px!important}.billing-record small{font-size:8.5px!important}.billing-status{min-height:22px!important;padding:3px 7px!important;font-size:8.5px!important}.billing-side-card{padding:15px!important}.statement-card{color:#263d5c!important;border-color:#e0e7ef!important;background:#fff!important}.statement-card h3{color:#10213d!important}.statement-card .eyebrow{color:#1768df!important;opacity:1!important}.statement-card .muted{color:#71849b!important}.statement-actions a{min-height:31px!important;padding:5px 8px!important;color:#263d5c!important;background:#fff!important;border-color:#c8d5e4!important;border-radius:7px!important;font-size:9px!important}.statement-actions a:first-child{color:#fff!important;background:#1768df!important;border-color:#1768df!important}
.services-title{margin:0 0 12px!important;padding:0 2px!important}.services-title::before{content:"CUSTOMER SERVICES";display:block;margin-bottom:6px;color:#1768df;font-size:8px;font-weight:850;letter-spacing:.12em}.services-title h2{color:#10213d!important;font-size:27px!important;font-weight:830!important;letter-spacing:-.035em!important}.services-title .muted{margin-top:5px!important;font-size:10.5px!important}.services-metrics{gap:10px!important;margin-bottom:12px!important}.services-metrics>div{padding:13px 14px!important;border-radius:10px!important;box-shadow:none!important;background:#fff!important}.services-metrics>div::before{right:12px!important;left:12px!important;height:2px!important;background:#69c7ff!important}.services-metrics span,.services-metrics small{font-size:8.5px!important;text-transform:uppercase!important;letter-spacing:.045em!important}.services-metrics strong{margin-top:5px!important;color:#10213d!important;font-size:20px!important}.locations-list{gap:10px!important}.location-card{border-radius:11px!important}.location-head{padding:15px 16px 13px!important;gap:14px!important;background:linear-gradient(135deg,#fff,#f8fbff)!important}.location-head h3{color:#10213d!important;font-size:15px!important}.location-head p:last-child{margin-top:4px!important;font-size:9.5px!important}.location-counts{gap:5px!important}.location-counts span{min-height:27px!important;padding:4px 7px!important;font-size:8.5px!important;background:#edf7ff!important}.service-columns-head{background:#f7f9fc!important;color:#71849b!important;font-size:8px!important}.service-row{padding:11px 14px!important;column-gap:14px!important}.service-identity strong{color:#10213d!important;font-size:10.5px!important}.service-identity span{font-size:8.5px!important;color:#829ab1!important}.service-state,.service-line-badge{min-height:21px!important;padding:3px 7px!important;font-size:8px!important}.service-line-item{padding:8px 9px!important;gap:10px!important;border-radius:8px!important;background:#f9fbfd!important}.service-line-text strong{color:#10213d!important;font-size:10.5px!important}.service-line-text small{font-size:8.5px!important}
.phone-lines-page{display:grid!important;gap:10px!important}.phone-line-card{padding:14px!important;border-radius:10px!important}.phone-line-card-head strong{color:#10213d!important;font-size:14px!important}.phone-line-card dl{margin-top:10px!important;padding-top:10px!important}.phone-line-card dt{font-size:8px!important;color:#829ab1!important;text-transform:uppercase!important;letter-spacing:.05em!important}.phone-line-card dd{font-size:10.5px!important;color:#263d5c!important}.phone-line-card-actions{gap:6px!important}
.account-page-v1{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important}.account-security-page-v1{gap:12px!important}.account-page-side-v1{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.account-security-side-v1{gap:10px!important}.account-page-side-v1>.account-session-v1{grid-column:1/-1!important}.account-profile-head{padding:17px 18px!important;color:#263d5c!important;border-bottom:1px solid #dce7f5!important;background:radial-gradient(circle at 90% 50%,rgba(66,181,255,.14),transparent 38%),linear-gradient(135deg,#fbfdff,#edf7ff)!important}.account-profile-head h3{color:#10213d!important;font-size:18px!important}.account-profile-head p{color:#71849b!important;font-size:9.5px!important}.account-mark{width:42px!important;height:42px!important;border:1px solid #b7cef3!important;background:#fff!important;color:#1768df!important;font-size:16px!important}.account-status{color:#067647!important;background:#ecfdf3!important;border:1px solid #abefc6!important;font-size:8.5px!important}.profile-grid{background:#fff!important}.profile-field{padding:13px 15px!important}.profile-field span{font-size:8px!important;color:#829ab1!important;text-transform:uppercase!important;letter-spacing:.05em!important}.profile-field strong{font-size:10.5px!important;color:#263d5c!important}.account-security-summary-v1,.security-info-card-v1,.account-session-v1,.account-security-v1{padding:15px!important}.account-security-summary-icon-v1{width:36px!important;height:36px!important;border-radius:9px!important}.account-security-summary-icon-v1 svg{width:19px!important;height:19px!important}.account-security-summary-v1 h3,.security-info-card-v1 h3,.account-session-v1 h3,.account-security-v1 h3{color:#10213d!important;font-size:13px!important}.account-security-summary-v1 .muted,.security-info-card-v1 p:last-child,.account-session-v1 p,.account-security-v1 p{font-size:9.5px!important;line-height:1.45!important}.account-logout{min-height:31px!important;padding:5px 9px!important;font-size:9.5px!important}.password-form{gap:10px!important}.password-form label{font-size:9.5px!important;color:#526178!important}.password-form input{height:38px!important;min-height:38px!important;border-radius:8px!important;font-size:11px!important}.password-security-note-v1{margin-top:11px!important;padding:10px!important;border-radius:8px!important}.password-security-note-v1 strong,.password-security-note-v1 span{font-size:9px!important}.password-actions button{min-height:34px!important;padding:6px 11px!important;background:#1768df!important;font-size:9.5px!important}
.portal-documents-page{gap:10px!important}.portal-documents-intro{padding:15px!important;border-radius:10px!important}.portal-documents-intro h2{color:#10213d!important;font-size:15px!important}.portal-documents-intro .muted{font-size:9.5px!important}.portal-documents-count{padding:4px 8px!important;font-size:8.5px!important}.portal-document-card{padding:14px 15px!important;gap:14px!important;border-radius:10px!important}.portal-document-card-head h3{color:#10213d!important;font-size:13px!important}.portal-document-title{margin-top:5px!important;font-size:10px!important}.portal-document-meta{margin-top:6px!important;font-size:8.5px!important}.portal-document-badge{min-height:21px!important;padding:3px 6px!important;font-size:7.5px!important}.portal-document-actions{gap:5px!important}.portal-document-action.primary{background:#1768df!important;border-color:#1768df!important;color:#fff!important}
.payments-page-v1,.credits-refunds-page-v1{gap:10px!important}.payments-page-head-v1,.credits-refunds-head-v1{padding:0 2px!important}.payments-page-head-v1 h2,.credits-refunds-head-v1 h2{color:#10213d!important;font-size:22px!important;font-weight:830!important}.payments-page-head-v1 .muted,.credits-refunds-head-v1 .muted{margin-top:5px!important;font-size:9.5px!important}.credits-refunds-count-v1{min-width:96px!important;padding:9px 11px!important;border-radius:9px!important}.credits-refunds-count-v1 strong{font-size:16px!important}.credits-refunds-count-v1 span{font-size:8.5px!important}
.portal-account-autopay-v3{padding:18px!important}.portal-autopay-title-block{margin-bottom:14px!important}.portal-autopay-title-row-v3{gap:14px!important}.portal-autopay-title-row-v3 h2{color:#10213d!important;font-size:20px!important}.portal-autopay-title-row-v3 p{font-size:10px!important}.portal-autopay-state-badge{min-height:24px!important;padding:4px 8px!important;font-size:9px!important}.portal-autopay-summary-v3{gap:10px!important;margin-bottom:10px!important}.portal-autopay-summary-card-v3,.portal-autopay-payment-row-v3,.portal-autopay-enable-row-v3{padding:13px!important;border-radius:9px!important}.portal-autopay-summary-label-v3{font-size:8px!important}.portal-autopay-summary-card-v3 strong,.portal-autopay-payment-copy-v3 strong{font-size:11px!important}.portal-autopay-summary-card-v3 p,.portal-autopay-payment-copy-v3 p,.portal-autopay-enable-row-v3 p{font-size:9px!important}.portal-autopay-main-action-v3{min-width:120px!important;min-height:34px!important;font-size:9.5px!important}.portal-payment-element-v1{min-height:82px!important;margin:12px 0 8px!important;padding:12px!important;border-radius:9px!important}.portal-payment-method-security-v1{padding:9px 10px!important;font-size:9px!important}.portal-autopay-modal{border-radius:14px!important}
.call-history-v11,.report-page{gap:12px!important}.call-v11-controls,.call-v11-results,.report-card,.statement-filter-form{border-radius:11px!important;box-shadow:none!important}.call-v11-controls-head{padding:13px 14px 10px!important}.call-v11-controls-head h3{color:#10213d!important;font-size:14px!important}.call-v11-controls-head p:last-child{font-size:9px!important}.call-v11-period-shortcuts{gap:7px!important;padding:10px 12px 0!important}.call-v11-period-shortcuts button{height:34px!important;min-height:34px!important;border-radius:7px!important;font-size:9.5px!important}.call-v11-form{gap:9px!important;padding:10px 12px 12px!important}.call-v11-date-grid{gap:9px!important}.call-v11-field>span{font-size:7.5px!important}.call-v11-field input,.call-v11-field select,.call-v11-date-shell{height:38px!important;min-height:38px!important;max-height:38px!important;border-radius:8px!important;font-size:10.5px!important}.call-v11-date-display{font-size:10.5px!important;line-height:36px!important}.call-v11-apply{height:36px!important;min-height:36px!important;border-radius:8px!important;background:#1768df!important;font-size:10px!important}.call-v11-pdf{min-height:36px!important;margin:0 12px 12px!important;border-radius:8px!important}
input,select{border-color:#c8d5e4!important;border-radius:8px!important;color:#10213d!important}input:focus,select:focus{outline:0!important;border-color:#69c7ff!important;box-shadow:0 0 0 3px rgba(23,104,223,.10)!important}button{border-radius:8px}.primary{background:#1768df!important;color:#fff!important;box-shadow:0 2px 6px rgba(23,92,211,.14)!important}.primary:hover{background:#1158bd!important}.secondary{border-color:#c8d5e4!important;color:#263d5c!important;background:#fff!important}
.portal-route-loading{min-height:180px!important;color:#71849b!important;font-size:10px!important}.empty,.billing-empty,.services-empty{min-height:130px!important;padding:24px 18px!important;border:1px dashed #d6dee8!important;border-radius:10px!important;background:#fbfcfe!important;box-shadow:none!important;font-size:10px!important}
@media(min-width:901px) and (max-width:1180px){.portal-header{min-height:70px!important;padding:0 16px!important;gap:16px!important}.logo-link{flex-basis:116px!important;width:116px!important;min-width:116px!important;height:48px!important}.logo-link img,.portal-header .brand img,.portal-header>a:first-child img{width:116px!important;max-height:48px!important}.primary-nav{gap:2px!important}.primary-nav a{min-height:39px!important;padding:0 10px!important;font-size:10.5px!important}.primary-nav svg{width:14px!important;height:14px!important;flex-basis:14px!important}.portal-main{padding:19px 16px 56px!important}.dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}.dashboard-kpis .balance-card{grid-column:span 2!important}.dashboard-columns{grid-template-columns:minmax(0,1.45fr) minmax(270px,.8fr)!important}.billing-layout{grid-template-columns:minmax(0,1.35fr) minmax(260px,.8fr)!important}.billing-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.section-nav[aria-label="billing navigation"]>a{flex:0 0 auto!important}}
@media(min-width:701px) and (max-width:900px){.portal-header{min-height:68px!important;padding:0 12px!important;gap:10px!important}.logo-link{flex-basis:106px!important;width:106px!important;min-width:106px!important;height:45px!important}.logo-link img,.portal-header .brand img,.portal-header>a:first-child img{width:106px!important;max-height:45px!important}.primary-nav{justify-content:flex-end!important;gap:1px!important}.primary-nav a{min-height:38px!important;padding:0 8px!important;font-size:10px!important}.primary-nav svg{width:14px!important;height:14px!important}.portal-main{padding:18px 13px 52px!important}.dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}.dashboard-kpis .balance-card{grid-column:span 2!important}.dashboard-columns,.billing-layout,.account-page-v1,.account-security-page-v1{grid-template-columns:1fr!important}.billing-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.section-nav[aria-label="billing navigation"]>a,.section-nav[aria-label="services navigation"]>a{flex:0 0 auto!important}}
@media(max-width:700px){body{padding-bottom:calc(70px + env(safe-area-inset-bottom))!important}.portal-header{min-height:58px!important;padding:7px 14px!important;gap:8px!important}.logo-link{flex-basis:112px!important;width:112px!important;min-width:112px!important;height:42px!important}.logo-link img,.portal-header .brand img,.portal-header>a:first-child img{width:112px!important;max-height:42px!important}.primary-nav{position:fixed!important;z-index:1100!important;right:0!important;bottom:0!important;left:0!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;width:100%!important;min-height:62px!important;padding:5px 7px calc(5px + env(safe-area-inset-bottom))!important;gap:0!important;background:rgba(255,255,255,.98)!important;border-top:1px solid #e0e7ef!important;box-shadow:0 -6px 20px rgba(16,24,40,.08)!important}.primary-nav a{min-width:0!important;min-height:50px!important;display:flex!important;flex-direction:column!important;gap:2px!important;padding:4px 2px!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:9px!important}.primary-nav a.active{color:#1768df!important;background:#edf7ff!important;border-radius:8px!important}.primary-nav svg{width:20px!important;height:20px!important}.portal-main{padding:14px 10px 28px!important}.welcome{min-height:100px!important;padding:16px!important;margin-bottom:10px!important;border-radius:12px!important}.welcome h1{font-size:24px!important}.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.dashboard-kpis .balance-card{grid-column:1/-1!important}.dashboard-kpis .kpi{min-height:102px!important;padding:13px!important}.dashboard-columns{grid-template-columns:1fr!important;gap:9px!important;margin-top:10px!important}.portal-back-control{margin-bottom:7px!important}.portal-page-header-v13{min-height:0!important;padding:15px!important;margin-bottom:9px!important}.portal-page-header-v13 h1{font-size:23px!important}.section-nav,.section-nav[aria-label="billing navigation"],.section-nav[aria-label="services navigation"]{display:flex!important;margin:0 -10px 10px!important;padding:3px 10px 7px!important;border:0!important;border-radius:0!important;background:transparent!important}.section-nav a,.section-nav button,.section-nav[aria-label="billing navigation"]>a,.section-nav[aria-label="services navigation"]>a{flex:0 0 auto!important;min-height:32px!important;background:#fff!important;border-color:#e0e7ef!important}.billing-hero{align-items:stretch!important;flex-direction:column!important;gap:14px!important;min-height:0!important;padding:17px!important}.billing-hero h2{font-size:34px!important}.billing-pay{width:100%!important;min-width:0!important}.billing-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin:9px 0 10px!important}.billing-layout{grid-template-columns:1fr!important;gap:9px!important}.billing-main-column,.billing-side-column{gap:9px!important}.services-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.location-head{align-items:flex-start!important;flex-direction:column!important}.location-counts{width:100%!important;justify-content:flex-start!important}.service-row{padding:11px 12px!important}.account-page-v1,.account-security-page-v1{grid-template-columns:1fr!important;gap:9px!important}.account-page-side-v1{grid-template-columns:1fr!important}.portal-documents-intro,.portal-document-card,.portal-document-card-head{gap:9px!important}.table-wrap{border-radius:9px!important}.table-wrap th,.table-wrap td{padding:10px!important}.portal-account-autopay-v3{padding:14px!important}.portal-autopay-title-row-v3,.portal-autopay-payment-row-v3,.portal-autopay-enable-row-v3{align-items:stretch!important;flex-direction:column!important}}
@media(max-width:390px){.dashboard-kpis,.billing-metrics,.services-metrics{grid-template-columns:1fr!important}.dashboard-kpis .balance-card{grid-column:auto!important}}

/* END MSQ CUSTOMER PORTAL - UNIFIED PROFESSIONAL DESIGN V2 */


/* MSQ login brand polish — matches the marketing site without darkening the portal */
.portal-auth{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 86% 12%,rgba(66,181,255,.16),transparent 27%),
    radial-gradient(circle at 12% 91%,rgba(23,104,223,.10),transparent 28%),
    linear-gradient(135deg,#f8fbff 0%,#edf7ff 53%,#f4f8fd 100%)!important
}
.portal-auth::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.42;
  background-image:linear-gradient(rgba(21,104,223,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(21,104,223,.055) 1px,transparent 1px);
  background-size:44px 44px
}
.auth-card{
  position:relative;
  z-index:1;
  overflow:hidden;
  border-color:rgba(131,151,177,.28)!important;
  background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)!important;
  box-shadow:0 24px 64px rgba(16,33,61,.16),0 6px 18px rgba(16,33,61,.08)!important
}
.auth-card::before{
  content:"";
  position:absolute;
  top:0;right:0;left:0;
  height:5px;
  background:linear-gradient(90deg,#1768df 0%,#42b5ff 55%,#1768df 100%)
}
.auth-card .eyebrow{color:#1768df!important}
.auth-card h1{color:#10213d!important}
.auth-card input{
  border-color:#c6d7eb!important;
  background:#fff!important;
  color:#263d5c!important
}
.auth-card input:focus{
  border-color:#1768df!important;
  box-shadow:0 0 0 3px rgba(23,104,223,.11)!important
}
.auth-card .primary{
  background:linear-gradient(180deg,#1e73e8 0%,#1768df 100%)!important;
  border-color:#1158bd!important;
  box-shadow:0 7px 16px rgba(23,104,223,.22)!important
}
.auth-card .primary:hover{background:linear-gradient(180deg,#247af0 0%,#155fcf 100%)!important}
.auth-card>a{color:#71849b!important}


/* Compact mobile login: keeps credentials and Sign In reachable above the keyboard. */
@media(max-width:640px){
  .portal-auth{display:block!important;min-height:100dvh!important;padding:16px!important}
  .auth-card{width:100%!important;max-width:430px!important;margin:0 auto!important;padding:24px 22px 22px!important;border-radius:16px!important}
  .auth-logo{width:142px!important;max-width:46%!important;margin:0 auto 16px!important}
  .auth-card .eyebrow{margin-top:18px!important;margin-bottom:6px!important}
  .auth-card h1{margin:0 0 18px!important;font-size:26px!important;line-height:1.16!important}
  .auth-card label{gap:6px!important;margin:13px 0!important}
  .auth-card input{min-height:44px!important;padding:9px 11px!important}
  .auth-card .primary{min-height:46px!important;margin-top:8px!important}
  .auth-card > a{margin-top:16px!important}
}


/* =========================================================
 * MSQ CUSTOMER PORTAL - MESSAGES V1
 * ========================================================= */
.portal-messages-page{max-width:980px;margin:0 auto}.portal-messages-card{overflow:hidden;border:1px solid #d7e3f0;border-radius:14px;background:#fff;box-shadow:0 10px 30px rgba(16,33,61,.055)}.portal-messages-head{min-height:72px;display:flex;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid #e4eaf1;background:linear-gradient(135deg,#fbfdff,#f2f8ff)}.portal-messages-avatar{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border:1px solid #bdd2ee;border-radius:12px;background:#fff;color:#1768df;font-size:11px;font-weight:850;letter-spacing:.04em}.portal-messages-head>div:nth-child(2){min-width:0;display:flex;flex-direction:column}.portal-messages-head strong{color:#10213d;font-size:13px;font-weight:820}.portal-messages-head span:not(.portal-messages-live){margin-top:2px;color:#71849b;font-size:9.5px}.portal-messages-live{margin-left:auto;display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid #cfe0f8;border-radius:999px;background:#fff;color:#526178;font-size:8.5px;font-weight:760;white-space:nowrap}.portal-messages-live i{width:6px;height:6px;border-radius:50%;background:#12b76a}.portal-messages-thread{height:min(55vh,520px);min-height:340px;overflow-y:auto;padding:18px;background:linear-gradient(180deg,#f8fbff 0%,#f5f8fc 100%);scroll-behavior:smooth}.portal-message-row{display:flex;margin:0 0 11px}.portal-message-row.customer{justify-content:flex-end}.portal-message-row.msq{justify-content:flex-start}.portal-message-bubble{max-width:min(74%,680px);padding:10px 12px;border:1px solid #dfe7ef;border-radius:13px 13px 13px 4px;background:#fff;box-shadow:0 2px 8px rgba(16,33,61,.035)}.portal-message-row.customer .portal-message-bubble{border-color:#1768df;background:#1768df;color:#fff;border-radius:13px 13px 4px 13px;box-shadow:0 4px 12px rgba(23,104,223,.14)}.portal-message-author{display:flex;align-items:center;gap:6px;margin-bottom:4px;color:#526178;font-size:8px;font-weight:820;text-transform:uppercase;letter-spacing:.055em}.portal-message-row.customer .portal-message-author{color:rgba(255,255,255,.78)}.portal-message-channel{display:inline-flex!important;margin:0!important;padding:2px 5px;border:1px solid currentColor;border-radius:999px;font-size:7px!important;line-height:1.2;opacity:.8}.portal-message-text{font-size:11.5px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;color:#263d5c}.portal-message-row.customer .portal-message-text{color:#fff}.portal-message-meta{display:flex;align-items:center;gap:7px;margin-top:6px;color:#8a99aa;font-size:8px}.portal-message-row.customer .portal-message-meta{justify-content:flex-end;color:rgba(255,255,255,.72)}.portal-message-status{text-transform:capitalize}.portal-message-empty{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#71849b}.portal-message-empty strong{color:#263d5c;font-size:13px}.portal-message-empty span{max-width:330px;margin-top:5px;font-size:10px}.portal-message-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end;padding:12px 14px;border-top:1px solid #e4eaf1;background:#fff}.portal-message-compose textarea{width:100%;min-height:46px;max-height:130px;resize:vertical;padding:10px 12px;border:1px solid #c8d5e4;border-radius:10px;background:#fff;color:#10213d;font:inherit;font-size:11.5px;line-height:1.4}.portal-message-compose textarea:focus{outline:0;border-color:#69c7ff;box-shadow:0 0 0 3px rgba(23,104,223,.10)}.portal-message-compose button{min-width:82px;min-height:46px}.portal-message-compose button:disabled{cursor:wait;opacity:.7}.portal-message-error{min-height:0;padding:0 14px;color:#b42318;font-size:9.5px}.portal-message-error:not(:empty){padding-top:8px}.portal-message-note{margin:0;padding:7px 14px 11px;color:#8292a5;font-size:8.5px;text-align:center;background:#fff}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:700px){.portal-messages-page{margin:0}.portal-messages-card{border-radius:11px}.portal-messages-head{min-height:64px;padding:10px 11px}.portal-messages-avatar{width:38px;height:38px;flex-basis:38px;border-radius:10px}.portal-messages-live{padding:4px 6px;font-size:7.5px}.portal-messages-thread{height:calc(100dvh - 355px);min-height:300px;padding:12px 10px}.portal-message-bubble{max-width:86%;padding:9px 10px}.portal-message-text{font-size:11px}.portal-message-compose{grid-template-columns:minmax(0,1fr) 72px;gap:7px;padding:9px}.portal-message-compose textarea{min-height:44px;padding:9px 10px}.portal-message-compose button{min-width:0;min-height:44px;padding:7px 9px}.portal-message-note{padding:6px 10px 9px;font-size:8px}}
/* END MSQ CUSTOMER PORTAL - MESSAGES V1 */


/* =========================================================
   CUSTOMER PORTAL - MANAGED SERVICES V1
   Keep non-voice services readable without forcing phone-line UI.
   ========================================================= */
.portal-managed-service-info{
  min-width:0;
}
.managed-service-details{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1px;
  overflow:hidden;
  border:1px solid #dce6ef;
  border-radius:10px;
  background:#e8eef5;
}
.managed-service-details>div{
  min-width:0;
  padding:9px 10px;
  background:#f8fafc;
}
.managed-service-details span{
  display:block;
  color:#71859a;
  font-size:8px;
  font-weight:800;
  line-height:1.15;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.managed-service-details strong{
  display:block;
  margin-top:4px;
  color:var(--portal-navy);
  font-size:11px;
  font-weight:760;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.managed-service-fallback{
  min-height:40px;
  display:flex;
  align-items:center;
  padding:9px 11px;
  border:1px solid #dce6ef;
  border-radius:10px;
  background:#f8fafc;
  color:#52677b;
  font-size:11px;
  font-weight:650;
}
.portal-managed-service-row .service-identity>span{
  white-space:normal;
}

@media(max-width:1100px){
  .portal-managed-service-info{
    grid-column:1/-1;
  }
}

@media(max-width:700px){
  .portal-managed-service-row{
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:10px !important;
  }
  .portal-managed-service-info{
    grid-column:1/-1;
    width:100%;
  }
  .managed-service-details{
    grid-template-columns:1fr;
  }
  .managed-service-details>div{
    padding:8px 9px;
  }
}
