:root {
    --bg: #eef2f7;
    --panel: #ffffff;
    --text: #162033;
    --muted: #687386;
    --primary: #123c69;
    --primary-dark: #0b2949;
    --accent: #00a3ff;
    --border: #d8dee9;
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--primary); text-decoration: none; }
.login-body { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: linear-gradient(135deg, #071d33, #123c69 48%, #0ea5e9); padding: 24px; }
.login-shell { width: min(980px, 92vw); display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; border-radius: 22px; box-shadow: 0 30px 90px rgba(0,0,0,.35); background: var(--panel); }
.login-brand { padding: 56px; color: #fff; background: radial-gradient(circle at top left, rgba(0,163,255,.5), transparent 34%), linear-gradient(160deg, #071d33, #123c69); }
.brand-mark { width: 62px; height: 62px; border-radius: 16px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: 1px; margin-bottom: 28px; }
.login-brand h1 { margin: 0 0 14px; font-size: 36px; line-height: 1.1; }
.login-brand p { color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.6; }
.login-card { padding: 56px 46px; }
.login-card h2 { margin: 0 0 6px; font-size: 28px; }
.login-build-pill { margin: 4px 0 12px; min-height: 34px; padding: 8px 11px; background: #eef6ff; color: var(--primary); }
.login-footer { width: min(980px, 92vw); color: rgba(255,255,255,.82); font-size: 13px; font-weight: 700; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.muted { color: var(--muted); }
label { display: block; margin: 22px 0 8px; font-weight: 700; font-size: 14px; }
input { width: 100%; padding: 14px 15px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; }
textarea { width: 100%; padding: 14px 15px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; font-family: inherit; resize: vertical; }
input:focus { outline: 3px solid rgba(0,163,255,.18); border-color: var(--accent); }
textarea:focus { outline: 3px solid rgba(0,163,255,.18); border-color: var(--accent); }
button { width: 100%; margin-top: 26px; padding: 14px 18px; border: 0; border-radius: 10px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
button:hover { background: var(--primary-dark); }
.alert { padding: 12px 14px; border-radius: 10px; background: var(--danger-bg); color: var(--danger-text); margin-top: 18px; }
.demo-note { color: var(--muted); font-size: 13px; margin-top: 24px; }
.topbar { height: 68px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--border); }
.topbar nav { display: flex; align-items: center; gap: 18px; }
.container { max-width: 1180px; margin: 0 auto; padding: 32px 24px; }
.hero-panel, .panel, .stat-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 12px 28px rgba(15,23,42,.05); }
.hero-panel { padding: 28px 32px; margin-bottom: 22px; background: linear-gradient(135deg, #fff, #f8fbff); }
.hero-panel h1 { margin: 0 0 8px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.stat-card { padding: 22px; }
.stat-label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.stat-card strong { font-size: 27px; }
.panel { padding: 24px; margin-bottom: 22px; }
.portal-footer { max-width: 1180px; margin: 0 auto 28px; padding: 0 24px; color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel h2 { margin: 0; font-size: 20px; }
.pill { padding: 7px 12px; border-radius: 999px; background: #e0f2fe; color: #075985; font-size: 13px; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: 13px; }
.grid-two { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: center; }
.action-box { border: 1px dashed var(--border); border-radius: 14px; padding: 18px; background: #f8fafc; }
@media (max-width: 800px) {
    .login-shell, .cards, .grid-two { grid-template-columns: 1fr; }
    .login-brand, .login-card { padding: 34px; }
}
select { width: 100%; padding: 14px 15px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; background: #fff; }
select:focus { outline: 3px solid rgba(0,163,255,.18); border-color: var(--accent); }
.topbar nav a.active { font-weight: 800; color: var(--primary-dark); }
.success { padding: 12px 14px; border-radius: 10px; background: #dcfce7; color: #166534; margin-bottom: 18px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.settings-tile { display: block; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: 0 12px 28px rgba(15,23,42,.05); }
.settings-tile strong { display: block; font-size: 20px; margin-bottom: 10px; color: var(--text); }
.settings-tile span { color: var(--muted); }
.settings-tile:hover { border-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.form-grid label { margin-top: 16px; }
.form-actions { display: flex; align-items: end; gap: 10px; padding-top: 16px; }
.form-actions button { width: auto; min-width: 160px; }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; width: auto; margin-top: 0; padding: 13px 16px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--primary); font-size: 16px; font-weight: 700; box-shadow: none; cursor: pointer; }
.small-note { font-size: 13px; }
@media (max-width: 800px) { .settings-grid, .form-grid { grid-template-columns: 1fr; } }

/* Enterprise Accounts & Users screen */
.enterprise-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.eyebrow { display: inline-block; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 13px 18px; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 800; box-shadow: 0 8px 18px rgba(18,60,105,.18); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.portal-build-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid #d8e1ee;
    border-radius: 999px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.topbar-build-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid #d8e1ee;
    border-radius: 999px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.desktop-notification-enable {
    width: calc(100% - 24px);
    margin: 10px 12px 8px;
    padding: 10px 12px;
    border: 1px solid #cbd7e8;
    border-radius: 8px;
    background: #f8fbff;
    color: #1f3f75;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    text-align: center;
}

.desktop-notification-enable:hover:not(:disabled) {
    background: #eaf4ff;
    border-color: #9fc4ee;
}

.desktop-notification-enable:disabled {
    cursor: default;
    color: #64748b;
    background: #f1f5f9;
}
.admin-notification-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.admin-notification-button {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e1ee;
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    box-shadow: none;
}

.admin-notification-button:hover,
.admin-notification-dropdown:focus-within .admin-notification-button,
.admin-notification-dropdown:hover .admin-notification-button {
    background: #f1f6ff;
    color: var(--primary-dark);
}

.admin-notification-button.has-tasks {
    border-color: #9bb8df;
    background: #eef6ff;
}

.admin-notification-button span {
    position: absolute;
    top: -6px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #b91c1c;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.admin-notification-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15,23,42,.16);
    z-index: 10000;
}

.admin-notification-dropdown:hover .admin-notification-menu,
.admin-notification-dropdown:focus-within .admin-notification-menu,
.admin-notification-menu:hover {
    display: block;
}

.admin-notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 12px;
    border-bottom: 1px solid var(--border);
}

.admin-notification-header strong {
    color: var(--text);
}

.admin-notification-header span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.admin-notification-empty {
    padding: 16px 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-notification-menu a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    color: var(--text);
}

.admin-notification-menu a:hover {
    background: #f1f5f9;
}

.admin-notification-menu a > span {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.admin-notification-menu a strong,
.admin-notification-menu a small {
    display: block;
}

.admin-notification-menu a strong {
    margin-bottom: 3px;
    color: var(--text);
    font-size: 14px;
}

.admin-notification-menu a small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}
.enterprise-module-icon {
    min-width: 46px;
    padding: 0 9px;
}
.metrics-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.metric-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; box-shadow: 0 12px 28px rgba(15,23,42,.05); }
.metric-card span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.metric-card strong { font-size: 30px; color: var(--text); }
.cp-profile-form {
    max-width: 860px;
}

.cp-profile-form label {
    margin-top: 18px;
}

.cp-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.cp-logo-upload {
    display: grid;
    gap: 12px;
    margin-top: 8px;
    padding: 16px;
    border: 1px solid #d8e1ee;
    border-radius: 12px;
    background: #f8fafc;
}

.cp-logo-upload input[type="file"] {
    width: 100%;
}

.cp-logo-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border: 1px solid #d8e1ee;
    border-radius: 10px;
    background: #fff;
}

.cp-logo-preview span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cp-logo-preview img {
    display: block;
    max-width: 220px;
    max-height: 80px;
    object-fit: contain;
}

.cp-footer-preview {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #d8e1ee;
    border-radius: 12px;
    background: #f8fafc;
}

.cp-footer-preview span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cp-footer-preview strong {
    color: var(--text);
    font-size: 15px;
}

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

    .cp-logo-preview {
        align-items: flex-start;
        flex-direction: column;
    }
}

.dashboard-account-range {
    margin: 6px 0 0;
    font-size: 13px;
}

.dashboard-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.dashboard-pagination .btn-secondary {
    width: auto;
    min-width: 105px;
}

.dashboard-pagination .is-disabled {
    opacity: .5;
    pointer-events: none;
}

.dashboard-page-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dashboard-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
}

.dashboard-page-link:hover,
.dashboard-page-link.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.help-search-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px) auto auto;
    gap: 12px;
    align-items: center;
}

.help-search-form button,
.help-search-form a {
    width: auto;
    margin-top: 0;
}

.help-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.help-guide-list {
    position: sticky;
    top: 88px;
}

.help-guide-list-item {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
}

.help-guide-list-item + .help-guide-list-item {
    margin-top: 10px;
}

.help-guide-list-item span,
.help-guide-list-item em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.help-guide-list-item strong {
    font-size: 15px;
    line-height: 1.3;
}

.help-guide-list-item:hover,
.help-guide-list-item.is-active {
    border-color: #9bb8df;
    background: #f3f8ff;
}

.help-article-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.help-article-heading h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.help-article-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.help-article-body {
    padding-top: 20px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.75;
}

.help-guide-form {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f8fafc;
}

.help-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 16px;
}

.help-form-grid .full-width {
    grid-column: 1 / -1;
}

.btn-danger {
    width: auto;
    min-width: 120px;
    margin-top: 0;
    background: #b91c1c;
    color: #fff;
}

.btn-danger:hover {
    background: #991b1b;
}

.signup-shell {
    width: min(1080px, 94vw);
}

.access-request-list {
    display: grid;
    gap: 14px;
}

.access-request-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    padding: 16px;
}

.access-request-card.is-closed {
    background: #f8fafc;
}

.access-request-summary {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.access-request-summary h2 {
    margin: 0 0 6px;
}

.access-request-summary p {
    margin: 0;
    color: var(--muted);
}

.access-request-meta {
    display: grid;
    gap: 6px;
    min-width: 180px;
    color: var(--muted);
    font-size: 13px;
    text-align: right;
}

.access-approval-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    margin-top: 14px;
}

.access-approval-form .module-permissions-box,
.access-approval-form .full-width {
    grid-column: 1 / -1;
}

.access-request-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.access-request-actions button {
    width: auto;
    margin-top: 0;
}

.company-users-page .enterprise-table td {
    vertical-align: middle;
}

.company-user-request-form input[readonly] {
    background: #eef3f9;
    color: var(--muted);
    font-weight: 800;
}

.company-user-request-form .form-actions {
    grid-column: 1 / -1;
}

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

.email-template-list {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 92px;
}

.email-template-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.email-template-list-head h2 {
    margin: 0;
}

.email-template-nav {
    display: grid;
    gap: 10px;
}

.email-template-nav-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: var(--text);
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.email-template-nav-item:hover {
    border-color: #9db7dc;
    background: #f4f8ff;
    box-shadow: 0 14px 28px rgba(15,23,42,.08);
    transform: translateY(-1px);
}

.email-template-nav-item.active {
    border-color: #7fa2d5;
    background: #eef6ff;
    box-shadow: 0 16px 30px rgba(18,60,105,.10);
}

.email-template-nav-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #e8f0fd;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.email-template-nav-item.active .email-template-nav-mark {
    background: linear-gradient(135deg, #1f3f75, #4f8bd9);
    color: #fff;
    box-shadow: 0 10px 22px rgba(31,63,117,.22);
}

.email-template-nav-text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.email-template-nav-text strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.25;
}

.email-template-nav-text small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    word-break: break-word;
}

.email-template-editor {
    min-width: 0;
}

.email-template-active {
    margin-top: 16px;
}

.template-variable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.template-variable-grid code {
    display: block;
    padding: 10px 12px;
    border: 1px solid #d8e1ee;
    border-radius: 10px;
    background: #f8fafc;
    color: #1f3f75;
    font-size: 13px;
    font-weight: 800;
}

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

    .email-template-list {
        position: static;
    }

    .email-template-nav {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

.enterprise-form { background: #f8fafc; border: 1px solid var(--border); border-radius: 14px; padding: 4px 18px 18px; }
.module-permissions-box {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding: 16px;
    border: 1px solid #d8e1ee;
    border-radius: 12px;
    background: #fff;
}

.module-permissions-box > label {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.module-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.module-checkbox {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    cursor: pointer;
}

.module-checkbox:hover {
    border-color: #9db7dc;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}

.module-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.module-checkbox span,
.module-checkbox strong,
.module-checkbox small {
    display: block;
}

.module-checkbox strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.25;
}

.module-checkbox small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.module-checkbox.is-checked,
.module-checkbox:has(input:checked) {
    border-color: #7fa2d5;
    background: #eef6ff;
}

.module-permissions-box .small-note {
    margin: 12px 0 0;
}
.account-list { display: grid; gap: 18px; }
.account-card { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #fff; }
.account-card-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 20px; background: linear-gradient(135deg, #f8fbff, #eef6ff); border-bottom: 1px solid var(--border); }
.account-card h3 { margin: 0 0 7px; font-size: 19px; }
.account-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.account-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 70px; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status-active { background: #dcfce7; color: #166534; }
.status-disabled { background: #fee2e2; color: #991b1b; }
.enterprise-table th { background: #f8fafc; color: #536174; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.enterprise-table td, .enterprise-table th { padding: 13px 16px; }
.enterprise-table tbody tr:hover { background: #fbfdff; }
.bell-suppress-form {
    margin: 0;
}
.bell-suppress-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 82px;
    padding: 7px 10px;
    border: 1px solid #d7e0ee;
    border-radius: 8px;
    background: #f8fbff;
    color: #173563;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.bell-suppress-toggle input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #1f3f73;
}
.bell-suppress-toggle:has(input:checked) {
    border-color: #b9c7d8;
    background: #eef2f7;
    color: #526174;
}
.text-right { text-align: right; }
.table-action { font-weight: 800; }

.pov-provider-table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.pov-provider-table {
    min-width: 2200px;
}

.pov-provider-table th,
.pov-provider-table td {
    white-space: nowrap;
    vertical-align: top;
}

.pov-provider-table td {
    font-size: 13px;
}

.pov-provider-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.pov-section,
.pov-edit-section {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 18px;
    margin: 18px 0;
}

.pov-edit-section {
    background: #fff;
}

.pov-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 8px;
    margin: 0 0 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
}

.pov-tab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--primary);
    box-shadow: none;
    font-weight: 800;
}

.pov-tab-button:hover,
.pov-tab-button.is-active {
    border-color: #bfdbfe;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 28px rgba(30, 64, 124, .16);
}

.pov-tab-panel {
    display: none;
}

.pov-tab-panel.is-active {
    display: block;
}

.pov-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.pov-section-head h3 {
    margin: 4px 0 0;
    font-size: 19px;
}

.pov-summary-compact {
    margin: 0;
}

.pov-section .pov-contact-card-grid {
    margin-top: 14px;
}

.pov-provider-summary > div,
.pov-contact-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fbff;
    padding: 16px;
}

.pov-provider-summary span,
.pov-detail-row span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 7px;
}

.pov-provider-summary strong,
.pov-detail-row strong {
    display: block;
    color: var(--text);
    overflow-wrap: anywhere;
}

.pov-contact-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pov-contact-card h3 {
    margin: 0 0 14px;
    font-size: 17px;
}

.pov-admin-actions {
    display: grid;
    gap: 16px;
}

.pov-admin-actions .pov-edit-section {
    margin: 0;
}

.pov-admin-actions .associated-section {
    background: #f8fbff;
}

.pov-admin-actions .associated-row {
    grid-template-columns: 32px minmax(180px, 1fr);
}

.pov-admin-actions .associated-range-row {
    grid-template-columns: 32px minmax(160px, 1fr) minmax(160px, 1fr);
}

.pov-admin-actions textarea + label,
.pov-admin-actions label + textarea {
    margin-top: 10px;
}

.info-panel {
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: var(--text);
    padding: 16px 18px;
    margin: 18px 0;
}

.info-panel strong {
    display: block;
    margin-bottom: 6px;
}

.info-panel p {
    margin: 0;
    color: var(--muted);
}

.pov-detail-row {
    padding: 11px 0;
    border-top: 1px solid var(--border);
}

.pov-detail-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.pov-log-grid {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.pov-log-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.pov-log-panel .panel-heading {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.pov-log-panel .panel-heading h3 {
    margin: 0 0 4px;
}

.modal-open {
    overflow: hidden;
}

.pov-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, .42);
}

.pov-modal-backdrop[hidden] {
    display: none;
}

.pov-modal {
    width: min(620px, 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .24);
    padding: 24px;
}

.porting-fees-modal {
    width: min(920px, 100%);
}

.porting-fees-modal-table-wrap {
    max-height: min(58vh, 620px);
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.porting-fees-modal .enterprise-table {
    margin: 0;
}

.porting-fees-modal .enterprise-table th,
.porting-fees-modal .enterprise-table td {
    vertical-align: top;
}

.porting-fees-modal .enterprise-table th:last-child,
.porting-fees-modal .enterprise-table td:last-child {
    width: 120px;
    white-space: nowrap;
    text-align: right;
}

.pov-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.pov-modal-header h3 {
    margin: 4px 0 0;
    font-size: 22px;
}

.pov-modal-close {
    width: 38px;
    min-width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--primary);
    font-size: 24px;
    line-height: 1;
    box-shadow: none;
}

.pov-modal-close:hover {
    background: #eef6ff;
}

.pov-modal-actions {
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .pov-tabs,
    .pov-provider-summary,
    .pov-contact-card-grid {
        grid-template-columns: 1fr;
    }
}
.empty-state, .empty-row { padding: 18px 20px; color: var(--muted); background: #f8fafc; border-radius: 12px; border: 1px dashed var(--border); }
.empty-row { margin: 16px; }
@media (max-width: 800px) {
    .enterprise-hero, .account-card-header { align-items: flex-start; flex-direction: column; }
    .metrics-row { grid-template-columns: 1fr; }
    .hero-actions, .hero-actions a { width: 100%; }
}

/* Enterprise dropdown settings menu */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropbtn { width: auto; margin: 0; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--primary); font-size: 15px; font-weight: 700; cursor: pointer; }
.nav-dropbtn:hover, .nav-dropbtn.active { background: #eef6ff; color: var(--primary-dark); }
.nav-dropdown-menu { display: none; position: absolute; top: 40px; right: 0; min-width: 220px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 45px rgba(15,23,42,.16); padding: 8px; z-index: 50; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 12px 13px; border-radius: 10px; color: var(--text); font-weight: 700; }
.nav-dropdown-menu a:hover { background: #f1f5f9; color: var(--primary); }
.strong-btn { font-weight: 800; box-shadow: 0 8px 18px rgba(15,23,42,.06); }
.admin-action-list { display: grid; gap: 12px; }
.admin-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(135deg, #fff, #f8fbff); }
.admin-action:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(15,23,42,.07); }
.admin-action strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 5px; }
.admin-action span { color: var(--muted); font-size: 14px; }
.admin-action em { font-style: normal; font-weight: 800; color: var(--primary); white-space: nowrap; }

/* Accounts & users search */
.users-search-panel .users-search-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    margin: 0;
}

.users-search-panel .users-search-form button,
.users-search-panel .users-search-form a {
    width: auto;
    min-width: 120px;
    margin-top: 0;
}

@media (max-width: 800px) {
    .users-search-panel .users-search-form {
        grid-template-columns: 1fr;
    }

    .users-search-panel .users-search-form button,
    .users-search-panel .users-search-form a {
        width: 100%;
    }
}

/* Customer account tools */
.accounts-settings-page .account-tool-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: 18px;
    align-items: start;
}

.accounts-settings-page .account-search-form,
.accounts-settings-page .account-import-form {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.accounts-settings-page .account-search-form label,
.accounts-settings-page .account-import-form label {
    margin-top: 0;
}

.accounts-settings-page .account-search-row,
.accounts-settings-page .account-import-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accounts-settings-page .account-search-row input,
.accounts-settings-page .account-import-row input {
    min-height: 44px;
}

.accounts-settings-page .account-search-row button,
.accounts-settings-page .account-import-row button,
.accounts-settings-page .form-actions button {
    width: auto;
    min-width: 140px;
    margin-top: 0;
}

.accounts-settings-page .account-import-form .small-note {
    margin: 10px 0 0;
}

.accounts-settings-page .account-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.accounts-settings-page {
    max-width: min(96vw, 1560px);
}

.accounts-settings-page .account-register-table {
    min-width: 1280px;
    table-layout: fixed;
}

.accounts-settings-page .account-register-table th,
.accounts-settings-page .account-register-table td {
    vertical-align: middle;
    overflow-wrap: anywhere;
    word-break: normal;
}

.accounts-settings-page .account-register-table th:nth-child(1),
.accounts-settings-page .account-register-table td:nth-child(1) {
    width: 210px;
}

.accounts-settings-page .account-register-table th:nth-child(2),
.accounts-settings-page .account-register-table td:nth-child(2) {
    width: 230px;
}

.accounts-settings-page .account-register-table th:nth-child(3),
.accounts-settings-page .account-register-table td:nth-child(3) {
    width: 80px;
}

.accounts-settings-page .account-register-table th:nth-child(4),
.accounts-settings-page .account-register-table td:nth-child(4) {
    width: 110px;
}

.accounts-settings-page .account-register-table th:nth-child(5),
.accounts-settings-page .account-register-table td:nth-child(5) {
    width: 250px;
}

.accounts-settings-page .account-register-table th:nth-child(6),
.accounts-settings-page .account-register-table td:nth-child(6),
.accounts-settings-page .account-register-table th:nth-child(7),
.accounts-settings-page .account-register-table td:nth-child(7),
.accounts-settings-page .account-register-table th:nth-child(8),
.accounts-settings-page .account-register-table td:nth-child(8) {
    width: 80px;
}

.accounts-settings-page .account-register-table th:nth-child(9),
.accounts-settings-page .account-register-table td:nth-child(9),
.accounts-settings-page .account-register-table th:nth-child(10),
.accounts-settings-page .account-register-table td:nth-child(10) {
    width: 90px;
    white-space: nowrap;
}

.accounts-settings-page .account-billing-options {
    display: grid;
    gap: 10px;
    align-self: end;
    margin-top: 16px;
}

.accounts-settings-page .account-billing-title {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.accounts-settings-page .account-flag-option {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 12px;
    align-items: center;
    min-height: 76px;
    margin: 0;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(135deg, #fff, #f8fbff);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.accounts-settings-page .account-flag-option:hover {
    border-color: #9db7dc;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .07);
    transform: translateY(-1px);
}

.accounts-settings-page .account-flag-option input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.accounts-settings-page .account-flag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eaf2ff;
    color: var(--primary);
    font-weight: 900;
    box-shadow: inset 0 0 0 1px #d5e2f5;
}

.accounts-settings-page .account-flag-option strong,
.accounts-settings-page .account-flag-option small {
    display: block;
}

.accounts-settings-page .account-flag-option small {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.35;
}

.accounts-settings-page .account-flag-option:has(input:checked) {
    border-color: #7fa2d5;
    background: #eef6ff;
}

.accounts-settings-page .account-flag-option:has(input:checked) .account-flag-icon {
    background: var(--primary);
    color: #fff;
}

.accounts-settings-page .account-onboarding-reset {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(360px, 1.2fr);
    gap: 22px;
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #f8fbff;
}

.accounts-settings-page .account-onboarding-reset h3 {
    margin: 0 0 8px;
    color: #071832;
    font-size: 20px;
}

.accounts-settings-page .account-onboarding-reset p {
    margin: 0;
    color: #53657f;
    line-height: 1.5;
}

.accounts-settings-page .account-onboarding-reset-form {
    display: grid;
    gap: 12px;
}

.accounts-settings-page .account-onboarding-reset-form label {
    margin-top: 0;
}

.accounts-settings-page .account-onboarding-reset-form button {
    justify-self: start;
    width: auto;
    margin-top: 0;
}

.accounts-settings-page .account-reset-checkbox {
    padding: 12px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
}

@media (max-width: 900px) {
    .accounts-settings-page .account-tool-grid {
        grid-template-columns: 1fr;
    }

    .accounts-settings-page .account-onboarding-reset {
        grid-template-columns: 1fr;
    }

    .accounts-settings-page .account-search-row,
    .accounts-settings-page .account-import-row {
        align-items: stretch;
        flex-direction: column;
    }

    .accounts-settings-page .account-search-row button,
    .accounts-settings-page .account-import-row button,
    .accounts-settings-page .account-search-row a {
        width: 100%;
    }
}


/* FIXED enterprise top navigation/dropdown */
.topbar { position: relative; z-index: 1000; }
.topbar nav { display: flex; align-items: center; gap: 16px; }
.topbar nav > a,
.topbar nav > span { display: inline-flex; align-items: center; min-height: 40px; }
.topbar nav > a { padding: 9px 12px; border-radius: 9px; font-weight: 700; }
.topbar nav > a:hover,
.topbar nav > a.active { background: #eef6ff; color: var(--primary-dark); }
.nav-dropdown { position: relative !important; display: inline-block !important; flex: 0 0 auto !important; }
.nav-dropbtn { width: auto !important; min-width: 130px; margin: 0 !important; padding: 11px 18px !important; border-radius: 10px !important; background: transparent; color: var(--primary); line-height: 1; }
.nav-dropbtn:hover,
.nav-dropbtn.active { background: var(--primary) !important; color: #fff !important; }
.nav-dropdown-menu { display: none !important; position: absolute !important; top: calc(100% + 8px) !important; left: 0 !important; right: auto !important; min-width: 240px !important; background: #fff !important; border: 1px solid var(--border) !important; border-radius: 14px !important; box-shadow: 0 18px 45px rgba(15,23,42,.16) !important; padding: 8px !important; z-index: 9999 !important; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block !important; }
.nav-dropdown-menu a { display: block !important; width: 100% !important; padding: 12px 14px !important; border-radius: 10px !important; color: var(--text) !important; font-weight: 700 !important; white-space: nowrap !important; }
.nav-dropdown-menu a:hover { background: #f1f5f9 !important; color: var(--primary) !important; }

/* Sticky dropdown fix - prevents menu collapsing while moving mouse from Settings to submenu */
.nav-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: stretch !important;
    padding-bottom: 10px !important;
    margin-bottom: -10px !important;
}
.nav-dropdown-menu {
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    margin-top: 0 !important;
}
.nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    display: block !important;
}
.nav-dropdown-menu a {
    text-decoration: none !important;
}

/* Click-to-open enterprise dropdown - final override */
.nav-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
.nav-dropdown::after { display: none !important; }
.nav-dropbtn {
    width: auto !important;
    min-width: 130px !important;
    margin: 0 !important;
    padding: 11px 18px !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: var(--primary) !important;
    line-height: 1 !important;
}
.nav-dropbtn:hover,
.nav-dropbtn.active,
.nav-dropdown.open .nav-dropbtn {
    background: var(--primary) !important;
    color: #fff !important;
}
.nav-dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: auto !important;
    min-width: 240px !important;
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 45px rgba(15,23,42,.16) !important;
    padding: 8px !important;
    z-index: 9999 !important;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    display: none !important;
}
.nav-dropdown.open .nav-dropdown-menu {
    display: block !important;
}
.nav-dropdown-menu a {
    display: block !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    color: var(--text) !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}
.nav-dropdown-menu a:hover {
    background: #f1f5f9 !important;
    color: var(--primary) !important;
}

/* FINAL HOVER DROPDOWN OVERRIDE - keeps menu open while pointer is over button OR submenu */
.topbar {
    position: relative !important;
    z-index: 1000 !important;
    overflow: visible !important;
}
.topbar nav {
    overflow: visible !important;
}
.nav-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    padding-bottom: 12px !important;
    margin-bottom: -12px !important;
    overflow: visible !important;
}
.nav-dropdown::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    height: 14px !important;
    background: transparent !important;
}
.nav-dropbtn {
    width: auto !important;
    min-width: 130px !important;
    margin: 0 !important;
    padding: 11px 18px !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: var(--primary) !important;
    line-height: 1 !important;
    cursor: default !important;
}
.nav-dropbtn:hover,
.nav-dropbtn.active,
.nav-dropdown:hover .nav-dropbtn,
.nav-dropdown:focus-within .nav-dropbtn {
    background: var(--primary) !important;
    color: #fff !important;
}
.nav-dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    min-width: 250px !important;
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 45px rgba(15,23,42,.16) !important;
    padding: 8px !important;
    z-index: 99999 !important;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    display: block !important;
}
.nav-dropdown.open .nav-dropdown-menu {
    display: block !important;
}
.nav-dropdown-menu a {
    display: block !important;
    width: 100% !important;
    padding: 13px 14px !important;
    border-radius: 10px !important;
    color: var(--text) !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}
.nav-dropdown-menu a:hover {
    background: #f1f5f9 !important;
    color: var(--primary) !important;
}

/* Enterprise profile menu */
.topbar-brand { display: flex; align-items: baseline; gap: 10px; }
.topnav { display: flex; align-items: center; gap: 16px; }
.profile-dropdown { position: relative; display: inline-flex; align-items: stretch; padding-bottom: 10px; margin-bottom: -10px; }
.profile-button { width: auto !important; margin: 0 !important; padding: 6px 10px !important; display: inline-flex; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 999px; background: #f8fafc !important; color: var(--text) !important; box-shadow: none !important; }
.profile-button:hover, .profile-button.active { background: #eef6ff !important; border-color: var(--border); color: var(--primary-dark) !important; }
.profile-avatar { width: 36px; height: 36px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; flex: 0 0 auto; }
.profile-summary { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.profile-summary strong { font-size: 14px; color: var(--text); }
.profile-summary small { color: var(--muted); font-size: 12px; margin-top: 3px; }
.profile-caret { color: var(--muted); font-size: 13px; }
.profile-dropdown-menu { display: none; position: absolute; top: 100%; right: 0; min-width: 280px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 45px rgba(15,23,42,.16); padding: 8px; z-index: 9999; }
.profile-dropdown:hover .profile-dropdown-menu, .profile-dropdown:focus-within .profile-dropdown-menu, .profile-dropdown-menu:hover { display: block; }
.profile-menu-header { display: flex; gap: 12px; align-items: center; padding: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.profile-menu-header strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 3px; }
.profile-menu-header span { display: block; color: var(--muted); font-size: 12px; word-break: break-word; }
.profile-menu-avatar, .profile-large-avatar { border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), #0ea5e9); color: #fff; font-weight: 900; letter-spacing: .04em; }
.profile-menu-avatar { width: 42px; height: 42px; font-size: 14px; flex: 0 0 auto; }
.profile-large-avatar { width: 82px; height: 82px; font-size: 26px; box-shadow: 0 14px 28px rgba(18,60,105,.18); }
.profile-dropdown-menu a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--text) !important; font-weight: 700; text-decoration: none; }
.profile-dropdown-menu a:hover { background: #f1f5f9; color: var(--primary) !important; }
.profile-panel input:disabled { background: #eef2f7; color: var(--muted); cursor: not-allowed; }
@media (max-width: 800px) {
    .profile-summary, .profile-caret { display: none; }
    .profile-dropdown-menu { right: 0; min-width: 250px; }
    .topbar { padding: 0 14px; }
    .topnav { gap: 8px; }
}

/* FINAL unified topbar/profile hover menu - all pages */
.enterprise-topbar,
.topbar {
    height: 66px !important;
    padding: 0 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border-bottom: 1px solid var(--border) !important;
    position: relative !important;
    z-index: 1000 !important;
    overflow: visible !important;
}
.topbar-brand { display: flex !important; align-items: baseline !important; gap: 10px !important; }
.topnav,
.topbar nav {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    height: 66px !important;
    overflow: visible !important;
}
.topnav > a,
.topbar nav > a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 40px !important;
    padding: 9px 14px !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    text-decoration: none !important;
}
.topnav > a:hover,
.topnav > a.active,
.topbar nav > a:hover,
.topbar nav > a.active {
    background: #eef6ff !important;
    color: var(--primary-dark) !important;
}
.nav-dropdown,
.profile-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    overflow: visible !important;
    padding-bottom: 12px !important;
    margin-bottom: -12px !important;
}
.nav-dropbtn {
    width: auto !important;
    min-width: 132px !important;
    margin: 0 !important;
    padding: 11px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: var(--primary) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}
.nav-dropbtn:hover,
.nav-dropbtn.active,
.nav-dropdown:hover .nav-dropbtn,
.nav-dropdown:focus-within .nav-dropbtn {
    background: var(--primary) !important;
    color: #fff !important;
}
.nav-dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    min-width: 240px !important;
    margin-top: 0 !important;
    padding: 8px !important;
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 45px rgba(15,23,42,.16) !important;
    z-index: 9999 !important;
}
.nav-dropdown::after,
.profile-dropdown::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    height: 14px !important;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    display: block !important;
}
.nav-dropdown-menu a {
    display: block !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    color: var(--text) !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}
.nav-dropdown-menu a:hover { background: #f1f5f9 !important; color: var(--primary) !important; }
.profile-button {
    width: auto !important;
    min-width: 190px !important;
    margin: 0 !important;
    padding: 6px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    border: 1px solid var(--border) !important;
    border-radius: 999px !important;
    background: #eef6ff !important;
    color: var(--text) !important;
    box-shadow: none !important;
    font-size: 15px !important;
    line-height: 1 !important;
}
.profile-button:hover,
.profile-button.active,
.profile-dropdown:hover .profile-button,
.profile-dropdown:focus-within .profile-button {
    background: #eef6ff !important;
    border-color: #cfd9e8 !important;
    color: var(--primary-dark) !important;
}
.profile-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--primary) !important;
    color: #fff !important;
    flex: 0 0 auto !important;
}
.profile-summary { display: flex !important; flex-direction: column !important; align-items: flex-start !important; line-height: 1.1 !important; }
.profile-summary strong { font-size: 14px !important; color: var(--text) !important; font-weight: 900 !important; }
.profile-summary small { color: var(--muted) !important; font-size: 12px !important; margin-top: 3px !important; font-weight: 700 !important; }
.profile-caret { color: var(--muted) !important; font-size: 13px !important; margin-left: auto !important; }
.profile-dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    width: 280px !important;
    min-width: 280px !important;
    margin-top: 0 !important;
    padding: 8px !important;
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 45px rgba(15,23,42,.16) !important;
    z-index: 9999 !important;
}
.profile-dropdown:hover .profile-dropdown-menu,
.profile-dropdown:focus-within .profile-dropdown-menu,
.profile-dropdown-menu:hover {
    display: block !important;
}
.profile-menu-header {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 12px !important;
    margin-bottom: 6px !important;
    border-bottom: 1px solid var(--border) !important;
}
.profile-menu-header strong { display: block !important; color: var(--text) !important; font-size: 14px !important; margin-bottom: 3px !important; font-weight: 900 !important; }
.profile-menu-header span { display: block !important; color: var(--muted) !important; font-size: 12px !important; word-break: break-word !important; line-height: 1.25 !important; }
.profile-menu-avatar,
.profile-large-avatar {
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--primary), #0ea5e9) !important;
    color: #fff !important;
    font-weight: 900 !important;
    letter-spacing: .04em !important;
}
.profile-menu-avatar { width: 42px !important; height: 42px !important; font-size: 14px !important; flex: 0 0 auto !important; }
.profile-large-avatar { width: 82px !important; height: 82px !important; font-size: 26px !important; box-shadow: 0 14px 28px rgba(18,60,105,.18) !important; }
.profile-dropdown-menu a {
    display: block !important;
    padding: 13px 14px !important;
    border-radius: 10px !important;
    color: var(--text) !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}
.profile-dropdown-menu a:hover { background: #f1f5f9 !important; color: var(--primary) !important; }
@media (max-width: 800px) {
    .profile-summary, .profile-caret { display: none !important; }
    .profile-button { min-width: auto !important; }
    .profile-dropdown-menu { right: 0 !important; min-width: 250px !important; width: 250px !important; }
    .topbar { padding: 0 14px !important; }
    .topnav { gap: 8px !important; }
}


/* IT Communications logo header */
.portal-logo {
    height: 48px !important;
    width: auto !important;
    display: block !important;
}
.topbar-brand {
    display: flex !important;
    align-items: center !important;
}

/* FINAL LOGO HEADER SIZE OVERRIDE - Number Management */
.enterprise-topbar,
.topbar {
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    padding: 0 28px !important;
    overflow: visible !important;
}

.topbar-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 80px !important;
    max-height: 80px !important;
}

.portal-logo {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    display: block !important;
}

.topnav,
.topbar nav {
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    align-items: center !important;
}

.profile-button {
    min-height: 44px !important;
}


/* NEW PORT ORDER WIZARD LAYOUT FIX */
.wizard-container {
    max-width: 1250px !important;
}

.wizard-progress {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
}

.wizard-step {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 16px !important;
    border: 1px solid var(--border) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--muted) !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    line-height: 1 !important;
}

.wizard-step.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.wizard-step-number {
    width: 24px !important;
    height: 24px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,.2) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.wizard-panel {
    padding: 0 !important;
    overflow: hidden !important;
}

.wizard-section-title {
    padding: 18px 22px !important;
    border-bottom: 1px solid var(--border) !important;
    background: linear-gradient(135deg, #ffffff, #f8fbff) !important;
}

.wizard-section-title h2 {
    margin: 0 !important;
    font-size: 20px !important;
}

.wizard-section-title > .pill {
    display: inline-flex !important;
    margin-top: 8px !important;
}

.wizard-section-body {
    padding: 22px !important;
}

.wizard-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 28px !important;
}

.wizard-form-grid .full-width {
    grid-column: 1 / -1 !important;
}

.required {
    color: #dc2626 !important;
    font-weight: 900 !important;
}

.helper-note {
    margin-top: 8px !important;
    color: var(--muted) !important;
    font-size: 13px !important;
}

.field-label-with-help {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 22px 0 8px !important;
}

.field-label-with-help label {
    margin: 0 !important;
}

.field-help {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    outline: 0 !important;
}

.field-help-trigger {
    width: 20px !important;
    height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #bfd0e7 !important;
    border-radius: 999px !important;
    background: #eef6ff !important;
    color: var(--primary) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    cursor: help !important;
}

.field-help:hover .field-help-trigger,
.field-help:focus .field-help-trigger,
.field-help:focus-within .field-help-trigger {
    border-color: #8fb1dc !important;
    background: var(--primary) !important;
    color: #fff !important;
}

.field-help-popover {
    display: none !important;
    position: absolute !important;
    left: 0 !important;
    bottom: calc(100% + 10px) !important;
    width: min(380px, calc(100vw - 48px)) !important;
    transform: translateX(-12px) !important;
    padding: 14px !important;
    border: 1px solid #cfd9e8 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 18px 45px rgba(15,23,42,.18) !important;
    color: var(--text) !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    z-index: 50 !important;
}

.field-help-popover::after {
    content: "" !important;
    position: absolute !important;
    left: 22px !important;
    top: 100% !important;
    width: 12px !important;
    height: 12px !important;
    transform: translateY(-6px) rotate(45deg) !important;
    border-right: 1px solid #cfd9e8 !important;
    border-bottom: 1px solid #cfd9e8 !important;
    background: #fff !important;
}

.field-help:hover .field-help-popover,
.field-help:focus .field-help-popover,
.field-help:focus-within .field-help-popover {
    display: grid !important;
    gap: 8px !important;
}

.wizard-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding-top: 22px !important;
    margin-top: 22px !important;
    border-top: 1px solid var(--border) !important;
}

.wizard-actions-split {
    justify-content: space-between !important;
}

.wizard-actions-left {
    display: flex !important;
    gap: 12px !important;
}

.wizard-actions .wizard-btn {
    min-width: 130px !important;
    min-height: 46px !important;
}

.wizard-actions .btn-primary.wizard-btn,
.wizard-actions .btn-secondary.wizard-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 13px 18px !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.wizard-actions button.wizard-btn {
    width: auto !important;
    margin-top: 0 !important;
    border: 0 !important;
}

.wizard-proceed-btn {
    min-width: 220px !important;
}

@media (max-width: 800px) {
    .wizard-progress {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .wizard-form-grid {
        grid-template-columns: 1fr !important;
    }

    .wizard-actions-split,
    .wizard-actions-left {
        align-items: stretch !important;
        flex-direction: column-reverse !important;
        width: 100% !important;
    }

    .wizard-actions .wizard-btn,
    .wizard-proceed-btn {
        width: 100% !important;
    }
}


/* SUP Current Provider / Lookup card support */
.lookup-result-card {
    margin-top: 0;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.lookup-result-card strong {
    display: block;
    color: var(--text);
    margin-bottom: 5px;
}

.lookup-result-card span {
    color: var(--muted);
    font-size: 13px;
}

.lookup-success {
    border-color: #bbf7d0 !important;
    background: #f0fdf4 !important;
}

.lookup-warning {
    border-color: #fde68a !important;
    background: #fffbeb !important;
}

.lookup-error {
    border-color: #fecaca !important;
    background: #fef2f2 !important;
}

.pov-prefill-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
    padding: 14px 16px;
}

.pov-prefill-panel[hidden] {
    display: none;
}

.pov-prefill-panel strong,
.pov-prefill-panel span {
    display: block;
}

.pov-prefill-panel strong {
    color: var(--primary);
    margin-bottom: 4px;
}

.pov-prefill-panel span {
    color: var(--muted);
    font-size: 13px;
}

.pov-prefill-panel.lookup-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.pov-prefill-panel.lookup-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

/* Enterprise dashboard KPI layout */
.dashboard-page {
    width: min(1320px, calc(100vw - 48px));
    max-width: none;
}

.dashboard-hero-actions {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.dashboard-hero-actions h1 {
    margin: 0 0 8px;
    font-size: 34px;
}

.dashboard-hero-actions p {
    margin: 0;
    color: var(--muted);
}

.dashboard-action-panel {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff, #f8fbff);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .07);
    padding: 0;
    margin-bottom: 22px;
    overflow: hidden;
}

.dashboard-action-panel .empty-state {
    margin: 22px 24px 24px;
}

.dashboard-action-header,
.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-action-header {
    margin-bottom: 0;
    padding: 20px 24px;
    border-bottom: 1px solid #dbe5f2;
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
}

.dashboard-action-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 900;
    color: var(--text);
}

.dashboard-alert-icon,
.dashboard-metric-icon,
.dashboard-activity-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #123c69;
    background: #eaf3ff;
    flex: 0 0 auto;
}

.dashboard-alert-icon {
    background: #fff1df;
    color: #c2410c;
}

.dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 20px 24px 24px;
}

.dashboard-action-grid-count-1 {
    grid-template-columns: minmax(280px, 460px);
}

.dashboard-action-grid-count-2 {
    grid-template-columns: repeat(2, minmax(260px, 460px));
}

.dashboard-action-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    min-height: 126px;
    padding: 18px;
    border: 1px solid #dbe5f2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.dashboard-action-item:first-child {
    border-color: #f0c7a9;
    background: linear-gradient(135deg, #fff, #fff7ed);
}

.dashboard-action-number {
    display: block;
    font-size: 34px;
    line-height: 1;
    font-weight: 950;
    color: #071d33;
    margin-bottom: 6px;
}

.dashboard-action-item p {
    margin: 2px 0 12px;
    color: #334155;
    font-size: 15px;
    line-height: 1.35;
}

.dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    color: #0b55c7;
    text-decoration: none;
    font-size: 14px;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.dashboard-kpi-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .055);
    padding: 18px 18px 16px;
    min-height: 138px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard-kpi-content {
    min-width: 0;
}

.dashboard-kpi-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dashboard-metric-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin-bottom: 0;
    border-radius: 12px;
    font-size: 13px;
}

.dashboard-metric-icon.orange { background: #fff1df; color: #ea580c; }
.dashboard-metric-icon.green { background: #dcfce7; color: #15803d; }
.dashboard-metric-icon.purple { background: #f1e9ff; color: #7c3aed; }
.dashboard-metric-icon.blue { background: #eaf3ff; color: #1d4ed8; }

.dashboard-kpi-label {
    display: block;
    color: #344054;
    font-size: 13px;
    line-height: 1.25;
    min-height: 0;
    overflow-wrap: anywhere;
}

.dashboard-kpi-value {
    display: block;
    font-size: 30px;
    font-weight: 950;
    color: #071d33;
    margin-top: 18px;
    line-height: 1;
}

.dashboard-trend {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    margin-top: 14px;
}

.dashboard-trend.up { color: #15803d; }
.dashboard-trend.down { color: #dc2626; }

.dashboard-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 18px;
    margin-bottom: 22px;
}

.dashboard-activity-list {
    display: grid;
    gap: 16px;
}

.dashboard-activity-row {
    display: grid;
    grid-template-columns: 54px auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 0 0 14px;
    border-bottom: 1px solid #eef2f7;
}

.dashboard-activity-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dashboard-activity-time {
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.dashboard-activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 14px;
}

.dashboard-activity-icon.ok { background: #dcfce7; color: #15803d; }
.dashboard-activity-icon.warn { background: #fff1df; color: #ea580c; }
.dashboard-activity-icon.info { background: #eaf3ff; color: #1d4ed8; }
.dashboard-activity-icon.bill { background: #f1e9ff; color: #7c3aed; }

.dashboard-activity-copy strong {
    display: block;
    color: #172033;
    font-size: 14px;
    margin-bottom: 3px;
}

.dashboard-activity-copy span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.dashboard-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #edf7ed;
    color: #166534;
    font-size: 12px;
    font-weight: 900;
}

.dashboard-operational-grid {
    display: grid;
    grid-template-columns: minmax(260px, .95fr) minmax(320px, 1.05fr);
    gap: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.dashboard-operational-main,
.dashboard-operational-tile {
    min-width: 0;
    background: #fff;
}

.dashboard-operational-main {
    padding: 18px;
    border-right: 1px solid #e2e8f0;
}

.dashboard-operational-main span,
.dashboard-operational-tile span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 7px;
}

.dashboard-operational-main strong,
.dashboard-operational-tile strong {
    display: block;
    color: #071d33;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 2px;
}

.dashboard-operational-chart {
    height: 122px;
    margin-top: 14px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(29, 78, 216, .08), rgba(29, 78, 216, .015)),
        repeating-linear-gradient(0deg, transparent, transparent 30px, #edf2f7 31px);
    overflow: hidden;
}

.dashboard-operational-chart svg {
    width: 100%;
    height: 100%;
    padding: 12px;
    box-sizing: border-box;
}

.dashboard-operational-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-operational-tile {
    padding: 16px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-operational-tile:nth-child(2n) {
    border-right: 0;
}

.dashboard-operational-tile:nth-last-child(-n+2) {
    border-bottom: 0;
}

.dashboard-operational-tile svg {
    display: block;
    width: 100%;
    height: 50px;
    margin-top: 8px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(248, 250, 252, .8), rgba(255, 255, 255, .9));
}

.dashboard-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-module-card {
    display: flex;
    flex-direction: column;
    min-height: 238px;
    padding: 20px;
    border: 1px solid #d8e2ef;
    border-radius: 18px;
    background: linear-gradient(145deg, #fff 0%, #f8fbff 100%);
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

.dashboard-module-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.dashboard-module-icon {
    min-width: 50px;
    height: 50px;
    padding: 0 10px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 950;
    background: linear-gradient(135deg, #163d72, #3b82f6);
    box-shadow: 0 14px 28px rgba(29, 78, 216, .22);
}

.dashboard-module-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.dashboard-module-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: 14px;
}

.dashboard-module-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.dashboard-module-mini span {
    display: block;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 6px;
}

.dashboard-module-mini strong {
    font-size: 18px;
    color: #071d33;
}

@media (max-width: 1100px) {
    .dashboard-kpi-grid,
    .dashboard-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-lower-grid,
    .dashboard-operational-grid,
    .dashboard-action-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-operational-main {
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }
    .dashboard-action-item {
        border-bottom: 0;
    }
}

@media (max-width: 720px) {
    .dashboard-page {
        width: min(100%, calc(100vw - 24px));
        padding-left: 0;
        padding-right: 0;
    }
    .dashboard-hero-actions,
    .dashboard-action-header,
    .dashboard-section-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .dashboard-kpi-grid,
    .dashboard-module-grid,
    .dashboard-operational-side {
        grid-template-columns: 1fr;
    }
    .dashboard-operational-tile,
    .dashboard-operational-tile:nth-child(2n),
    .dashboard-operational-tile:nth-last-child(-n+2) {
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }
    .dashboard-operational-tile:last-child {
        border-bottom: 0;
    }
    .dashboard-activity-row {
        grid-template-columns: 44px auto minmax(0, 1fr);
    }
    .dashboard-status-chip {
        grid-column: 3;
        justify-self: start;
    }
}


/* Multi-line associated numbers/ranges */
.multiline-associated-wrap {
    margin-top: 18px;
}

.associated-section {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f8fafc;
    margin-top: 16px;
}

.associated-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.associated-heading h3 {
    margin: 0;
    font-size: 17px;
}

.associated-rows {
    display: grid;
    gap: 10px;
}

.associated-row {
    display: grid;
    grid-template-columns: 32px minmax(180px, 1fr) minmax(260px, 1fr);
    align-items: center;
    gap: 12px;
}

.associated-range-row {
    grid-template-columns: 32px minmax(160px, 1fr) minmax(160px, 1fr) minmax(260px, 1fr);
}

.associated-index {
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.associated-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

.associated-action strong {
    margin-right: 14px;
}

.associated-action label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 700;
}

.associated-action input[type="radio"] {
    width: auto;
}

.btn-add-inline {
    width: auto !important;
    margin-top: 14px !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    background: #22c55e !important;
    color: #fff !important;
    font-weight: 900 !important;
}

.btn-add-inline:hover {
    background: #16a34a !important;
}

@media (max-width: 900px) {
    .associated-row,
    .associated-range-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .associated-index {
        text-align: left;
    }

    .associated-action {
        flex-wrap: wrap;
    }
}


/* Signed LOA upload */
.loa-upload-box {
    grid-column: 1 / -1;
    margin-top: 18px;
    padding: 18px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    background: #f8fafc;
}

.loa-upload-box h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.loa-upload-box p {
    margin: 0 0 14px;
}

.loa-upload-box input[type="file"] {
    background: #fff;
}


/* Customer Details - Wizard Step 3 */
.customer-details-grid textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    resize: vertical;
}

.customer-details-grid textarea:focus {
    outline: 3px solid rgba(0,163,255,.18);
    border-color: var(--accent);
}

.customer-name-row {
    grid-column: 1 / -1;
}

.customer-name-inputs {
    display: grid;
    grid-template-columns: 120px 140px 1fr;
    gap: 10px;
}

@media (max-width: 800px) {
    .customer-name-inputs {
        grid-template-columns: 1fr;
    }
}


/* Port Date - Wizard Step 4 */
.lead-time-box {
    padding: 18px;
    margin-bottom: 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f8fafc;
}

.lead-time-box h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.lead-time-box p {
    margin: 0 0 14px;
    color: var(--muted);
}

.lead-time-table {
    width: 100%;
    max-width: 980px;
    table-layout: fixed;
    background: #fff;
}

.lead-time-table th,
.lead-time-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.lead-time-table th {
    color: var(--text);
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
}

.lead-time-table th:first-child {
    width: 52%;
}

.lead-time-table th:not(:first-child),
.lead-time-table td {
    width: 24%;
    white-space: nowrap;
}

.lead-time-table th span {
    color: var(--muted);
    font-weight: 600;
}

.lead-time-table tr:nth-child(odd) {
    background: #f1f5f9;
}

@media (max-width: 700px) {
    .lead-time-table {
        table-layout: auto;
    }

    .lead-time-table th:first-child,
    .lead-time-table th:not(:first-child),
    .lead-time-table td {
        width: auto;
        white-space: normal;
    }
}

.port-date-grid textarea {
    width: 100%;
    min-height: 110px;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    resize: vertical;
}

.port-date-grid textarea:focus {
    outline: 3px solid rgba(0,163,255,.18);
    border-color: var(--accent);
}


/* Review Screen - Wizard Step 5 */
.review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.review-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.review-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #ffffff, #f8fbff);
}

.review-card-heading h3 {
    margin: 0;
    font-size: 17px;
}

.review-card-heading a {
    font-weight: 900;
}

.review-card dl {
    margin: 0;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 10px 16px;
}

.review-card dt {
    color: var(--muted);
    font-weight: 800;
}

.review-card dd {
    margin: 0;
    color: var(--text);
    font-weight: 700;
    word-break: break-word;
}

.review-subsection {
    padding: 0 18px 16px;
}

.review-subsection h4 {
    margin: 6px 0 10px;
    font-size: 15px;
}

.review-line-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
    margin-bottom: 8px;
}

.review-warning {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-weight: 800;
}

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

    .review-card dl {
        grid-template-columns: 1fr;
    }
}


/* LOA upload save note */
.loa-saved-note { margin-top: 12px !important; margin-bottom: 0 !important; }


/* Submit Screen - Wizard Step 6 */
.submit-summary-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
}

.submit-summary-box h3 {
    margin: 0 0 16px;
    font-size: 18px;
}

.submit-summary-box dl {
    margin: 0;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 10px 16px;
}

.submit-summary-box dt {
    color: var(--muted);
    font-weight: 900;
}

.submit-summary-box dd {
    margin: 0;
    font-weight: 800;
    color: var(--text);
}

.confirmation-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    margin: 20px 0 0;
}

.confirmation-section h3 {
    margin: 0 0 18px;
    font-size: 18px;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.35;
}

.checkbox-row:last-child {
    margin-bottom: 0;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
}

@media (max-width: 800px) {
    .submit-summary-box dl {
        grid-template-columns: 1fr;
    }
}


/* NUMBER PORTING ORDERS WIDTH FIX
   Makes the Port Orders results area wide enough and keeps overflow inside the panel. */

.number-porting-page-wide {
    width: min(1700px, calc(100vw - 48px)) !important;
    max-width: none !important;
}

.number-porting-page-wide .port-search-panel,
.number-porting-page-wide .hero-panel,
.number-porting-page-wide .cards,
.number-porting-page-wide .port-actions-row {
    max-width: 1250px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.number-porting-page-wide .port-orders-wide-panel {
    width: 100% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
    overflow: hidden !important;
}

.number-porting-page-wide .port-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
}

.number-porting-page-wide .port-results-table {
    width: 100% !important;
    min-width: 1450px !important;
    table-layout: fixed !important;
}

.number-porting-page-wide .port-results-table th,
.number-porting-page-wide .port-results-table td {
    padding: 12px 10px !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    vertical-align: middle !important;
}

.number-porting-page-wide .port-results-table th {
    font-size: 12px !important;
    line-height: 1.15 !important;
}

.number-porting-page-wide .port-results-table th:nth-child(1),
.number-porting-page-wide .port-results-table td:nth-child(1) {
    width: 110px !important;
}

.number-porting-page-wide .port-results-table th:nth-child(2),
.number-porting-page-wide .port-results-table td:nth-child(2) {
    width: 125px !important;
}

.number-porting-page-wide .port-results-table th:nth-child(3),
.number-porting-page-wide .port-results-table td:nth-child(3) {
    width: 145px !important;
}

.number-porting-page-wide .port-results-table th:nth-child(4),
.number-porting-page-wide .port-results-table td:nth-child(4) {
    width: 115px !important;
}

.number-porting-page-wide .port-results-table th:nth-child(5),
.number-porting-page-wide .port-results-table td:nth-child(5) {
    width: 125px !important;
}

.number-porting-page-wide .port-results-table th:nth-child(6),
.number-porting-page-wide .port-results-table td:nth-child(6),
.number-porting-page-wide .port-results-table th:nth-child(7),
.number-porting-page-wide .port-results-table td:nth-child(7) {
    width: 105px !important;
}

.number-porting-page-wide .port-results-table th:nth-child(8),
.number-porting-page-wide .port-results-table td:nth-child(8),
.number-porting-page-wide .port-results-table th:nth-child(9),
.number-porting-page-wide .port-results-table td:nth-child(9),
.number-porting-page-wide .port-results-table th:nth-child(10),
.number-porting-page-wide .port-results-table td:nth-child(10) {
    width: 110px !important;
}

.number-porting-page-wide .port-results-table th:nth-child(11),
.number-porting-page-wide .port-results-table td:nth-child(11),
.number-porting-page-wide .port-results-table th:nth-child(12),
.number-porting-page-wide .port-results-table td:nth-child(12),
.number-porting-page-wide .port-results-table th:nth-child(13),
.number-porting-page-wide .port-results-table td:nth-child(13),
.number-porting-page-wide .port-results-table th:nth-child(14),
.number-porting-page-wide .port-results-table td:nth-child(14) {
    width: 85px !important;
}

.number-porting-page-wide .port-results-table th:nth-child(15),
.number-porting-page-wide .port-results-table td:nth-child(15) {
    width: 95px !important;
}

@media (max-width: 1200px) {
    .number-porting-page-wide {
        width: calc(100vw - 24px) !important;
    }

    .number-porting-page-wide .port-results-table {
        min-width: 1450px !important;
    }
}


/* Port Order View - Number Count Total */
.number-total-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f8fafc;
}

.number-total-box span {
    color: var(--muted);
    font-weight: 900;
}

.number-total-box strong {
    min-width: 70px;
    text-align: center;
    font-size: 24px;
    color: var(--primary);
}


/* PORT ORDER VIEW ENTERPRISE RESTORE */
.port-order-view-page {
    max-width: 1250px !important;
}

.port-order-view-page .enterprise-table th {
    width: auto;
}

.port-order-view-page .enterprise-table tbody th {
    width: 35%;
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 900;
}

.port-order-view-page .enterprise-table tbody td {
    font-weight: 700;
    color: var(--text);
}

.port-order-view-page .panel {
    margin-bottom: 26px;
}

.port-order-view-page .hero-panel {
    margin-bottom: 26px;
}


/* NUMBER PORTING FINAL WIDTH FIX */
.porting-page {
    max-width: 1700px !important;
    width: min(1700px, calc(100vw - 48px)) !important;
}

.porting-page .hero-panel,
.porting-page .cards,
.porting-page .port-search-panel,
.porting-page .port-actions-row {
    max-width: 1250px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.port-orders-wide-panel {
    width: 100% !important;
    max-width: none !important;
    overflow: hidden !important;
}

.port-orders-wide-panel .panel-heading {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.port-table-wrap {
    overflow-x: auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

.port-results-table {
    min-width: 1550px !important;
    width: 100% !important;
    table-layout: fixed !important;
}

.port-results-table th,
.port-results-table td {
    white-space: nowrap !important;
    vertical-align: middle !important;
    padding: 12px 10px !important;
}

.port-results-table th {
    font-size: 12px !important;
    line-height: 1.15 !important;
}

.port-results-table td:nth-child(1),
.port-results-table th:nth-child(1) {
    width: 115px !important;
    white-space: normal !important;
}

.port-results-table td:nth-child(2),
.port-results-table th:nth-child(2) {
    width: 130px !important;
}

.port-results-table td:nth-child(3),
.port-results-table th:nth-child(3) {
    width: 170px !important;
    white-space: normal !important;
}

.port-results-table td:nth-child(4),
.port-results-table th:nth-child(4) {
    width: 120px !important;
    white-space: normal !important;
}

.port-results-table td:nth-child(5),
.port-results-table th:nth-child(5) {
    width: 130px !important;
    white-space: normal !important;
}

.port-results-table td:nth-child(6),
.port-results-table th:nth-child(6),
.port-results-table td:nth-child(7),
.port-results-table th:nth-child(7) {
    width: 110px !important;
    white-space: normal !important;
}

.port-results-table td:nth-child(8),
.port-results-table th:nth-child(8),
.port-results-table td:nth-child(9),
.port-results-table th:nth-child(9),
.port-results-table td:nth-child(10),
.port-results-table th:nth-child(10) {
    width: 120px !important;
    white-space: normal !important;
}

.port-results-table td:nth-child(11),
.port-results-table th:nth-child(11),
.port-results-table td:nth-child(12),
.port-results-table th:nth-child(12),
.port-results-table td:nth-child(13),
.port-results-table th:nth-child(13),
.port-results-table td:nth-child(14),
.port-results-table th:nth-child(14) {
    width: 90px !important;
    white-space: normal !important;
}

.port-results-table td:nth-child(15),
.port-results-table th:nth-child(15) {
    width: 100px !important;
}

@media (max-width: 1200px) {
    .porting-page {
        width: calc(100vw - 24px) !important;
    }
}


/* NUMBER PORTING NO SCROLL WIDTH FIX
   Uses almost the full browser width and reduces the table minimum width
   so the bottom scrollbar is not needed on normal desktop screens. */

.porting-page {
    max-width: none !important;
    width: calc(100vw - 64px) !important;
}

.porting-page .port-orders-wide-panel {
    width: 100% !important;
    max-width: none !important;
}

.porting-page .port-table-wrap {
    overflow-x: visible !important;
    width: 100% !important;
}

.porting-page .port-results-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
}

.porting-page .port-results-table th,
.porting-page .port-results-table td {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    padding: 12px 8px !important;
}

/* Hide Order ID column on the operational table to gain width.
   The View action still opens the order details. */
.porting-page .port-results-table th:nth-child(1),
.porting-page .port-results-table td:nth-child(1) {
    display: none !important;
}

/* Compact operational columns */
.porting-page .port-results-table th:nth-child(2),
.porting-page .port-results-table td:nth-child(2) {
    width: 9% !important;
}

.porting-page .port-results-table th:nth-child(3),
.porting-page .port-results-table td:nth-child(3) {
    width: 11% !important;
}

.porting-page .port-results-table th:nth-child(4),
.porting-page .port-results-table td:nth-child(4) {
    width: 9% !important;
}

.porting-page .port-results-table th:nth-child(5),
.porting-page .port-results-table td:nth-child(5) {
    width: 10% !important;
}

.porting-page .port-results-table th:nth-child(6),
.porting-page .port-results-table td:nth-child(6),
.porting-page .port-results-table th:nth-child(7),
.porting-page .port-results-table td:nth-child(7) {
    width: 9% !important;
}

.porting-page .port-results-table th:nth-child(8),
.porting-page .port-results-table td:nth-child(8),
.porting-page .port-results-table th:nth-child(9),
.porting-page .port-results-table td:nth-child(9) {
    width: 8% !important;
}

.porting-page .port-results-table th:nth-child(10),
.porting-page .port-results-table td:nth-child(10) {
    width: 5% !important;
}

.porting-page .port-results-table th:nth-child(11),
.porting-page .port-results-table td:nth-child(11) {
    width: 5% !important;
}

.porting-page .port-results-table th:nth-child(12),
.porting-page .port-results-table td:nth-child(12) {
    width: 12% !important;
}

.port-order-actions-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.port-order-actions-cell .inline-delete-form {
    display: inline-flex;
    margin: 0;
}

.port-order-action-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: auto !important;
    min-width: 82px !important;
    margin: 0 !important;
    padding: 9px 12px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
    cursor: pointer !important;
    box-shadow: 0 8px 18px rgba(15, 31, 56, 0.10) !important;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease !important;
}

.port-order-action-button span {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
}

.port-order-action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 31, 56, 0.16) !important;
}

.port-order-action-view {
    background: #1f3f75 !important;
    color: #fff !important;
}

.port-order-action-view:hover {
    background: #173262 !important;
}

.port-order-action-delete {
    background: #b42318 !important;
    color: #fff !important;
}

.port-order-action-delete:hover {
    background: #8f1d14 !important;
}

@media (max-width: 1200px) {
    .porting-page {
        width: calc(100vw - 24px) !important;
    }

    .porting-page .port-table-wrap {
        overflow-x: auto !important;
    }

    .porting-page .port-results-table {
        min-width: 1200px !important;
    }
}
/* Port Orders spacing fix */
.port-actions-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
}


/* ADMIN ACTION WIDGET CARDS */
.admin-order-actions-panel {
    padding: 24px !important;
}

.admin-action-widgets {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(220px, 1fr)) !important;
    gap: 18px !important;
    align-items: stretch !important;
}

.admin-action-widget {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 18px !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 10px 22px rgba(15,23,42,.05) !important;
    min-height: 260px !important;
}

.admin-action-widget-head {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
    min-height: 74px !important;
}

.admin-action-widget-head h3 {
    margin: 0 0 5px !important;
    font-size: 17px !important;
    color: var(--text) !important;
}

.admin-action-widget-head p {
    margin: 0 !important;
    color: var(--muted) !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.admin-action-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    font-weight: 900 !important;
    color: #fff !important;
}

.admin-action-widget-accept .admin-action-icon {
    background: #166534 !important;
}

.admin-action-widget-reject .admin-action-icon {
    background: #b91c1c !important;
}

.admin-action-widget-cancel .admin-action-icon {
    background: #d97706 !important;
}

.admin-action-widget-edit .admin-action-icon {
    background: var(--primary) !important;
}

.admin-action-widget label {
    margin: 0 0 -4px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.admin-action-widget input {
    padding: 11px 12px !important;
    min-height: 42px !important;
    font-size: 14px !important;
}

.admin-action-small {
    width: auto !important;
    min-width: 110px !important;
    max-width: 150px !important;
    min-height: 42px !important;
    margin-top: auto !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    font-weight: 900 !important;
    align-self: flex-start !important;
    box-shadow: 0 8px 18px rgba(15,23,42,.08) !important;
}

.admin-action-widget button.admin-action-small {
    border: 0 !important;
}

.admin-action-widget-accept {
    border-top: 4px solid #166534 !important;
}

.admin-action-widget-reject {
    border-top: 4px solid #b91c1c !important;
}

.admin-action-widget-cancel {
    border-top: 4px solid #d97706 !important;
}

.admin-action-widget-edit {
    border-top: 4px solid var(--primary) !important;
}

.admin-action-accept {
    background: #166534 !important;
    color: #fff !important;
}

.admin-action-accept:hover {
    background: #14532d !important;
}

.admin-action-reject,
.btn-danger.admin-action-reject {
    background: #b91c1c !important;
    color: #fff !important;
}

.admin-action-reject:hover,
.btn-danger.admin-action-reject:hover {
    background: #991b1b !important;
}

.admin-action-cancel {
    color: #92400e !important;
    border: 1px solid #fbbf24 !important;
    background: #fffbeb !important;
}

.admin-action-cancel:hover {
    background: #fef3c7 !important;
}

@media (max-width: 1200px) {
    .admin-action-widgets {
        grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .admin-action-widgets {
        grid-template-columns: 1fr !important;
    }

    .admin-action-widget {
        min-height: auto !important;
    }
}


/* CARRIER SETTINGS AND ORDER REFERENCES */
.carrier-refs-panel .empty-table-cell,
.enterprise-table .empty-table-cell {
    text-align: center;
    color: var(--muted);
    font-weight: 800;
}

.email-log-table {
    table-layout: fixed;
    width: 100%;
}

.email-log-table td {
    vertical-align: top;
    overflow-wrap: anywhere;
}

.email-log-table th:last-child,
.email-log-table td:last-child {
    width: 44%;
    min-width: 320px;
}

.email-log-preview {
    display: block;
    max-width: 100%;
}

.email-log-preview summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 10px;
    background: #203f73;
    color: #fff;
    box-shadow: 0 8px 18px rgba(16, 37, 71, .12);
    cursor: pointer;
    font-weight: 900;
    list-style: none;
    user-select: none;
}

.email-log-preview summary::-webkit-details-marker {
    display: none;
}

.email-log-preview summary:hover {
    background: #274980;
}

.email-log-preview summary span {
    display: inline-block;
    line-height: 1;
}

.email-log-preview .email-log-preview-open {
    display: none;
}

.email-log-preview[open] .email-log-preview-closed {
    display: none;
}

.email-log-preview[open] .email-log-preview-open {
    display: inline-block;
}

.email-preview-box {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 16px 35px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.email-preview-label {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.email-preview-box p {
    margin: 0 0 14px;
    color: var(--text);
    font-weight: 800;
}

.event-log-expand {
    margin-top: 16px;
}

.event-log-expand summary {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 10px;
    background: #eef4fd;
    color: var(--primary);
    cursor: pointer;
    font-weight: 900;
    list-style: none;
    user-select: none;
}

.event-log-expand summary::-webkit-details-marker {
    display: none;
}

.event-log-expand summary:hover {
    background: #e2ecfb;
}

.event-log-expand-table {
    margin-top: 14px;
}

.email-preview-box pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}

@media (max-width: 1100px) {
    .email-log-table {
        table-layout: auto;
    }

    .email-log-table th:last-child,
    .email-log-table td:last-child {
        width: auto;
        min-width: 260px;
    }
}

.carrier-message-row td {
    background: #f8fafc;
    color: var(--muted);
    font-size: 13px;
}

.carrier-ref-add-form {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
}

.carrier-ref-add-form h3 {
    margin: 0 0 6px;
}

.carrier-ref-grid,
.carrier-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 18px;
}

.carrier-ref-grid .full-width,
.carrier-settings-grid .full-width {
    grid-column: 1 / -1;
}

.carrier-settings-grid textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    resize: vertical;
}

.carrier-ref-add-button {
    width: auto !important;
    margin-top: 18px !important;
}

.inline-delete-form {
    display: inline;
}

.table-mini-danger,
.table-mini-button {
    width: auto !important;
    min-width: 74px !important;
    margin: 0 4px 0 0 !important;
    padding: 7px 10px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.table-mini-danger {
    border: 0 !important;
    background: #b91c1c !important;
    color: #fff !important;
}

.table-mini-danger:hover {
    background: #991b1b !important;
}

.table-mini-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (max-width: 800px) {
    .carrier-ref-grid,
    .carrier-settings-grid {
        grid-template-columns: 1fr;
    }
}


/* REJECTED ORDER CORRECTION */
.rejected-edit-panel {
    border-color: #f59e0b !important;
    background: linear-gradient(135deg, #ffffff, #fffbeb) !important;
}

.rejected-edit-button {
    width: auto !important;
    margin-top: 14px !important;
}

.rejected-edit-associated-section {
    margin-top: 22px !important;
}

.rejected-edit-associated-section .associated-heading {
    margin-bottom: 14px !important;
}


/* REJECTED EDIT MULTI-LINE ONLY */
.rejected-multiline-associated-wrap {
    display: none;
}


/* LOGIN PASSWORD RESET */
.login-help-link {
    margin-top: 18px;
    font-size: 14px;
    text-align: center;
}

.login-help-link a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.login-help-link a:hover {
    text-decoration: underline;
}


/* FINAL PORTAL LAYOUT RESTORE SAFETY */

/* Number porting list/search layout */
.porting-page {
    max-width: none !important;
    width: calc(100vw - 64px) !important;
}

.porting-page .port-orders-wide-panel {
    width: 100% !important;
    max-width: none !important;
    margin-top: 34px !important;
    overflow: hidden !important;
}

.porting-page .port-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: visible !important;
}

.porting-page .port-results-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
}

.porting-page .port-search-panel {
    max-width: 1250px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.port-search-panel-collapsed-fixed {
    padding: 0 !important;
    overflow: hidden !important;
}

.collapsible-search-header-fixed {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    padding: 22px 24px !important;
    border-bottom: 1px solid var(--border) !important;
}

.collapsible-search-header-fixed h2 {
    margin: 0 !important;
}

.collapsible-search-header-fixed p {
    margin: 4px 0 0 !important;
}

.search-toggle-button {
    width: auto !important;
    min-width: 190px !important;
    max-width: 240px !important;
    white-space: nowrap !important;
}

.port-search-body-fixed {
    display: none !important;
    padding: 22px 24px 24px !important;
}

.port-search-body-fixed.is-open {
    display: block !important;
}

/* Order view admin action widgets */
.admin-action-widgets {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(220px, 1fr)) !important;
    gap: 18px !important;
    align-items: stretch !important;
}

.admin-action-widget {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 18px !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 10px 22px rgba(15,23,42,.05) !important;
    min-height: 260px !important;
}

.admin-action-widget-head {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
    min-height: 74px !important;
}

.admin-action-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    font-weight: 900 !important;
    color: #fff !important;
}

.admin-action-widget-accept .admin-action-icon { background: #166534 !important; }
.admin-action-widget-reject .admin-action-icon { background: #b91c1c !important; }
.admin-action-widget-cancel .admin-action-icon { background: #d97706 !important; }
.admin-action-widget-edit .admin-action-icon { background: var(--primary) !important; }

.admin-action-small {
    width: auto !important;
    min-width: 110px !important;
    max-width: 150px !important;
    min-height: 42px !important;
    margin-top: auto !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    font-weight: 900 !important;
    align-self: flex-start !important;
}

/* New/rejected port order associated widgets */
.associated-section {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fbff;
}

.associated-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.associated-heading h3 {
    margin: 0;
}

.associated-row {
    display: grid;
    grid-template-columns: 34px minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.associated-range-row {
    grid-template-columns: 34px minmax(160px, 1fr) minmax(160px, 1fr) auto;
}

.associated-index {
    font-weight: 900;
    color: var(--muted);
    text-align: center;
}

.associated-action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    font-weight: 800;
}

.btn-add-inline {
    width: auto !important;
    margin-top: 2px !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    background: #5ec45e !important;
    color: #fff !important;
    border: 0 !important;
    font-weight: 900 !important;
}

@media (max-width: 1200px) {
    .porting-page {
        width: calc(100vw - 24px) !important;
    }

    .porting-page .port-table-wrap {
        overflow-x: auto !important;
    }

    .porting-page .port-results-table {
        min-width: 1200px !important;
    }

    .admin-action-widgets {
        grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .collapsible-search-header-fixed,
    .associated-heading {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .search-toggle-button {
        width: 100% !important;
        max-width: none !important;
    }

    .admin-action-widgets {
        grid-template-columns: 1fr !important;
    }

    .admin-action-widget {
        min-height: auto !important;
    }

    .associated-row,
    .associated-range-row {
        grid-template-columns: 1fr !important;
    }

    .associated-index {
        text-align: left;
    }

    .associated-action {
        flex-wrap: wrap;
    }
}


/* ENTERPRISE DASHBOARD MODULE CARDS */
.enterprise-module-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 8px !important;
}

.enterprise-module-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 210px !important;
    padding: 22px !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    background:
        radial-gradient(circle at top right, rgba(0,163,255,.12), transparent 35%),
        linear-gradient(135deg, #ffffff, #f8fbff) !important;
    box-shadow: 0 14px 32px rgba(15,23,42,.07) !important;
    text-decoration: none !important;
    color: var(--text) !important;
    overflow: hidden !important;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease !important;
}

.enterprise-module-card:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(0,163,255,.42) !important;
    box-shadow: 0 22px 44px rgba(15,23,42,.11) !important;
}

.enterprise-module-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-bottom: 20px !important;
}

.enterprise-module-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--primary), #00a3ff) !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 950 !important;
    letter-spacing: .08em !important;
    box-shadow: 0 12px 24px rgba(0,56,120,.20) !important;
}

.enterprise-module-status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    background: #e8f3ff !important;
    color: var(--primary) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.enterprise-module-body {
    flex: 1 !important;
}

.enterprise-module-body h3 {
    margin: 0 0 9px !important;
    font-size: 21px !important;
    color: var(--text) !important;
    letter-spacing: -.02em !important;
}

.enterprise-module-body p {
    margin: 0 !important;
    color: var(--muted) !important;
    line-height: 1.5 !important;
    font-size: 15px !important;
}

.enterprise-module-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-top: 24px !important;
    padding-top: 16px !important;
    border-top: 1px solid var(--border) !important;
    color: var(--primary) !important;
    font-weight: 950 !important;
}

.enterprise-module-footer strong {
    width: 32px !important;
    height: 32px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--primary) !important;
    color: #fff !important;
    font-size: 18px !important;
}

/* Hide old raw module styles if browser still sees old markup */
.module-grid .module-card {
    text-decoration: none !important;
}

@media (max-width: 700px) {
    .enterprise-module-grid {
        grid-template-columns: 1fr !important;
    }

    .enterprise-module-card {
        min-height: auto !important;
    }
}


/* COMBINED PORTAL RESTORE - MODULES + PORT VIEW + PORT LIST */

/* Enterprise dashboard modules */
.enterprise-module-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 8px !important;
}

.enterprise-module-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 210px !important;
    padding: 22px !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    background:
        radial-gradient(circle at top right, rgba(0,163,255,.12), transparent 35%),
        linear-gradient(135deg, #ffffff, #f8fbff) !important;
    box-shadow: 0 14px 32px rgba(15,23,42,.07) !important;
    text-decoration: none !important;
    color: var(--text) !important;
    overflow: hidden !important;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease !important;
}

.enterprise-module-card:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(0,163,255,.42) !important;
    box-shadow: 0 22px 44px rgba(15,23,42,.11) !important;
}

.enterprise-module-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-bottom: 20px !important;
}

.enterprise-module-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--primary), #00a3ff) !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 950 !important;
    letter-spacing: .08em !important;
    box-shadow: 0 12px 24px rgba(0,56,120,.20) !important;
}

.enterprise-module-status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    background: #e8f3ff !important;
    color: var(--primary) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.enterprise-module-body {
    flex: 1 !important;
}

.enterprise-module-body h3 {
    margin: 0 0 9px !important;
    font-size: 21px !important;
    color: var(--text) !important;
    letter-spacing: -.02em !important;
}

.enterprise-module-body p {
    margin: 0 !important;
    color: var(--muted) !important;
    line-height: 1.5 !important;
    font-size: 15px !important;
}

.enterprise-module-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-top: 24px !important;
    padding-top: 16px !important;
    border-top: 1px solid var(--border) !important;
    color: var(--primary) !important;
    font-weight: 950 !important;
}

.enterprise-module-footer strong {
    width: 32px !important;
    height: 32px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--primary) !important;
    color: #fff !important;
    font-size: 18px !important;
}

/* Port order view admin action widgets */
.admin-order-actions-panel {
    padding: 24px !important;
}

.admin-action-widgets {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(220px, 1fr)) !important;
    gap: 18px !important;
    align-items: stretch !important;
}

.admin-action-widget {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 18px !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 10px 22px rgba(15,23,42,.05) !important;
    min-height: 260px !important;
}

.admin-action-widget-head {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
    min-height: 74px !important;
}

.admin-action-widget-head h3 {
    margin: 0 0 5px !important;
    font-size: 17px !important;
    color: var(--text) !important;
}

.admin-action-widget-head p {
    margin: 0 !important;
    color: var(--muted) !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.admin-action-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    font-weight: 900 !important;
    color: #fff !important;
}

.admin-action-widget-accept { border-top: 4px solid #166534 !important; }
.admin-action-widget-reject { border-top: 4px solid #b91c1c !important; }
.admin-action-widget-cancel { border-top: 4px solid #d97706 !important; }
.admin-action-widget-edit { border-top: 4px solid var(--primary) !important; }

.admin-action-widget-accept .admin-action-icon { background: #166534 !important; }
.admin-action-widget-reject .admin-action-icon { background: #b91c1c !important; }
.admin-action-widget-cancel .admin-action-icon { background: #d97706 !important; }
.admin-action-widget-edit .admin-action-icon { background: var(--primary) !important; }

.admin-action-widget label {
    margin: 0 0 -4px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.admin-action-widget input {
    padding: 11px 12px !important;
    min-height: 42px !important;
    font-size: 14px !important;
}

.admin-action-small {
    width: auto !important;
    min-width: 110px !important;
    max-width: 150px !important;
    min-height: 42px !important;
    margin-top: auto !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    font-weight: 900 !important;
    align-self: flex-start !important;
    box-shadow: 0 8px 18px rgba(15,23,42,.08) !important;
}

.admin-action-widget button.admin-action-small {
    border: 0 !important;
}

.admin-action-accept {
    background: #166534 !important;
    color: #fff !important;
}

.admin-action-reject,
.btn-danger.admin-action-reject {
    background: #b91c1c !important;
    color: #fff !important;
}

.admin-action-cancel {
    color: #92400e !important;
    border: 1px solid #fbbf24 !important;
    background: #fffbeb !important;
}

/* Number porting wide list/search */
.porting-page {
    max-width: none !important;
    width: calc(100vw - 64px) !important;
}

.porting-page .port-orders-wide-panel {
    width: 100% !important;
    max-width: none !important;
    margin-top: 34px !important;
    overflow: hidden !important;
}

.porting-page .port-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: visible !important;
}

.porting-page .port-results-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
}

.porting-page .port-search-panel {
    max-width: 1250px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.port-search-panel-collapsed-fixed {
    padding: 0 !important;
    overflow: hidden !important;
}

.collapsible-search-header-fixed {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    padding: 22px 24px !important;
    border-bottom: 1px solid var(--border) !important;
}

.search-toggle-button {
    width: auto !important;
    min-width: 190px !important;
    max-width: 240px !important;
    white-space: nowrap !important;
}

.port-search-body-fixed {
    display: none !important;
    padding: 22px 24px 24px !important;
}

.port-search-body-fixed.is-open {
    display: block !important;
}

/* LOA link */
.loa-view-link {
    font-weight: 900 !important;
    color: var(--primary) !important;
    text-decoration: none !important;
}

.loa-view-link:hover {
    text-decoration: underline !important;
}

/* Login password reset */
.login-help-link {
    margin-top: 18px;
    font-size: 14px;
    text-align: center;
}

.login-help-link a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.login-help-link a:hover {
    text-decoration: underline;
}

/* Number Assignments */
.number-assignments-page .assignment-tool-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
    gap: 14px !important;
    padding-top: 6px !important;
}

.number-assignments-page .assignment-tool-card {
    appearance: none;
    display: flex !important;
    align-items: center !important;
    gap: 13px !important;
    width: 100% !important;
    min-height: 76px !important;
    margin: 0 !important;
    padding: 15px 16px !important;
    border: 1px solid #d8e1ee !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    color: var(--text) !important;
    cursor: pointer;
    font: inherit;
    text-align: left !important;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06) !important;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.number-assignments-page .assignment-tool-card.is-active {
    border-color: #9db7dc !important;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%) !important;
}

.number-assignments-page .assignment-tool-card:not(.is-disabled):hover {
    border-color: #7fa2d5 !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .11) !important;
    transform: translateY(-1px);
}

.number-assignments-page .assignment-tool-card.is-disabled {
    cursor: not-allowed;
    opacity: .76;
    box-shadow: none !important;
    background: #f8fafc !important;
}

.number-assignments-page .assignment-tool-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #123c69;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .02em;
}

.number-assignments-page .assignment-tool-card strong,
.number-assignments-page .assignment-tool-card small {
    display: block !important;
}

.number-assignments-page .assignment-tool-card strong {
    color: var(--text) !important;
    font-size: 14px;
    line-height: 1.2;
}

.number-assignments-page .assignment-tool-card small {
    margin-top: 4px;
    color: var(--muted) !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.number-assignments-page .assignment-tool-card.is-disabled .assignment-tool-icon {
    background: #e2e8f0;
    color: #64748b;
}

.number-assignments-page .hero-actions .btn-primary,
.number-assignments-page .hero-actions .btn-secondary {
    min-width: 200px;
}

.number-import-page .number-import-form {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.number-import-page .number-import-form label {
    margin-top: 0;
}

.number-import-page .number-import-form select {
    width: 100%;
    min-height: 44px;
    margin: 6px 0 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text);
    font-weight: 700;
}

.number-import-page .number-import-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.number-import-page .number-import-row input {
    min-height: 44px;
}

.number-import-page .number-import-row button {
    width: auto;
    min-width: 190px;
    margin-top: 0;
}

.number-import-page .number-import-form .small-note {
    margin: 10px 0 0;
}

.number-import-page .number-import-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 0;
    font-weight: 800;
    color: var(--text);
}

.number-import-page .number-import-option input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.number-search-panel .number-search-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    margin: 0;
}

.number-search-panel .number-search-form input {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
}

.number-search-panel .number-range-filter-form {
    grid-template-columns: minmax(220px, 1fr) minmax(160px, auto) auto auto;
}

.number-search-panel .number-search-form select {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-weight: 700;
}

.number-search-panel .number-search-form button,
.number-search-panel .number-search-form a {
    width: auto;
    min-width: 120px;
    margin-top: 0;
}

.number-range-view-page .number-pick-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.number-range-view-page {
    max-width: 1480px;
}

.number-range-view-page .panel {
    overflow-x: auto;
}

.number-range-view-page .enterprise-table {
    min-width: 1080px;
}

.number-class-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.number-class-standard {
    background: #eef2f7;
    color: #475569;
}

.number-class-silver {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.number-class-bronze {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
}

.number-class-gold {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.number-class-platinum {
    background: #eef2ff;
    color: #312e81;
    border: 1px solid #818cf8;
}

.number-range-view-page .number-pick-form select {
    width: auto;
    min-width: 180px;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.number-range-view-page .number-pick-button {
    background: var(--primary) !important;
    color: #fff !important;
}

.number-range-view-page .number-reject-button {
    background: #b91c1c !important;
    color: #fff !important;
}

.number-range-view-page .enterprise-table tr.is-focused-number td {
    background: #eff6ff;
    border-top: 1px solid #bfdbfe;
    border-bottom: 1px solid #bfdbfe;
}

.number-assignments-page .number-admin-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    flex-wrap: wrap;
}

.number-assignments-page .number-approve-button {
    background: #166534 !important;
    color: #fff !important;
}

.number-assignments-page .number-reject-button {
    background: #b91c1c !important;
    color: #fff !important;
}

.number-range-view-page .range-pagination,
.number-assignments-page .range-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.number-range-view-page .range-pagination .is-disabled,
.number-assignments-page .range-pagination .is-disabled {
    opacity: .55;
    pointer-events: none;
}

.number-range-view-page .range-page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.number-range-view-page .range-page-numbers a,
.number-range-view-page .range-page-ellipsis {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
    background: #fff;
}

.number-range-view-page .range-page-numbers a.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.number-range-view-page .range-page-ellipsis {
    border-color: transparent;
    color: var(--muted);
}

@media (max-width: 1200px) {
    .porting-page {
        width: calc(100vw - 24px) !important;
    }

    .porting-page .port-table-wrap {
        overflow-x: auto !important;
    }

    .porting-page .port-results-table {
        min-width: 1200px !important;
    }

    .admin-action-widgets {
        grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .number-assignments-page .assignment-tool-grid {
        grid-template-columns: 1fr;
    }

    .number-range-view-page .range-pagination,
    .number-assignments-page .range-pagination,
    .number-range-view-page .number-pick-form,
    .number-search-panel .number-search-form {
        align-items: stretch;
        flex-direction: column;
        display: flex;
    }

    .number-range-view-page .number-pick-form select,
    .number-range-view-page .number-pick-button {
        width: 100% !important;
    }

    .enterprise-module-grid,
    .admin-action-widgets {
        grid-template-columns: 1fr !important;
    }

    .enterprise-module-card,
    .admin-action-widget {
        min-height: auto !important;
    }

    .help-search-form,
    .help-layout,
    .help-form-grid {
        grid-template-columns: 1fr;
    }

    .help-guide-list {
        position: static;
    }

    .help-article-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .collapsible-search-header-fixed {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .search-toggle-button {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Final enterprise admin notification bell override */
.enterprise-topbar .admin-notification-dropdown,
.topbar .admin-notification-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 0 10px !important;
    margin: 0 0 -10px !important;
}

.enterprise-topbar .admin-notification-button,
.topbar .admin-notification-button {
    position: relative !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #c9d6e8 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--primary) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06) !important;
    line-height: 1 !important;
}

.enterprise-topbar .admin-notification-button:hover,
.enterprise-topbar .admin-notification-button.has-tasks,
.enterprise-topbar .admin-notification-dropdown:hover .admin-notification-button,
.enterprise-topbar .admin-notification-dropdown:focus-within .admin-notification-button,
.topbar .admin-notification-button:hover,
.topbar .admin-notification-button.has-tasks,
.topbar .admin-notification-dropdown:hover .admin-notification-button,
.topbar .admin-notification-dropdown:focus-within .admin-notification-button {
    border-color: #91acd3 !important;
    background: #eef6ff !important;
    color: var(--primary-dark) !important;
}

.enterprise-topbar .admin-notification-button > span,
.topbar .admin-notification-button > span {
    position: absolute !important;
    top: -7px !important;
    right: -7px !important;
    min-width: 21px !important;
    height: 21px !important;
    padding: 0 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #fff !important;
    border-radius: 999px !important;
    background: #b42318 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.enterprise-topbar .admin-notification-menu,
.topbar .admin-notification-menu {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    left: auto !important;
    width: 390px !important;
    min-width: 390px !important;
    max-width: calc(100vw - 28px) !important;
    padding: 8px !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 22px 55px rgba(15, 23, 42, .18) !important;
    z-index: 100000 !important;
}

.enterprise-topbar .admin-notification-dropdown::after,
.topbar .admin-notification-dropdown::after {
    content: "" !important;
    position: absolute !important;
    left: -20px !important;
    right: -20px !important;
    top: 100% !important;
    height: 14px !important;
    display: block !important;
}

.enterprise-topbar .admin-notification-dropdown:hover .admin-notification-menu,
.enterprise-topbar .admin-notification-dropdown:focus-within .admin-notification-menu,
.enterprise-topbar .admin-notification-menu:hover,
.topbar .admin-notification-dropdown:hover .admin-notification-menu,
.topbar .admin-notification-dropdown:focus-within .admin-notification-menu,
.topbar .admin-notification-menu:hover {
    display: block !important;
}

/* Hosted 3CX operations console */
.container.hosted-3cx-page {
    max-width: none;
    width: calc(100vw - 28px);
    padding-top: 24px;
}

.hosted-3cx-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
    padding: 22px 24px;
    border: 1px solid #cbd7e8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(18, 42, 72, .07);
}

.hosted-3cx-hero-copy h1 {
    margin: 0 0 7px;
    color: #111827;
    font-size: 30px;
    line-height: 1.15;
}

.hosted-3cx-hero-copy p {
    max-width: 780px;
    margin: 0;
    color: #56657a;
    line-height: 1.45;
}

.hosted-3cx-hero-meta {
    min-width: 240px;
    padding: 13px 16px;
    border: 1px solid #d7e0ec;
    border-radius: 8px;
    background: #f8fafc;
}

.hosted-3cx-hero-meta span,
.hosted-3cx-kpis span,
.hosted-3cx-details-grid span {
    display: block;
    color: #637188;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hosted-3cx-hero-meta strong {
    display: block;
    margin-top: 6px;
    color: #172033;
    font-size: 16px;
}

.hosted-3cx-action,
.hosted-3cx-secondary,
.hosted-3cx-primary,
.hosted-3cx-danger {
    width: auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.hosted-3cx-action,
.hosted-3cx-primary {
    border: 1px solid #173f73;
    background: #173f73;
    color: #fff;
}

.hosted-3cx-action:hover,
.hosted-3cx-primary:hover {
    background: #0e2f57;
    color: #fff;
}

.hosted-3cx-secondary {
    border: 1px solid #cbd7e8;
    background: #fff;
    color: #173f73;
}

.hosted-3cx-danger {
    border: 1px solid #b42318;
    background: #b42318;
    color: #fff;
}

.hosted-3cx-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.hosted-3cx-notice {
    margin: 0 0 16px;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    box-shadow: 0 8px 20px rgba(18, 42, 72, .055);
    overflow-wrap: anywhere;
}

.hosted-3cx-notice-success {
    border: 1px solid #a9d8bd;
    border-left: 4px solid #20845a;
    background: #f0fbf5;
    color: #155c3f;
}

.hosted-3cx-notice-error {
    border: 1px solid #f0bbb5;
    border-left: 4px solid #b42318;
    background: #fff5f5;
    color: #84211a;
}

.hosted-3cx-kpis article {
    min-height: 98px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 17px 18px;
    border: 1px solid #cfd9e8;
    border-left: 4px solid #2f6f73;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(18, 42, 72, .055);
}

.hosted-3cx-kpis strong {
    color: #0f172a;
    font-size: 28px;
    line-height: 1.05;
}

.hosted-3cx-kpis small {
    color: #69788d;
    font-size: 12px;
    font-weight: 800;
}

.hosted-3cx-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(420px, .55fr);
    gap: 16px;
    align-items: start;
}

.hosted-3cx-main,
.hosted-3cx-side {
    display: grid;
    gap: 16px;
}

.hosted-3cx-panel {
    min-width: 0;
    padding: 20px 24px 24px;
    border: 1px solid #cfd9e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(18, 42, 72, .06);
}

.hosted-3cx-panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e4eaf2;
}

.hosted-3cx-panel-heading h2 {
    margin: 0;
    color: #111827;
    font-size: 19px;
    line-height: 1.2;
}

.hosted-3cx-panel-heading p {
    margin: 5px 0 0;
    color: #66758a;
    font-size: 13px;
    line-height: 1.4;
}

.hosted-3cx-order-launch-panel .hosted-3cx-panel-heading {
    margin-bottom: 0;
}

.hosted-3cx-search-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    margin: 0 0 14px;
}

.hosted-3cx-search-form input[type="search"] {
    min-height: 42px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd7e6;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 14px;
}

.hosted-3cx-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 18px;
}

.hosted-3cx-form label {
    margin: 0;
    color: #172033;
    font-size: 13px;
    font-weight: 900;
}

.hosted-3cx-form input,
.hosted-3cx-form select,
.hosted-3cx-form textarea {
    min-height: 42px;
    margin-top: 6px;
    padding: 10px 12px;
    border-color: #ccd7e6;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 14px;
}

.hosted-3cx-form textarea {
    min-height: 86px;
}

.hosted-3cx-field-help {
    display: block;
    margin-top: 6px;
    color: #66758a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.hosted-3cx-full {
    grid-column: 1 / -1;
}

.hosted-3cx-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 6px;
}

.hosted-3cx-progress-open {
    overflow: hidden;
}

.hosted-3cx-progress-modal[hidden] {
    display: none;
}

.hosted-3cx-progress-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.hosted-3cx-details-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: block;
    padding: 24px;
}

.hosted-3cx-progress-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
}

.hosted-3cx-progress-dialog {
    position: relative;
    width: min(560px, 100%);
    padding: 26px;
    border: 1px solid #cbd6e5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.hosted-3cx-progress-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e4eaf2;
}

.hosted-3cx-progress-header h2 {
    margin: 0;
    color: #071225;
    font-size: 22px;
    line-height: 1.2;
}

.hosted-3cx-progress-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hosted-3cx-progress-list li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #5b6778;
}

.hosted-3cx-progress-list strong {
    min-width: 0;
    color: inherit;
    font-size: 14px;
    line-height: 1.25;
}

.hosted-3cx-progress-icon {
    position: relative;
    width: 16px;
    height: 16px;
    border: 2px solid #b7c3d3;
    border-radius: 50%;
}

.hosted-3cx-progress-list li.is-active {
    border-color: #244783;
    background: #f3f7ff;
    color: #102346;
}

.hosted-3cx-progress-list li.is-active .hosted-3cx-progress-icon {
    border-color: #244783;
    border-top-color: transparent;
    animation: hosted-3cx-progress-spin 0.8s linear infinite;
}

.hosted-3cx-progress-list li.is-complete {
    border-color: #b8dfc2;
    background: #f0fbf3;
    color: #115c2c;
}

.hosted-3cx-progress-list li.is-complete .hosted-3cx-progress-icon {
    display: grid;
    place-items: center;
    border-color: #1f8f43;
    background: #1f8f43;
}

.hosted-3cx-progress-list li.is-complete .hosted-3cx-progress-icon::after {
    content: "";
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-1px);
}

.hosted-3cx-progress-list li.is-failed {
    border-color: #f0b8ae;
    background: #fff3f1;
    color: #8c1f12;
}

.hosted-3cx-progress-badge {
    justify-self: end;
    padding: 4px 8px;
    border-radius: 999px;
    background: #c43b2b;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.hosted-3cx-progress-list li.is-failed .hosted-3cx-progress-icon {
    display: grid;
    place-items: center;
    border-color: #c43b2b;
    background: #c43b2b;
}

.hosted-3cx-progress-list li.is-failed .hosted-3cx-progress-icon::after {
    content: "";
    width: 8px;
    height: 2px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 0 0 0 0 #fff;
}

.hosted-3cx-progress-list li.is-failed .hosted-3cx-progress-icon::before {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    background: #fff;
    transform: rotate(-45deg);
}

.hosted-3cx-progress-note {
    margin: 16px 0 0;
    color: #66758a;
    font-size: 13px;
    line-height: 1.4;
}

.hosted-3cx-progress-debug[hidden] {
    display: none;
}

.hosted-3cx-progress-debug {
    margin-top: 14px;
    border: 1px solid #d6e0ec;
    border-radius: 8px;
    background: #f8fafc;
}

.hosted-3cx-progress-debug-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #d6e0ec;
}

.hosted-3cx-progress-debug-head strong {
    color: #102346;
    font-size: 13px;
}

.hosted-3cx-progress-debug pre {
    max-height: 260px;
    margin: 0;
    padding: 12px;
    overflow: auto;
    color: #172033;
    font: 12px/1.45 Consolas, "Liberation Mono", Menlo, monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

.hosted-3cx-progress-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e4eaf2;
}

.hosted-3cx-progress-actions[hidden] {
    display: none;
}

.hosted-3cx-details-dialog {
    width: min(860px, calc(100vw - 48px));
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: calc(100vh - 48px);
    overflow: auto;
}

.hosted-3cx-details-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hosted-3cx-details-summary div,
.hosted-3cx-details-login {
    padding: 14px;
    border: 1px solid #d8e1ee;
    border-radius: 8px;
    background: #f8fafc;
}

.hosted-3cx-details-summary span,
.hosted-3cx-details-login span {
    display: block;
    margin-bottom: 7px;
    color: #637188;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hosted-3cx-details-summary strong,
.hosted-3cx-details-login strong,
.hosted-3cx-details-login a {
    display: block;
    color: #142033;
    font-size: 15px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.hosted-3cx-details-login {
    margin-top: 12px;
}

.hosted-3cx-role-list {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #d8e1ee;
    border-radius: 8px;
    background: #fff;
}

.hosted-3cx-role-list > span {
    display: block;
    margin-bottom: 10px;
    color: #637188;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hosted-3cx-role-list section {
    margin-top: 10px;
    border: 1px solid #d8e1ee;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: hidden;
}

.hosted-3cx-role-list section:first-of-type {
    margin-top: 0;
}

.hosted-3cx-role-list h3 {
    margin: 0;
    padding: 9px 11px;
    background: #f3f7ff;
    color: #173f73;
    font-size: 13px;
}

.hosted-3cx-role-table div {
    display: grid;
    grid-template-columns: 92px minmax(130px, 1fr) minmax(180px, 1fr);
    gap: 12px;
    align-items: center;
    padding: 9px 11px;
    border-top: 1px solid #e4eaf2;
    color: #172033;
    font-size: 13px;
}

.hosted-3cx-role-table.hosted-3cx-role-table-actions div {
    grid-template-columns: 92px minmax(160px, 1fr) minmax(260px, 1.25fr) 164px;
    min-width: 720px;
}

.hosted-3cx-trunk-table div {
    grid-template-columns: minmax(130px, 1fr) minmax(110px, .8fr) minmax(160px, 1fr) 140px;
}

.hosted-3cx-phone-number-table div {
    grid-template-columns: minmax(150px, .8fr) minmax(180px, 1fr) minmax(120px, .8fr);
}

.hosted-3cx-call-flow-table div {
    grid-template-columns: minmax(120px, .8fr) minmax(110px, .7fr) minmax(180px, 1fr) 140px;
}

.hosted-3cx-role-table .hosted-3cx-role-table-head {
    background: #f8fafc;
    color: #637188;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hosted-3cx-role-table strong {
    font-weight: 900;
}

.hosted-3cx-role-table span {
    overflow-wrap: anywhere;
}

.hosted-3cx-api-unavailable {
    color: #637188;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.hosted-3cx-role-table div > :last-child {
    align-self: center;
}

.hosted-3cx-reset-form {
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-height: 42px;
    height: 42px;
}

.hosted-3cx-reset-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 146px;
    min-height: 34px;
    height: 34px;
    margin: 0;
    align-self: center;
}

.hosted-3cx-muted-action {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d8e1ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #637188;
    font-size: 12px;
    font-weight: 800;
}

@keyframes hosted-3cx-progress-spin {
    to {
        transform: rotate(360deg);
    }
}

.hosted-3cx-details-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.hosted-3cx-details-grid div {
    padding: 13px;
    border: 1px solid #d8e1ee;
    border-radius: 8px;
    background: #f8fafc;
}

.hosted-3cx-details-grid strong {
    display: block;
    margin-top: 6px;
    color: #142033;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.hosted-3cx-approval-box {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e4eaf2;
}

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

.hosted-3cx-table-wrap table {
    min-width: 760px;
}

.hosted-3cx-table-wrap th {
    padding: 10px 10px;
    border-bottom: 1px solid #cfd9e8;
    color: #526176;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hosted-3cx-table-wrap td {
    padding: 12px 10px;
    color: #182337;
    font-size: 14px;
    vertical-align: middle;
}

.hosted-3cx-table-wrap tbody tr:hover td {
    background: #f8fafc;
}

.hosted-3cx-page .hosted-3cx-table-wrap td {
    height: 44px;
}

.hosted-3cx-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hosted-3cx-mini-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 7px 12px;
    border: 1px solid #173f73;
    border-radius: 8px;
    background: #173f73;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 5px 12px rgba(23, 63, 115, .14);
}

.hosted-3cx-mini-action:hover {
    border-color: #173f73;
    background: #0e2f57;
    color: #fff;
}

.hosted-3cx-pbx-cell {
    width: 116px;
    min-width: 116px;
    white-space: nowrap;
    font-weight: 800;
}

.hosted-3cx-date-cell {
    width: 158px;
    min-width: 158px;
    white-space: nowrap;
    color: #475569;
    font-size: 13px !important;
}

.hosted-3cx-log-action {
    width: 150px;
    min-width: 150px;
    white-space: nowrap;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px !important;
}

.hosted-3cx-log-endpoint {
    width: 170px;
    min-width: 170px;
    white-space: nowrap;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px !important;
}

.hosted-3cx-log-code {
    width: 72px;
    min-width: 72px;
    white-space: nowrap;
    text-align: center;
}

.hosted-3cx-log-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid #cbd7e8;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.hosted-3cx-log-status-failed {
    border-color: #f0bbb5;
    background: #fff5f5;
    color: #84211a;
}

.hosted-3cx-page td.actions {
    min-width: 240px;
}

.hosted-3cx-page td.actions form,
.hosted-3cx-page .inline-form {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.hosted-3cx-page td.actions button,
.hosted-3cx-page .inline-form button {
    width: auto;
    min-height: 30px;
    margin: 0;
    padding: 7px 9px;
    border: 1px solid #cbd7e8;
    border-radius: 7px;
    background: #fff;
    color: #173f73;
    font-size: 12px;
    font-weight: 900;
    box-shadow: none;
}

.hosted-3cx-page .inline-form select {
    width: auto;
    min-width: 170px;
    min-height: 34px;
    padding: 7px 9px;
    border-radius: 7px;
    font-size: 13px;
}

.hosted-3cx-assign-cell {
    min-width: 330px;
}

.hosted-3cx-inline-assign {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.hosted-3cx-inline-assign select {
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid #ccd7e6;
    border-radius: 7px;
    font-size: 13px;
}

.hosted-3cx-inline-assign button {
    width: auto;
    min-height: 34px;
    margin: 0;
    padding: 7px 11px;
    border: 1px solid #173f73;
    border-radius: 7px;
    background: #173f73;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.hosted-3cx-empty {
    padding: 16px;
    border: 1px dashed #cbd7e8;
    border-radius: 8px;
    background: #f8fafc;
    color: #607086;
    font-weight: 800;
}

.hosted-3cx-nowrap {
    white-space: nowrap;
}

.hosted-3cx-log-error {
    width: 100%;
    min-width: 520px;
    color: #334155;
    line-height: 1.35;
}

.hosted-3cx-log-error:empty::before {
    content: "-";
    color: #94a3b8;
}

.hosted-3cx-log-error details {
    max-width: 680px;
}

.hosted-3cx-log-error summary {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 28px;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid #f0bbb5;
    border-radius: 8px;
    background: #fff5f5;
    color: #84211a;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    list-style: none !important;
    list-style-type: none !important;
    gap: 7px;
}

.hosted-3cx-log-error summary::-webkit-details-marker {
    display: none !important;
}

.hosted-3cx-log-error summary::marker {
    content: "";
    font-size: 0;
}

.hosted-3cx-log-error summary::before {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid #84211a;
    border-bottom: 2px solid #84211a;
    transform: rotate(-45deg);
    transition: transform .14s ease;
}

.hosted-3cx-log-error summary::after {
    content: "Details";
    padding-left: 7px;
    border-left: 1px solid #efc1bc;
    color: #475569;
    font-size: 11px;
}

.hosted-3cx-log-error details[open] summary::before {
    transform: rotate(45deg);
}

.hosted-3cx-log-error details div {
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #f0bbb5;
    border-radius: 8px;
    background: #fffafa;
    color: #334155;
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
}

.hosted-3cx-page .status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 5px 9px;
    border: 1px solid #cbd7e8;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

@media (max-width: 1500px) {
    .hosted-3cx-hero,
    .hosted-3cx-workspace {
        grid-template-columns: 1fr;
    }

    .hosted-3cx-hero-meta {
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .hosted-3cx-page {
        max-width: 100%;
        padding: 16px 12px;
    }

    .hosted-3cx-kpis,
    .hosted-3cx-form,
    .hosted-3cx-search-form,
    .hosted-3cx-details-grid {
        grid-template-columns: 1fr;
    }

    .hosted-3cx-panel-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .hosted-3cx-panel,
    .hosted-3cx-hero {
        padding: 16px;
    }
}

.customer-onboarding-page .onboarding-shell,
.customer-management-page .panel {
    overflow: visible;
}

.customer-onboarding-page {
    max-width: 1280px;
}

.onboarding-header-panel {
    align-items: flex-start;
    border-radius: 10px;
    box-shadow: none;
}

.onboarding-reference-card {
    min-width: 220px;
    padding: 14px 18px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
}

.onboarding-reference-card span {
    display: block;
    margin-bottom: 6px;
    color: #53657f;
    font-size: 12px;
    font-weight: 800;
}

.onboarding-reference-card strong {
    display: block;
    color: #071832;
    font-size: 17px;
}

.onboarding-form > .wide-field,
.onboarding-form > .form-actions {
    grid-column: 1 / -1;
}

.onboarding-steps {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin: 4px 0 28px;
}

.onboarding-steps a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 58px;
    padding: 10px 14px 10px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #344761;
    font-weight: 800;
    text-decoration: none;
    text-align: left;
}

.onboarding-steps a::after {
    content: "";
    position: absolute;
    left: 44px;
    right: 10px;
    top: 28px;
    height: 1px;
    background: #dbe3ef;
}

.onboarding-steps a:last-child::after {
    display: none;
}

.step-circle {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #fff;
    color: #53657f;
    font-size: 13px;
    font-weight: 900;
}

.step-label {
    position: relative;
    z-index: 1;
    max-width: 92px;
    color: #344761;
    font-size: 13px;
    line-height: 1.2;
}

.onboarding-steps a.active {
    background: transparent;
    color: #071832;
}

.onboarding-steps a.active .step-circle {
    border-color: #1f3f75;
    background: #1f3f75;
    color: #fff;
}

.onboarding-steps a.complete .step-circle {
    border-color: #b9dec7;
    background: #f7fff8;
    color: #2f7d32;
}

.onboarding-steps a.complete::after {
    background: #cfe5d8;
}

.onboarding-contact-heading h3,
.onboarding-summary h2 {
    margin: 8px 0 0;
}

.onboarding-review-pack {
    display: grid;
    gap: 12px;
}

.onboarding-dossier-section {
    padding: 20px;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}

.onboarding-dossier-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.onboarding-dossier-head h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.2;
}

.onboarding-dossier-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e5fb;
    border-radius: 8px;
    background: #edf4ff;
    color: #1f3f75;
    font-size: 14px;
    font-weight: 900;
}

.onboarding-company-layout {
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(260px, 1fr) minmax(260px, .85fr);
    gap: 22px;
    align-items: stretch;
}

.onboarding-detail-stack {
    display: grid;
    align-content: start;
    gap: 16px;
}

.split-stack {
    padding-left: 24px;
    border-left: 1px solid #dbe3ef;
}

.onboarding-detail-item span,
.onboarding-detail-item small,
.onboarding-contact-review-card span,
.onboarding-contact-review-card small,
.onboarding-download-card span {
    display: block;
    color: #53657f;
}

.onboarding-detail-item span,
.onboarding-contact-review-card span {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.onboarding-detail-item strong,
.onboarding-contact-review-card strong {
    display: block;
    color: #071832;
    font-size: 15px;
    line-height: 1.35;
}

.onboarding-detail-item small,
.onboarding-contact-review-card small {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.35;
}

.review-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 22px;
    padding: 4px 8px;
    border-radius: 6px;
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
}

.review-badge.ok {
    background: #dcfce7;
    color: #166534;
}

.review-badge.warn {
    background: #fef3c7;
    color: #92400e;
}

.review-badge.danger {
    background: #fee2e2;
    color: #991b1b;
}

.review-badge.neutral {
    background: #eef2f7;
    color: #475569;
}

.onboarding-verify-card {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    min-height: 156px;
    padding: 20px;
    border: 1px solid #cfe5d8;
    border-radius: 8px;
    background: #f7fff8;
}

.verify-mark {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 10px;
    font-weight: 900;
}

.onboarding-verify-card h3 {
    margin: 0 0 10px;
    color: #2f6f35;
    font-size: 16px;
}

.onboarding-verify-card p {
    margin: 12px 0 0;
    color: #53657f;
    font-size: 13px;
    line-height: 1.45;
}

.onboarding-verify-card a {
    display: inline-flex;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 900;
}

.onboarding-accounts-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
    align-items: center;
}

.onboarding-summary-strip {
    display: grid;
    grid-template-columns: minmax(150px, .7fr) minmax(130px, .55fr) minmax(260px, 1.25fr);
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
}

.onboarding-summary-strip .onboarding-detail-item {
    min-height: 92px;
    padding: 16px;
}

.onboarding-summary-strip .onboarding-detail-item + .onboarding-detail-item {
    border-left: 1px solid #dbe3ef;
}

.onboarding-download-card {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 18px 16px;
    border-radius: 8px;
    background: #f8fafc;
    color: #123c69;
    text-align: center;
}

.onboarding-download-card strong {
    color: #071832;
    font-size: 15px;
}

.onboarding-download-card span {
    font-size: 12px;
}

.onboarding-address-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 32px;
    align-items: center;
}

.onboarding-address-review {
    display: grid;
    gap: 5px;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #0f1f35;
}

.onboarding-address-review strong {
    font-size: 17px;
}

.onboarding-address-review span {
    color: #344761;
}

.address-verify {
    min-height: 94px;
}

.onboarding-contact-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.onboarding-contact-review-card {
    min-height: 122px;
    padding: 16px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
}

.onboarding-info-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f4f7ff;
    color: #53657f;
    font-size: 13px;
}

.onboarding-info-strip a {
    font-weight: 900;
    white-space: nowrap;
}

.declaration-section {
    border-color: #cbd9ec;
    background: #fff;
}

.declaration-row {
    align-items: flex-start;
    max-width: none;
    padding: 16px;
    border: 1px solid #cfe0f5;
    border-radius: 8px;
    background: #f8fbff;
}

.declaration-row span {
    display: grid;
    gap: 5px;
}

.declaration-row small {
    color: #53657f;
    font-size: 13px;
    line-height: 1.4;
}

.onboarding-contact-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.onboarding-contact-actions h2 {
    margin: 0 0 4px;
}

.onboarding-contacts-workspace {
    display: grid;
    grid-template-columns: minmax(340px, .9fr) minmax(460px, 1.1fr);
    gap: 18px;
    align-items: start;
}

.onboarding-id-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.onboarding-verification-notice {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid #dbe6fb;
    border-radius: 8px;
    background: #f7faff;
}

.notice-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eaf3ff;
    color: #1f3f75;
    font-size: 12px;
    font-weight: 900;
}

.onboarding-verification-notice strong,
.onboarding-verification-notice span {
    display: block;
}

.onboarding-verification-notice strong {
    color: #071832;
    font-size: 15px;
}

.onboarding-verification-notice span {
    margin-top: 4px;
    color: #53657f;
    font-size: 13px;
}

.onboarding-verification-notice a {
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.onboarding-id-overview {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .7fr);
    gap: 24px;
    align-items: center;
    padding: 0 6px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.onboarding-id-checks::before {
    content: "Verification Checks";
    grid-column: 1 / -1;
    margin: 0 6px -8px;
    color: #071832;
    font-size: 13px;
    font-weight: 900;
}

.onboarding-id-checks {
    padding: 18px;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #fff;
}

.onboarding-id-overview h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.onboarding-id-overview p {
    max-width: 680px;
    margin: 0;
    color: #53657f;
    line-height: 1.5;
}

.onboarding-id-scoreboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.onboarding-id-scoreboard div {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 5px 10px;
    align-items: center;
    padding: 16px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
}

.onboarding-id-scoreboard div > span {
    grid-row: span 2;
    width: 28px;
    height: 28px;
    border: 1px solid #f3d7a5;
    border-radius: 999px;
    background: #fef3c7;
}

.onboarding-id-scoreboard div.complete > span {
    border-color: #b9dec7;
    background: #dcfce7;
}

.onboarding-id-scoreboard strong,
.onboarding-id-scoreboard small {
    display: block;
}

.onboarding-id-scoreboard strong {
    color: #071832;
    font-size: 14px;
}

.onboarding-id-scoreboard small {
    color: #53657f;
    font-size: 12px;
}

.onboarding-id-panel {
    display: grid;
    align-content: start;
    gap: 18px;
    min-height: 100%;
    padding: 22px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.onboarding-id-panel.wide-id-panel {
    grid-column: 1 / -1;
    min-height: auto;
    margin-top: 4px;
    border-color: #dbe6fb;
    background: #f8fbff;
}

.onboarding-id-card-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e4ebf5;
}

.onboarding-id-card-head h2 {
    margin: 0;
    font-size: 20px;
}

.onboarding-id-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e5fb;
    border-radius: 8px;
    background: #edf4ff;
    color: #1f3f75;
    font-size: 13px;
    font-weight: 900;
}

.onboarding-id-card-body p {
    margin: 0 0 14px;
    color: #53657f;
    line-height: 1.5;
}

.onboarding-id-card-body dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.onboarding-id-card-body dl div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #eef2f7;
}

.onboarding-id-card-body dt,
.onboarding-id-card-body dd {
    margin: 0;
}

.onboarding-id-card-body dt {
    color: #53657f;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.onboarding-id-card-body dd {
    color: #071832;
    font-size: 14px;
    font-weight: 700;
}

.onboarding-id-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.onboarding-id-actions button {
    width: auto;
    margin-top: 0;
}

.onboarding-uploaded-file {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 14px;
    border: 1px solid #cfe5d8;
    border-radius: 8px;
    background: #f7fff8;
}

.onboarding-uploaded-file strong {
    color: #071832;
}

.onboarding-uploaded-file span {
    color: #53657f;
    font-size: 13px;
}

.onboarding-submit-readiness {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.onboarding-submit-readiness h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.onboarding-submit-readiness p {
    margin: 0;
    color: #53657f;
}

.onboarding-wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    order: 20;
}

.onboarding-wizard-actions .btn-secondary,
.onboarding-wizard-actions button {
    min-width: 140px;
}

.onboarding-wizard-actions button {
    width: auto;
    margin-top: 0;
}

.onboarding-verification-reasons {
    margin-top: 14px;
    padding: 22px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    order: 30;
}

.onboarding-verification-reasons h2 {
    margin: 0 0 18px;
    font-size: 18px;
}

.verification-reason-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    overflow: hidden;
}

.verification-reason-grid article {
    padding: 18px;
    background: #fff;
}

.verification-reason-grid article + article {
    border-left: 1px solid #eef2f7;
}

.verification-reason-grid span {
    display: inline-flex;
    margin-bottom: 12px;
    color: #1f3f75;
    font-size: 12px;
    font-weight: 900;
}

.verification-reason-grid strong {
    display: block;
    color: #071832;
    font-size: 14px;
}

.verification-reason-grid p {
    margin: 8px 0 0;
    color: #53657f;
    font-size: 13px;
    line-height: 1.45;
}

.verification-privacy-note {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #e4ebf5;
    border-radius: 8px;
    background: #f8fafc;
    color: #53657f;
    font-size: 13px;
}

.onboarding-contact-directory,
.onboarding-role-panel {
    min-height: 100%;
    padding: 20px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #f8fafc;
}

.onboarding-role-panel {
    background: #ffffff;
}

.onboarding-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.onboarding-section-head h2 {
    margin: 2px 0 0;
    font-size: 20px;
}

.onboarding-user-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}

.onboarding-user-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
}

.onboarding-user-avatar {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #1f3f75;
    font-weight: 900;
}

.onboarding-user-card strong,
.onboarding-user-card span,
.onboarding-user-card small {
    display: block;
}

.onboarding-user-card span {
    margin-top: 4px;
}

.onboarding-user-card small {
    margin-top: 4px;
    color: #64748b;
}

.onboarding-same-contact {
    padding: 12px 14px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
    margin-bottom: 14px;
}

.onboarding-role-grid {
    display: grid;
    gap: 12px;
}

.onboarding-role-card {
    padding: 16px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fbfdff;
}

.onboarding-role-card label {
    margin-top: 0;
}

.onboarding-role-card select {
    margin-top: 8px;
}

.onboarding-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.onboarding-modal.is-open {
    display: block;
}

.onboarding-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .52);
}

.onboarding-modal-panel {
    position: relative;
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    margin: 24px auto;
    padding: 24px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .24);
}

.checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 700;
}

.checkbox-row input {
    width: auto;
    margin-top: 3px;
}

.processing-panel {
    text-align: center;
}

.onboarding-outcome-panel {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    border-radius: 10px;
}

.onboarding-outcome-panel h2 {
    margin: 2px 0 8px;
    font-size: 24px;
}

.onboarding-outcome-panel p {
    max-width: 820px;
    margin: 0;
    color: #53657f;
    line-height: 1.55;
}

.onboarding-outcome-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.onboarding-outcome-panel.approved {
    border-color: #b9dec7;
    background: #f7fff8;
}

.onboarding-outcome-panel.approved .onboarding-outcome-icon {
    background: #dcfce7;
    color: #166534;
}

.onboarding-outcome-panel.attention {
    border-color: #dbe3ef;
    background: #fbfdff;
}

.onboarding-outcome-panel.attention .onboarding-outcome-icon {
    background: #eef2f7;
    color: #344761;
}

.onboarding-outcome-panel.pending {
    border-color: #dbe6fb;
    background: #f8fbff;
}

.onboarding-outcome-panel.pending .onboarding-outcome-icon {
    background: #eaf3ff;
    color: #1f3f75;
}

.onboarding-spinner {
    width: 52px;
    height: 52px;
    margin: 6px auto 18px;
    border: 5px solid #dbe7f5;
    border-top-color: #1f3f75;
    border-radius: 50%;
    animation: onboarding-spin 1s linear infinite;
}

@keyframes onboarding-spin {
    to { transform: rotate(360deg); }
}

.onboarding-progress-list {
    display: grid;
    gap: 12px;
}

.onboarding-progress-list div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
}

.onboarding-progress-list span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #94a3b8;
}

.onboarding-progress-list .done span {
    background: #15803d;
    border-color: #15803d;
}

.onboarding-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.onboarding-admin-grid div {
    padding: 14px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
}

.onboarding-admin-grid strong,
.onboarding-admin-grid span {
    display: block;
}

.onboarding-admin-grid strong {
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

.onboarding-admin-grid .wide-field {
    grid-column: 1 / -1;
}

.onboarding-raw {
    margin-top: 18px;
}

.onboarding-raw pre {
    max-height: 360px;
    overflow: auto;
    padding: 14px;
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
    white-space: pre-wrap;
}

.onboarding-audit-timeline {
    display: grid;
    gap: 12px;
}

.onboarding-audit-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.onboarding-audit-dot {
    width: 14px;
    height: 14px;
    margin: 18px auto 0;
    border: 3px solid #fff;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 1px #dbe3ef;
}

.onboarding-audit-item.ok .onboarding-audit-dot {
    background: #16a34a;
}

.onboarding-audit-item.info .onboarding-audit-dot {
    background: #2563eb;
}

.onboarding-audit-item.danger .onboarding-audit-dot {
    background: #dc2626;
}

.onboarding-audit-body {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
}

.onboarding-audit-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.onboarding-audit-head strong,
.onboarding-audit-head span {
    display: block;
}

.onboarding-audit-head strong {
    color: #071832;
    font-size: 15px;
}

.onboarding-audit-head span {
    margin-top: 3px;
    color: #53657f;
    font-size: 12px;
}

.onboarding-audit-user {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef6ff;
    color: #123c69 !important;
    font-weight: 900;
}

.onboarding-audit-body p {
    max-width: 100%;
    margin: 0;
    color: #344761;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.credit-provider-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding: 16px 18px;
    border: 1px solid #dbe6f5;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
}

.credit-provider-strip strong {
    display: block;
    margin: 4px 0;
    color: #071832;
    font-size: 20px;
}

.credit-provider-strip p {
    margin: 0;
    color: #53657f;
    line-height: 1.45;
}

.credit-provider-strip form {
    flex: 0 0 auto;
}

.creditsafe-check-button,
.onboarding-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.creditsafe-check-button:disabled,
.onboarding-submit-button:disabled {
    cursor: wait;
    opacity: .88;
}

.button-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .42);
    border-top-color: #fff;
    border-radius: 50%;
    animation: credit-button-spin .75s linear infinite;
}

.creditsafe-check-button.is-loading .button-spinner,
.onboarding-submit-button.is-loading .button-spinner {
    display: inline-block;
}

.onboarding-credit-busy {
    overflow: hidden;
}

.onboarding-credit-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(7, 24, 50, .72);
    backdrop-filter: blur(5px);
}

.onboarding-credit-overlay.is-visible {
    display: flex;
}

.onboarding-credit-dialog {
    width: min(520px, 100%);
    padding: 34px;
    border: 1px solid rgba(190, 210, 240, .85);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(7, 24, 50, .32);
    text-align: center;
}

.onboarding-credit-spinner {
    width: 82px;
    height: 82px;
    margin: 0 auto 22px;
    border: 8px solid #dbe8fb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: credit-button-spin .82s linear infinite;
}

.onboarding-credit-dialog h2 {
    margin: 8px 0 10px;
    color: #071832;
    font-size: 28px;
    line-height: 1.2;
}

.onboarding-credit-dialog p {
    margin: 0 auto 22px;
    max-width: 420px;
    color: #53657f;
    font-size: 16px;
    line-height: 1.55;
}

.onboarding-credit-progress {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #e8eef8;
}

.onboarding-credit-progress span {
    display: block;
    width: 44%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #123c69, #4d78b8);
    animation: onboarding-credit-progress 1.35s ease-in-out infinite;
}

.direct-debit-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 18px;
    border: 1px solid #dbe6f5;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
}

.direct-debit-callout h3 {
    margin: 4px 0 8px;
    color: #071832;
    font-size: 22px;
}

.direct-debit-callout p {
    max-width: 680px;
    margin: 0;
    color: #53657f;
    line-height: 1.55;
}

.direct-debit-callout form {
    flex: 0 0 auto;
}

@keyframes onboarding-credit-progress {
    0% {
        transform: translateX(-110%);
    }
    100% {
        transform: translateX(250%);
    }
}

@keyframes credit-button-spin {
    to {
        transform: rotate(360deg);
    }
}

.credit-source-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
    color: #344761;
    font-size: 14px;
}

.credit-source-note strong {
    color: #071832;
}

.inline-action-form {
    display: inline;
    margin: 0;
}

.link-button {
    display: inline;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--primary);
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

.credit-review-form .credit-decision-summary {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fbff;
}

.credit-review-form .credit-decision-summary strong {
    color: #53657f;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.credit-review-form .credit-decision-summary span {
    color: #071832;
    line-height: 1.45;
}

.onboarding-task-form {
    display: contents;
}

@media (max-width: 760px) {
    .credit-provider-strip,
    .credit-source-note {
        align-items: stretch;
        flex-direction: column;
    }

    .credit-provider-strip form,
    .credit-provider-strip button {
        width: 100%;
    }

    .direct-debit-callout {
        align-items: stretch;
        flex-direction: column;
    }

    .direct-debit-callout form,
    .direct-debit-callout button {
        width: 100%;
    }

    .onboarding-credit-dialog {
        padding: 28px 22px;
    }

    .onboarding-credit-spinner {
        width: 68px;
        height: 68px;
        border-width: 7px;
    }

    .onboarding-credit-dialog h2 {
        font-size: 24px;
    }

    .onboarding-header-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .onboarding-reference-card {
        width: 100%;
    }

    .onboarding-steps {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .onboarding-steps a {
        min-height: 48px;
        padding: 8px;
        border: 1px solid #dbe3ef;
        border-radius: 8px;
        background: #fff;
    }

    .onboarding-steps a::after {
        display: none;
    }

    .onboarding-admin-grid,
    .onboarding-user-list,
    .onboarding-contacts-workspace,
    .onboarding-id-checks {
        grid-template-columns: 1fr;
    }

    .onboarding-id-overview {
        grid-template-columns: 1fr;
    }

    .onboarding-verification-notice {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .onboarding-verification-notice a {
        grid-column: 1 / -1;
    }

    .onboarding-id-scoreboard {
        grid-template-columns: 1fr;
    }

    .onboarding-id-card-head {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .onboarding-id-card-head .review-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .onboarding-id-card-body dl div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .onboarding-submit-readiness {
        align-items: flex-start;
        flex-direction: column;
    }

    .onboarding-audit-head {
        flex-direction: column;
    }

    .onboarding-wizard-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .onboarding-wizard-actions .btn-secondary,
    .onboarding-wizard-actions button {
        width: 100%;
    }

    .verification-reason-grid {
        grid-template-columns: 1fr;
    }

    .verification-reason-grid article + article {
        border-left: 0;
        border-top: 1px solid #eef2f7;
    }

    .onboarding-contact-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 980px) {
    .onboarding-company-layout,
    .onboarding-accounts-layout,
    .onboarding-address-layout {
        grid-template-columns: 1fr;
    }

    .split-stack {
        padding-left: 0;
        padding-top: 16px;
        border-left: 0;
        border-top: 1px solid #dbe3ef;
    }

    .onboarding-contact-review-grid,
    .onboarding-summary-strip {
        grid-template-columns: 1fr;
    }

    .onboarding-summary-strip .onboarding-detail-item + .onboarding-detail-item {
        border-left: 0;
        border-top: 1px solid #dbe3ef;
    }
}

@media (max-width: 760px) {
    .onboarding-dossier-section {
        padding: 16px;
    }

    .onboarding-dossier-head {
        align-items: flex-start;
    }

    .onboarding-info-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .onboarding-download-card {
        justify-items: start;
        text-align: left;
    }
}

.hardware-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 18px 0 24px;
}

.hardware-product-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.hardware-product-image {
    width: 82px;
    height: 82px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.hardware-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.hardware-product-card h3 {
    margin: 4px 0 8px;
    font-size: 17px;
    line-height: 1.25;
}

.hardware-product-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.hardware-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.hardware-product-meta span {
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    color: #475569;
    background: #f8fafc;
}

.hardware-product-buy {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #edf2f7;
}

.hardware-product-buy strong {
    color: var(--primary);
    font-size: 18px;
}

.hardware-price-block {
    display: grid;
    gap: 5px;
    justify-items: end;
}

.hardware-price-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
}

.hardware-price-row[hidden] {
    display: none !important;
}

.hardware-price-row span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.hardware-price-row strong {
    color: var(--primary);
    font-size: 18px;
}

.hardware-price-rrp strong {
    color: #64748b;
    font-size: 14px;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.hardware-storefront-form:not(.is-reseller-pricing) .hardware-price-reseller,
.hardware-storefront-form:not(.is-reseller-pricing) .hardware-price-rrp,
.hardware-storefront-form.is-reseller-pricing .hardware-price-standard {
    display: none;
}

.hardware-product-buy label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.hardware-product-buy input {
    width: 72px;
}

.hardware-order-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.hardware-order-form .full-width {
    grid-column: 1 / -1;
}

.hardware-admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.compact-action-form {
    display: grid;
    gap: 10px;
    align-content: start;
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fbff;
    color: var(--text);
    font-size: 13px;
    line-height: 1.35;
}

.checkbox-line input {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    flex: 0 0 auto;
}

.timeline-list {
    display: grid;
    gap: 12px;
}

.timeline-item {
    border-left: 4px solid var(--primary);
    padding: 10px 0 10px 14px;
}

.timeline-item strong {
    display: block;
    color: var(--primary-dark);
}

.timeline-item span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.timeline-item p {
    margin: 8px 0 0;
}

.hardware-order-wizard {
    padding: 22px;
}

.container.hardware-orders-page {
    max-width: min(1780px, calc(100vw - 48px));
    width: 100%;
}

.hardware-storefront-form {
    display: block;
}

.hardware-stock-notice {
    position: fixed;
    top: 92px;
    right: 28px;
    z-index: 210000;
    width: min(440px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: start;
    gap: 14px;
    margin-bottom: 0;
    padding: 14px 16px;
    border: 1px solid #f2c7a5;
    border-left: 5px solid #c86b1f;
    border-radius: 8px;
    background: #fff7ed;
    color: #432818;
    box-shadow: 0 14px 34px rgba(154, 87, 24, .12);
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity .16s ease, transform .16s ease;
}

.hardware-stock-notice[hidden] {
    display: none !important;
}

.hardware-stock-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hardware-stock-notice-label {
    display: block;
    margin-bottom: 4px;
    color: #9a4f13;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hardware-stock-notice strong {
    display: block;
    color: #24180e;
    font-size: 16px;
}

.hardware-stock-notice p {
    margin: 4px 0 0;
    color: #6b4322;
    line-height: 1.45;
}

.hardware-stock-notice button {
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid #f2c7a5;
    border-radius: 8px;
    background: #fff;
    color: #9a4f13;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    box-shadow: none;
}

.hardware-filter-panel {
    border-color: #c7d4e7;
}

.hardware-filter-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) minmax(190px, .7fr) minmax(190px, .7fr) 150px auto;
    gap: 10px;
    align-items: center;
}

.hardware-filter-toolbar input,
.hardware-filter-toolbar select {
    height: 46px;
}

.hardware-filter-toolbar .btn-primary,
.hardware-filter-toolbar .btn-secondary {
    height: 46px;
    margin: 0;
    white-space: nowrap;
}

.hardware-storefront-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.hardware-catalogue-panel {
    min-width: 0;
}

.hardware-catalogue-start {
    display: grid;
    gap: 18px;
}

.hardware-start-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
    gap: 24px;
    padding: 22px 24px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 100%);
}

.hardware-start-hero h3 {
    margin: 4px 0 8px;
    color: #172033;
    font-size: 25px;
    line-height: 1.15;
}

.hardware-start-hero p {
    margin: 0;
    max-width: 620px;
    color: #506079;
    line-height: 1.5;
}

.hardware-start-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-content: center;
}

.hardware-start-metrics div {
    min-height: 86px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 14px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: rgba(255,255,255,.78);
}

.hardware-start-metrics strong {
    color: var(--primary);
    font-size: 26px;
    line-height: 1;
}

.hardware-start-metrics span {
    color: #5e6d82;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.hardware-recommended-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
}

.hardware-recommended-strip > span {
    color: #5e6d82;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.hardware-recommended-strip a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #f8fbff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.hardware-recommended-strip a:hover {
    border-color: #9fb7da;
    background: #eef6ff;
}

.hardware-shortcut-section {
    display: grid;
    gap: 12px;
    padding-top: 3px;
}

.hardware-shortcut-section + .hardware-shortcut-section {
    padding-top: 18px;
    border-top: 1px solid #e6edf6;
}

.hardware-shortcut-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: end;
}

.hardware-shortcut-heading h3 {
    margin: 0;
    color: #172033;
    font-size: 18px;
}

.hardware-shortcut-heading span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.hardware-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    gap: 10px;
}

.hardware-shortcut-card {
    display: grid;
    grid-template-columns: minmax(112px, 1fr) auto 16px;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 12px 13px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15,23,42,.035);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}

.hardware-shortcut-card:hover {
    border-color: #9fb7da;
    background: #f8fbff;
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15,23,42,.07);
}

.hardware-manufacturer-logo {
    width: 100%;
    min-width: 110px;
    max-width: 150px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #f8fafc;
    user-select: none;
    -webkit-user-select: none;
}

.hardware-manufacturer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.hardware-shortcut-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
    justify-items: end;
}

.hardware-count-badge {
    min-width: 58px;
    display: grid;
    justify-items: center;
    gap: 1px;
    padding: 7px 9px;
    border-radius: 8px;
    background: #eef6ff;
    color: var(--primary);
}

.hardware-count-badge strong {
    font-size: 17px;
    line-height: 1;
}

.hardware-count-badge small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.hardware-shortcut-arrow {
    color: #9aa9bd;
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .15s ease, transform .15s ease;
}

.hardware-shortcut-card:hover .hardware-shortcut-arrow {
    opacity: 1;
    transform: translateX(0);
}

.hardware-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hardware-category-pills a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.hardware-category-pills a:hover {
    border-color: #9fb7da;
    background: #eef6ff;
}

.hardware-category-pills span {
    min-width: 22px;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 999px;
    background: #e6f2ff;
    color: #24446f;
    font-size: 12px;
}

.hardware-category-pills a.hardware-category-more {
    border-style: dashed;
    color: #5e6d82;
}

.hardware-cart-panel {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 16px;
    border-color: #c7d4e7;
    box-shadow: 0 20px 45px rgba(15,23,42,.10);
}

.hardware-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #dbe3ef;
}

.hardware-pagination .btn-secondary.disabled {
    opacity: .45;
    pointer-events: none;
}

.hardware-manufacturer-admin-panel {
    border-color: #c7d4e7;
}

.hardware-manufacturer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.hardware-manufacturer-toggle {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.hardware-manufacturer-toggle input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.hardware-manufacturer-toggle span {
    display: grid;
    gap: 3px;
}

.hardware-manufacturer-toggle small {
    color: var(--muted);
    font-size: 12px;
}

.hardware-page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hardware-page-numbers a,
.hardware-page-numbers span {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfd9e8;
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
}

.hardware-page-numbers a.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.hardware-cart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dbe3ef;
}

.hardware-cart-head h2 {
    margin: 0;
}

.hardware-cart-count {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
}

.hardware-cart-lines {
    display: grid;
    gap: 10px;
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
}

.hardware-cart-lines .hardware-review-line {
    align-items: flex-start;
    padding: 11px 12px;
}

.hardware-cart-line {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(14, 35, 66, .04);
}

.hardware-cart-line-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.hardware-cart-line-main strong {
    color: #182235;
    line-height: 1.15;
}

.hardware-cart-line-main span {
    color: var(--muted);
    font-size: 13px;
}

.hardware-cart-line-actions {
    display: grid;
    grid-template-columns: 102px minmax(92px, 1fr) 34px;
    align-items: center;
    gap: 10px;
}

.hardware-cart-qty-stepper {
    display: grid;
    grid-template-columns: 30px 42px 30px;
    align-items: center;
    width: 102px;
    height: 34px;
    min-width: 102px;
    overflow: hidden;
    border: 1px solid #cfd9e8;
    border-radius: 8px;
    background: #fff;
}

.hardware-cart-qty-stepper button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #f7faff !important;
    color: var(--primary) !important;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    line-height: 1;
    box-shadow: none;
}

.hardware-cart-qty-stepper button:hover {
    background: #e7f2ff;
}

.hardware-cart-qty-stepper input {
    width: 100%;
    min-width: 0;
    height: 34px;
    margin: 0;
    padding: 0 4px;
    border: 0;
    border-left: 1px solid #cfd9e8;
    border-right: 1px solid #cfd9e8;
    border-radius: 0;
    background: #fff;
    color: #122033;
    font-size: 15px;
    font-weight: 900;
    line-height: 34px;
    text-align: center;
    box-shadow: none;
    -moz-appearance: textfield;
}

.hardware-cart-qty-stepper input::-webkit-outer-spin-button,
.hardware-cart-qty-stepper input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.hardware-cart-line-actions strong {
    justify-self: end;
    color: var(--primary);
    font-size: 15px;
}

.hardware-cart-remove {
    width: 34px;
    height: 34px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    color: #7d8ba0;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.hardware-cart-remove:hover {
    border-color: #f2b4b4;
    background: #fff5f5;
    color: #b42318;
}

.hardware-cart-totals {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fafc, #eef6ff);
}

.hardware-cart-totals div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hardware-cart-totals span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.hardware-cart-grand {
    padding-top: 10px;
    border-top: 1px solid #cfd9e8;
}

.hardware-cart-grand strong {
    color: var(--primary);
    font-size: 21px;
}

.hardware-checkout-btn {
    width: 100%;
    margin-top: 0;
    border: 0;
}

.hardware-clear-cart-btn {
    width: 100%;
    margin-top: 0;
}

.hardware-checkout-modal[hidden] {
    display: none !important;
}

.hardware-checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: radial-gradient(circle at top right, rgba(90,125,184,.28), transparent 32%), rgba(8, 20, 37, .64);
    backdrop-filter: blur(10px);
}

.hardware-checkout-dialog {
    width: min(1100px, calc(100vw - 42px));
    max-height: calc(100vh - 56px);
    overflow: auto;
    border: 1px solid rgba(203,215,232,.9);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 34px 100px rgba(8,20,37,.42);
}

.hardware-checkout-titlebar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid #dbe3ef;
    background: linear-gradient(135deg, #ffffff, #f3f8ff 62%, #eef6ff);
}

.hardware-checkout-titlebar h2 {
    margin: 0;
    font-size: 26px;
    letter-spacing: 0;
}

.hardware-modal-close {
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 1px solid #cbd7e8;
    border-radius: 999px;
    background: #fff;
    color: #1f3f75;
    font-size: 24px;
    line-height: 1;
}

.hardware-modal-close:hover {
    background: #eef6ff;
    color: #0b2949;
}

.hardware-checkout-dialog .hardware-wizard-progress {
    padding: 20px 28px 0 !important;
}

.hardware-checkout-dialog .hardware-wizard-panel {
    margin: 18px 28px 28px;
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(15,23,42,.06);
}

.hardware-modal-open {
    overflow: hidden;
}

.hardware-checkout-dialog .wizard-section-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 20px 24px !important;
}

.hardware-checkout-dialog .wizard-section-body {
    padding: 26px 24px !important;
}

.hardware-checkout-dialog .wizard-form-grid {
    gap: 0 32px !important;
}

.hardware-postcode-lookup-card {
    display: grid;
    gap: 12px;
    margin: 4px 0 8px;
    padding: 16px;
    border: 1px solid #cfd9e8;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fafc, #eef6ff);
}

.hardware-postcode-lookup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hardware-postcode-lookup-head strong {
    display: block;
    color: #162033;
    font-size: 15px;
}

.hardware-postcode-lookup-head span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.hardware-postcode-lookup-card .postcode-lookup-row {
    margin-top: 0;
}

.postcode-lookup-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.hardware-postcode-lookup-card .postcode-lookup-btn {
    min-width: 145px;
    margin-top: 0;
}

.hardware-postcode-lookup-card .postcode-address-select {
    min-height: 46px;
}

.postcode-lookup-error {
    color: #b91c1c !important;
    font-weight: 800;
}

.postcode-lookup-ok {
    color: #166534 !important;
    font-weight: 800;
}

.hardware-wizard-progress .wizard-step {
    width: auto !important;
    margin-top: 0 !important;
    border: 1px solid var(--border) !important;
    cursor: pointer !important;
}

.hardware-wizard-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.hardware-wizard-panel[hidden] {
    display: none !important;
}

.hardware-product-grid-enterprise {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 0;
}

.hardware-product-card-enterprise {
    grid-template-columns: 148px minmax(0, 1fr) 190px;
    grid-template-rows: auto;
    align-items: stretch;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(15,23,42,.04);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.hardware-product-card-enterprise.selected {
    border-color: #5a7db8;
    box-shadow: 0 14px 34px rgba(31,63,117,.12);
}

.hardware-product-card-enterprise:hover {
    transform: translateY(-1px);
    border-color: #b7c7dd;
}

.hardware-product-card-enterprise .hardware-product-image {
    width: 148px;
    height: 148px;
    background: #f8fafc;
}

.hardware-product-card-enterprise .hardware-product-image span {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
}

.hardware-product-main {
    min-width: 0;
}

.hardware-product-title-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.hardware-stock-pill {
    flex: 0 0 auto;
    align-self: flex-start;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
}

.hardware-stock-pill.in-stock {
    background: #dcfce7;
    color: #166534;
}

.hardware-stock-pill.out-stock {
    background: #fee2e2;
    color: #991b1b;
}

.hardware-spec-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin: 14px 0 0;
}

.hardware-spec-list div {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fbfdff;
}

.hardware-spec-list dt {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.hardware-spec-list dd {
    margin: 3px 0 0;
    color: #162033;
    font-size: 13px;
    font-weight: 800;
}

.hardware-product-card-enterprise .hardware-product-buy {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    border-top: 0;
    border-left: 1px solid #edf2f7;
    padding: 0 0 0 18px;
}

.hardware-wizard-summary-bar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    margin: 22px -22px -22px;
    padding: 16px 22px;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,.96);
    box-shadow: 0 -12px 28px rgba(15,23,42,.06);
}

.hardware-wizard-summary-bar div,
.hardware-review-totals div {
    display: grid;
    gap: 4px;
}

.hardware-wizard-summary-bar span,
.hardware-review-totals span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.hardware-review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
}

.hardware-review-layout h3,
.hardware-review-delivery h3 {
    margin: 0 0 12px;
    font-size: 17px;
}

.hardware-review-lines {
    display: grid;
    gap: 10px;
}

.hardware-review-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fbfdff;
}

.hardware-review-line span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.hardware-review-totals {
    display: grid;
    gap: 12px;
    align-content: start;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 16px;
    background: #f8fafc;
}

.hardware-review-grand-total {
    padding-top: 12px;
    border-top: 1px solid #dbe3ef;
}

.hardware-review-grand-total strong {
    color: var(--primary);
    font-size: 22px;
}

.hardware-review-delivery {
    margin-top: 24px;
}

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

    .hardware-filter-toolbar input {
        grid-column: 1 / -1;
    }

    .hardware-storefront-shell {
        grid-template-columns: 1fr;
    }

    .hardware-start-hero {
        grid-template-columns: 1fr;
    }

    .hardware-cart-panel {
        position: static;
    }

    .hardware-product-card-enterprise {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .hardware-product-card-enterprise .hardware-product-image {
        width: 104px;
        height: 104px;
    }

    .hardware-product-card-enterprise .hardware-product-buy {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-left: 0;
        border-top: 1px solid #edf2f7;
        padding: 12px 0 0;
    }

    .hardware-wizard-summary-bar,
    .hardware-review-layout {
        grid-template-columns: 1fr;
    }

    .hardware-wizard-summary-bar {
        position: static;
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .hardware-filter-toolbar,
    .hardware-start-metrics {
        grid-template-columns: 1fr;
    }

    .hardware-filter-toolbar input {
        grid-column: auto;
    }

    .hardware-start-hero {
        padding: 18px;
    }

    .hardware-shortcut-heading {
        display: grid;
        align-items: start;
    }
}

.customer-contracts-page .contract-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.container.customer-contracts-page {
    max-width: min(1840px, calc(100vw - 48px));
}

.contract-roadmap-panel .contract-stage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.contract-stage-grid > div {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    background: #f8fafc;
}

.contract-stage-grid strong,
.contract-stage-grid span,
.contract-services-table td strong,
.contract-services-table td span {
    display: block;
}

.contract-stage-grid strong {
    color: var(--text);
    margin-bottom: 6px;
}

.contract-stage-grid span {
    color: var(--muted);
    line-height: 1.5;
}

.contract-form-grid .wide-field,
.contract-service-form .wide-field {
    grid-column: 1 / -1;
}

.contract-edit-form {
    display: grid;
    gap: 18px;
}

.contract-edit-section {
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #fbfdff;
    padding: 18px;
}

.contract-edit-section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5edf6;
}

.contract-edit-section-head h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text);
}

.contract-edit-section-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.contract-edit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 16px;
}

.contract-edit-grid .wide-field {
    grid-column: span 2;
}

.contract-edit-grid label {
    font-size: 12px;
    color: #334155;
    font-weight: 900;
}

.contract-edit-grid input,
.contract-edit-grid select,
.contract-edit-grid textarea {
    min-height: 44px;
}

.contract-edit-grid .zoho-readonly,
.contract-edit-grid input[readonly] {
    background: #f8fafc;
    border-color: #d8e2ef;
    color: #334155;
}

.contract-edit-section-workflow {
    background: #ffffff;
    border-color: #c8d7eb;
}

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

.contract-products-table {
    width: 100%;
    min-width: 900px;
    table-layout: fixed;
}

.contract-products-table th,
.contract-products-table td {
    vertical-align: middle;
}

.contract-products-table th:nth-child(1),
.contract-products-table td:nth-child(1) {
    width: 34%;
}

.contract-products-table th:nth-child(2),
.contract-products-table td:nth-child(2) {
    width: 20%;
}

.contract-products-table th:nth-child(3),
.contract-products-table td:nth-child(3) {
    width: 8%;
}

.contract-products-table th:nth-child(4),
.contract-products-table td:nth-child(4),
.contract-products-table th:nth-child(5),
.contract-products-table td:nth-child(5) {
    width: 13%;
}

.contract-products-table th:nth-child(6),
.contract-products-table td:nth-child(6) {
    width: 12%;
}

.contract-products-table td strong,
.contract-products-table td span {
    display: block;
}

.contract-filter-bar {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(180px, 220px) minmax(200px, 240px) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 20px;
}

.contract-register-panel {
    width: calc(100vw - 80px) !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw + 40px) !important;
    margin-right: 0 !important;
    transform: none !important;
    box-sizing: border-box;
}

.contract-filter-actions,
.contract-row-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    white-space: nowrap;
}

.contract-register-table-wrap {
    width: 100%;
    overflow-x: hidden;
    padding-bottom: 4px;
}

.contract-register-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.contract-register-table th,
.contract-register-table td {
    vertical-align: middle;
    padding-left: 8px;
    padding-right: 8px;
}

.contract-register-table th:nth-child(1),
.contract-register-table td:nth-child(1) {
    width: 25%;
}

.contract-register-table th:nth-child(2),
.contract-register-table td:nth-child(2) {
    width: 19%;
}

.contract-register-table th:nth-child(3),
.contract-register-table td:nth-child(3) {
    width: 15%;
}

.contract-register-table th:nth-child(4),
.contract-register-table td:nth-child(4) {
    width: 10%;
}

.contract-register-table th:nth-child(5),
.contract-register-table td:nth-child(5) {
    width: 11%;
}

.contract-register-table th:nth-child(6),
.contract-register-table td:nth-child(6) {
    width: 8%;
}

.contract-register-table th:nth-child(7),
.contract-register-table td:nth-child(7) {
    width: 5%;
}

.contract-register-table th:nth-child(8),
.contract-register-table td:nth-child(8) {
    width: 6%;
}

.contract-register-table th:nth-child(9),
.contract-register-table td:nth-child(9) {
    width: 7%;
}

.contract-register-table td {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contract-register-table td > strong,
.contract-register-table td > .muted {
    display: inline;
}

.contract-register-table td > strong + .muted::before {
    content: " - ";
}

.contract-register-table td.contract-row-actions {
    overflow: visible;
    text-overflow: clip;
}

.contract-warning-badge {
    display: inline-flex;
    align-items: center;
    min-width: 88px;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.contract-warning-active {
    background: #dcfce7;
    color: #166534;
}

.contract-warning-warning {
    background: #fef3c7;
    color: #92400e;
}

.contract-warning-expired {
    background: #fee2e2;
    color: #991b1b;
}

.contract-warning-draft {
    background: #e5e7eb;
    color: #374151;
}

.inline-delete-form {
    margin: 0;
}

.btn-link-danger {
    border: 0;
    background: transparent;
    color: #b91c1c;
    font-weight: 800;
    padding: 0;
    cursor: pointer;
}

@media (max-width: 920px) {
    .customer-contracts-page .contract-stat-grid,
    .contract-roadmap-panel .contract-stage-grid,
    .contract-filter-bar {
        grid-template-columns: 1fr;
    }

    .contract-edit-grid {
        grid-template-columns: 1fr;
    }

    .contract-edit-grid .wide-field {
        grid-column: 1;
    }

    .contract-edit-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .contract-filter-actions,
    .contract-row-actions {
        white-space: normal;
        flex-wrap: wrap;
    }
}

.operations-container {
    max-width: 1500px;
}

.operations-queue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin: 22px 0;
}

.operations-queue-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    padding: 18px;
    box-shadow: var(--shadow);
}

.operations-queue-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.operations-queue-card strong {
    display: block;
    margin: 8px 0 4px;
    color: var(--navy);
    font-size: 32px;
}

.operations-queue-card small {
    color: #64748b;
}

.operations-create-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 20px;
    margin-bottom: 22px;
}

.operations-form label {
    display: block;
    margin-top: 12px;
    font-weight: 800;
}

.operations-submit {
    width: auto;
    margin-top: 16px;
    padding-left: 28px;
    padding-right: 28px;
}

.operations-filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 220px auto;
    gap: 12px;
    align-items: end;
    margin: 18px 0;
}

.operations-table td {
    vertical-align: top;
}

.operations-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.operations-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--navy);
    font-weight: 900;
    text-decoration: none;
}

.operations-pagination a.active,
.operations-pagination a:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

.operations-priority {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    background: #eef4ff;
    color: #173b75;
    font-size: 12px;
    font-weight: 900;
}

.operations-priority-critical {
    background: #fee2e2;
    color: #991b1b;
}

.operations-priority-high {
    background: #ffedd5;
    color: #9a3412;
}

.operations-priority-low {
    background: #f1f5f9;
    color: #475569;
}

.operations-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.operations-mini-button {
    width: auto;
    border: 0;
    border-radius: 8px;
    background: #1f3d73;
    color: #fff;
    padding: 9px 13px;
    font-weight: 900;
    cursor: pointer;
}

.operations-related-button {
    border: 0;
    background: transparent;
    color: #173b75;
    font: inherit;
    font-weight: 900;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.operations-related-button:hover {
    text-decoration: underline;
}

.operations-preview-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.48);
}

.operations-preview-backdrop[hidden] {
    display: none;
}

.operations-preview-modal {
    width: min(1040px, 96vw);
    max-height: 88vh;
    overflow: auto;
    border: 1px solid #d6dfed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.32);
    outline: none;
}

.operations-preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    border-bottom: 1px solid #dbe4f0;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.operations-preview-header h3 {
    margin: 4px 0 0;
    color: #071b42;
    font-size: 28px;
}

.operations-preview-close {
    border: 1px solid #d6dfed;
    border-radius: 10px;
    background: #fff;
    color: #173b75;
    min-width: 42px;
    min-height: 42px;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
}

.operations-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 24px 28px;
}

.operations-preview-grid section {
    border: 1px solid #d6dfed;
    border-radius: 14px;
    background: #f8fafc;
    padding: 18px;
}

.operations-preview-grid h4 {
    margin: 0 0 14px;
    color: #071b42;
    font-size: 17px;
}

.operations-preview-grid dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.operations-preview-grid dt {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.operations-preview-grid dd {
    margin: -8px 0 0;
    color: #071b42;
    font-weight: 800;
    line-height: 1.35;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.operations-preview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 28px 24px;
    border-top: 1px solid #dbe4f0;
}

.operations-complete-details {
    border: 1px solid #d6dfed;
    border-radius: 10px;
    background: #f8fafc;
    padding: 8px;
}

.operations-complete-details summary {
    color: #173b75;
    font-weight: 900;
    cursor: pointer;
}

.operations-complete-details textarea {
    width: 100%;
    margin-top: 8px;
}

@media (max-width: 1100px) {
    .operations-create-grid,
    .operations-filter-grid {
        grid-template-columns: 1fr;
    }

    .operations-preview-grid {
        grid-template-columns: 1fr;
    }
}

.port-order-notes-panel {
    margin-top: 24px;
}

.order-note-form {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.order-note-history {
    display: grid;
    gap: 14px;
}

.order-note-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 18px 20px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.order-note-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.order-note-card-head strong {
    color: var(--primary-dark);
}

.order-note-role {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.order-note-date {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.order-note-email {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.order-note-body {
    color: var(--text);
    line-height: 1.7;
    word-break: break-word;
}

/* Port order enterprise detail tabs */
.port-order-detail-tabs-panel .detail-lock-note {
    margin: -4px 0 18px;
    padding: 12px 14px;
    border: 1px solid #dbe7f7;
    border-radius: 8px;
    background: #f8fbff;
    color: var(--muted);
    font-weight: 700;
}

.port-order-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 8px;
    margin: 0 0 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
}

.port-order-tabs.customer-tabs-only {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.port-order-tab-button {
    min-height: 48px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--primary);
    box-shadow: none;
    font-weight: 900;
}

.port-order-tab-button:hover,
.port-order-tab-button.is-active {
    border-color: #bfdbfe;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 28px rgba(30, 64, 124, .16);
}

.port-order-tab-panel {
    display: none;
}

.port-order-tab-panel.is-active {
    display: block;
}

.port-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.port-detail-grid .full-width {
    grid-column: 1 / -1;
}

.port-detail-grid label {
    margin: 0;
    font-weight: 900;
}

.port-detail-grid input,
.port-detail-grid select,
.port-detail-grid textarea {
    margin-top: 8px;
}

.port-detail-grid input[readonly],
.port-detail-grid textarea[readonly] {
    background: #f8fafc;
    color: var(--text);
}

.port-detail-card {
    min-height: 74px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fbff;
}

.port-detail-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.port-detail-card strong {
    display: block;
    color: var(--text);
    font-size: 15px;
}

.port-detail-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 700;
}

.port-order-number-summary {
    margin-top: 22px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.port-order-detail-actions {
    justify-content: flex-end;
    border-top: 1px solid var(--border);
    margin-top: 22px;
    padding-top: 18px;
}

@media (max-width: 900px) {
    .port-order-tabs,
    .port-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Number Porting refined width after column tidy */
.porting-page {
    max-width: 1600px !important;
    width: calc(100% - 48px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.porting-page .port-orders-wide-panel {
    max-width: 1600px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.porting-page .port-table-wrap {
    overflow-x: visible !important;
}

.porting-page .port-results-table {
    min-width: 0 !important;
    width: 100% !important;
}

@media (max-width: 1200px) {
    .porting-page {
        width: calc(100% - 24px) !important;
    }

    .porting-page .port-table-wrap {
        overflow-x: auto !important;
    }

    .porting-page .port-results-table {
        min-width: 1120px !important;
    }
}

.portal-notification-toast {
    position: fixed !important;
    right: 22px !important;
    bottom: 22px !important;
    z-index: 9999 !important;
    width: min(360px, calc(100vw - 32px)) !important;
    padding: 16px 46px 16px 18px !important;
    display: grid !important;
    gap: 6px !important;
    border: 1px solid #c9d6e8 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: var(--text) !important;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .18) !important;
    transform: translateY(18px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .18s ease, transform .18s ease !important;
}

.portal-notification-toast.is-visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.portal-notification-toast strong {
    color: var(--primary) !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.portal-notification-toast span {
    color: var(--muted) !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.portal-notification-toast button {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 28px !important;
    height: 28px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #eef3f9 !important;
    color: var(--primary) !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.call-rate-import-form {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f8fbff;
    padding: 16px;
}

.call-rates-page {
    max-width: 1480px;
}

.call-rate-import-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr);
    gap: 16px;
    align-items: stretch;
}

.call-rate-import-grid input[type="file"] {
    width: 100%;
    margin-top: 8px;
    background: #fff;
}

.call-rate-replace-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 92px;
    margin: 0;
    padding: 16px;
    border: 1px solid #d4dfef;
    border-radius: 12px;
    background: #fff;
}

.call-rate-replace-option input {
    margin-top: 3px;
}

.call-rate-replace-option strong,
.call-rate-replace-option small {
    display: block;
}

.call-rate-replace-option small {
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.4;
}

.call-rate-nav-panel {
    padding-bottom: 18px;
}

.call-rate-tariff-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 8px;
    border: 1px solid #d9e3f1;
    border-radius: 14px;
    background: #f8fbff;
}

.call-rate-tariff-nav.has-2-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.call-rate-tariff-nav.has-4-items {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.call-rate-tariff-nav.has-1-items {
    grid-template-columns: 1fr;
}

.call-rate-tariff-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--primary);
    text-decoration: none;
    background: transparent;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.call-rate-tariff-nav a:hover,
.call-rate-tariff-nav a.is-active {
    border-color: #b8c9e2;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.call-rate-tariff-nav a.is-active {
    color: #fff;
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), #315b99);
}

.call-rate-tariff-nav a strong,
.call-rate-tariff-nav a small {
    display: block;
}

.call-rate-tariff-nav a strong {
    font-size: 16px;
}

.call-rate-tariff-nav a small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.call-rate-tariff-nav a.is-active small {
    color: rgba(255, 255, 255, .78);
}

.call-rate-nav-code {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 10px;
    background: #eaf3ff;
    color: var(--primary);
    font-weight: 900;
    letter-spacing: .04em;
}

.call-rate-tariff-nav a.is-active .call-rate-nav-code {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.call-rate-workspace {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.call-rate-workspace > div {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fbff;
}

.call-rate-workspace strong {
    display: block;
    margin-top: 8px;
    font-size: 18px;
}

.call-rate-filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px) auto;
    gap: 14px;
    align-items: end;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #d9e3f1;
    border-radius: 14px;
    background: #f8fbff;
}

.call-rate-filter-bar label {
    display: block;
    margin: 0 0 7px;
    font-size: 13px;
    font-weight: 900;
    color: var(--primary);
}

.call-rate-filter-bar input,
.call-rate-filter-bar select {
    width: 100%;
    min-height: 44px;
    background: #fff;
}

.call-rate-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.call-rate-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 10px;
}

.call-rate-results-head p {
    margin: 0;
}

.call-rate-results-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    flex-wrap: wrap;
}

.call-rate-margin-search {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #d9e3f1;
    border-radius: 14px;
    background: #f8fbff;
}

.call-rate-margin-search label {
    display: block;
    margin: 0 0 7px;
    font-size: 13px;
    font-weight: 900;
    color: var(--primary);
}

.call-rate-margin-search input {
    width: 100%;
    min-height: 44px;
    background: #fff;
}

.call-rate-results-table th,
.call-rate-results-table td {
    white-space: nowrap;
}

.call-rate-results-table td:nth-child(2),
.call-rate-results-table th:nth-child(2) {
    white-space: normal;
}

.call-rate-destination-table td:first-child,
.call-rate-destination-table th:first-child {
    white-space: normal;
}

.call-rate-drill-link {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.call-rate-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.call-rate-page-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.call-rate-page-link {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #d4dfef;
    border-radius: 10px;
    background: #fff;
    color: var(--primary);
    text-decoration: none;
    font-weight: 900;
}

.call-rate-page-link.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.call-rate-table-scroll {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-gutter: stable;
}

.call-rate-margin-table {
    min-width: 1320px;
    table-layout: fixed;
}

.call-rate-margin-table th,
.call-rate-margin-table td {
    vertical-align: middle;
}

.call-rate-margin-table td:first-child {
    width: 245px;
    white-space: normal;
}

.call-rate-margin-table th:nth-child(2),
.call-rate-margin-table td:nth-child(2) {
    width: 132px;
}

.call-rate-margin-table th:nth-child(3),
.call-rate-margin-table td:nth-child(3) {
    width: 76px;
}

.call-rate-margin-table th:nth-child(4),
.call-rate-margin-table td:nth-child(4),
.call-rate-margin-table th:nth-child(5),
.call-rate-margin-table td:nth-child(5),
.call-rate-margin-table th:nth-child(6),
.call-rate-margin-table td:nth-child(6),
.call-rate-margin-table th:nth-child(7),
.call-rate-margin-table td:nth-child(7),
.call-rate-margin-table th:nth-child(8),
.call-rate-margin-table td:nth-child(8) {
    width: 128px;
}

.call-rate-margin-table th:nth-child(9),
.call-rate-margin-table td:nth-child(9) {
    width: 160px;
    white-space: normal;
}

.call-rate-margin-table th:nth-child(10),
.call-rate-margin-table td:nth-child(10) {
    width: 96px;
    min-width: 96px;
    text-align: right;
}

.call-rate-margin-input {
    width: 104px;
    min-height: 38px;
    padding: 8px 9px;
    border: 1px solid #d4dfef;
    border-radius: 8px;
    background: #fff;
    font-weight: 800;
}

.call-rate-margin-row-form {
    margin: 0;
}

.call-rate-call-band-input {
    width: 118px;
    min-height: 38px;
    padding: 8px 9px;
    border: 1px solid #d4dfef;
    border-radius: 8px;
    background: #fff;
    font-weight: 800;
}

.call-rate-save-btn {
    min-width: 74px;
    padding: 10px 13px;
    border-radius: 8px;
}

.call-rate-tariff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.call-rate-tariff-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    min-height: 112px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff, #f8fbff);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .05);
}

.call-rate-tariff-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.call-rate-tariff-card p {
    margin: 0;
}

.call-rate-tariff-code {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #4f8ee8);
    color: #fff;
    font-weight: 900;
    letter-spacing: .04em;
    box-shadow: 0 12px 24px rgba(30, 64, 120, .22);
}

@media (max-width: 820px) {
    .call-rate-import-grid {
        grid-template-columns: 1fr;
    }

    .call-rate-tariff-nav,
    .call-rate-workspace,
    .call-rate-filter-bar {
        grid-template-columns: 1fr;
    }

    .call-rate-filter-actions,
    .call-rate-results-head,
    .call-rate-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .call-rate-tariff-grid,
    .call-rate-tariff-card {
        grid-template-columns: 1fr;
    }
}

.enterprise-topbar .admin-notification-header,
.topbar .admin-notification-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 12px 12px 14px !important;
    border-bottom: 1px solid var(--border) !important;
}

.enterprise-topbar .admin-notification-header strong,
.topbar .admin-notification-header strong {
    color: var(--text) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

.enterprise-topbar .admin-notification-header span,
.topbar .admin-notification-header span {
    color: var(--muted) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.enterprise-topbar .admin-notification-empty,
.topbar .admin-notification-empty {
    padding: 16px 12px !important;
    color: var(--muted) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.enterprise-topbar .admin-notification-menu a,
.topbar .admin-notification-menu a {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 11px !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 12px !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--text) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: normal !important;
}

.enterprise-topbar .admin-notification-menu a:hover,
.topbar .admin-notification-menu a:hover {
    background: #f3f7fc !important;
    color: var(--text) !important;
}

.enterprise-topbar .admin-notification-menu a > span,
.topbar .admin-notification-menu a > span {
    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    background: var(--primary) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.enterprise-topbar .admin-notification-menu a strong,
.enterprise-topbar .admin-notification-menu a small,
.topbar .admin-notification-menu a strong,
.topbar .admin-notification-menu a small {
    display: block !important;
}

.enterprise-topbar .admin-notification-menu a strong,
.topbar .admin-notification-menu a strong {
    margin: 0 0 4px !important;
    color: var(--text) !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
}

.enterprise-topbar .admin-notification-menu a small,
.topbar .admin-notification-menu a small {
    color: var(--muted) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

/* 999 module layout containment */
.emergency-999-page {
    max-width: 1880px !important;
    width: min(1880px, calc(100vw - 32px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: visible !important;
}

.emergency-999-page .hero-panel,
.emergency-999-page .number-search-panel,
.emergency-999-page .cards {
    max-width: 1250px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.emergency-999-page .panel {
    overflow: hidden !important;
}

.emergency-999-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
}

.emergency-999-table {
    min-width: 1780px !important;
    table-layout: fixed !important;
}

.emergency-999-table th,
.emergency-999-table td {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    vertical-align: middle !important;
}

.emergency-999-table th:nth-child(1),
.emergency-999-table td:nth-child(1) {
    width: 145px !important;
}

.emergency-999-table th:nth-child(2),
.emergency-999-table td:nth-child(2) {
    width: 100px !important;
}

.emergency-999-table th:nth-child(3),
.emergency-999-table td:nth-child(3) {
    width: 140px !important;
}

.emergency-999-table th:nth-child(4),
.emergency-999-table td:nth-child(4) {
    width: 310px !important;
}

.emergency-999-table th:nth-child(5),
.emergency-999-table td:nth-child(5) {
    width: 210px !important;
}

.emergency-999-table th:nth-child(6),
.emergency-999-table td:nth-child(6) {
    width: 110px !important;
}

.emergency-999-table th:nth-child(7),
.emergency-999-table td:nth-child(7),
.emergency-999-table th:nth-child(8),
.emergency-999-table td:nth-child(8) {
    width: 130px !important;
}

.emergency-999-table th:nth-child(9),
.emergency-999-table td:nth-child(9) {
    width: 130px !important;
}

.emergency-999-table th:nth-child(10),
.emergency-999-table td:nth-child(10) {
    width: 105px !important;
}

.emergency-999-table th:nth-child(11),
.emergency-999-table td:nth-child(11) {
    width: 125px !important;
}

.emergency-999-table th:nth-child(12),
.emergency-999-table td:nth-child(12) {
    width: 105px !important;
}

.portal-changelog-page .changelog-date-panel {
    margin-bottom: 22px;
}

.changelog-version-list {
    display: grid;
    gap: 14px;
}

/* Billing module */
.billing-page .billing-container {
    max-width: 1420px;
}

.billing-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
}

.billing-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.billing-title-row h1 {
    margin: 0;
    font-size: 32px;
    letter-spacing: 0;
}

.billing-module-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1f3f75, #4f8bd9);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(31, 63, 117, .22);
}

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

.billing-kpi {
    min-height: 124px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.billing-kpi strong {
    display: block;
    margin-top: 6px;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: 0;
}

.billing-kpi small {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.billing-kpi-primary {
    grid-column: span 2;
    background: linear-gradient(135deg, #102f57, #1f3f75);
    color: #fff;
    border-color: #1f3f75;
}

.billing-kpi-primary .stat-label,
.billing-kpi-primary small {
    color: rgba(255,255,255,.78);
}

.billing-kpi-primary strong {
    font-size: 38px;
}

.billing-kpi-money {
    background: linear-gradient(135deg, #ffffff, #f4f8ff);
    border-color: #cddbf0;
}

.billing-kpi-attention {
    background: linear-gradient(135deg, #fffaf0, #fff);
    border-color: #f5c878;
}

.billing-orders-panel {
    padding: 0;
    overflow: hidden;
}

.billing-orders-panel .panel-heading {
    margin: 0;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.billing-panel-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 9px;
    min-width: min(100%, 500px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.billing-filter-topline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
}

.billing-invoice-search {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: min(100%, 500px);
    max-width: 100%;
}

.billing-invoice-search input[type="search"] {
    flex: 1 1 310px;
    width: auto;
    max-width: 360px;
    min-height: 36px;
    border: 1px solid #d5dde8;
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    background: #fff;
    outline: 0;
    box-shadow: 0 1px 2px rgba(15, 45, 82, .04);
}

.billing-invoice-search input[type="search"]:focus {
    border-color: #9bb7d8;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.billing-invoice-search input[type="search"]::placeholder {
    color: var(--muted);
    font-weight: 650;
}

.billing-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 36px;
    margin-top: 0;
    border: 1px solid #cbd8e7;
    border-radius: 8px;
    padding: 8px 14px;
    background: #f8fafc;
    color: #123b72;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.billing-search-clear {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 2px;
    margin-left: 2px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.billing-filter-btn {
    min-height: 36px;
    padding: 9px 13px;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .billing-orders-panel .panel-heading {
        align-items: stretch;
    }

    .billing-panel-actions {
        align-items: stretch;
        min-width: 0;
    }

    .billing-filter-topline {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 620px) {
    .billing-invoice-search {
        align-items: stretch;
        flex-direction: column;
    }

    .billing-invoice-search input[type="search"],
    .billing-search-submit,
    .billing-search-clear {
        width: 100%;
        justify-content: center;
    }
}

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

.billing-table {
    min-width: 1320px;
}

.billing-table .billing-action-heading {
    width: 110px;
    text-align: right;
}

.billing-table th {
    background: #f8fafc;
}

.billing-table td {
    vertical-align: middle;
}

.billing-order-ref {
    color: #0f2d52;
}

.billing-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #1f3f75;
    font-size: 12px;
    font-weight: 900;
}

.billing-cost {
    color: #0f2d52;
    font-size: 15px;
}

.billing-ledger-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.billing-ledger-detail {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.billing-ledger-ready {
    background: #fef3c7;
    color: #92400e;
}

.billing-ledger-issued {
    background: #dcfce7;
    color: #166534;
}

.billing-ledger-disregarded {
    background: #fee2e2;
    color: #991b1b;
}

.billing-ledger-pending {
    background: #eaf2ff;
    color: #1f3f75;
}

.billing-actions {
    display: table-cell;
    text-align: right;
    vertical-align: middle;
    min-width: 100px;
    white-space: nowrap;
}

.billing-actions .table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    white-space: nowrap;
}

.inline-form {
    display: inline;
    margin: 0;
}

.button-link {
    border: 0;
    background: transparent;
    color: #123b72;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

/* Billing invoice template */
.billing-invoice-page {
    background: #e9eef5;
}

.billing-invoice-container {
    max-width: 1160px;
}

.invoice-toolbar {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    margin: 24px 0 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.invoice-toolbar-actions {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    min-width: max-content;
}

.invoice-toolbar-actions .inline-form {
    display: inline-flex;
    align-items: stretch;
    margin: 0;
}

.invoice-toolbar-actions .btn-primary,
.invoice-toolbar-actions .btn-secondary {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    min-height: 46px;
    padding-top: 0;
    padding-bottom: 0;
    width: auto;
    line-height: 1;
    white-space: nowrap;
}

.invoice-toolbar-actions button.btn-primary,
.invoice-toolbar-actions button.btn-secondary {
    height: 46px;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.invoice-toolbar-actions button.btn-secondary {
    border: 1px solid var(--border);
}

.invoice-sheet {
    position: relative;
    overflow: hidden;
    padding: 42px;
    border: 1px solid #d4deeb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15,23,42,.12);
}

.invoice-sheet-cancelled::before {
    content: "INVOICE CANCELLED";
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    width: 95%;
    transform: translate(-50%, -50%) rotate(-24deg);
    color: rgba(178, 34, 24, .14);
    font-size: clamp(36px, 5.2vw, 72px);
    font-weight: 900;
    letter-spacing: .05em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    pointer-events: none;
    white-space: nowrap;
}

.invoice-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 34px;
    min-height: 168px;
    padding-bottom: 26px;
    border-bottom: 1px solid #dbe4f0;
}

.invoice-brand {
    display: flex;
    align-items: center;
    min-height: 150px;
    flex: 1 1 auto;
}

.invoice-brand img {
    display: block;
    width: min(430px, 100%);
    max-height: 132px;
    object-fit: contain;
}

.invoice-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: linear-gradient(135deg, #102f57, #2f73d8);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.invoice-brand h1 {
    margin: 0 0 8px;
    font-size: 26px;
    letter-spacing: 0;
}

.invoice-letterhead-details {
    max-width: 360px;
    color: #000;
    font-size: 13px;
    line-height: 1.18;
    text-align: right;
}

.invoice-letterhead-details h1 {
    margin: 0 0 16px;
    color: #000;
    font-size: 18px;
    letter-spacing: 0;
}

.invoice-letterhead-details p {
    margin: 0 0 8px;
    color: #000;
    font-weight: 700;
}

.invoice-brand p,
.invoice-meta p,
.invoice-summary-grid p,
.invoice-footer-note p {
    margin: 4px 0;
    color: var(--muted);
}

.invoice-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin: 26px 0;
}

.invoice-meta-row > div:first-child span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.invoice-meta-row h2 {
    margin: 0;
    color: #0f2d52;
    font-size: 44px;
    font-weight: 900;
    letter-spacing: 0;
}

.invoice-meta {
    min-width: 260px;
    padding: 18px;
    border: 1px solid #d8e1ee;
    border-radius: 8px;
    background: #f8fafc;
    text-align: right;
}

.invoice-meta span,
.invoice-summary-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.invoice-meta strong {
    display: block;
    margin: 8px 0;
    color: #0f2d52;
    font-size: 24px;
}

.invoice-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 28px;
}

.invoice-summary-grid article {
    min-height: 128px;
    padding: 18px;
    border: 1px solid #d8e1ee;
    border-radius: 8px;
    background: #fbfdff;
}

.invoice-summary-grid strong {
    display: block;
    margin: 9px 0;
    color: var(--text);
    font-size: 17px;
}

.invoice-lines {
    width: 100%;
}

.invoice-lines tfoot td {
    border-top: 1px solid #dbe4f0;
    background: #f8fafc;
    font-size: 15px;
}

.invoice-lines tfoot tr:last-child td {
    color: #0f2d52;
    font-size: 18px;
}

.invoice-footer-note {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #dbe4f0;
}

.invoice-registration {
    color: #0f2d52 !important;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 1000px) {
    .billing-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 700px) {
    .billing-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .billing-kpi-grid {
        grid-template-columns: 1fr;
    }

    .billing-kpi-primary {
        grid-column: span 1;
    }

    .invoice-sheet {
        padding: 24px;
    }

    .invoice-header,
    .invoice-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .invoice-header,
    .invoice-meta-row {
        flex-direction: column;
    }

    .invoice-footer-note {
        flex-direction: column;
    }

    .invoice-letterhead-details {
        max-width: none;
        text-align: left;
    }

    .invoice-meta {
        width: 100%;
        text-align: left;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .topbar,
    .invoice-toolbar,
    .portal-footer {
        display: none !important;
    }

    body.billing-invoice-page {
        background: #fff;
        color: #162033;
    }

    .billing-invoice-container {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .invoice-sheet {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0 !important;
        overflow: visible !important;
        width: 100% !important;
        max-width: none !important;
    }

    .invoice-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 24px !important;
        min-height: 145px !important;
        padding-bottom: 20px !important;
    }

    .invoice-brand {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        min-height: 120px !important;
        flex: 1 1 auto !important;
    }

    .invoice-brand img {
        width: 300px !important;
        max-width: 300px !important;
        max-height: 95px !important;
    }

    .invoice-letterhead-details {
        flex: 0 0 300px !important;
        max-width: 300px !important;
        text-align: right !important;
        font-size: 11px !important;
        line-height: 1.12 !important;
    }

    .invoice-letterhead-details h1 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }

    .invoice-letterhead-details p {
        margin-bottom: 5px !important;
    }

    .invoice-meta-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 24px !important;
        margin: 24px 0 !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .invoice-meta-row h2 {
        font-size: 36px !important;
        white-space: nowrap !important;
    }

    .invoice-meta {
        flex: 0 0 245px !important;
        min-width: 245px !important;
        width: 245px !important;
        text-align: right !important;
        padding: 16px !important;
    }

    .invoice-summary-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
        margin-bottom: 24px !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .invoice-summary-grid article {
        min-height: 105px !important;
        padding: 14px !important;
    }

    .invoice-summary-grid strong {
        font-size: 14px !important;
    }

    .invoice-summary-grid p {
        font-size: 12px !important;
        overflow-wrap: anywhere !important;
    }

    .invoice-lines {
        width: 100% !important;
        table-layout: fixed !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .invoice-lines th,
    .invoice-lines td {
        padding: 10px 8px !important;
        font-size: 12px !important;
    }

    .invoice-lines th:nth-child(1),
    .invoice-lines td:nth-child(1) {
        width: 40% !important;
    }

    .invoice-lines th:nth-child(2),
    .invoice-lines td:nth-child(2) {
        width: 25% !important;
    }

    .invoice-footer-note {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 24px !important;
        margin-top: 24px !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .invoice-footer-note p {
        font-size: 12px !important;
    }

    .invoice-registration {
        flex: 0 0 280px !important;
        text-align: right !important;
        white-space: nowrap !important;
    }
}

.changelog-version-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff, #f8fbff);
    padding: 18px 20px;
}

.changelog-version-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.changelog-version {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.changelog-version-card h3 {
    margin: 10px 0 0;
    font-size: 18px;
}

.changelog-version-card ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.6;
}

/* Bell v3: label trigger avoids global button styling entirely */
.enterprise-topbar .admin-notification-toggle,
.topbar .admin-notification-toggle {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.enterprise-topbar .admin-notification-trigger,
.topbar .admin-notification-trigger {
    position: relative !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #c9d6e8 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--primary) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06) !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

.enterprise-topbar .admin-notification-trigger:hover,
.enterprise-topbar .admin-notification-trigger.has-tasks,
.enterprise-topbar .admin-notification-toggle:checked + .admin-notification-trigger,
.topbar .admin-notification-trigger:hover,
.topbar .admin-notification-trigger.has-tasks,
.topbar .admin-notification-toggle:checked + .admin-notification-trigger {
    border-color: #91acd3 !important;
    background: #eef6ff !important;
    color: var(--primary-dark) !important;
}

.enterprise-topbar .admin-notification-trigger > span,
.topbar .admin-notification-trigger > span {
    position: absolute !important;
    top: -7px !important;
    right: -7px !important;
    min-width: 21px !important;
    height: 21px !important;
    padding: 0 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #fff !important;
    border-radius: 999px !important;
    background: #b42318 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.enterprise-topbar .admin-notification-toggle:checked ~ .admin-notification-menu,
.topbar .admin-notification-toggle:checked ~ .admin-notification-menu {
    display: block !important;
}

.enterprise-topbar .admin-notification-dropdown:hover .admin-notification-menu,
.enterprise-topbar .admin-notification-dropdown:focus-within .admin-notification-menu,
.enterprise-topbar .admin-notification-menu:hover,
.topbar .admin-notification-dropdown:hover .admin-notification-menu,
.topbar .admin-notification-dropdown:focus-within .admin-notification-menu,
.topbar .admin-notification-menu:hover {
    display: block !important;
}
