body.system-phoenix-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    color: #18324f;
    background:
        radial-gradient(circle at top left, rgba(24, 119, 242, 0.10), transparent 22%),
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.10), transparent 26%),
        linear-gradient(180deg, #f7fbff 0%, #edf4fb 100%);
}

body.system-phoenix-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.40) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.40) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 70%);
}

.system-phoenix-shell {
    position: relative;
    display: grid;
    grid-template-columns: var(--system-phoenix-sidebar-width, 310px) minmax(0, 1fr);
    min-height: 100vh;
}

.system-phoenix-sidebar {
    position: relative;
    padding: 28px 22px 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.72)),
        linear-gradient(180deg, #f7fbff 0%, #ecf5ff 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(22px);
    box-shadow: inset -1px 0 0 rgba(17, 53, 90, 0.05);
}

.system-phoenix-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: inherit;
    text-decoration: none;
}

.system-phoenix-brand:hover {
    color: inherit;
}

.system-phoenix-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.system-phoenix-brand-logo img {
    display: block;
    max-width: 150px;
    max-height: 36px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.system-phoenix-brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #1273ea, #12b8b0);
    box-shadow: 0 18px 36px rgba(18, 115, 234, 0.24);
}

.system-phoenix-brand-copy strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
}

.system-phoenix-brand-copy.has-theme-logo {
    display: flex;
    align-items: center;
}

.system-phoenix-brand-copy span {
    display: block;
    margin-top: 2px;
    color: #6e819a;
    font-size: 0.84rem;
}

.system-phoenix-sidebar-cta {
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 26px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 38%),
        linear-gradient(135deg, #0f67dd, #12b8b0);
    box-shadow: 0 24px 44px rgba(18, 115, 234, 0.20);
}

.system-phoenix-sidebar-cta-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.82;
}

.system-phoenix-sidebar-cta strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.42;
}

.system-phoenix-sidebar-cta p {
    margin: 10px 0 16px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
    line-height: 1.55;
}

.system-phoenix-sidebar-cta-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 15px;
    border-radius: 999px;
    color: #0d4273;
    background: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.system-phoenix-sidebar-cta-action:hover {
    color: #0d4273;
}

.system-phoenix-nav-group + .system-phoenix-nav-group {
    margin-top: 22px;
}

.system-phoenix-nav-label {
    margin: 0 0 10px;
    color: #8a9bb0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.system-phoenix-nav-list {
    display: grid;
    gap: 6px;
}

.system-phoenix-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 17px;
    color: #566f8b;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.system-phoenix-nav-link:hover {
    color: #18324f;
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.74);
}

.system-phoenix-nav-link.is-active {
    color: #0a4aa8;
    background: linear-gradient(135deg, rgba(18, 115, 234, 0.12), rgba(20, 184, 166, 0.09));
    box-shadow: inset 0 0 0 1px rgba(18, 115, 234, 0.08);
}

.system-phoenix-nav-link.is-disabled {
    opacity: 0.52;
    cursor: not-allowed;
}

.system-phoenix-nav-link.is-disabled:hover {
    transform: none;
    color: #566f8b;
    background: transparent;
}

.system-phoenix-nav-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(17, 53, 90, 0.06);
    font-size: 1rem;
    color: #0a4aa8;
}

.system-phoenix-nav-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.system-phoenix-nav-text strong {
    font-size: 0.92rem;
    font-weight: 700;
}

.system-phoenix-nav-text span {
    color: #7b8da4;
    font-size: 0.76rem;
}

.system-phoenix-sidebar-footer {
    margin-top: 28px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 242, 252, 0.86));
    box-shadow: 0 24px 44px rgba(17, 53, 90, 0.08);
}

.system-phoenix-sidebar-footer strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.system-phoenix-sidebar-footer p {
    margin: 0;
    color: #6e819a;
    font-size: 0.82rem;
    line-height: 1.55;
}

.system-phoenix-main {
    padding: 26px 26px 30px;
    min-width: 0;
}

.system-phoenix-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.80);
    box-shadow: 0 24px 48px rgba(17, 53, 90, 0.08);
    backdrop-filter: blur(18px);
}

.system-phoenix-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 560px;
    padding: 13px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff, #f3f8fe);
    box-shadow: inset 0 0 0 1px rgba(17, 53, 90, 0.05);
    color: #8da0b8;
}

.system-phoenix-search input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #18324f;
    font: inherit;
}

.system-phoenix-search input::placeholder {
    color: #8da0b8;
}

.system-phoenix-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-phoenix-topbar-chip,
.system-phoenix-icon-button,
.system-phoenix-user-chip {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(17, 53, 90, 0.07);
}

.system-phoenix-topbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 16px;
    color: #56708c;
    font-size: 0.82rem;
    font-weight: 700;
}

.system-phoenix-icon-button {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    color: #0a4aa8;
    text-decoration: none;
    font-size: 1.12rem;
}

.system-phoenix-user-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 10px 7px 7px;
    border-radius: 18px;
}

.system-phoenix-user-avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff9466, #ff6f91);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 800;
}

.system-phoenix-user-chip strong {
    display: block;
    font-size: 0.92rem;
}

.system-phoenix-user-chip span {
    display: block;
    color: #7d8ea4;
    font-size: 0.76rem;
}

.system-phoenix-alert {
    margin-bottom: 18px;
    border-radius: 18px;
    border: 0;
    box-shadow: 0 20px 34px rgba(17, 53, 90, 0.08);
}

.system-phoenix-page {
    min-width: 0;

    /* PCS brand tokens */
    --pcs-primary-50: #f5f3ff;
    --pcs-primary-100: #ede9fe;
    --pcs-primary-200: #ddd6fe;
    --pcs-primary-300: #c4b8fc;
    --pcs-primary-400: #a594f3;
    --pcs-primary-500: #6f5ce6;
    --pcs-primary-600: #5c45db;
    --pcs-primary-700: #4d36c4;
    --pcs-primary-800: #3f2da3;
    --pcs-primary-900: #332680;
    --pcs-primary-tint: #f3ebff;
    --pcs-success: #1f9d55;
    --pcs-success-bg: #e8f8ef;
    --pcs-warning: #b7791f;
    --pcs-warning-bg: #fff4df;
    --pcs-danger: #d92d20;
    --pcs-danger-bg: #fde8ec;
    --pcs-info: #2477d4;
    --pcs-info-bg: #eaf3ff;
    --pcs-bg-page: #f5f7fa;
    --pcs-bg-surface: #ffffff;
    --pcs-border: #e3e6ed;
    --pcs-border-input: #cbd0dd;
    --pcs-text: #31374a;
    --pcs-text-muted: #8a94ad;
    --pcs-radius-sm: 6px;
    --pcs-radius-md: 8px;
    --pcs-radius-lg: 12px;
    --pcs-radius-xl: 16px;
    --pcs-radius-pill: 999px;
    --pcs-shadow-dropdown: 0 0.75rem 1.5rem rgba(20, 20, 43, 0.06);
    --pcs-font-size-base: 12.8px;
}

.phoenix-dashboard {
    display: grid;
    gap: 18px;
}

.phoenix-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    gap: 18px;
}

.phoenix-dashboard-hero-panel,
.phoenix-dashboard-stat-card,
.phoenix-dashboard-panel {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 28px 56px rgba(17, 53, 90, 0.09);
    backdrop-filter: blur(18px);
}

.phoenix-dashboard-hero-panel {
    padding: 28px;
}

.phoenix-dashboard-hero-panel::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(18, 115, 234, 0.10), transparent 64%);
}

.phoenix-dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(18, 115, 234, 0.10);
    color: #0a4aa8;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.phoenix-dashboard-hero-title {
    margin: 0 0 10px;
    font-size: clamp(2rem, 3vw, 2.85rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.phoenix-dashboard-hero-text {
    max-width: 760px;
    margin: 0;
    color: #6e819a;
    line-height: 1.7;
}

.phoenix-dashboard-view-switch {
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(237, 244, 251, 0.95);
    box-shadow: inset 0 0 0 1px rgba(17, 53, 90, 0.05);
}

.phoenix-dashboard-view-switch a,
.phoenix-dashboard-view-switch button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #6e819a;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
}

.phoenix-dashboard-view-switch button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.phoenix-dashboard-view-switch a.is-active,
.phoenix-dashboard-view-switch button.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #1273ea, #12b8b0);
    box-shadow: 0 16px 28px rgba(18, 115, 234, 0.18);
}

.phoenix-dashboard-period-stack {
    display: grid;
    gap: 12px;
}

.phoenix-dashboard-period-card {
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, #fbfdff, #f4f9ff);
    box-shadow: inset 0 0 0 1px rgba(17, 53, 90, 0.05);
}

.phoenix-dashboard-period-card small {
    display: block;
    color: #7d8ea4;
    margin-bottom: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.phoenix-dashboard-period-card strong {
    display: block;
    font-size: 1.08rem;
}

.phoenix-dashboard-period-card span {
    display: block;
    margin-top: 8px;
    color: #6e819a;
    font-size: 0.84rem;
    line-height: 1.55;
}

.phoenix-dashboard-insight-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.phoenix-dashboard-insight {
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(241, 247, 253, 0.92));
    box-shadow: inset 0 0 0 1px rgba(17, 53, 90, 0.05);
}

.phoenix-dashboard-insight-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.phoenix-dashboard-insight-badge.is-insight {
    background: rgba(18, 115, 234, 0.10);
    color: #0a4aa8;
}

.phoenix-dashboard-insight-badge.is-opportunity {
    background: rgba(20, 184, 166, 0.12);
    color: #0e8e87;
}

.phoenix-dashboard-insight-badge.is-risk {
    background: rgba(255, 148, 102, 0.16);
    color: #cf6430;
}

.phoenix-dashboard-insight-text {
    color: #506a86;
    font-size: 0.9rem;
    line-height: 1.65;
}

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

.phoenix-dashboard-stat-card {
    padding: 20px;
}

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

.phoenix-dashboard-stat-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 1.2rem;
}

.phoenix-dashboard-stat-icon.is-blue {
    background: rgba(18, 115, 234, 0.12);
    color: #1273ea;
}

.phoenix-dashboard-stat-icon.is-teal {
    background: rgba(20, 184, 166, 0.12);
    color: #12b8b0;
}

.phoenix-dashboard-stat-icon.is-peach {
    background: rgba(255, 148, 102, 0.14);
    color: #ff9466;
}

.phoenix-dashboard-stat-icon.is-gold {
    background: rgba(243, 197, 94, 0.18);
    color: #c9951d;
}

.phoenix-dashboard-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(244, 248, 253, 0.95);
    color: #6e819a;
    font-size: 0.76rem;
    font-weight: 700;
}

.phoenix-dashboard-stat-card small {
    display: block;
    color: #7d8ea4;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.phoenix-dashboard-stat-value {
    display: block;
    margin-bottom: 8px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.phoenix-dashboard-delta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.82rem;
    font-weight: 700;
}

.phoenix-dashboard-delta.is-up {
    color: #0f9b75;
}

.phoenix-dashboard-delta.is-down {
    color: #d06038;
}

.phoenix-dashboard-delta.is-flat {
    color: #73859d;
}

.phoenix-dashboard-stat-meta {
    color: #6e819a;
    font-size: 0.86rem;
    line-height: 1.55;
}

.phoenix-dashboard-grid {
    display: grid;
    gap: 18px;
}

.phoenix-dashboard-grid--primary {
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.95fr);
}

.phoenix-dashboard-grid--secondary {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(280px, 0.88fr);
}

.phoenix-dashboard-grid--controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phoenix-dashboard-panel {
    padding: 22px;
}

.phoenix-dashboard-panel-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.phoenix-dashboard-panel-header h3 {
    margin: 0;
    font-size: 1.08rem;
}

.phoenix-dashboard-panel-header p {
    margin: 8px 0 0;
    color: #6e819a;
    font-size: 0.86rem;
    line-height: 1.55;
}

.phoenix-dashboard-legend {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.phoenix-dashboard-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6e819a;
    font-size: 0.8rem;
    font-weight: 700;
}

.phoenix-dashboard-legend i {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
}

.phoenix-dashboard-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
    min-height: 242px;
    padding-top: 14px;
}

.phoenix-dashboard-chart-day {
    display: grid;
    gap: 10px;
    align-items: end;
}

.phoenix-dashboard-chart-bars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 15px));
    gap: 7px;
    justify-content: center;
    align-items: end;
    min-height: 210px;
}

.phoenix-dashboard-chart-bar {
    border-radius: 999px 999px 12px 12px;
    box-shadow: inset 0 -12px 18px rgba(255, 255, 255, 0.16);
}

.phoenix-dashboard-chart-bar.is-blue {
    background: linear-gradient(180deg, #44a1ff, #1273ea);
}

.phoenix-dashboard-chart-bar.is-teal {
    background: linear-gradient(180deg, #39dfd5, #12b8b0);
}

.phoenix-dashboard-chart-bar.is-violet {
    background: linear-gradient(180deg, #b794f6, #7c3aed);
}

.phoenix-dashboard-chart-label {
    text-align: center;
    color: #6e819a;
    font-size: 0.78rem;
    font-weight: 700;
}

.phoenix-dashboard-health-rings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.phoenix-dashboard-ring-card {
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, #fbfdff, #f4f9ff);
    box-shadow: inset 0 0 0 1px rgba(17, 53, 90, 0.05);
}

.phoenix-dashboard-ring {
    --ring-color: #1273ea;
    --ring-progress: 0;
    width: 136px;
    height: 136px;
    margin: 8px auto 14px;
    position: relative;
    border-radius: 50%;
    background: conic-gradient(var(--ring-color) calc(var(--ring-progress) * 1%), #e4eef8 0);
}

.phoenix-dashboard-ring::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(17, 53, 90, 0.05);
}

.phoenix-dashboard-ring-value {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 1;
    font-size: 1.45rem;
    font-weight: 800;
}

.phoenix-dashboard-ring-card h4 {
    margin: 0 0 6px;
    text-align: center;
    font-size: 0.98rem;
}

.phoenix-dashboard-ring-card p {
    margin: 0;
    text-align: center;
    color: #6e819a;
    font-size: 0.84rem;
    line-height: 1.55;
}

.phoenix-dashboard-health-list,
.phoenix-dashboard-usage-list,
.phoenix-dashboard-feed-list,
.phoenix-dashboard-action-list {
    display: grid;
    gap: 12px;
}

.phoenix-dashboard-health-item,
.phoenix-dashboard-usage-item,
.phoenix-dashboard-feed-item,
.phoenix-dashboard-action-card {
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff, #f6faff);
    box-shadow: inset 0 0 0 1px rgba(17, 53, 90, 0.05);
}

.phoenix-dashboard-health-item strong,
.phoenix-dashboard-usage-item strong,
.phoenix-dashboard-feed-item strong,
.phoenix-dashboard-action-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.94rem;
}

.phoenix-dashboard-health-item span,
.phoenix-dashboard-usage-item span,
.phoenix-dashboard-feed-item span,
.phoenix-dashboard-action-card span {
    display: block;
    color: #6e819a;
    font-size: 0.82rem;
    line-height: 1.55;
}

.phoenix-dashboard-progress {
    height: 10px;
    margin-top: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #e6eef8;
}

.phoenix-dashboard-progress > i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1273ea, #12b8b0);
}

.phoenix-dashboard-usage-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.phoenix-dashboard-feed-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.phoenix-dashboard-feed-dot {
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #12b8b0, #1273ea);
    box-shadow: 0 0 0 7px rgba(18, 184, 166, 0.10);
}

.phoenix-dashboard-feed-time {
    color: #8b9db3;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.phoenix-dashboard-spotlight {
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 38%),
        linear-gradient(135deg, #0f67dd, #12b8b0);
}

.phoenix-dashboard-spotlight .phoenix-dashboard-panel-header h3,
.phoenix-dashboard-spotlight .phoenix-dashboard-panel-header p,
.phoenix-dashboard-spotlight .phoenix-dashboard-panel-header span,
.phoenix-dashboard-spotlight .phoenix-dashboard-stat-meta {
    color: rgba(255, 255, 255, 0.88);
}

.phoenix-dashboard-spotlight-value {
    display: block;
    margin-bottom: 10px;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.06em;
}

.phoenix-dashboard-spotlight-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.phoenix-dashboard-spotlight-item {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.phoenix-dashboard-spotlight-item span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
}

.phoenix-dashboard-spotlight-item strong {
    font-size: 1rem;
}

.phoenix-dashboard-action-group-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.phoenix-dashboard-action-group-text {
    margin: 0 0 18px;
    color: #6e819a;
    font-size: 0.88rem;
    line-height: 1.6;
}

.phoenix-dashboard-action-card {
    display: grid;
    gap: 10px;
}

.phoenix-dashboard-action-card.is-disabled {
    opacity: 0.64;
}

.phoenix-dashboard-action-header {
    display: flex;
    align-items: start;
    gap: 12px;
}

.phoenix-dashboard-action-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 1.05rem;
}

.phoenix-dashboard-action-icon.is-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.phoenix-dashboard-action-icon.is-cyan {
    background: rgba(6, 182, 212, 0.12);
    color: #0891b2;
}

.phoenix-dashboard-action-icon.is-amber {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.phoenix-dashboard-action-icon.is-pink {
    background: rgba(236, 72, 153, 0.12);
    color: #db2777;
}

.phoenix-dashboard-action-icon.is-blue {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.phoenix-dashboard-action-icon.is-sky {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}

.phoenix-dashboard-action-icon.is-indigo {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

.phoenix-dashboard-action-icon.is-violet {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
}

.phoenix-dashboard-action-icon.is-teal {
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
}

.phoenix-dashboard-action-icon.is-green {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.phoenix-dashboard-action-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.phoenix-dashboard-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(244, 248, 253, 0.95);
    color: #6e819a;
    font-size: 0.76rem;
    font-weight: 700;
}

.phoenix-dashboard-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 999px;
    color: #0a4aa8;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(17, 53, 90, 0.07);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.phoenix-dashboard-button.is-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #1273ea, #12b8b0);
    box-shadow: 0 18px 28px rgba(18, 115, 234, 0.18);
}

.phoenix-dashboard-button:hover {
    color: inherit;
}

@media (max-width: 1300px) {
    .phoenix-dashboard-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .phoenix-dashboard-grid--secondary,
    .phoenix-dashboard-grid--controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1120px) {
    .system-phoenix-shell {
        grid-template-columns: 1fr;
    }

    .system-phoenix-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.78);
    }

    .phoenix-dashboard-hero,
    .phoenix-dashboard-grid--primary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .system-phoenix-main,
    .system-phoenix-sidebar {
        padding: 18px;
    }

    .system-phoenix-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .system-phoenix-topbar-actions,
    .phoenix-dashboard-stats-grid,
    .phoenix-dashboard-grid--secondary,
    .phoenix-dashboard-grid--controls,
    .phoenix-dashboard-health-rings {
        grid-template-columns: 1fr;
    }

    .phoenix-dashboard-chart {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .phoenix-dashboard-chart-day:nth-child(n + 5) {
        display: none;
    }

    .phoenix-dashboard-feed-item {
        grid-template-columns: auto 1fr;
    }

    .phoenix-dashboard-feed-time {
        grid-column: 2;
    }
}

/* Phoenix reference refresh */

body.system-phoenix-body {
    --system-phoenix-sidebar-width: 310px;
    --system-phoenix-sidebar-collapsed-width: 88px;
    min-height: 100vh;
    font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #31374a;
    background: #f5f7fa;
}

body.system-phoenix-body.system-phoenix-sidebar-open {
    overflow: hidden;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed {
    --system-phoenix-sidebar-width: var(--system-phoenix-sidebar-collapsed-width);
    --phoenix-collapsed-rail-gradient: linear-gradient(
        180deg,
        #6f5ce6 0%,
        #5c45db 30%,
        #4f7fd6 62%,
        #22d3ee 100%
    );
    --phoenix-collapsed-rail-glass: rgba(255, 255, 255, 0.2);
    --phoenix-collapsed-rail-glass-hover: rgba(255, 255, 255, 0.14);
    --phoenix-collapsed-rail-glass-border: rgba(255, 255, 255, 0.28);
}

body.system-phoenix-body::before {
    display: none;
}

.system-phoenix-shell {
    min-width: 0;
    grid-template-columns: var(--system-phoenix-sidebar-width) minmax(0, 1fr);
    background: #f5f7fa;
    overflow: visible;
    transition: grid-template-columns 0.2s ease;
}

.system-phoenix-mobile-backdrop,
.system-phoenix-mobile-nav-toggle {
    display: none;
}

.system-phoenix-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    border: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.system-phoenix-sidebar {
    position: relative;
    z-index: 40;
    overflow: visible;
    padding: 0;
    background: linear-gradient(180deg, #f8f6ff 0%, #f5f3ff 100%);
    border-right: 1px solid rgba(111, 92, 230, 0.12);
    box-shadow:
        inset -1px 0 0 rgba(255, 255, 255, 0.85),
        1px 0 14px rgba(93, 68, 144, 0.07);
    backdrop-filter: none;
}

.system-phoenix-sidebar-inner {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    height: 100dvh;
    overflow-x: visible;
}

.system-phoenix-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 65px;
    padding: 12px 18px 12px 24px;
    border-bottom: 1px solid rgba(111, 92, 230, 0.1);
}

.system-phoenix-brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 12px;
    margin: 0;
    padding: 0;
    border-bottom: 0;
}

.system-phoenix-brand-logo img {
    max-width: 152px;
    max-height: 34px;
}

.system-phoenix-brand-mark {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.system-phoenix-brand-mark span {
    position: absolute;
    display: block;
}

.system-phoenix-brand-mark span:nth-child(1) {
    left: 2px;
    top: 2px;
    width: 8px;
    height: 22px;
    border-radius: 999px;
    background: #f28c28;
    transform: skewY(-16deg);
}

.system-phoenix-brand-mark span:nth-child(2) {
    left: 9px;
    top: 7px;
    width: 12px;
    height: 6px;
    border-radius: 999px;
    background: #f28c28;
    transform: rotate(26deg);
}

.system-phoenix-brand-mark span:nth-child(3) {
    right: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background:
        linear-gradient(90deg, #3874ff 0 40%, transparent 40% 60%, #3874ff 60% 100%),
        linear-gradient(#3874ff 0 40%, transparent 40% 60%, #3874ff 60% 100%);
}

.system-phoenix-brand-copy strong {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    color: #5e6e82;
}

.system-phoenix-brand-copy.has-theme-logo {
    min-width: 0;
}

.system-phoenix-brand-copy.has-theme-logo span {
    margin-top: 0;
}

.system-phoenix-brand-copy span {
    margin-top: 2px;
    color: #9fa6bc;
    font-size: 0.76rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.system-phoenix-featured-entry {
    padding: 10px 16px 8px;
}

.system-phoenix-featured-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 38%),
        linear-gradient(135deg, #0f67dd, #12b8b0);
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.12);
    color: #ffffff;
    text-decoration: none;
}

.system-phoenix-featured-link:hover {
    color: #ffffff;
    text-decoration: none;
}

.system-phoenix-featured-link.is-active {
    box-shadow:
        0 20px 34px rgba(15, 23, 42, 0.12),
        0 0 0 2px rgba(255, 255, 255, 0.75);
}

button.system-phoenix-featured-link {
    border: 0;
    outline: 0;
    width: 100%;
    text-align: left;
}

button.system-phoenix-featured-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 2px;
}

.system-phoenix-featured-link-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.system-phoenix-featured-link-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.system-phoenix-featured-link-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.system-phoenix-featured-link-copy strong {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
}

.system-phoenix-featured-link-copy span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.75rem;
    line-height: 1.45;
}

.system-phoenix-nav {
    flex: 0 1 auto;
    min-height: 0;
    max-height: calc(100dvh - 220px);
    overflow-y: auto;
    padding: 0 0 4px;
}

.system-phoenix-nav-root,
.system-phoenix-subnav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.system-phoenix-nav-section {
    padding: 0;
}

.system-phoenix-nav-section + .system-phoenix-nav-section {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 0;
}

.system-phoenix-nav-section + .system-phoenix-nav-section::before {
    content: "";
    display: block;
    height: 1px;
    margin: 0 20px 8px 28px;
    background: linear-gradient(90deg, rgba(111, 92, 230, 0.16) 0%, rgba(111, 92, 230, 0.05) 55%, transparent 100%);
}

.system-phoenix-nav-section-label {
    margin: 28px 0 10px;
    padding-left: 28px;
    color: #8b83a8;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.4;
}

.system-phoenix-nav-section:first-child .system-phoenix-nav-section-label {
    margin-top: 16px;
}

.system-phoenix-nav-section-line {
    margin: 0 0 8px;
    border: 0;
    border-top: 1px solid #edf2f9;
    opacity: 1;
}

.system-phoenix-nav-item-wrapper + .system-phoenix-nav-item-wrapper {
    margin-top: 2px;
}

.system-phoenix-nav-item-wrapper {
    position: relative;
}

.system-phoenix-nav-section--primary {
    padding: 4px 0 10px;
}

.system-phoenix-primary-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin: 2px 12px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease, transform 150ms ease;
}

.system-phoenix-primary-nav-link:hover {
    color: #334155;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 1px 4px rgba(93, 68, 144, 0.07);
}

.system-phoenix-primary-nav-link.is-active,
.system-phoenix-primary-nav-link.is-active:hover {
    color: #5c45db;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-color: rgba(111, 92, 230, 0.12);
    box-shadow:
        0 2px 8px rgba(93, 68, 144, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

.system-phoenix-primary-nav-link.is-locked {
    color: #7b8599;
}

.system-phoenix-primary-nav-link .system-phoenix-nav-link-icon {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.55);
    color: #64748b;
    box-shadow: inset 0 0 0 1px rgba(111, 92, 230, 0.06);
    transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.system-phoenix-primary-nav-link:hover .system-phoenix-nav-link-icon {
    box-shadow: inset 0 0 0 1px rgba(111, 92, 230, 0.1);
}

.system-phoenix-primary-nav-link.is-active .system-phoenix-nav-link-icon,
.system-phoenix-primary-nav-link.is-active:hover .system-phoenix-nav-link-icon {
    box-shadow: inset 0 0 0 1px rgba(111, 92, 230, 0.18);
}

/* Module icon well tones — soft semantic pastels */
.system-phoenix-primary-nav-link[data-nav-tone="dashboard"] .system-phoenix-nav-link-icon {
    background: #f3ebff;
    color: #7c3aed;
}

.system-phoenix-primary-nav-link[data-nav-tone="calendar"] .system-phoenix-nav-link-icon {
    background: #e9f3ff;
    color: #4f7fd6;
}

.system-phoenix-primary-nav-link[data-nav-tone="bookings"] .system-phoenix-nav-link-icon {
    background: #fff5df;
    color: #d69a08;
}

.system-phoenix-primary-nav-link[data-nav-tone="patients"] .system-phoenix-nav-link-icon {
    background: #e8f8ef;
    color: #1f9d55;
}

.system-phoenix-primary-nav-link[data-nav-tone="services"] .system-phoenix-nav-link-icon {
    background: #efeaff;
    color: #7c5fd6;
}

.system-phoenix-primary-nav-link[data-nav-tone="forms"] .system-phoenix-nav-link-icon {
    background: #f3ebff;
    color: #8b5cf6;
}

.system-phoenix-primary-nav-link[data-nav-tone="website"] .system-phoenix-nav-link-icon {
    background: #eef2f7;
    color: #5b6b82;
}

.system-phoenix-primary-nav-link[data-nav-tone="settings"] .system-phoenix-nav-link-icon {
    background: #f0eff8;
    color: #766994;
}

/* Hover — icon well brightens per module */
.system-phoenix-primary-nav-link[data-nav-tone="dashboard"]:hover .system-phoenix-nav-link-icon {
    background: #ede9fe;
    color: #6d28d9;
}

.system-phoenix-primary-nav-link[data-nav-tone="calendar"]:hover .system-phoenix-nav-link-icon {
    background: #dbeafe;
    color: #3b6fc9;
}

.system-phoenix-primary-nav-link[data-nav-tone="bookings"]:hover .system-phoenix-nav-link-icon {
    background: #ffefca;
    color: #c4840a;
}

.system-phoenix-primary-nav-link[data-nav-tone="patients"]:hover .system-phoenix-nav-link-icon {
    background: #daf3e6;
    color: #178044;
}

.system-phoenix-primary-nav-link[data-nav-tone="services"]:hover .system-phoenix-nav-link-icon {
    background: #e4dcff;
    color: #6b4fc9;
}

.system-phoenix-primary-nav-link[data-nav-tone="forms"]:hover .system-phoenix-nav-link-icon {
    background: #ede9fe;
    color: #7c3aed;
}

.system-phoenix-primary-nav-link[data-nav-tone="website"]:hover .system-phoenix-nav-link-icon {
    background: #e2e8f0;
    color: #475569;
}

.system-phoenix-primary-nav-link[data-nav-tone="settings"]:hover .system-phoenix-nav-link-icon {
    background: #e8e6f2;
    color: #655a82;
}

/* Active — icon well intensifies per module */
.system-phoenix-primary-nav-link[data-nav-tone="dashboard"].is-active .system-phoenix-nav-link-icon,
.system-phoenix-primary-nav-link[data-nav-tone="dashboard"].is-active:hover .system-phoenix-nav-link-icon {
    background: #e9d5ff;
    color: #6d28d9;
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.2);
}

.system-phoenix-primary-nav-link[data-nav-tone="calendar"].is-active .system-phoenix-nav-link-icon,
.system-phoenix-primary-nav-link[data-nav-tone="calendar"].is-active:hover .system-phoenix-nav-link-icon {
    background: #dbeafe;
    color: #2563eb;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.system-phoenix-primary-nav-link[data-nav-tone="bookings"].is-active .system-phoenix-nav-link-icon,
.system-phoenix-primary-nav-link[data-nav-tone="bookings"].is-active:hover .system-phoenix-nav-link-icon {
    background: #fde68a;
    color: #b45309;
    box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.18);
}

.system-phoenix-primary-nav-link[data-nav-tone="patients"].is-active .system-phoenix-nav-link-icon,
.system-phoenix-primary-nav-link[data-nav-tone="patients"].is-active:hover .system-phoenix-nav-link-icon {
    background: #bbf7d0;
    color: #15803d;
    box-shadow: inset 0 0 0 1px rgba(21, 128, 61, 0.18);
}

.system-phoenix-primary-nav-link[data-nav-tone="services"].is-active .system-phoenix-nav-link-icon,
.system-phoenix-primary-nav-link[data-nav-tone="services"].is-active:hover .system-phoenix-nav-link-icon {
    background: #ddd6fe;
    color: #6d28d9;
    box-shadow: inset 0 0 0 1px rgba(109, 40, 217, 0.18);
}

.system-phoenix-primary-nav-link[data-nav-tone="forms"].is-active .system-phoenix-nav-link-icon,
.system-phoenix-primary-nav-link[data-nav-tone="forms"].is-active:hover .system-phoenix-nav-link-icon {
    background: #e9d5ff;
    color: #7c3aed;
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.18);
}

.system-phoenix-primary-nav-link[data-nav-tone="website"].is-active .system-phoenix-nav-link-icon,
.system-phoenix-primary-nav-link[data-nav-tone="website"].is-active:hover .system-phoenix-nav-link-icon {
    background: #cbd5e1;
    color: #334155;
    box-shadow: inset 0 0 0 1px rgba(51, 65, 85, 0.14);
}

.system-phoenix-primary-nav-link[data-nav-tone="settings"].is-active .system-phoenix-nav-link-icon,
.system-phoenix-primary-nav-link[data-nav-tone="settings"].is-active:hover .system-phoenix-nav-link-icon {
    background: #ddd9eb;
    color: #5c4d78;
    box-shadow: inset 0 0 0 1px rgba(92, 77, 120, 0.16);
}

.system-phoenix-primary-nav-link .system-phoenix-badge {
    margin-left: auto;
}

.system-phoenix-nav-section--more {
    padding-top: 10px;
    border-top: 0;
}

.system-phoenix-nav-trigger--more {
    min-height: 58px;
    margin-top: 4px;
    margin-bottom: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(223, 227, 237, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: #4c566c;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 7px 17px rgba(37, 48, 69, 0.1);
}

.system-phoenix-nav-trigger--more:hover,
.system-phoenix-nav-trigger--more[aria-expanded="true"] {
    background: #f5f3ff;
    border-color: rgba(111, 92, 230, 0.18);
    color: #6f5ce6;
}

.system-phoenix-nav-trigger--more .system-phoenix-nav-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #f0eff8;
    color: #766994;
}

.system-phoenix-nav-trigger--more .system-phoenix-dropdown-indicator-icon-wrapper {
    display: none;
}

.system-phoenix-parent-wrapper--more {
    padding-bottom: 12px;
}

.system-phoenix-more-sections {
    margin: 0;
    padding: 0;
    list-style: none;
}

.system-phoenix-nav-trigger {
    width: calc(100% - 24px);
    margin: 0 12px;
    padding: 5.6px 8px 5.6px 16px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #5e6e82;
    text-align: left;
    font-size: 12.8px;
    line-height: 19.008px;
}

.system-phoenix-nav-trigger:hover,
.system-phoenix-nav-item-wrapper.is-active-group > .system-phoenix-nav-trigger {
    color: #334155;
    background: #f5f7fa;
}

.system-phoenix-nav-item-wrapper.is-active-group > .system-phoenix-nav-trigger {
    color: #5c45db;
    background: #f5f3ff;
}

.system-phoenix-nav-trigger-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.system-phoenix-dropdown-indicator-icon-wrapper {
    width: 11px;
    color: #9fa6bc;
    font-size: 0.8rem;
    transition: transform 0.16s ease;
}

.system-phoenix-nav-static-indicator {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    display: inline-grid;
    place-items: center;
    color: #b8c2d3;
}

.system-phoenix-nav-static-indicator::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.9;
}

.system-phoenix-nav-item-wrapper.is-open .system-phoenix-dropdown-indicator-icon-wrapper {
    transform: rotate(90deg);
}

.system-phoenix-nav-link-icon {
    display: inline-grid;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    place-items: center;
    color: #64748b;
    font-size: 16px;
}

.system-phoenix-nav-link-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.system-phoenix-nav-link-text {
    font-size: 12.8px;
    font-weight: 700;
}

.system-phoenix-parent-wrapper {
    padding-left: 0;
}

.system-phoenix-subnav {
    margin: 0 0 4px;
    padding-left: 0;
}

.system-phoenix-subnav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 0 12px;
    padding: 5.6px 8px 5.6px 53px;
    border-radius: 8px;
    color: #5e6e82;
    text-decoration: none;
    font-size: 13px;
    line-height: 19.008px;
}

.system-phoenix-subnav-link--section {
    gap: 12px;
    padding-left: 16px;
    padding-right: 12px;
}

.system-phoenix-subnav-link--section .system-phoenix-subnav-text {
    flex: 1 1 auto;
}

.system-phoenix-nav-trigger--nested {
    padding-left: 32px;
}

.system-phoenix-subnav-link--nested-child {
    padding-left: 73px;
}

.system-phoenix-subnav-link::before {
    display: none;
}

.system-phoenix-subnav-link:hover {
    color: #334155;
    background: #f5f7fa;
}

.system-phoenix-subnav-link.is-active,
.system-phoenix-subnav-link.is-active:hover {
    color: #6f5ce6;
    background: #f5f3ff;
    font-weight: 700;
}

.system-phoenix-subnav-link.is-locked {
    color: #7b8599;
}

.system-phoenix-subnav-link.is-locked:hover {
    color: #9a6b00;
    background: rgba(255, 243, 205, 0.58);
}

.system-phoenix-subnav-link.is-disabled {
    color: #b6c1d2;
    cursor: not-allowed;
}

.system-phoenix-subnav-badge {
    margin-left: auto;
    padding: 1px 6px;
    border-radius: 999px;
    background: #fff3cd;
    color: #b78103;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.system-phoenix-sidebar-fill {
    flex: 1 1 auto;
    min-height: 0;
}

.system-phoenix-sidebar-footer {
    margin-top: 0;
    padding: 0;
    border-top: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.system-phoenix-sidebar-footer--version {
    padding: 8px 24px 14px;
}

.system-phoenix-sidebar-footer--utilities {
    margin: 2px 12px 0;
    padding: 6px 8px 8px;
    border: 1px solid rgba(111, 92, 230, 0.14);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(111, 92, 230, 0.08) 0%, rgba(248, 246, 255, 0.96) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 2px 6px rgba(93, 68, 144, 0.06);
}

.system-phoenix-sidebar-utility-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.system-phoenix-sidebar-utility-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #566578;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

button.system-phoenix-sidebar-utility-link {
    width: 100%;
    border: 1px solid transparent;
    outline: 0;
}

.system-phoenix-sidebar-utility-link:hover,
.system-phoenix-sidebar-utility-link:focus-visible {
    color: #3a4558;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(111, 92, 230, 0.08);
    text-decoration: none;
}

.system-phoenix-sidebar-utility-link.is-active,
.system-phoenix-sidebar-utility-link.is-active:hover {
    color: #6f5ce6;
    background: #f5f3ff;
    border-color: transparent;
    box-shadow: none;
}

.system-phoenix-sidebar-utility-link-icon {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(111, 92, 230, 0.08);
    color: #6f5ce6;
}

.system-phoenix-sidebar-utility-link-icon svg {
    width: 15px;
    height: 15px;
    display: block;
}

.system-phoenix-sidebar-utility-link--marketplace {
    color: #5c45db;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.015em;
}

.system-phoenix-sidebar-utility-link-icon--marketplace {
    background: rgba(92, 69, 219, 0.1);
    color: #5c45db;
}

.system-phoenix-sidebar-utility-link--marketplace:hover,
.system-phoenix-sidebar-utility-link--marketplace:focus-visible,
.system-phoenix-sidebar-utility-link--marketplace.is-active {
    color: #5c45db;
    background: rgba(92, 69, 219, 0.06);
    border-color: rgba(92, 69, 219, 0.14);
    box-shadow: inset 0 0 0 1px rgba(92, 69, 219, 0.08);
    text-decoration: none;
}

.system-phoenix-sidebar-utility-badge {
    margin-left: auto;
    min-width: 18px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
}

.system-phoenix-app-version {
    display: inline-flex;
    max-width: 100%;
    color: #9fa6bc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;
}

.system-phoenix-collapse-button {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    min-height: 38px;
    flex: 0 0 38px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #5e6e82;
    font-size: 1.2rem;
    line-height: 1;
}

.system-phoenix-collapse-button:hover,
.system-phoenix-collapse-button:focus-visible {
    background: #f5f7fa;
    border-color: #e3e6ed;
    color: #31374a;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar {
    z-index: 60;
    margin: 10px 0;
    border-right: 0;
    border-radius: 20px 0 0 20px;
    background: var(--phoenix-collapsed-rail-gradient);
    box-shadow:
        0 8px 28px rgba(79, 70, 229, 0.32),
        inset -1px 0 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: none;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar-inner {
    overflow: visible;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar-header {
    justify-content: center;
    gap: 0;
    min-height: 0;
    padding: 14px 6px 6px;
    border-bottom: 0;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-brand {
    display: none;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-brand-logo {
    justify-content: center;
    width: auto;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-brand-logo img {
    max-width: 36px;
    max-height: 36px;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-brand-copy {
    display: none;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-featured-entry {
    padding: 10px 0 8px;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-featured-link {
    justify-content: center;
    width: 48px;
    min-height: 48px;
    margin: 0 auto;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: #ffffff;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-featured-link.is-active,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-featured-link:hover,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-featured-link:focus-visible {
    color: #ffffff;
    background: var(--phoenix-collapsed-rail-glass);
    border-color: var(--phoenix-collapsed-rail-glass-border);
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-featured-link-copy {
    display: none;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-featured-link-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    background: transparent;
    color: #ffffff;
    box-shadow: none;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-featured-link::after {
    content: attr(data-phoenix-collapsed-label);
    position: absolute;
    top: 50%;
    left: calc(100% + 14px);
    transform: translateY(-50%);
    display: none;
    padding: 8px 12px;
    border: 1px solid #e3e6ed;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
    color: #31374a;
    font-size: 12.8px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    z-index: 84;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-featured-link:hover::after,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-featured-link:focus-visible::after {
    display: block;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav {
    overflow: visible;
    padding: 4px 0 8px;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-section + .system-phoenix-nav-section::before {
    height: 1px;
    margin: 8px 18px 6px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.08) 55%, transparent 100%);
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-section-label {
    display: none;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-section-line {
    margin: 14px 16px 10px;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-height: 44px;
    margin: 0 auto;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #ffffff;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-trigger:hover,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-trigger:focus-visible,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-trigger.is-active {
    color: #ffffff;
    background: var(--phoenix-collapsed-rail-glass);
    border-color: var(--phoenix-collapsed-rail-glass-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-primary-nav-link {
    position: relative;
    justify-content: center;
    width: 48px;
    min-height: 48px;
    margin: 0 auto;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-primary-nav-link:hover,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-primary-nav-link:focus-visible {
    color: #ffffff;
    background: var(--phoenix-collapsed-rail-glass-hover);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-primary-nav-link.is-active,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-primary-nav-link.is-active:hover {
    color: #ffffff;
    background: var(--phoenix-collapsed-rail-glass);
    border-color: var(--phoenix-collapsed-rail-glass-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        0 2px 10px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(6px);
    font-weight: 700;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-primary-nav-link.is-active .system-phoenix-nav-link-icon,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-primary-nav-link.is-active:hover .system-phoenix-nav-link-icon {
    box-shadow: none;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-primary-nav-link > span:not(.system-phoenix-nav-link-icon):not(.system-phoenix-badge),
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-primary-nav-link .system-phoenix-badge {
    display: none;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-primary-nav-link .system-phoenix-nav-link-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 17px;
    border-radius: 10px;
    background: transparent;
    color: #ffffff;
    box-shadow: none;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-primary-nav-link[data-nav-tone] .system-phoenix-nav-link-icon,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-primary-nav-link[data-nav-tone]:hover .system-phoenix-nav-link-icon,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-primary-nav-link[data-nav-tone].is-active .system-phoenix-nav-link-icon,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-primary-nav-link[data-nav-tone].is-active:hover .system-phoenix-nav-link-icon {
    background: transparent;
    color: #ffffff;
    box-shadow: none;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-primary-nav-link::after {
    content: attr(data-phoenix-collapsed-label);
    position: absolute;
    top: 50%;
    left: calc(100% + 14px);
    transform: translateY(-50%);
    display: none;
    padding: 8px 12px;
    border: 1px solid #e3e6ed;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
    color: #31374a;
    font-size: 12.8px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    z-index: 84;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-primary-nav-link:hover::after,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-primary-nav-link:focus-visible::after {
    display: block;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-trigger-row {
    justify-content: center;
    width: 100%;
    gap: 0;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-dropdown-indicator-icon-wrapper,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-static-indicator,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-link-text {
    display: none;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-link-icon {
    width: auto;
    min-width: 0;
    font-size: 18px;
    color: #ffffff;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-link-icon svg {
    stroke: currentColor;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-item-wrapper + .system-phoenix-nav-item-wrapper {
    margin-top: 6px;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-subnav-link--section {
    position: relative;
    justify-content: center;
    width: 48px;
    min-height: 44px;
    margin: 0 auto;
    padding: 0;
    gap: 0;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #ffffff;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-subnav-link--section:hover,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-subnav-link--section:focus-visible,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-subnav-link--section.is-active {
    color: #ffffff;
    background: var(--phoenix-collapsed-rail-glass);
    border-color: var(--phoenix-collapsed-rail-glass-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-subnav-link--section .system-phoenix-subnav-text,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-subnav-link--section .system-phoenix-badge {
    display: none;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-parent-wrapper {
    position: absolute;
    top: -8px;
    left: 100%;
    display: none !important;
    min-width: 246px;
    z-index: 80;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-item-wrapper:hover > .system-phoenix-parent-wrapper,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-item-wrapper:focus-within > .system-phoenix-parent-wrapper {
    display: block !important;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-item-wrapper:hover > .system-phoenix-parent-wrapper > .system-phoenix-subnav,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-item-wrapper:focus-within > .system-phoenix-parent-wrapper > .system-phoenix-subnav {
    margin: 0 0 0 14px;
    padding: 10px 0 8px;
    border: 1px solid #e3e6ed;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-item-wrapper:hover > .system-phoenix-parent-wrapper > .system-phoenix-subnav::before,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-item-wrapper:focus-within > .system-phoenix-parent-wrapper > .system-phoenix-subnav::before {
    content: attr(data-group-label);
    display: block;
    margin-bottom: 4px;
    padding: 4px 16px 12px;
    border-bottom: 1px solid #edf2f9;
    color: #31374a;
    font-size: 12.8px;
    font-weight: 700;
    line-height: 1.2;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-item-wrapper:hover > .system-phoenix-parent-wrapper .system-phoenix-subnav-link,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-nav-item-wrapper:focus-within > .system-phoenix-parent-wrapper .system-phoenix-subnav-link {
    margin: 0 8px;
    padding-left: 16px;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-parent-wrapper > .system-phoenix-subnav > .system-phoenix-subnav-item > .system-phoenix-nav-item-wrapper > .system-phoenix-nav-trigger--nested {
    justify-content: flex-start;
    width: auto;
    min-height: 0;
    margin: 0 8px;
    padding: 10px 16px;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-parent-wrapper > .system-phoenix-subnav > .system-phoenix-subnav-item > .system-phoenix-nav-item-wrapper > .system-phoenix-nav-trigger--nested .system-phoenix-nav-trigger-row {
    justify-content: flex-start;
    gap: 10px;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-parent-wrapper > .system-phoenix-subnav > .system-phoenix-subnav-item > .system-phoenix-nav-item-wrapper > .system-phoenix-nav-trigger--nested .system-phoenix-dropdown-indicator-icon-wrapper,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-parent-wrapper > .system-phoenix-subnav > .system-phoenix-subnav-item > .system-phoenix-nav-item-wrapper > .system-phoenix-nav-trigger--nested .system-phoenix-subnav-text {
    display: inline-flex;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-parent-wrapper--nested {
    position: static;
    top: auto;
    left: auto;
    min-width: 0;
    z-index: auto;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-parent-wrapper > .system-phoenix-subnav > .system-phoenix-subnav-item > .system-phoenix-nav-item-wrapper > .system-phoenix-parent-wrapper--nested {
    display: none !important;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-parent-wrapper > .system-phoenix-subnav > .system-phoenix-subnav-item > .system-phoenix-nav-item-wrapper:hover > .system-phoenix-parent-wrapper--nested,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-parent-wrapper > .system-phoenix-subnav > .system-phoenix-subnav-item > .system-phoenix-nav-item-wrapper:focus-within > .system-phoenix-parent-wrapper--nested,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-parent-wrapper > .system-phoenix-subnav > .system-phoenix-subnav-item > .system-phoenix-nav-item-wrapper.is-open > .system-phoenix-parent-wrapper--nested {
    display: block !important;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-subnav--nested {
    margin: 2px 8px 8px 38px;
    padding: 6px 0 0;
    border-left: 1px solid #e3e6ed;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-subnav--nested::before {
    display: none;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-subnav-link--nested-child {
    margin: 0 0 0 10px;
    padding-left: 14px;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-subnav-link--section::after {
    content: attr(data-phoenix-collapsed-label);
    position: absolute;
    top: 50%;
    left: calc(100% + 14px);
    transform: translateY(-50%);
    display: none;
    padding: 8px 12px;
    border: 1px solid #e3e6ed;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
    color: #31374a;
    font-size: 12.8px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    z-index: 34;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-subnav-link--section:hover::after,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-subnav-link--section:focus-visible::after {
    display: block;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar-footer--version {
    padding: 8px 0 54px;
    text-align: center;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar-fill {
    flex: 1 1 auto;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar-footer--utilities {
    margin: 4px 8px 0;
    padding: 6px 4px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar-utility-nav {
    align-items: center;
    gap: 3px;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar-utility-link {
    justify-content: center;
    width: 48px;
    min-height: 44px;
    margin: 0 auto;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #ffffff;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar-utility-link:hover,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar-utility-link:focus-visible {
    color: #ffffff;
    background: var(--phoenix-collapsed-rail-glass-hover);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar-utility-link.is-active,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar-utility-link.is-active:hover {
    color: #ffffff;
    background: var(--phoenix-collapsed-rail-glass);
    border-color: var(--phoenix-collapsed-rail-glass-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar-utility-link > span:not(.system-phoenix-sidebar-utility-link-icon):not(.system-phoenix-sidebar-utility-badge) {
    display: none;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar-utility-link--marketplace {
    width: 48px;
    min-height: 44px;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    font-weight: 700;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar-utility-link-icon,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar-utility-link-icon--marketplace {
    display: inline-flex;
    background: transparent;
    color: #ffffff;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar-utility-link-icon svg {
    stroke: currentColor;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar-utility-link::after {
    content: attr(data-phoenix-collapsed-label);
    position: absolute;
    top: 50%;
    left: calc(100% + 14px);
    transform: translateY(-50%);
    display: none;
    padding: 8px 12px;
    border: 1px solid #e3e6ed;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
    color: #31374a;
    font-size: 12.8px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    z-index: 84;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar-utility-link:hover::after,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar-utility-link:focus-visible::after {
    display: block;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-sidebar-utility-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    margin-left: 0;
    min-width: 16px;
    padding: 0 4px;
    font-size: 9px;
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-app-version {
    justify-content: center;
    width: 100%;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-collapse-button {
    position: absolute;
    bottom: 14px;
    left: 50%;
    z-index: 6;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(-50%);
    backdrop-filter: blur(4px);
}

body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-collapse-button:hover,
body.system-phoenix-body.system-phoenix-sidebar-collapsed .system-phoenix-collapse-button:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.34);
    color: #ffffff;
}

.system-phoenix-main {
    min-width: 0;
    padding: 0;
    background: #f5f7fa;
}

.system-phoenix-topbar {
    position: sticky;
    top: 0;
    z-index: 120;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px 12px;
    min-width: 0;
    margin: 0;
    min-height: 56px;
    padding: 0 24px 0 24px;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid #e3e6ed;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.system-phoenix-system-user-strip {
    position: sticky;
    top: 0;
    z-index: 130;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 34px;
    padding: 5px 16px;
    color: #4a2800;
    background: #f59e0b;
    border-bottom: 1px solid #d97706;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.system-phoenix-system-user-strip__message {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.system-phoenix-system-user-strip i {
    font-size: 0.86rem;
}

.system-phoenix-system-user-strip__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 9px;
    border: 1px solid rgba(74, 40, 0, 0.32);
    border-radius: 6px;
    color: #4a2800;
    background: rgba(255, 255, 255, 0.38);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.system-phoenix-system-user-strip__action:hover,
.system-phoenix-system-user-strip__action:focus {
    color: #2f1900;
    background: rgba(255, 255, 255, 0.58);
    text-decoration: none;
}

body.system-phoenix-system-user .system-phoenix-topbar {
    top: 34px;
}

.system-phoenix-search-wrap {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.system-phoenix-search-wrap.is-clinic-search {
    position: relative;
    flex: 0 1 auto;
    justify-content: flex-start;
    max-width: min(100%, 320px);
}

.system-phoenix-topbar-actions .system-phoenix-search-wrap {
    flex: 0 0 auto;
    width: auto;
}

.system-phoenix-topbar-actions .system-phoenix-search-wrap.is-clinic-search {
    max-width: none;
}

.system-phoenix-topbar-actions .system-phoenix-search-wrap.is-clinic-search .system-phoenix-search-button--icon {
    width: 38px;
    min-width: 38px;
}

.system-phoenix-search-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: min(100%, 400px);
    max-width: 100%;
    min-height: 33px;
    padding: 6px 12px;
    border: 1px solid #d8e2ef;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: none;
    color: #6e7891;
    font-size: 12.8px;
    line-height: 19.072px;
    text-align: left;
}

.system-phoenix-search-button svg,
.system-phoenix-search-button i {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: #7e8aa4;
    font-size: 15px;
}

.system-phoenix-search-button > span:first-of-type {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-phoenix-search-button.is-clinic-search {
    width: min(100%, 268px);
    min-height: 30px;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 18px;
}

.system-phoenix-search-button--icon {
    justify-content: center;
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 999px;
}

.system-phoenix-search-button--icon.is-clinic-search {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
}

.system-phoenix-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 auto;
    width: min(100%, 400px);
    max-width: 100%;
    min-height: 33px;
    padding: 6px 32px 6px 40px;
    border: 1px solid #d8e2ef;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: none;
    color: #9fa6bc;
    font-size: 12.8px;
    line-height: 19.072px;
}

.system-phoenix-search-wrap.is-clinic-search .system-phoenix-search {
    flex: 0 0 auto;
    width: min(100%, 268px);
    min-height: 30px;
    padding: 4px 56px 4px 34px;
    font-size: 12px;
    line-height: 18px;
}

.system-phoenix-search input {
    font-size: 12.8px;
    line-height: 19.072px;
}

.system-phoenix-search-wrap.is-clinic-search .system-phoenix-search input {
    font-size: 12px;
    line-height: 18px;
}

.system-phoenix-search input::placeholder {
    color: #9fa6bc;
}

.system-phoenix-search-shortcut {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 22px;
    padding: 0 8px;
    border: 1px solid #d8e2ef;
    border-radius: 999px;
    background: #f8fbff;
    color: #8a94ad;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.system-phoenix-search-wrap.is-clinic-search .system-phoenix-search-shortcut {
    right: 7px;
    min-width: 44px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.62rem;
}

.system-phoenix-search-modal .modal-dialog {
    max-width: min(920px, calc(100vw - 32px));
    z-index: 1060;
}

.system-phoenix-search-modal .modal-dialog.modal-dialog-centered {
    align-items: flex-start;
    min-height: calc(100% - 24px);
    padding-top: 40px;
}

.system-phoenix-search-modal .modal-content {
    border: 1px solid #e3e6ed;
    border-radius: 24px;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.18);
}

.system-phoenix-search-modal {
    z-index: 1060;
}

.system-phoenix-search-modal .modal-body {
    display: grid;
    gap: 14px;
    padding: 20px 20px 22px;
}

.system-phoenix-search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.system-phoenix-search-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #d8e2ef;
    border-radius: 999px;
    background: #f8fbff;
    color: #5e6e82;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.system-phoenix-search-filter input {
    margin: 0;
}

.system-phoenix-search--modal {
    width: 100%;
    min-height: 54px;
    padding: 10px 68px 10px 44px;
    font-size: 14px;
    line-height: 22px;
}

.system-phoenix-search--modal svg {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #7e8aa4;
}

.system-phoenix-search--modal input {
    font-size: 14px;
    line-height: 22px;
}

.system-phoenix-search-results--modal {
    position: static;
    width: 100%;
    padding: 12px;
    max-height: min(58vh, 560px);
    overflow: auto;
    box-shadow: none;
}

.system-phoenix-search-results--modal .system-phoenix-search-section,
.system-phoenix-search-results--modal .system-phoenix-search-results-state {
    width: 100%;
}

.system-phoenix-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 50px;
    z-index: 35;
    width: min(640px, calc(100vw - 56px));
    padding: 12px;
    border: 1px solid #e3e6ed;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 1rem 3rem rgba(15, 23, 42, 0.14);
}

.system-phoenix-search-results-state {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff, #f6faff);
}

.system-phoenix-search-results-state i {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(18, 115, 234, 0.10);
    color: #1273ea;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.system-phoenix-search-results-state strong {
    display: block;
    margin-bottom: 4px;
    color: #31374a;
    font-size: 0.94rem;
}

.system-phoenix-search-results-state p {
    margin: 0;
    color: #6e819a;
    font-size: 0.82rem;
    line-height: 1.55;
}

.system-phoenix-search-results-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.system-phoenix-search-section + .system-phoenix-search-section {
    margin-top: 10px;
}

.system-phoenix-search-section {
    padding: 10px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff, #f7faff);
}

.system-phoenix-search-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    padding: 2px 4px 8px;
}

.system-phoenix-search-section-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #31374a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.system-phoenix-search-section-title i {
    color: #1273ea;
    font-size: 0.95rem;
}

.system-phoenix-search-section-meta {
    color: #8a94ad;
    font-size: 0.75rem;
    font-weight: 700;
}

.system-phoenix-search-section-list {
    display: grid;
    gap: 6px;
}

.system-phoenix-search-result-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: background 0.16s ease, transform 0.16s ease;
}

.system-phoenix-search-result-row:hover,
.system-phoenix-search-result-row.is-active {
    background: rgba(18, 115, 234, 0.08);
    transform: translateY(-1px);
}

.system-phoenix-search-result-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(18, 115, 234, 0.10);
    color: #1273ea;
    font-size: 1rem;
}

.system-phoenix-search-result-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.system-phoenix-search-result-title {
    overflow: hidden;
    color: #31374a;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 700;
}

.system-phoenix-search-result-subtitle {
    overflow: hidden;
    color: #6e819a;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
}

.system-phoenix-search-result-type {
    color: #8a94ad;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.system-phoenix-search-section-link {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding-left: 4px;
    color: #1273ea;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.system-phoenix-search-section-link:hover {
    color: #0a4aa8;
}

.system-phoenix-topbar-actions {
    display: flex;
    flex: 0 0 auto;
    min-width: 0;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    row-gap: 10px;
}

.system-phoenix-icon-button,
.system-phoenix-user-chip {
    background: transparent;
    box-shadow: none;
}

.system-phoenix-icon-button {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    position: relative;
    flex-shrink: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    color: #8a94ad;
    font-size: 1rem;
    text-decoration: none;
}

.system-phoenix-icon-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.system-phoenix-icon-button > svg,
.system-phoenix-icon-button__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.system-phoenix-icon-button__lock {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 16px;
    height: 16px;
    border: 1px solid #f6dd91;
    border-radius: 999px;
    background: #fff3cd;
    color: #a35a00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    box-shadow: 0 6px 12px rgba(163, 90, 0, 0.16);
}

.system-phoenix-icon-button__lock svg {
    width: 10px;
    height: 10px;
    display: block;
}

.system-phoenix-icon-button.is-locked {
    overflow: visible;
}

.system-phoenix-icon-button.dropdown-toggle::after {
    display: none;
}

.system-phoenix-icon-button:hover {
    color: #31374a;
    background: #f6f8fb;
}

.system-phoenix-icon-button.is-disabled,
.system-phoenix-icon-button.is-disabled:hover {
    color: #b7bfd1;
    background: #f8fafc;
    border-color: #e3e6ed;
    cursor: not-allowed;
    opacity: 1;
}

.system-phoenix-icon-button.is-highlight {
    background: #fff5eb;
    color: #f28c28;
}

.system-phoenix-user-dropdown {
    position: relative;
}

.system-phoenix-notification-dropdown {
    position: relative;
}

.system-phoenix-notification-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #e63757;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 14px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(230, 55, 87, 0.28);
}

.system-phoenix-notification-menu {
    width: min(360px, calc(100vw - 32px));
    margin-top: 14px !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.system-phoenix-notification-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 26px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-top: 1px solid #e3e6ed;
    border-left: 1px solid #e3e6ed;
    transform: rotate(45deg);
}

.system-phoenix-notification-card {
    position: relative;
    border: 1px solid #e3e6ed;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1rem 3rem rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.system-phoenix-notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid #edf2f9;
}

.system-phoenix-notification-header h6 {
    margin: 0;
    color: #31374a;
    font-size: 1.35rem;
    font-weight: 700;
}

.system-phoenix-notification-action {
    padding: 0;
    border: 0;
    background: transparent;
    color: #3874ff;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: default;
    opacity: 0.6;
}

.system-phoenix-notification-action.is-enabled {
    cursor: pointer;
    opacity: 1;
}

.system-phoenix-notification-list {
    max-height: min(420px, calc(100vh - 190px));
    overflow-y: auto;
    padding: 8px;
}

.system-phoenix-notification-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    color: #31374a;
    text-decoration: none;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.system-phoenix-notification-item:hover {
    background: #f6f8fb;
    color: #222834;
    transform: translateY(-1px);
}

.system-phoenix-notification-item-icon {
    width: 36px;
    height: 36px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 999px;
    background: #e8f2ff;
    color: #3874ff;
    font-size: 1rem;
}

.system-phoenix-notification-item.is-success .system-phoenix-notification-item-icon {
    background: #e5f7ef;
    color: #198754;
}

.system-phoenix-notification-item.is-warning .system-phoenix-notification-item-icon {
    background: #fff4de;
    color: #d97904;
}

.system-phoenix-notification-item.is-danger .system-phoenix-notification-item-icon {
    background: #fde8ec;
    color: #e63757;
}

.system-phoenix-notification-item-body {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.system-phoenix-notification-item-body strong {
    color: #222834;
    font-size: 0.95rem;
    font-weight: 800;
}

.system-phoenix-notification-item-summary {
    color: #525b75;
    font-size: 0.84rem;
    line-height: 1.4;
}

.system-phoenix-notification-item-meta {
    color: #8a94ad;
    font-size: 0.76rem;
    font-weight: 600;
}

.system-phoenix-notification-empty {
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 28px 24px 32px;
    text-align: center;
}

.system-phoenix-notification-empty-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f6f8fb;
    color: #8a94ad;
    font-size: 1.35rem;
}

.system-phoenix-notification-empty h6 {
    margin: 0;
    color: #31374a;
    font-size: 1.05rem;
    font-weight: 700;
}

.system-phoenix-notification-empty p {
    max-width: 240px;
    margin: 0;
    color: #8a94ad;
    font-size: 0.9rem;
    line-height: 1.55;
}

.system-phoenix-user-toggle {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
}

.system-phoenix-user-toggle:hover {
    background: #f6f8fb;
}

.system-phoenix-user-toggle.dropdown-toggle::after {
    display: none;
}

.system-phoenix-topbar-metrics {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    max-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.system-phoenix-topbar-metrics::-webkit-scrollbar {
    display: none;
}

.system-phoenix-metric-divider {
    flex-shrink: 0;
    width: 1px;
    height: 26px;
    background: linear-gradient(to bottom, rgba(227, 230, 237, 0), rgba(227, 230, 237, 1), rgba(227, 230, 237, 0));
}

.system-phoenix-metric-group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 3px 7px;
    border: 1px solid #e8ecf3;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.system-phoenix-metric-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 6px 10px;
    border: 1px solid #d8e2ef;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #5b6477;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    transition: border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.system-phoenix-metric-refresh:hover {
    color: #3874ff;
    border-color: rgba(56, 116, 255, 0.28);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.system-phoenix-metric-refresh:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.system-phoenix-metric-refresh.is-loading i {
    animation: system-phoenix-header-metric-spin 0.75s linear infinite;
}

.system-phoenix-metric-group-label {
    display: inline-grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: #5b6477;
    border: 1px solid #e8ecf3;
    border-radius: 8px;
    background: #f8fbff;
}

.system-phoenix-metric-group-label svg {
    width: 15px;
    height: 15px;
    stroke-width: 1.9;
}

.system-phoenix-metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px 3px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f8fbff;
    color: #31374a;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.system-phoenix-metric-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.system-phoenix-metric-pill.is-active {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.system-phoenix-metric-pill.is-zero {
    opacity: 0.78;
}

.system-phoenix-topbar-metrics.is-loading .system-phoenix-metric-pill {
    pointer-events: none;
}

.system-phoenix-metric-pill.is-loading {
    opacity: 0.92;
}

.system-phoenix-metric-pill-label {
    white-space: nowrap;
}

.system-phoenix-metric-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
}

.system-phoenix-metric-pill-count.is-loading {
    position: relative;
    font-size: 0;
}

.system-phoenix-metric-pill-count.is-loading::after {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    width: 11px;
    height: 11px;
    margin-top: -5.5px;
    margin-left: -5.5px;
    border: 2px solid rgba(82, 91, 117, 0.55);
    border-right-color: transparent;
    border-radius: 999px;
    animation: system-phoenix-header-metric-spin 0.75s linear infinite;
}

@keyframes system-phoenix-header-metric-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.system-phoenix-metric-pill.tone-warning {
    background: rgba(255, 187, 90, 0.16);
    border-color: rgba(245, 158, 11, 0.24);
    color: #c27803;
}

.system-phoenix-metric-pill.tone-primary {
    background: rgba(18, 115, 234, 0.12);
    border-color: rgba(18, 115, 234, 0.22);
    color: #1273ea;
}

.system-phoenix-metric-pill.tone-info {
    background: rgba(18, 184, 176, 0.12);
    border-color: rgba(18, 184, 176, 0.22);
    color: #0f938d;
}

.system-phoenix-metric-pill.tone-success {
    background: rgba(18, 184, 101, 0.12);
    border-color: rgba(18, 184, 101, 0.22);
    color: #148c54;
}

.system-phoenix-metric-pill.tone-secondary {
    background: rgba(138, 148, 173, 0.10);
    border-color: rgba(138, 148, 173, 0.2);
    color: #5e6a85;
}

.system-phoenix-metric-panel {
    --bs-offcanvas-width: min(560px, 94vw);
}

.system-phoenix-metric-panel .offcanvas-header {
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: 22px 22px 16px;
    border-bottom: 1px solid #edf2f9;
}

.system-phoenix-metric-panel-header-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.system-phoenix-metric-panel-header-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.system-phoenix-metric-panel .offcanvas-header > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.system-phoenix-metric-panel-eyebrow {
    margin-bottom: 8px;
    color: #8a94ad;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.system-phoenix-metric-panel-description {
    max-width: 420px;
    margin: 6px 0 0;
    color: #6e819a;
    font-size: 0.84rem;
    line-height: 1.55;
}

.system-phoenix-metric-panel-ordering {
    max-width: 420px;
    margin: 4px 0 0;
    color: #3874ff !important;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
}

.system-phoenix-metric-panel .offcanvas-body {
    min-width: 0;
    padding: 16px 22px 18px;
    overflow-x: hidden;
}

.system-phoenix-metric-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.system-phoenix-metric-panel-filters {
    max-width: 100%;
    width: 100%;
    margin-top: 14px;
    margin-bottom: 0;
    padding: 8px;
    border: 1px solid #dfe7f1;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(17, 53, 90, 0.04);
}

.system-phoenix-metric-panel-filters-inner {
    display: flex;
    align-items: end;
    gap: 8px;
    min-width: 0;
}

.system-phoenix-metric-panel-filters-search {
    flex: 1 1 auto;
    min-width: 0;
}

.system-phoenix-metric-panel-filters-search-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0.36rem 0.72rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.system-phoenix-metric-panel-filters-search-submit i {
    font-size: 1rem;
}

.system-phoenix-metric-panel-filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0.36rem 0.72rem;
    border-color: #d8e2ef;
    border-radius: 8px;
    color: #31374a;
    font-size: 0.82rem;
    font-weight: 800;
}

.system-phoenix-metric-panel-filters-toggle.is-active,
.system-phoenix-metric-panel-filters-toggle[aria-expanded="true"] {
    border-color: #9ec5fe;
    background: #edf4ff;
    color: #1c4587;
}

.system-phoenix-metric-panel-filters-toggle i {
    font-size: 1rem;
}

.system-phoenix-metric-panel-filters-panel {
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #dfe7f1;
    border-radius: 12px;
    background: #fbfcfe;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.system-phoenix-metric-panel-filters-field {
    min-width: 0;
}

.system-phoenix-metric-panel-filters-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    flex: 1 1 100%;
    min-width: 0;
}

.system-phoenix-metric-panel-filters-field .form-control,
.system-phoenix-metric-panel-filters-field .form-select {
    max-width: 100%;
    min-height: 34px;
    padding: 0.36rem 0.58rem;
    border-color: #d8e2ef;
    border-radius: 8px;
    color: #31374a;
    font-size: 0.82rem;
    line-height: 1.25;
}

.system-phoenix-metric-panel-filters-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #edf2f9;
    align-self: flex-end;
}

.system-phoenix-metric-panel-filters-actions .btn {
    min-height: 32px;
    padding: 0.32rem 0.62rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
}

.system-phoenix-metric-panel-filters .form-label {
    margin-bottom: 4px !important;
    color: #6e819a !important;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.system-phoenix-metric-panel-loading,
.system-phoenix-metric-panel-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 18px;
    border: 1px dashed #d8e2ef;
    border-radius: 18px;
    background: #fbfdff;
    color: #6e819a;
    text-align: center;
}

.system-phoenix-metric-panel-loading {
    flex-direction: column;
    gap: 12px;
}

.system-phoenix-metric-panel-list {
    display: grid;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
}

.system-phoenix-metric-card {
    max-width: 100%;
    min-width: 0;
    padding: 16px;
    border: 1px solid #e3e6ed;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.system-phoenix-metric-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.system-phoenix-metric-card-top > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.system-phoenix-metric-card h6 {
    margin: 0;
    color: #31374a;
    font-size: 0.96rem;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.system-phoenix-metric-card-patient {
    margin-top: 8px;
}

.system-phoenix-metric-card-patient-name {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    color: #1c2233;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.system-phoenix-metric-card-patient-name-icon {
    flex-shrink: 0;
    margin-top: 3px;
    color: #8a94ad;
    font-size: 0.72rem;
    font-weight: 400;
    opacity: 0.85;
}

.system-phoenix-metric-card-patient-name-text {
    min-width: 0;
}

.system-phoenix-metric-card-patient-email {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-top: 3px;
    color: #8a94ad;
    font-size: 0.72rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.system-phoenix-metric-card-patient-email-icon {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.68rem;
    opacity: 0.75;
}

.system-phoenix-metric-card-patient-email-text {
    min-width: 0;
}

.system-phoenix-metric-card-patient-email.is-missing .system-phoenix-metric-card-patient-email-text {
    font-style: italic;
}

.system-phoenix-metric-card-context {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.45rem;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eef1f6;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.system-phoenix-metric-card-context-icon {
    flex-shrink: 0;
    align-self: center;
    color: #9aa3b8;
    font-size: 0.72rem;
    opacity: 0.85;
}

.system-phoenix-metric-card-context-label {
    flex-shrink: 0;
    color: #9aa3b8;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.system-phoenix-metric-card-context-label::after {
    content: ':';
}

.system-phoenix-metric-card-context-value {
    color: #1c2233;
    font-size: 0.85rem;
    font-weight: 600;
}

.system-phoenix-metric-card-meta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eef1f6;
    color: #8a94ad;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.system-phoenix-metric-card-item-lines {
    padding-left: 0;
}

.system-phoenix-metric-card-item-line {
    position: relative;
    padding-left: 0.85rem;
    margin-top: 0.2rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.system-phoenix-metric-card-item-line::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #b6c2d9;
}

.system-phoenix-metric-card-actions {
    margin-top: 12px;
}

.system-phoenix-metric-card-prescription {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.78rem;
    color: #5c6f8c;
}

.system-phoenix-metric-card-prescription i {
    font-size: 0.9rem;
    color: #4c6fff;
}

.system-phoenix-metric-card-prescription strong {
    font-weight: 700;
    color: #1f2a44;
}

.system-phoenix-metric-card--nested {
    margin-top: 0;
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid #e6ebf5;
    background: #fbfcfe;
}

.system-phoenix-metric-card-group {
    border: 1px solid #d8e2f2;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.system-phoenix-metric-card-group-header {
    padding: 14px 16px;
    background: linear-gradient(180deg, #f7faff 0%, #f1f5fc 100%);
    border-bottom: 1px solid #e6ebf5;
}

.system-phoenix-metric-card-group-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1f2a44;
}

.system-phoenix-metric-card-group-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.78rem;
    color: #5c6f8c;
}

.system-phoenix-metric-card-group-items {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.system-phoenix-panel-badge {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.system-phoenix-panel-badge__info,
.dispensing-queue-badge__info,
.dispensing-queue-journey__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: 0.68rem;
    line-height: 1;
    opacity: 0.82;
    cursor: help;
}

.system-phoenix-panel-badge__info:hover,
.system-phoenix-panel-badge__info:focus,
.dispensing-queue-badge__info:hover,
.dispensing-queue-badge__info:focus,
.dispensing-queue-journey__info:hover,
.dispensing-queue-journey__info:focus {
    opacity: 1;
    outline: none;
}

.system-phoenix-metric-card-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.dispensing-queue-journey {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #8a94ad;
    white-space: nowrap;
}

.system-phoenix-panel-badge.tone-primary {
    background: rgba(18, 115, 234, 0.12);
    color: #1273ea;
}

.system-phoenix-panel-badge.tone-secondary {
    background: rgba(138, 148, 173, 0.12);
    color: #5e6a85;
}

.system-phoenix-panel-badge.tone-success {
    background: rgba(18, 184, 101, 0.12);
    color: #148c54;
}

.system-phoenix-panel-badge.tone-warning {
    background: rgba(245, 158, 11, 0.16);
    color: #c27803;
}

.system-phoenix-panel-badge.tone-danger {
    background: rgba(230, 86, 88, 0.14);
    color: #c43032;
}

.system-phoenix-panel-badge.tone-info {
    background: rgba(18, 184, 176, 0.14);
    color: #0f938d;
}

.system-phoenix-metric-panel-footer {
    min-width: 0;
    padding: 0 22px 22px;
}

@media (max-width: 680px) {
    .system-phoenix-metric-panel-filters-inner {
        align-items: stretch;
    }
}

@media (max-width: 575.98px) {
    .system-phoenix-metric-panel-filters-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .system-phoenix-metric-panel-filters-toggle {
        width: 100%;
        justify-content: center;
    }

    .system-phoenix-metric-panel-filters-row {
        grid-template-columns: 1fr;
        flex-basis: auto;
    }

    .system-phoenix-metric-panel-filters-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.system-phoenix-mobile-nav-toggle {
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #d8e2ef;
    border-radius: 6px;
    background: #ffffff;
    color: #525b75;
    font-size: 1rem;
    flex-shrink: 0;
}

.system-phoenix-mobile-nav-toggle:hover {
    color: #31374a;
    background: #f5f7fa;
}

.system-phoenix-user-chip {
    display: flex;
    min-width: 0;
    max-width: 100%;
    align-items: center;
    gap: 10px;
    padding: 0 4px 0 2px;
    border-radius: 999px;
}

.system-phoenix-user-avatar {
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #9fb4ff, #d8e2ef);
    color: #31374a;
    font-size: 0.74rem;
    font-weight: 800;
}

.system-phoenix-user-avatar img,
.system-phoenix-user-menu-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.system-phoenix-user-meta {
    min-width: 0;
}

.system-phoenix-user-meta strong {
    display: block;
    font-size: 0.875rem;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-phoenix-user-meta span {
    color: #8a94ad;
    font-size: 0.76rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-phoenix-user-chip > i {
    color: #9fa6bc;
    font-size: 0.9rem;
}

.system-phoenix-user-menu {
    width: min(320px, calc(100vw - 32px));
    margin-top: 14px !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.system-phoenix-user-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 26px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-top: 1px solid #e3e6ed;
    border-left: 1px solid #e3e6ed;
    transform: rotate(45deg);
}

.system-phoenix-user-menu-card {
    position: relative;
    border: 1px solid #e3e6ed;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1rem 3rem rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.system-phoenix-user-menu-body {
    padding: 24px 20px 18px;
}

.system-phoenix-user-menu-header {
    text-align: center;
}

.system-phoenix-user-menu-avatar {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #9fb4ff, #d8e2ef);
    color: #31374a;
    font-size: 1rem;
    font-weight: 800;
}

.system-phoenix-user-menu-header h6 {
    margin: 0;
    color: #31374a;
    font-size: 1.2rem;
    font-weight: 700;
}

.system-phoenix-user-menu-header p {
    margin: 6px 0 0;
    color: #8a94ad;
    font-size: 0.875rem;
}

.system-phoenix-user-status {
    margin-top: 18px;
}

.system-phoenix-user-status .form-control {
    min-height: 42px;
    border-color: #d8e2ef;
    border-radius: 10px;
    color: #31374a;
    font-size: 0.9rem;
    box-shadow: none;
}

.system-phoenix-user-status .form-control:focus {
    border-color: #9fb4ff;
    box-shadow: 0 0 0 0.2rem rgba(56, 116, 255, 0.12);
}

.system-phoenix-user-menu-scroll {
    max-height: 240px;
    overflow-y: auto;
    border-top: 1px solid #edf2f9;
    border-bottom: 1px solid #edf2f9;
}

.system-phoenix-user-menu-list {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.system-phoenix-user-menu-item {
    margin: 0;
}

.system-phoenix-user-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #31374a;
    font-size: 0.98rem;
    font-weight: 500;
    text-decoration: none;
}

.system-phoenix-user-menu-link:hover {
    color: #31374a;
    background: #f6f8fb;
}

.system-phoenix-user-menu-link.is-secondary {
    padding-top: 14px;
    padding-bottom: 14px;
}

.system-phoenix-user-menu-link i {
    color: #525b75;
    font-size: 1rem;
}

.system-phoenix-user-menu-footer {
    padding: 14px 20px 18px;
}

.system-phoenix-user-signout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    border: 1px solid #d8e2ef;
    border-radius: 10px;
    background: #f7f9fc;
    color: #31374a;
    font-size: 1rem;
    font-weight: 700;
}

.system-phoenix-user-signout-button:hover {
    background: #f0f4f8;
}

.system-phoenix-alert {
    margin: 24px 24px 0;
    border-radius: 12px;
    border: 1px solid #e3e6ed;
    box-shadow: 0 0.5rem 1rem rgba(20, 20, 43, 0.04);
}

.system-phoenix-page {
    min-width: 0;
    width: 100%;
    padding: 28px 40px 64px;
}

.phoenix-dashboard {
    gap: 16px;
}

.phoenix-dashboard-hero {
    gap: 16px;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.phoenix-dashboard-hero-panel,
.phoenix-dashboard-stat-card,
.phoenix-dashboard-panel {
    border-radius: 8px;
    border: 1px solid #e3e6ed;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
}

.phoenix-dashboard-hero-panel {
    padding: 20px;
}

.phoenix-dashboard-hero-panel::after {
    display: none;
}

.phoenix-dashboard-eyebrow {
    margin-bottom: 10px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #3874ff;
    font-size: 12.8px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.phoenix-dashboard-hero-title {
    margin-bottom: 8px;
    font-size: clamp(2rem, 2.4vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.phoenix-dashboard-hero-text,
.phoenix-dashboard-panel-header p,
.phoenix-dashboard-stat-meta,
.phoenix-dashboard-action-group-text,
.phoenix-dashboard-health-item span,
.phoenix-dashboard-usage-item span,
.phoenix-dashboard-feed-item span,
.phoenix-dashboard-ring-card p {
    color: #525b75;
    overflow-wrap: anywhere;
}

.phoenix-dashboard-view-switch {
    padding: 4px;
    border: 1px solid #e3e6ed;
    border-radius: 8px;
    background: #f5f7fa;
    box-shadow: none;
    max-width: 100%;
    flex-wrap: wrap;
}

.phoenix-dashboard-view-switch a,
.phoenix-dashboard-view-switch button {
    flex: 1 1 96px;
    min-width: 96px;
    padding: 8px 12px;
    border-radius: 6px;
}

.phoenix-dashboard-view-switch button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.phoenix-dashboard-view-switch a.is-active,
.phoenix-dashboard-view-switch button.is-active {
    background: #3874ff;
    box-shadow: none;
    color: #ffffff;
}

.phoenix-dashboard-period-card,
.phoenix-dashboard-insight,
.phoenix-dashboard-ring-card {
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: none;
}

.phoenix-dashboard-period-card {
    border: 1px solid #edf2f9;
}

.phoenix-dashboard-insight-badge {
    padding: 4px 8px;
    font-size: 0.68rem;
}

.phoenix-dashboard-stats-grid {
    gap: 12px;
}

.phoenix-dashboard-stat-card,
.phoenix-dashboard-panel {
    padding: 16px;
}

.phoenix-dashboard-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
}

.phoenix-dashboard-stat-chip,
.phoenix-dashboard-pill {
    background: #f5f7fa;
    color: #525b75;
    box-shadow: none;
}

.phoenix-dashboard-stat-value {
    font-size: 2rem;
}

.phoenix-dashboard-delta {
    font-size: 0.8rem;
}

.phoenix-dashboard-panel-header h3,
.phoenix-dashboard-action-group-title {
    font-size: 1.1rem;
}

.phoenix-dashboard-panel-header {
    margin-bottom: 14px;
}

.phoenix-dashboard-panel-header > div,
.phoenix-dashboard-action-header > div,
.phoenix-dashboard-feed-item > div,
.phoenix-dashboard-usage-meta > * {
    min-width: 0;
}

.phoenix-dashboard-progress {
    background: #edf2f9;
}

.phoenix-dashboard-progress > i {
    background: #3874ff;
}

.phoenix-dashboard-chart-bar.is-blue {
    background: #3874ff;
}

.phoenix-dashboard-chart-bar.is-teal {
    background: #91b9ff;
}

.phoenix-dashboard-chart-bar.is-violet {
    background: #7c3aed;
}

.phoenix-dashboard-spotlight {
    color: #31374a;
    background: #ffffff;
}

.phoenix-dashboard-spotlight .phoenix-dashboard-panel-header h3,
.phoenix-dashboard-spotlight .phoenix-dashboard-panel-header p,
.phoenix-dashboard-spotlight .phoenix-dashboard-panel-header span,
.phoenix-dashboard-spotlight .phoenix-dashboard-stat-meta {
    color: inherit;
}

.phoenix-dashboard-spotlight-value {
    font-size: 2.5rem;
}

.phoenix-dashboard-spotlight-item {
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: none;
}

.phoenix-dashboard-spotlight-item span {
    color: #525b75;
}

.phoenix-dashboard-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
}

.phoenix-dashboard-button {
    padding: 10px 14px;
    border: 1px solid #d8e2ef;
    border-radius: 6px;
    box-shadow: none;
}

.phoenix-dashboard-button.is-primary {
    border-color: #3874ff;
    background: #3874ff;
    box-shadow: none;
}

@media (max-width: 1120px) {
    .system-phoenix-shell {
        grid-template-columns: 1fr;
    }

    .system-phoenix-mobile-backdrop {
        display: block;
    }

    body.system-phoenix-body.system-phoenix-sidebar-open .system-phoenix-mobile-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .system-phoenix-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(304px, calc(100vw - 40px));
        z-index: 1045;
        border-right: 1px solid #e3e6ed;
        border-bottom: 0;
        transform: translate3d(-100%, 0, 0);
        transition: transform 0.24s ease;
        overflow-y: auto;
    }

    body.system-phoenix-body.system-phoenix-sidebar-open .system-phoenix-sidebar {
        transform: translate3d(0, 0, 0);
        box-shadow: 0 1rem 3rem rgba(15, 23, 42, 0.18);
    }

    .system-phoenix-sidebar-inner {
        position: relative;
        min-height: 100%;
        height: auto;
    }

    .system-phoenix-collapse-button {
        display: none;
    }

    .system-phoenix-sidebar-footer {
        display: none;
    }

    .system-phoenix-sidebar-footer--utilities,
    .system-phoenix-sidebar-footer--version {
        display: block;
    }

    .system-phoenix-sidebar-fill {
        display: none;
    }

    .system-phoenix-sidebar-footer--utilities {
        margin: 0;
        padding: 8px 16px 6px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .system-phoenix-sidebar-footer--version {
        padding: 8px 24px 18px;
    }

    .system-phoenix-topbar {
        flex-wrap: wrap;
        row-gap: 8px;
        min-height: auto;
        padding: 10px 18px;
    }

    .system-phoenix-mobile-nav-toggle {
        display: inline-grid;
    }

    .system-phoenix-search-wrap {
        flex: 1 1 220px;
        justify-content: flex-start;
    }

    .system-phoenix-topbar-metrics {
        flex: 1 1 100%;
        flex-basis: 100%;
        max-width: none;
        padding-top: 0;
    }

    .system-phoenix-topbar-actions {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .system-phoenix-search-wrap:not(.is-clinic-search) .system-phoenix-search-button {
        width: min(100%, 420px);
    }

    .system-phoenix-search-wrap.is-clinic-search {
        max-width: min(100%, 300px);
    }

    .system-phoenix-search-wrap.is-clinic-search .system-phoenix-search-button {
        width: min(100%, 252px);
    }

    .system-phoenix-search-results {
        left: 0;
        width: min(680px, calc(100vw - 36px));
    }

    .system-phoenix-topbar-actions {
        justify-content: flex-end;
    }

    .system-phoenix-page {
        padding: 18px;
    }

    .phoenix-dashboard-hero,
    .phoenix-dashboard-grid--primary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .system-phoenix-sidebar {
        width: min(300px, calc(100vw - 24px));
    }

    .system-phoenix-topbar {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 14px;
    }

    .system-phoenix-search-wrap {
        width: 100%;
        flex: 1 1 auto;
    }

    .system-phoenix-search-button {
        width: 100%;
    }

    .system-phoenix-search-shortcut {
        display: none;
    }

    .system-phoenix-search-results {
        left: 0;
        width: 100%;
    }

    .system-phoenix-topbar-metrics {
        order: 0;
        flex-basis: auto;
        max-width: none;
        width: 100%;
    }

    .system-phoenix-topbar-actions {
        flex-wrap: nowrap;
        justify-content: flex-end;
        width: 100%;
    }

    .system-phoenix-metric-group {
        padding: 3px 6px;
    }

    .system-phoenix-metric-pill {
        padding: 3px 6px 3px 7px;
        font-size: 0.72rem;
    }

    .system-phoenix-user-meta {
        display: none;
    }

    .system-phoenix-page {
        padding: 16px 14px 40px;
    }

    .system-phoenix-page .modal-dialog {
        margin: 0.75rem;
        max-width: calc(100% - 1.5rem);
    }

    .system-phoenix-page .system-filter-chip-row .badge {
        max-width: 100%;
        white-space: normal;
    }

    .phoenix-dashboard-view-switch {
        width: 100%;
    }

    .phoenix-dashboard-view-switch a,
    .phoenix-dashboard-view-switch button {
        min-width: 0;
    }

    .phoenix-dashboard-action-footer > * {
        width: 100%;
    }

    .phoenix-dashboard-button {
        justify-content: center;
    }

    .phoenix-dashboard-feed-time {
        justify-self: start;
    }
}

.phoenix-subscription-page {
    display: grid;
    gap: 16px;
}

.phoenix-subscription-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.phoenix-subscription-title {
    margin: 0 0 8px;
    font-size: clamp(1.9rem, 2.5vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.phoenix-subscription-copy {
    margin: 0;
    max-width: 720px;
    color: #525b75;
    line-height: 1.7;
}

.phoenix-subscription-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.phoenix-subscription-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    border: 1px solid #e3e6ed;
    border-radius: 6px;
    background: #f5f7fa;
    color: #525b75;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.phoenix-subscription-badge.is-primary {
    border-color: rgba(56, 116, 255, 0.22);
    background: rgba(56, 116, 255, 0.12);
    color: #3874ff;
}

.phoenix-subscription-badge.is-success {
    border-color: rgba(37, 176, 3, 0.22);
    background: rgba(37, 176, 3, 0.12);
    color: #25b003;
}

.phoenix-subscription-badge.is-warning {
    border-color: rgba(255, 204, 133, 1);
    background: #ffefca;
    color: #bc3803;
}

.phoenix-subscription-badge.is-danger {
    border-color: rgba(250, 178, 180, 0.8);
    background: #fff1f2;
    color: #d92d20;
}

.phoenix-subscription-badge.is-secondary {
    border-color: #e3e6ed;
    background: #f5f7fa;
    color: #525b75;
}

.phoenix-subscription-grid {
    display: grid;
    gap: 16px;
}

.phoenix-subscription-grid--summary {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
}

.phoenix-subscription-panel {
    border: 1px solid #e3e6ed;
    border-radius: 8px;
    background: #ffffff;
    padding: 16px;
}

.phoenix-subscription-panel--table {
    padding: 0;
    overflow: hidden;
}

.phoenix-subscription-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.phoenix-subscription-panel-header h2 {
    margin: 0 0 4px;
    font-size: 1.1rem;
}

.phoenix-subscription-panel-header p {
    margin: 0;
    color: #525b75;
    line-height: 1.6;
}

.phoenix-subscription-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.phoenix-subscription-stat-grid--usage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phoenix-subscription-stat {
    display: grid;
    gap: 8px;
    border: 1px solid #edf2f9;
    border-radius: 8px;
    background: #f8fafc;
    padding: 14px 16px;
}

.phoenix-subscription-stat small {
    color: #8a94ad;
    font-size: 10.24px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 15.2576px;
    text-transform: uppercase;
}

.phoenix-subscription-stat strong {
    font-size: 1.1rem;
    line-height: 1.3;
}

.phoenix-subscription-stat span {
    color: #525b75;
    font-size: 12.8px;
    line-height: 1.55;
}

.phoenix-subscription-callout {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e3e6ed;
    background: #f8fafc;
    font-size: 12.8px;
    line-height: 1.55;
}

.phoenix-subscription-callout.is-warning {
    border-color: rgba(255, 204, 133, 1);
    background: #fffbeb;
    color: #bc3803;
}

.phoenix-subscription-mini-list {
    display: grid;
    gap: 12px;
}

.phoenix-subscription-mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #edf2f9;
    border-radius: 8px;
    background: #f8fafc;
}

.phoenix-subscription-mini-item span {
    color: #525b75;
}

.phoenix-subscription-mini-item strong {
    font-size: 1rem;
}

.phoenix-subscription-note {
    margin-top: 12px;
    color: #525b75;
    font-size: 12.8px;
    line-height: 1.6;
}

.phoenix-subscription-empty {
    padding: 28px 0;
    color: #525b75;
    text-align: center;
}

.phoenix-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.phoenix-plan-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #edf2f9;
    border-radius: 8px;
    background: #f8fafc;
}

.phoenix-plan-card.is-current {
    border-color: rgba(56, 116, 255, 0.18);
    background: #f6f8ff;
}

.phoenix-plan-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.phoenix-plan-card-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.phoenix-plan-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e3e6ed;
    border-radius: 8px;
    background: #ffffff;
    color: #31374a;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}

.phoenix-plan-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phoenix-plan-card h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.phoenix-plan-card p {
    margin: 0;
    color: #525b75;
    font-size: 12.8px;
    line-height: 1.55;
}

.phoenix-plan-copy {
    color: #525b75;
    font-size: 12.8px;
    line-height: 1.65;
}

.phoenix-plan-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.phoenix-plan-feature-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid #e3e6ed;
    border-radius: 4px;
    background: #ffffff;
    color: #525b75;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.phoenix-plan-actions {
    display: flex;
    justify-content: flex-end;
}

.phoenix-usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.phoenix-usage-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #edf2f9;
    border-radius: 8px;
    background: #f8fafc;
}

.phoenix-usage-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.phoenix-usage-card-header h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.phoenix-usage-card-header p,
.phoenix-usage-card-meta,
.phoenix-usage-event-copy {
    margin: 0;
    color: #525b75;
    font-size: 12.8px;
    line-height: 1.6;
}

.phoenix-usage-events {
    display: grid;
    gap: 10px;
}

.phoenix-usage-events-label {
    color: #8a94ad;
    font-size: 10.24px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 15.2576px;
    text-transform: uppercase;
}

.phoenix-usage-event {
    padding-top: 10px;
    border-top: 1px solid #e3e6ed;
}

.phoenix-usage-event-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
    color: #31374a;
    font-size: 12.8px;
    font-weight: 700;
    line-height: 1.55;
}

.phoenix-usage-dot {
    color: #9fa6bc;
    margin: 0 2px;
}

.phoenix-subscription-back-link {
    margin-bottom: 12px;
}

.phoenix-usage-filter-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.phoenix-usage-filter-field {
    display: grid;
    gap: 8px;
}

.phoenix-usage-filter-label {
    color: #31374a;
    font-size: 12.8px;
    font-weight: 700;
}

.phoenix-usage-select {
    min-height: 33px;
    padding: 6px 32px 6px 12px;
    border: 1px solid #cbd0dd;
    border-radius: 6px;
    background-color: #ffffff;
    color: #31374a;
    font-size: 12.8px;
    line-height: 19.072px;
    box-shadow: none;
}

.phoenix-usage-select:focus {
    border-color: #3874ff;
    box-shadow: 0 0 0 0.2rem rgba(56, 116, 255, 0.12);
}

.phoenix-usage-filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.phoenix-table-wrap {
    overflow-x: auto;
}

.phoenix-usage-table {
    width: 100%;
    margin: 0;
    border-top: 1px solid rgba(203, 208, 221, 0.54);
    color: #31374a;
    font-size: 12.8px;
    line-height: 19.072px;
}

.phoenix-usage-table thead th {
    padding: 10px 12px 10px 0;
    border-bottom: 1px solid rgba(203, 208, 221, 0.54);
    color: #31374a;
    font-size: 12.8px;
    font-weight: 700;
    line-height: 12.8px;
    white-space: nowrap;
}

.phoenix-usage-table thead th:first-child,
.phoenix-usage-table tbody td:first-child {
    padding-left: 16px;
}

.phoenix-usage-table thead th:last-child,
.phoenix-usage-table tbody td:last-child {
    padding-right: 16px;
}

.phoenix-usage-table tbody td {
    padding: 20px 12px 20px 0;
    border-bottom: 1px solid rgba(203, 208, 221, 0.54);
    vertical-align: top;
}

.phoenix-usage-table-empty {
    padding: 32px 16px !important;
    color: #525b75;
    text-align: center;
}

.phoenix-table-pagination {
    display: flex;
    justify-content: flex-end;
    padding: 16px;
    border-top: 1px solid #e3e6ed;
}

.phoenix-table-pagination .pagination {
    margin: 0;
    gap: 4px;
}

.phoenix-table-pagination .page-link,
.phoenix-table-pagination .page-item span {
    border: 0;
    border-radius: 6px;
    color: #9fa6bc;
    background: transparent;
    font-size: 12.8px;
    line-height: 15.36px;
    padding: 8px 12px;
    box-shadow: none;
}

.phoenix-table-pagination .page-item.active .page-link {
    background: #3874ff;
    color: #ffffff;
}

.phoenix-table-pagination .page-link:hover {
    background: #f5f7fa;
    color: #31374a;
}

.plan-details-modal .modal-content {
    height: clamp(420px, 78vh, 760px);
    border: 1px solid #e3e6ed;
    border-radius: 8px;
    box-shadow: none;
}

.plan-details-modal .modal-header,
.plan-details-modal .modal-footer {
    padding: 16px 20px;
    border-color: #e3e6ed;
}

.plan-details-modal .modal-body {
    overflow-y: auto;
    min-height: 0;
    padding: 20px;
}

.phoenix-plan-modal-label {
    margin-bottom: 4px;
    color: #8a94ad;
    font-size: 10.24px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 15.2576px;
    text-transform: uppercase;
}

.phoenix-plan-modal-block + .phoenix-plan-modal-block {
    margin-top: 18px;
}

.phoenix-plan-modal-block small {
    display: block;
    margin-bottom: 8px;
    color: #8a94ad;
    font-size: 10.24px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 15.2576px;
    text-transform: uppercase;
}

.phoenix-plan-modal-block strong {
    font-size: 1rem;
}

.phoenix-plan-modal-feature-list {
    display: grid;
    gap: 12px;
}

.phoenix-plan-modal-category-list {
    display: grid;
    gap: 14px;
}

.phoenix-plan-modal-category {
    display: grid;
    gap: 10px;
}

.phoenix-plan-modal-category-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #e3e6ed;
    border-radius: 8px;
    background: #ffffff;
    color: #31374a;
    font-size: 12.8px;
    font-weight: 800;
}

.phoenix-plan-modal-category-header span:last-child {
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eff2f6;
    color: #525b75;
    text-align: center;
}

.phoenix-plan-modal-feature {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #edf2f9;
    border-radius: 8px;
    background: #f8fafc;
}

.phoenix-plan-modal-feature span {
    color: #525b75;
    font-size: 12.8px;
    line-height: 1.6;
}

.phoenix-plan-switch-impact {
    display: grid;
    gap: 12px;
}

.phoenix-plan-switch-impact-note,
.phoenix-plan-switch-diff {
    padding: 12px 14px;
    border: 1px solid #e3e6ed;
    border-radius: 8px;
}

.phoenix-plan-switch-impact-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
    font-size: 12.8px;
    line-height: 1.5;
}

.phoenix-plan-switch-impact-note i {
    margin-top: 2px;
    font-size: 16px;
}

.phoenix-plan-switch-diff {
    display: grid;
    gap: 12px;
}

.phoenix-plan-switch-diff.is-loss {
    background: #fff7f7;
    border-color: #fecaca;
}

.phoenix-plan-switch-diff.is-gain {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.phoenix-plan-switch-diff.is-neutral {
    background: #f8fafc;
    color: #525b75;
    font-size: 12.8px;
}

.phoenix-plan-switch-diff-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #31374a;
    font-weight: 800;
}

.phoenix-plan-switch-diff-header strong {
    padding: 2px 8px;
    border-radius: 999px;
    background: #ffffff;
    font-size: 12.8px;
}

.phoenix-plan-switch-diff-group {
    display: grid;
    gap: 6px;
}

.phoenix-plan-switch-diff-group > div {
    color: #525b75;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.phoenix-plan-switch-diff-group ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.phoenix-plan-switch-diff-group li {
    padding: 5px 8px;
    border: 1px solid rgba(82, 91, 117, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #31374a;
    font-size: 12px;
    font-weight: 700;
}

.phoenix-plan-switch-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}

.phoenix-plan-switch-confirm {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    color: #525b75;
    font-size: 12.8px;
    font-weight: 700;
}

.phoenix-plan-switch-confirm input {
    width: 16px;
    height: 16px;
    margin: 0;
}

@media (max-width: 1120px) {
    .phoenix-subscription-grid--summary,
    .phoenix-usage-filter-form {
        grid-template-columns: 1fr;
    }

    .phoenix-subscription-stat-grid,
    .phoenix-subscription-stat-grid--usage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .phoenix-subscription-hero,
    .phoenix-subscription-panel-header,
    .phoenix-usage-card-header,
    .phoenix-plan-card-top {
        flex-direction: column;
    }

    .phoenix-subscription-hero-actions {
        justify-content: flex-start;
    }

    .phoenix-subscription-stat-grid,
    .phoenix-subscription-stat-grid--usage,
    .phoenix-plan-grid,
    .phoenix-usage-grid {
        grid-template-columns: 1fr;
    }

    .phoenix-usage-table thead th:first-child,
    .phoenix-usage-table tbody td:first-child {
        padding-left: 12px;
    }

    .phoenix-usage-table thead th:last-child,
    .phoenix-usage-table tbody td:last-child {
        padding-right: 12px;
    }
}

/* Legacy system page support */

.system-phoenix-page .container-xl,
.system-phoenix-page .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.system-phoenix-page .page-wrapper {
    padding: 0;
    margin: 0;
    background: transparent;
}

.system-phoenix-page .page-header {
    margin-bottom: 16px;
}

.system-phoenix-page .page-header .row {
    row-gap: 12px;
}

.system-phoenix-page .page-header .row > [class*="col"] {
    min-width: 0;
}

.system-phoenix-page .page-title {
    margin: 0;
    color: #31374a;
    font-size: clamp(1.55rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.system-phoenix-page .page-header p,
.system-phoenix-page .text-muted {
    color: #525b75 !important;
}

.system-phoenix-page .card {
    border: 1px solid #e3e6ed;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.system-phoenix-page .card-header,
.system-phoenix-page .card-footer {
    padding: 16px;
    border-color: #e3e6ed;
    background: #ffffff;
}

.system-phoenix-page .card-body {
    padding: 16px;
}

.system-phoenix-page .card-header h5,
.system-phoenix-page .card-header h4,
.system-phoenix-page .card-header h3 {
    margin-bottom: 4px;
    color: #31374a;
    font-size: 1.05rem;
    font-weight: 700;
}

.system-phoenix-page .form-label {
    color: #31374a;
    font-size: 12.8px;
    font-weight: 700;
}

.system-phoenix-page .form-control,
.system-phoenix-page .form-select {
    min-height: 33px;
    border: 1px solid #cbd0dd;
    border-radius: 6px;
    background-color: #ffffff;
    color: #31374a;
    font-size: 12.8px;
    line-height: 19.072px;
    box-shadow: none;
}

.system-phoenix-page .form-control,
.system-phoenix-page .form-control-sm,
.system-phoenix-page .form-select,
.system-phoenix-page .form-select-sm {
    padding-top: 6px;
    padding-bottom: 6px;
}

.system-phoenix-page .form-control-sm,
.system-phoenix-page .form-select-sm,
.system-phoenix-page .btn-sm {
    font-size: 12.8px;
}

.system-phoenix-page .form-control:focus,
.system-phoenix-page .form-select:focus {
    border-color: #3874ff;
    box-shadow: 0 0 0 0.2rem rgba(56, 116, 255, 0.12);
}

.system-phoenix-page .input-group-text {
    border: 1px solid #cbd0dd;
    background: #ffffff;
    color: #8a94ad;
}

.system-phoenix-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 35px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12.8px;
    font-weight: 700;
    line-height: 15.36px;
    box-shadow: none !important;
}

.system-phoenix-page .btn svg,
.system-phoenix-page .dropdown-item svg,
.system-phoenix-page .page-header a svg,
.system-phoenix-page .page-header button svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.system-phoenix-page .btn-primary {
    border-color: var(--pcs-primary-500);
    background: var(--pcs-primary-500);
    color: #ffffff;
}

.system-phoenix-page .btn-primary:hover,
.system-phoenix-page .btn-primary:focus {
    border-color: var(--pcs-primary-600);
    background: var(--pcs-primary-600);
    color: #ffffff;
}

.system-phoenix-page .btn-secondary,
.system-phoenix-page .btn-outline-primary,
.system-phoenix-page .btn-outline-secondary,
.system-phoenix-page .btn-outline-danger,
.system-phoenix-page .btn-outline-warning,
.system-phoenix-page .btn-outline-info,
.system-phoenix-page .btn-outline-success,
.system-phoenix-page .btn-light {
    border-color: #e3e6ed;
    background: #f5f7fa;
    color: #31374a;
}

.system-phoenix-page .btn-outline-primary:hover,
.system-phoenix-page .btn-outline-secondary:hover,
.system-phoenix-page .btn-outline-danger:hover,
.system-phoenix-page .btn-outline-warning:hover,
.system-phoenix-page .btn-outline-info:hover,
.system-phoenix-page .btn-outline-success:hover,
.system-phoenix-page .btn-light:hover,
.system-phoenix-page .btn-secondary:hover {
    border-color: #d8e2ef;
    background: #edf2f9;
    color: #31374a;
}

.system-phoenix-page .btn-danger {
    border-color: #d92d20;
    background: #d92d20;
    color: #ffffff;
}

.system-phoenix-page .btn-link {
    min-height: auto;
    padding: 0;
    color: #31374a;
    font-weight: 700;
    text-decoration: none;
}

.system-phoenix-page .btn-link:hover,
.system-phoenix-page .btn-link:focus {
    color: #3874ff;
}

.system-phoenix-page .btn-outline-white {
    border-color: rgba(255, 255, 255, 0.72);
    background: transparent;
    color: #ffffff;
}

.system-phoenix-page .btn-outline-white:hover,
.system-phoenix-page .btn-outline-white:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.system-phoenix-page .btn-warning {
    border-color: #ffefca;
    background: #ffefca;
    color: #bc3803;
}

.system-phoenix-page .btn-group {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.system-phoenix-page .btn-group > .btn,
.system-phoenix-page .btn-group > form > .btn,
.system-phoenix-page .btn-group > form > button {
    border-radius: 6px !important;
}

.system-phoenix-page .btn-group > .btn {
    min-height: 33px;
}

.system-phoenix-page .system-table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    width: max-content;
    max-width: 100%;
}

.system-phoenix-page .system-table-actions form {
    display: inline-flex;
    margin: 0;
}

.system-phoenix-page .system-table-actions .btn {
    flex: 0 0 35px;
    width: 35px;
    min-width: 35px;
    height: 35px;
    min-height: 35px;
    padding: 0;
}

.system-phoenix-page .system-table-actions .btn svg,
.system-phoenix-page .system-table-actions .btn i {
    width: 14px;
    height: 14px;
    font-size: 14px;
    line-height: 1;
}

.system-phoenix-page .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9.75px;
    font-weight: 800;
    line-height: 9.75px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.system-phoenix-page .badge.bg-primary {
    background: rgba(56, 116, 255, 0.12) !important;
    color: #3874ff !important;
}

.system-phoenix-page .badge.bg-secondary,
.system-phoenix-page .badge.bg-light {
    background: #f5f7fa !important;
    color: #525b75 !important;
    border: 1px solid #e3e6ed;
}

.system-phoenix-page .badge.bg-success {
    background: rgba(37, 176, 3, 0.12) !important;
    color: #25b003 !important;
}

.system-phoenix-page .badge.bg-info {
    background: rgba(0, 163, 171, 0.12) !important;
    color: #00838f !important;
}

.system-phoenix-page .badge.bg-danger {
    background: #fff1f2 !important;
    color: #d92d20 !important;
}

.system-phoenix-page .badge.bg-warning {
    background: #ffefca !important;
    color: #bc3803 !important;
}

.system-phoenix-page code {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid #e3e6ed;
    border-radius: 6px;
    background: #f8fafc;
    color: #525b75;
    font-size: 12px;
}

.system-phoenix-page .avatar {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf2f9;
    color: #31374a;
    font-size: 12px;
    font-weight: 800;
}

.system-phoenix-page .dropdown-menu {
    padding: 8px;
    border: 1px solid #e3e6ed;
    border-radius: 8px;
    box-shadow: 0 0.75rem 1.5rem rgba(20, 20, 43, 0.06);
}

.system-phoenix-page .dropdown-divider {
    margin: 8px 0;
    border-top-color: #e3e6ed;
}

.system-phoenix-page .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12.8px;
    color: #31374a;
}

.system-phoenix-page .dropdown-item:hover,
.system-phoenix-page .dropdown-item:focus {
    background: #f5f7fa;
}

.system-phoenix-page .offcanvas {
    border-left: 1px solid #e3e6ed;
}

.system-phoenix-page .offcanvas-header,
.system-phoenix-page .offcanvas-footer {
    padding: 16px;
}

.system-phoenix-page .system-filter-drawer .offcanvas-body {
    padding: 16px;
}

.system-phoenix-page .system-filter-drawer .offcanvas-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid #e3e6ed;
}

.system-phoenix-page .offcanvas-title {
    font-size: 1rem;
    font-weight: 700;
}

.system-phoenix-page .modal-content {
    border: 1px solid #e3e6ed;
    border-radius: 8px;
    box-shadow: none;
}

.system-phoenix-page .modal-header,
.system-phoenix-page .modal-footer {
    border-color: #e3e6ed;
    padding: 16px 20px;
}

.system-phoenix-page .modal-body {
    padding: 20px;
}

.system-phoenix-page .alert {
    border: 1px solid #e3e6ed;
    border-radius: 8px;
    box-shadow: none;
}

.system-phoenix-page .table-responsive,
.system-phoenix-page .system-table-shell {
    overflow-x: auto;
}

.system-phoenix-page .branch-dashboard-table-card,
.system-phoenix-page .branch-dashboard-table-shell {
    overflow: visible;
}

.system-phoenix-page .branch-dashboard-open-menu {
    z-index: 1080;
}

.system-phoenix-page .table-scroll-controls {
    align-items: center;
}

.system-phoenix-page .table-scroll-indicator .scroll-track {
    height: 4px;
    border-radius: 999px;
    background: #edf2f9;
    overflow: hidden;
}

.system-phoenix-page .table-scroll-indicator .scroll-thumb {
    height: 100%;
    border-radius: 999px;
    background: #3874ff;
}

.system-phoenix-page .table {
    width: 100%;
    margin: 0;
    border-top: 1px solid rgba(203, 208, 221, 0.54);
    color: #31374a;
    font-size: 12.8px;
    line-height: 19.072px;
}

.system-phoenix-page .table > :not(caption) > * > * {
    background: transparent;
    box-shadow: none;
}

.system-phoenix-page .table thead th {
    padding: 0.75rem 1rem 0.75rem 0;
    border-bottom: 1px solid rgba(203, 208, 221, 0.54);
    color: #31374a;
    font-size: 12.8px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.system-phoenix-page .table:not(.service-products-table) tbody tr:nth-child(odd) > * {
    background-color: #f8fafc;
}

.system-phoenix-page .table:not(.service-products-table) tbody tr:nth-child(even) > * {
    background-color: var(--pcs-bg-surface, #ffffff);
}

.system-phoenix-page .table tbody td {
    padding: 20px 12px 20px 0;
    border-bottom: 1px solid rgba(203, 208, 221, 0.54);
    vertical-align: top;
}

.system-phoenix-page .table thead th:first-child,
.system-phoenix-page .table tbody td:first-child {
    padding-left: 16px;
}

.system-phoenix-page .table thead th:last-child,
.system-phoenix-page .table tbody td:last-child {
    padding-right: 16px;
}

.system-phoenix-page .table tbody tr:hover > * {
    background: rgba(56, 116, 255, 0.025);
}

.system-phoenix-page .table a {
    color: #3874ff;
    text-decoration: none;
}

.system-phoenix-page .table a:hover {
    text-decoration: underline;
}

.system-phoenix-page .table a.btn {
    text-decoration: none;
}

.system-phoenix-page .table a.btn:hover {
    text-decoration: none;
}

.system-phoenix-page .table a.btn-primary,
.system-phoenix-page .table a.btn-danger {
    color: #ffffff;
}

.system-phoenix-page .table a.btn-secondary,
.system-phoenix-page .table a.btn-outline-primary,
.system-phoenix-page .table a.btn-outline-secondary,
.system-phoenix-page .table a.btn-outline-danger,
.system-phoenix-page .table a.btn-outline-warning,
.system-phoenix-page .table a.btn-outline-info,
.system-phoenix-page .table a.btn-outline-success,
.system-phoenix-page .table a.btn-light {
    color: #31374a;
}

.system-phoenix-page .table-light,
.system-phoenix-page .table-light > th,
.system-phoenix-page .table-light > td {
    --bs-table-bg: transparent;
    color: #31374a;
}

.system-phoenix-page .card-table,
.system-phoenix-page .table-vcenter {
    vertical-align: middle;
}

.system-phoenix-page .pagination {
    gap: 4px;
}

.system-phoenix-page .page-link,
.system-phoenix-page .page-item span {
    border: 0;
    border-radius: 6px;
    color: #9fa6bc;
    background: transparent;
    font-size: 12.8px;
    line-height: 15.36px;
    padding: 8px 12px;
    box-shadow: none;
}

.system-phoenix-page .page-link:hover {
    background: #f5f7fa;
    color: #31374a;
}

.system-phoenix-page .page-item.active .page-link {
    background: #3874ff;
    color: #ffffff;
}

.system-phoenix-page .bg-primary.text-white {
    background: #3874ff !important;
    color: #ffffff !important;
}

.system-phoenix-page .nav-tabs,
.system-phoenix-page .nav-pills {
    gap: 8px;
    border-bottom: 1px solid #e3e6ed;
}

.system-phoenix-page .nav-tabs .nav-link,
.system-phoenix-page .nav-pills .nav-link {
    border: 0;
    border-radius: 6px 6px 0 0;
    color: #525b75;
    font-size: 12.8px;
    font-weight: 700;
}

.system-phoenix-page .nav-tabs .nav-link.active,
.system-phoenix-page .nav-pills .nav-link.active {
    color: var(--pcs-primary-500);
    background: transparent;
}

.system-phoenix-page .system-list-page {
    display: grid;
    gap: 16px;
}

.system-phoenix-page .system-list-header {
    margin-bottom: 0;
}

.system-phoenix-page .system-list-entry-point {
    border: 1px solid #e8e2ff;
    border-radius: 14px;
    background: linear-gradient(110deg, #f9f7ff 0%, #ffffff 72%);
    box-shadow: none;
}

.system-phoenix-page .system-list-entry-point-icon {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--pcs-primary-50);
    color: var(--pcs-primary-600);
}

.system-phoenix-page .system-list-entry-point-icon svg {
    width: 21px;
    height: 21px;
}

.system-phoenix-page .system-forms-submissions-entry .system-list-entry-point-icon {
    background: #f0eaff;
    color: #8d62c8;
}

.system-phoenix-page .system-website-theme-entry .system-list-entry-point-icon {
    background: #fff5df;
    color: #d69a08;
}

.system-phoenix-page .system-list-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    color: #3874ff;
    font-size: 12.8px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.system-phoenix-page .system-list-summary,
.system-phoenix-page .system-table-meta,
.system-phoenix-page .system-badge-stack,
.system-phoenix-page .system-filter-chip-row,
.system-phoenix-page .system-list-toolbar,
.system-phoenix-page .system-list-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.system-phoenix-page .system-list-summary {
    margin-top: 14px;
    gap: 10px;
}

.system-phoenix-page .system-list-summary-item,
.system-phoenix-page .system-table-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f5f7fa;
    color: #525b75;
    font-size: 12.8px;
    line-height: 1.35;
    white-space: normal;
}

.system-phoenix-page .system-list-summary-item strong,
.system-phoenix-page .system-table-meta strong {
    color: #31374a;
    font-weight: 800;
}

.system-phoenix-page .system-filter-card .card-body {
    display: grid;
    gap: 16px;
}

.system-phoenix-page .system-list-toolbar {
    align-items: stretch;
}

.system-phoenix-page .system-list-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #525b75;
    font-size: 12.8px;
    font-weight: 700;
    text-decoration: none;
}

.system-phoenix-page .system-list-tab:hover {
    color: #3874ff;
    text-decoration: none;
}

.system-phoenix-page .system-list-tab.is-active {
    color: #3874ff;
}

.system-phoenix-page .system-list-tab-count {
    color: #8a94ad;
}

.system-phoenix-page .system-inline-filters {
    row-gap: 12px;
}

.system-phoenix-page .system-table-card .card-header {
    padding-top: 18px;
    padding-bottom: 18px;
}

.system-phoenix-page .system-profile-compact-card .card-header {
    padding: 12px 16px;
}

.system-phoenix-page .system-profile-compact-card .card-table > :not(caption) > * > * {
    padding: 10px 14px;
}

.system-phoenix-page .system-profile-compact-card .system-table-meta {
    margin-top: 0;
}

.system-phoenix-page .system-profile-compact-card .badge {
    white-space: nowrap;
}

.system-phoenix-page .system-profile-module-link,
.system-phoenix-page .system-profile-module-static {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    width: 100%;
    padding: 10px 14px;
    text-decoration: none;
}

.system-phoenix-page .system-profile-module-link {
    color: inherit;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.system-phoenix-page .system-profile-module-link:hover {
    background: #f5f7fa;
    text-decoration: none;
}

.system-phoenix-page .system-profile-module-link.is-alert,
.system-phoenix-page .system-profile-module-static.is-alert {
    border-left: 3px solid #f59e0b;
    background: #fffbeb;
}

.system-phoenix-page .system-profile-module-link.is-alert:hover {
    background: #fef3c7;
}

.system-phoenix-page .system-profile-module-link:hover .system-row-title {
    color: #3874ff !important;
}

.system-phoenix-page .system-profile-module-link > span:first-child,
.system-phoenix-page .system-profile-module-static > span:first-child {
    min-width: 0;
}

.system-phoenix-page .system-profile-module-actions {
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.system-phoenix-page .system-profile-safety-module {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.system-phoenix-page .system-profile-safety-module > span:first-child {
    width: 100%;
}

.system-phoenix-page .system-profile-safety-module .system-row-title,
.system-phoenix-page .system-profile-safety-module .system-row-subtitle {
    overflow-wrap: normal;
}

.system-phoenix-page .system-profile-safety-module .system-profile-module-actions {
    justify-content: flex-start;
}

.system-phoenix-page .system-sop-setting-panel {
    padding: 16px;
    border: 1px solid #e3e7ef;
    border-radius: 8px;
    background: #fbfcfe;
}

.system-phoenix-page .system-sop-setting-panel .form-check-input {
    flex: 0 0 auto;
}

.system-phoenix-page .system-row-title {
    color: #31374a !important;
    font-size: 13.4px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.system-phoenix-page .system-row-title:hover {
    color: #3874ff !important;
    text-decoration: none;
}

.system-phoenix-page .system-row-subtitle {
    margin-top: 3px;
    color: #8a94ad;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.system-phoenix-page .system-empty-state {
    padding: 40px 24px !important;
    text-align: center;
}

.system-phoenix-page .system-users-table {
    min-width: 920px;
}

.system-phoenix-page .system-template-table {
    min-width: 920px;
}

.system-phoenix-page .system-users-table td,
.system-phoenix-page .system-users-table th {
    vertical-align: top;
}

.system-phoenix-page .system-user-avatar {
    flex-shrink: 0;
    background: #edf2f9;
    color: #3874ff;
}

.system-phoenix-page .system-data-table thead a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
}

.system-phoenix-page .system-data-table thead a:hover {
    color: #3874ff;
    text-decoration: none;
}

.system-phoenix-page .system-bulk-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.system-phoenix-page .system-select-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #525b75;
    font-size: 12.8px;
    font-weight: 700;
    user-select: none;
}

.system-phoenix-page .system-pages-table-container {
    scroll-behavior: smooth;
}

.system-phoenix-page .system-pages-table {
    min-width: 1080px;
}

.system-phoenix-page .system-pages-id-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f5f7fa;
    color: #525b75;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.system-phoenix-page .system-pages-slug {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 6px;
    background: #f5f7fa;
    color: #525b75;
    font-size: 12px;
}

.system-phoenix-page .system-pages-table .system-sticky-actions {
    position: sticky;
    right: 0;
    z-index: 4;
    background: #ffffff;
    box-shadow: -1px 0 0 rgba(203, 208, 221, 0.54);
}

.system-phoenix-page .system-pages-table thead .system-sticky-actions {
    z-index: 6;
}

.system-phoenix-page .system-pages-table tbody tr:hover .system-sticky-actions {
    background: rgba(56, 116, 255, 0.025);
}

.system-phoenix-page .system-pages-table tbody tr.page-row-selected > * {
    background: rgba(56, 116, 255, 0.08);
}

.system-phoenix-page .system-pages-table tbody tr.page-row-selected .system-sticky-actions {
    background: rgba(56, 116, 255, 0.11);
}

.system-phoenix-page .system-service-bookings-page .service-bookings-kpi-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    justify-content: space-between;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-kpi-filters {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    flex: 1 1 auto;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-kpi-heading {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a94a6;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-kpi-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-kpi-strip--secondary {
    padding-top: 2px;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-kpi-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid #d7deea;
    border-radius: 999px;
    background: #fff;
    min-height: 30px;
    color: #52607a;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-kpi-pill:hover {
    border-color: #9fb7e5;
    background: #f8fbff;
    color: #31374a;
    text-decoration: none;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-kpi-pill:focus-visible {
    outline: 2px solid #2d6dc4;
    outline-offset: 2px;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-kpi-pill__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-kpi-pill__icon svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-kpi-pill__label {
    font-size: 12.5px;
    font-weight: 700;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-kpi-pill__value {
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-kpi-pill--info {
    color: #2779c4;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-kpi-pill--primary {
    color: #2d6dc4;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-kpi-pill--success {
    color: #2ea84c;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-kpi-pill--warning {
    color: #d9831f;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-kpi-pill--danger {
    color: #d84a4a;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-kpi-pill--muted {
    color: #6c6a7c;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-kpi-pill.is-active {
    border-color: currentColor;
    background: #f8fbff;
    box-shadow: inset 0 0 0 1px currentColor;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-more-toggle {
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-more-toggle.is-active,
.system-phoenix-page .system-service-bookings-page .service-bookings-more-toggle[aria-expanded="true"] {
    border-color: #9fb7e5;
    color: #2d6dc4;
    background: #f8fbff;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-dropdown {
    position: static;
}

.system-phoenix-page .traffic-visits-command-row-controls .service-bookings-nested-filter-dropdown {
    display: flex;
    align-items: center;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-toggle.is-active {
    border-color: #9fb7e5;
    color: #2d6dc4;
    background: #f8fbff;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-menu {
    min-width: 240px;
    padding: 8px;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-menu.show {
    display: flex;
    flex-direction: column;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-menu-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-group {
    position: relative;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    border-radius: 6px;
    font-weight: 600;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-group-toggle.is-active,
.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-group-toggle.has-pending,
.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-group-toggle:hover,
.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-group-toggle:focus {
    background: #f5f7fa;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-group-toggle.has-pending .service-bookings-nested-filter-group-value {
    color: #b45309;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-group-value {
    margin-left: auto;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11.5px;
    font-weight: 600;
    color: #2d6dc4;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-submenu {
    min-width: 220px;
    max-height: 280px;
    overflow-y: auto;
    padding: 8px;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-toggle-all-wrap {
    padding: 2px 10px 8px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 4px;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-toggle-all {
    display: inline-block;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: #2d6dc4;
    cursor: pointer;
    text-decoration: none;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-toggle-all:hover,
.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-toggle-all:focus {
    color: #1f4f96;
    text-decoration: underline;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-choices {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-choice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-choice:hover {
    background: #f5f7fa;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-choice:has(:checked),
.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-choice.is-applied:has(:checked) {
    background: #edf3ff;
    color: #2d6dc4;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-input {
    margin-top: 2px;
    flex-shrink: 0;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-choice-label {
    line-height: 1.35;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-dates-submenu {
    min-width: 260px;
    max-height: none;
    overflow: visible;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-dates-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-dates-section {
    display: flex;
    flex-direction: column;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-dates-heading {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-dates-panel .form-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #4b5563;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-dates-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-dates-preset {
    border: 1px solid #d7dae0;
    background: #f8f9fb;
    color: #4b5563;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    line-height: 1.4;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-dates-preset:hover {
    background: #eef1f6;
}

.system-phoenix-page .nested-filter-scope .service-bookings-nested-filter-dates-preset.is-active {
    background: #3874ff;
    border-color: #3874ff;
    color: #fff;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-table-container {
    scroll-behavior: smooth;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-table {
    min-width: 960px;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-table .sticky-actions {
    position: sticky;
    right: 0;
    z-index: 4;
    background: #ffffff;
    box-shadow: -1px 0 0 rgba(203, 208, 221, 0.54);
}

.system-phoenix-page .system-service-bookings-page .service-bookings-table thead .sticky-actions {
    z-index: 6;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-table tbody tr:hover .sticky-actions {
    background: rgba(56, 116, 255, 0.025);
}

.system-phoenix-page .system-service-bookings-page .service-bookings-table .id-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f5f7fa;
    color: #525b75;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-table td .d-flex.flex-wrap {
    min-width: 0;
    max-width: 100%;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-table td .badge {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.system-phoenix-page .system-service-bookings-page .service-bookings-table .system-row-title {
    overflow-wrap: anywhere;
}

.system-phoenix-page .system-service-bookings-page .pagination {
    margin-bottom: 0;
}

.system-phoenix-page .system-services-page .services-table-container {
    --system-table-max-height: min(58vh, 720px);
    scroll-behavior: smooth;
}

.system-phoenix-page .system-services-page .services-table {
    min-width: 1180px;
}

.system-phoenix-page .system-services-page .services-table th,
.system-phoenix-page .system-services-page .services-table td {
    vertical-align: top;
}

.system-phoenix-page .system-services-page .services-table .sticky-actions {
    position: sticky;
    right: 0;
    z-index: 4;
    background: #ffffff;
    box-shadow: -1px 0 0 rgba(203, 208, 221, 0.54);
}

.system-phoenix-page .system-services-page .services-table thead .sticky-actions {
    z-index: 6;
}

.system-phoenix-page .system-services-page .services-table tbody tr:hover .sticky-actions {
    background: rgba(56, 116, 255, 0.025);
}

.system-phoenix-page .system-services-page .service-list-icon {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
}

.system-phoenix-page .system-services-page .service-list-icon svg {
    width: 22px;
    height: 22px;
}

.system-phoenix-page .system-services-page .service-list-icon__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.system-phoenix-page .system-services-page .service-list-icon--emerald {
    background: #e8f8ef;
    color: #1f9d55;
}

.system-phoenix-page .system-services-page .service-list-icon--violet {
    background: #efeaff;
    color: #7c5fd6;
}

.system-phoenix-page .system-services-page .service-list-icon--rose {
    background: #ffeef3;
    color: #e2557a;
}

.system-phoenix-page .system-services-page .service-list-icon--sky {
    background: #e9f3ff;
    color: #4f7fd6;
}

.system-phoenix-page .system-services-page .service-name-link {
    color: #3874ff !important;
}

.system-phoenix-page .system-services-page .service-name-link:hover {
    color: #2455d6 !important;
}

.system-phoenix-page .system-services-page .service-slug {
    margin-top: 3px;
    color: #8a94ad;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.system-phoenix-page .system-services-page .service-id-value {
    display: inline-block;
    color: #525b75;
    font-size: 12.8px;
    font-weight: 700;
    line-height: 1.2;
}

.system-phoenix-page .system-services-page .service-status-pill,
.system-phoenix-page .system-service-edit-page .service-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
}

.system-phoenix-page .system-services-page .service-status-pill__dot,
.system-phoenix-page .system-service-edit-page .service-status-pill__dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

.system-phoenix-page .system-services-page .service-status-pill--published,
.system-phoenix-page .system-service-edit-page .service-status-pill--published {
    background: #e8f8ef;
    color: #1f9d55;
}

.system-phoenix-page .system-services-page .service-status-pill--draft,
.system-phoenix-page .system-service-edit-page .service-status-pill--draft {
    background: #f1f3f8;
    color: #7b8499;
}

.system-phoenix-page .system-services-page .service-status-pill--archived,
.system-phoenix-page .system-service-edit-page .service-status-pill--archived {
    background: #fff4df;
    color: #b7791f;
}

.system-phoenix-page .system-services-page .service-type-label {
    color: #31374a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.system-phoenix-page .system-services-page .service-fee-value {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 8px;
    background: #f3f0ff;
    color: #6f5ce6;
    font-size: 12.8px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.system-phoenix-page .system-services-page .service-products-count,
.system-phoenix-page .system-service-edit-page .service-products-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 8px;
    background: #e8f4ff;
    color: #2f6fb3;
    font-size: 12.8px;
    font-weight: 800;
    line-height: 1;
}

.system-phoenix-page .system-services-page .service-date-primary {
    color: #31374a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.system-phoenix-page .system-services-page .service-date-secondary {
    margin-top: 3px;
    color: #8a94ad;
    font-size: 12px;
    line-height: 1.45;
}

.system-phoenix-page .system-services-page .service-row-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.system-phoenix-page .system-services-page .service-row-actions .btn svg {
    width: 16px;
    height: 16px;
}

.system-phoenix-page .system-services-page .services-table tbody tr {
    position: relative;
}

.system-phoenix-page .system-services-page .services-table tbody tr:hover {
    z-index: 5;
}

.system-phoenix-page .system-services-page .services-table .sticky-actions .dropdown-menu {
    z-index: 1060;
}

.system-phoenix-page .system-services-page .service-actions-more-toggle::after {
    display: none;
}

.system-phoenix-page .system-services-page .pagination {
    margin-bottom: 0;
}

.system-phoenix-page .system-services-page .system-service-status-confirm-modal .modal-content {
    border-radius: 16px;
    overflow: hidden;
}

.system-phoenix-page .system-services-page .system-service-status-confirm-kicker {
    display: block;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.system-phoenix-page .system-services-page .system-service-status-confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
}

.system-phoenix-page .system-services-page .system-service-status-confirm-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.system-phoenix-page .system-services-page .system-service-status-confirm-icon--warning {
    background: rgba(var(--bs-warning-rgb), 0.12);
    color: var(--bs-warning-text-emphasis, #b45309);
}

.system-phoenix-page .system-services-page .system-service-status-confirm-icon--success {
    background: rgba(var(--bs-success-rgb), 0.12);
    color: var(--bs-success-text-emphasis, #15803d);
}

.system-phoenix-page .system-services-page .system-service-status-confirm-modal .modal-footer .btn svg {
    width: 1rem;
    height: 1rem;
}

.system-phoenix-page .system-settings-page .system-table-meta {
    justify-content: flex-start;
}

.system-phoenix-page .system-settings-sections {
    display: grid;
    gap: 16px;
}

.system-phoenix-page .system-settings-section-card .card-header {
    padding-top: 18px;
    padding-bottom: 18px;
}

.system-phoenix-page .system-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

@media (max-width: 991.98px) {
    .system-phoenix-page .system-service-bookings-page .service-bookings-kpi-strip {
        gap: 5px;
    }

    .system-phoenix-page .system-service-bookings-page .service-bookings-kpi-pill {
        padding: 5px 10px;
    }

    .system-phoenix-page .system-service-bookings-page .service-bookings-kpi-pill__label {
        font-size: 12px;
    }
}

.system-phoenix-page .pcs-sys-service-booking-edit-page {
    min-width: 0;
}

.system-phoenix-page .system-settings-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    min-height: 100%;
    padding: 18px;
    border: 1px solid #dbe8ff;
    border-radius: 14px;
    background: linear-gradient(110deg, #f7fbff 0%, #ffffff 72%);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.system-phoenix-page .system-settings-item:hover {
    color: inherit;
    text-decoration: none;
    border-color: #cbd0dd;
    box-shadow: 0 10px 30px rgba(20, 20, 43, 0.06);
    transform: translateY(-1px);
}

.system-phoenix-page .system-settings-item.is-locked {
    background: #fbfcfe;
}

.system-phoenix-page .system-settings-item-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 13px;
    background: #f0eaff;
    color: #8d62c8;
}
}

.system-phoenix-page .system-settings-item.is-locked .system-settings-item-icon {
    background: #fff3cd;
    color: #a35a00;
}

.system-phoenix-page .system-settings-item-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.system-phoenix-page .system-settings-item-description {
    color: #8a94ad;
    font-size: 12.8px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.system-phoenix-page .system-settings-item-action {
    color: #3874ff;
    font-size: 12.8px;
    font-weight: 700;
    line-height: 1;
}

.system-phoenix-page .system-settings-item.is-locked .system-settings-item-action {
    color: #a35a00;
}

.system-phoenix-page .system-settings-item-button {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.system-phoenix-page .system-settings-item.is-disabled {
    cursor: default;
    opacity: 0.92;
}

.system-phoenix-page .system-settings-item.is-disabled .system-settings-item-button {
    pointer-events: none;
}

.system-phoenix-page .system-utility-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 16px;
    align-items: start;
}

.system-phoenix-page .system-utility-main,
.system-phoenix-page .system-utility-sidebar {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.system-phoenix-page .system-form-section {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #edf2f9;
    border-radius: 12px;
    background: #fbfcfe;
}

.system-phoenix-page .system-form-section-title {
    margin: 0;
    color: #31374a;
    font-size: 14px;
    font-weight: 700;
}

.system-phoenix-page .system-form-section-copy {
    margin: 4px 0 0;
    color: #8a94ad;
    font-size: 12.8px;
    line-height: 1.55;
}

.system-phoenix-page .system-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.system-phoenix-page .system-role-editor-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
}

.system-phoenix-page .system-role-editor-grid .system-utility-sidebar {
    align-self: stretch;
}

.system-phoenix-page .system-role-permission-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #e3e6ed;
    border-radius: 10px;
    background: #ffffff;
}

.system-phoenix-page .system-role-permission-toolbar-count {
    display: block;
    color: #31374a;
    font-size: 13px;
    font-weight: 700;
}

.system-phoenix-page .system-role-permission-search {
    margin-bottom: 14px;
}

.system-phoenix-page .system-role-permission-groups {
    display: grid;
    gap: 14px;
}

.system-phoenix-page .system-role-permission-group {
    overflow: hidden;
    border: 1px solid #e3e6ed;
    border-radius: 12px;
    background: #ffffff;
}

.system-phoenix-page .system-role-permission-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f9;
    background: #f8fafc;
}

.system-phoenix-page .system-role-permission-group.is-collapsed .system-role-permission-group-header {
    border-bottom: 0;
}

.system-phoenix-page .system-role-permission-group-toggle {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
}

.system-phoenix-page .system-role-permission-group-toggle i {
    margin-top: 2px;
    color: #6f7a8a;
    font-size: 17px;
    transition: transform 0.16s ease;
}

.system-phoenix-page .system-role-permission-group.is-collapsed .system-role-permission-group-toggle i {
    transform: rotate(-90deg);
}

.system-phoenix-page .system-role-permission-group-title {
    display: block;
    margin: 0;
    color: #31374a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.system-phoenix-page .system-role-permission-group-meta {
    display: block;
    margin: 4px 0 0;
    color: #8a94ad;
    font-size: 12.5px;
    line-height: 1.4;
}

.system-phoenix-page .system-role-permission-group-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.system-phoenix-page .system-role-permission-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
}

.system-phoenix-page .system-role-permission-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    min-height: 74px;
    padding: 12px;
    border: 1px solid #e3e6ed;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.system-phoenix-page .system-role-permission-option:hover {
    border-color: #adc5ff;
    background: #fbfdff;
}

.system-phoenix-page .system-role-permission-option.is-selected {
    border-color: #3874ff;
    background: #f4f7ff;
    box-shadow: 0 0 0 1px rgba(56, 116, 255, 0.12);
}

.system-phoenix-page .system-role-permission-option .form-check-input {
    margin-top: 2px;
    flex: 0 0 auto;
}

.system-phoenix-page .system-role-permission-option-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.system-phoenix-page .system-role-permission-option-title {
    color: #31374a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.system-phoenix-page .system-role-permission-option-description {
    color: #687385;
    font-size: 12.3px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.system-phoenix-page .system-role-selected-card {
    align-self: start;
    position: sticky;
    top: 110px;
}

.system-phoenix-page .system-role-selected-card .card-header {
    align-items: flex-start;
    gap: 10px;
}

.system-phoenix-page .system-role-selected-list {
    display: grid;
    gap: 10px;
    max-height: min(520px, calc(100vh - 260px));
    overflow-y: auto;
    padding-right: 2px;
}

.system-phoenix-page .system-role-selected-group .system-role-permission-group-header {
    align-items: center;
    padding: 12px 14px;
}

.system-phoenix-page .system-role-selected-group-items {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.system-phoenix-page .system-role-selected-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #d9e8dd;
    border-radius: 10px;
    background: #f7fbf8;
}

.system-phoenix-page .system-role-selected-item > span:first-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.system-phoenix-page .system-role-selected-item strong {
    color: #31374a;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.system-phoenix-page .system-role-selected-item span span {
    color: #6f7a8a;
    font-size: 12px;
}

.system-phoenix-page .system-role-empty-state {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #687385;
    font-size: 12.8px;
    line-height: 1.5;
}

.system-phoenix-page .system-role-empty-state strong {
    color: #31374a;
    font-size: 13px;
}

.system-phoenix-page .system-detail-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.system-phoenix-page .system-detail-list-item {
    display: grid;
    gap: 4px;
}

.system-phoenix-page .system-detail-list-label {
    color: #8a94ad;
    font-size: 10.24px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.system-phoenix-page .system-detail-list-value {
    color: #31374a;
    font-size: 13.4px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.system-phoenix-page .system-detail-list-value.is-muted {
    color: #8a94ad;
    font-weight: 600;
}

.system-phoenix-page .system-helper-card {
    display: grid;
    gap: 12px;
}

.system-phoenix-page .system-helper-card p,
.system-phoenix-page .system-helper-card li {
    color: #525b75;
    font-size: 12.8px;
    line-height: 1.6;
}

.system-phoenix-page .system-helper-list {
    margin: 0;
    padding-left: 18px;
}

.system-phoenix-page .system-helper-list li + li {
    margin-top: 6px;
}

.system-phoenix-page .system-inline-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 33px;
    padding: 10px 12px;
    border: 1px solid #e3e6ed;
    border-radius: 8px;
    background: #ffffff;
}

.system-phoenix-page .system-inline-toggle-card strong {
    display: block;
    color: #31374a;
    font-size: 12.8px;
}

.system-phoenix-page .system-inline-toggle-card span {
    display: block;
    margin-top: 2px;
    color: #8a94ad;
    font-size: 12px;
}

.system-phoenix-page .system-profile-hero {
    display: flex;
    align-items: center;
    gap: 18px;
}

.system-phoenix-page .system-profile-avatar {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, #3874ff, #4f46e5);
    color: #ffffff;
    font-size: 1.85rem;
    font-weight: 800;
    overflow: hidden;
}

.system-phoenix-page .system-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.system-phoenix-page .system-profile-hero-copy {
    min-width: 0;
}

.system-phoenix-page .system-profile-hero-copy h5 {
    margin: 0 0 6px;
    color: #31374a;
    font-size: 1.1rem;
    font-weight: 800;
}

.system-phoenix-page .system-profile-hero-copy p {
    margin: 0;
    color: #8a94ad;
    line-height: 1.55;
}

.system-phoenix-page .system-plugin-table {
    min-width: 860px;
}

.system-phoenix-page .system-menu-editor-page .page-radio-list {
    max-height: 280px;
    overflow-y: auto;
}

.system-phoenix-page .system-menu-editor-page .page-select-field .page-radio-list {
    max-height: 200px;
}

.system-phoenix-page .system-menu-editor-page .page-radio-list .form-check:last-child {
    margin-bottom: 0 !important;
}

.system-phoenix-page .system-menu-item-row {
    margin-left: calc(var(--menu-level, 0) * 20px);
}

.system-phoenix-page .system-menu-item-card {
    border: 1px solid #e3e6ed;
    border-radius: 8px;
    background: #ffffff;
}

.system-phoenix-page .system-menu-item-card.is-nested {
    background: #f8fafc;
}

.system-phoenix-page .system-menu-item-toggle {
    text-decoration: none;
    color: inherit;
}

.system-phoenix-page .system-menu-item-toggle:hover {
    background: rgba(17, 53, 90, 0.02);
}

.system-phoenix-page .system-menu-item-chevron {
    display: inline-flex;
    transition: transform 0.2s ease;
}

.system-phoenix-page .system-menu-item-toggle:not(.collapsed) .system-menu-item-chevron {
    transform: rotate(90deg);
}

.system-phoenix-page .system-menu-move-controls .btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.system-phoenix-page .system-menu-move-controls .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.system-phoenix-page .system-menu-nested-items {
    margin-top: 12px;
    padding-left: 8px;
    border-left: 2px solid #e3e6ed;
}

.system-hub-changelog-modal .modal-dialog {
    max-width: min(720px, calc(100vw - 32px));
}

.system-hub-changelog-modal .modal-content {
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
    overflow: hidden;
}

.system-hub-changelog-modal .modal-body {
    padding: 32px 32px 24px;
}

.system-hub-changelog-modal .modal-footer {
    align-items: center;
    gap: 10px;
    padding: 18px 32px 28px;
    border-top: 1px solid #e2e8f0;
}

.system-hub-changelog-modal .modal-footer .btn {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
}

.system-hub-changelog-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
}

.system-hub-changelog-modal__close:hover,
.system-hub-changelog-modal__close:focus-visible {
    color: #0f172a;
    border-color: #bfdbfe;
    outline: none;
}

.system-hub-changelog-modal__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.system-hub-changelog-modal__date {
    margin-bottom: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.system-hub-changelog-modal__title {
    max-width: calc(100% - 48px);
    margin: 0;
    color: #0f172a;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.system-hub-changelog-modal__media {
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.system-hub-changelog-modal__media img,
.system-hub-changelog-modal__media video,
.system-hub-changelog-modal__media iframe {
    display: block;
    width: 100%;
    max-height: 320px;
    border: 0;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.system-hub-changelog-modal__content {
    margin-top: 20px;
    color: #334155;
    font-size: 15px;
    line-height: 1.7;
}

.system-hub-changelog-modal__content :where(p, ul, ol, blockquote, pre) {
    margin-bottom: 12px;
}

.system-hub-changelog-modal__content :where(p, ul, ol, blockquote, pre):last-child {
    margin-bottom: 0;
}

.system-hub-changelog-modal__content a {
    color: #1d4ed8;
    font-weight: 700;
}

.system-hub-changelog-modal__content code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #eef2ff;
    color: #3730a3;
}

@media (max-width: 640px) {
    .system-hub-changelog-modal .modal-body {
        padding: 28px 20px 20px;
    }

    .system-hub-changelog-modal .modal-footer {
        align-items: stretch;
        flex-direction: column;
        padding: 16px 20px 22px;
    }

    .system-hub-changelog-modal .modal-footer .btn {
        width: 100%;
    }

    .system-hub-changelog-modal__title {
        max-width: 100%;
        padding-right: 42px;
        font-size: 23px;
    }
}

@media (max-width: 760px) {
    .system-phoenix-page .page-title {
        font-size: 1.5rem;
    }

    .system-phoenix-page .card-header,
    .system-phoenix-page .card-body,
    .system-phoenix-page .card-footer {
        padding: 14px;
    }

    .system-phoenix-page .table thead th:first-child,
    .system-phoenix-page .table tbody td:first-child {
        padding-left: 12px;
    }

    .system-phoenix-page .table thead th:last-child,
    .system-phoenix-page .table tbody td:last-child {
        padding-right: 12px;
    }

    .system-phoenix-page .system-list-summary,
    .system-phoenix-page .system-table-meta,
    .system-phoenix-page .system-list-toolbar {
        width: 100%;
    }

    .system-phoenix-page .system-bulk-toolbar {
        justify-content: flex-start;
    }

    .system-phoenix-page .system-list-toolbar .btn {
        flex: 1 1 auto;
    }

    .system-phoenix-page .system-settings-grid {
        grid-template-columns: 1fr;
    }

    .system-phoenix-page .system-utility-grid {
        grid-template-columns: 1fr;
    }

    .system-phoenix-page .system-role-permission-toolbar,
    .system-phoenix-page .system-role-permission-group-header {
        align-items: stretch;
        flex-direction: column;
    }

    .system-phoenix-page .system-role-permission-group-actions {
        justify-content: flex-start;
    }

    .system-phoenix-page .system-role-permission-options {
        grid-template-columns: 1fr;
    }

    .system-phoenix-page .system-role-selected-card {
        position: static;
    }

    .system-phoenix-page .system-profile-hero {
        align-items: flex-start;
    }
}
.service-edit-header {
    margin-bottom: .35rem;
    padding-bottom: 0;
}

.service-edit-header__main {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: space-between;
}

.service-edit-header__identity-col {
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    gap: .85rem;
    min-width: 0;
}

.service-edit-header__back {
    align-items: center;
    color: #52627a;
    display: inline-flex;
    font-size: .9rem;
    font-weight: 600;
    gap: .4rem;
    text-decoration: none;
    width: fit-content;
}

.service-edit-header__back:hover { color: var(--pcs-primary-600); }

.service-edit-header__identity {
    align-items: center;
    display: flex;
    gap: .95rem;
    min-width: 0;
}

.service-edit-header__thumb {
    align-items: center;
    background: var(--pcs-primary-tint);
    border-radius: var(--pcs-radius-lg);
    box-shadow: none;
    color: var(--pcs-primary-700);
    display: inline-flex;
    flex: 0 0 52px;
    height: 52px;
    justify-content: center;
    overflow: hidden;
    width: 52px;
}

.service-edit-header__thumb-img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.service-edit-header__thumb-fallback {
    align-items: center;
    display: inline-flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.service-edit-header__thumb-fallback svg { height: 22px; width: 22px; }

.service-edit-header__copy { min-width: 0; }

.service-edit-header__kicker-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .2rem;
}

.service-edit-header__kicker {
    color: var(--pcs-primary-500);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.service-edit-header__status {
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: .28rem .65rem;
    text-transform: capitalize;
}

.service-edit-header__title {
    color: #1e293b;
    display: block;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: .25rem;
}

.service-edit-header__meta {
    align-items: center;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    font-size: .8rem;
    gap: .45rem;
}

.service-edit-header__actions-col {
    align-items: flex-end;
    display: flex;
    flex: 1 1 420px;
    flex-direction: column;
    gap: .85rem;
    justify-content: flex-start;
    min-width: 0;
}

.service-edit-header__toolbar {
    width: 100%;
}

.service-edit-tabs {
    align-items: flex-end;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: .15rem;
    justify-content: flex-end;
    width: 100%;
}

.service-edit-tab {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #72809a;
    display: inline-flex;
    flex-direction: column;
    font-size: .78rem;
    font-weight: 700;
    gap: .35rem;
    margin-bottom: -1px;
    min-width: 74px;
    padding: .55rem .85rem .7rem;
}

.service-edit-tab:hover {
    color: var(--pcs-primary-700);
}

.service-edit-tab__icon {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.service-edit-tab__icon svg { height: 18px; width: 18px; }

.service-edit-tab__icon.is-purple { background: var(--pcs-primary-tint); color: var(--pcs-primary-700); }
.service-edit-tab__icon.is-blue { background: #eaf3ff; color: #2477d4; }
.service-edit-tab__icon.is-green { background: #eaf9ef; color: #22a447; }
.service-edit-tab__icon.is-amber { background: #fff5df; color: #d69a08; }
.service-edit-tab__icon.is-slate { background: #f1f5f9; color: #64748b; }

.service-edit-tab.is-active .service-edit-tab__icon { color: inherit; }

.service-edit-tab[data-service-workspace-tab="details"].is-active {
    border-bottom-color: var(--pcs-primary-500);
    color: var(--pcs-primary-700);
}

.service-edit-tab[data-service-workspace-tab="products"].is-active {
    border-bottom-color: #2477d4;
    color: #1e5fa8;
}

.service-edit-tab[data-service-workspace-tab="pricing"].is-active {
    border-bottom-color: #22a447;
    color: #178a39;
}

.service-edit-tab[data-service-workspace-tab="scheduling"].is-active {
    border-bottom-color: #d69a08;
    color: #b07d06;
}

.service-edit-tab[data-service-workspace-tab="advanced"].is-active {
    border-bottom-color: #64748b;
    color: #475569;
}

.system-phoenix-page .system-service-edit-page .service-entity-subtabs {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: .75rem .85rem .65rem;
}

.system-phoenix-page .system-service-edit-page .service-entity-subtabs__context {
    align-items: baseline;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    font-size: .72rem;
    gap: .35rem;
    letter-spacing: .02em;
    margin-bottom: .55rem;
    text-transform: uppercase;
}

.system-phoenix-page .system-service-edit-page .service-entity-subtabs__context-label {
    color: #94a3b8;
    font-weight: 700;
}

.system-phoenix-page .system-service-edit-page .service-entity-subtabs__context-sep {
    color: #cbd5e1;
    font-weight: 400;
    text-transform: none;
}

.system-phoenix-page .system-service-edit-page .service-entity-subtabs__context-name {
    color: #475569;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.system-phoenix-page .system-service-edit-page .service-entity-subtabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}

.system-phoenix-page .system-service-edit-page .service-entity-subtabs__tab {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #64748b;
    display: inline-flex;
    font-size: .74rem;
    font-weight: 600;
    gap: .35rem;
    line-height: 1.2;
    padding: .35rem .65rem;
}

.system-phoenix-page .system-service-edit-page .service-entity-subtabs__tab:hover {
    background: #fff;
    border-color: #e2e8f0;
    color: #334155;
}

.system-phoenix-page .system-service-edit-page .service-entity-subtabs__tab.is-active {
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
    color: #1e293b;
}

.system-phoenix-page .system-service-edit-page .service-entity-subtabs__tab-icon {
    align-items: center;
    border-radius: 7px;
    display: inline-flex;
    flex: 0 0 20px;
    height: 20px;
    justify-content: center;
    width: 20px;
}

.system-phoenix-page .system-service-edit-page .service-entity-subtabs__tab-icon svg {
    height: 12px;
    width: 12px;
}

.system-phoenix-page .system-service-edit-page .service-entity-subtabs__tab-icon.is-purple { background: var(--pcs-primary-tint); color: var(--pcs-primary-700); }
.system-phoenix-page .system-service-edit-page .service-entity-subtabs__tab-icon.is-blue { background: #eaf3ff; color: #2477d4; }
.system-phoenix-page .system-service-edit-page .service-entity-subtabs__tab-icon.is-green { background: #eaf9ef; color: #22a447; }
.system-phoenix-page .system-service-edit-page .service-entity-subtabs__tab-icon.is-amber { background: #fff5df; color: #d69a08; }

.system-phoenix-page .system-service-edit-page .service-entity-subtabs__panes {
    margin-top: .15rem;
}

.system-phoenix-page .system-service-edit-page .service-entity-subtabs__pane {
    display: none;
}

.system-phoenix-page .system-service-edit-page .service-entity-subtabs__pane.is-active {
    display: block;
}

.service-edit-details-card__header {
    align-items: flex-start;
    display: flex;
    gap: .9rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.service-edit-details-card__lead {
    align-items: flex-start;
    display: flex;
    gap: .85rem;
    min-width: 0;
}

.service-edit-details-card__icon {
    align-items: center;
    border-radius: 12px;
    display: inline-flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.service-edit-details-card__icon svg { height: 20px; width: 20px; }
.service-edit-details-card__icon.is-purple { background: var(--pcs-primary-tint); color: var(--pcs-primary-700); }
.service-edit-details-card__icon.is-green { background: #eaf9ef; color: #22a447; }
.service-edit-details-card__icon.is-blue { background: #eaf3ff; color: #2477d4; }
.service-edit-details-card__icon.is-amber { background: #fff5df; color: #d69a08; }

.service-edit-details-card__title {
    color: #1e293b;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: .15rem;
}

.service-edit-details-card__copy {
    color: #72809a;
    display: block;
    font-size: .84rem;
}

.service-edit-details-card__collapse {
    align-items: center;
    background: var(--pcs-bg-surface);
    border: 1px solid #dfe6f0;
    border-radius: var(--pcs-radius-sm);
    color: var(--pcs-primary-700);
    display: inline-flex;
    flex-shrink: 0;
    font-size: .82rem;
    font-weight: 700;
    gap: .35rem;
    padding: .55rem .8rem;
}

.service-edit-details-card.is-collapsed .service-edit-details-card__body { display: none; }

.service-edit-details-card.is-collapsed .service-edit-details-card__collapse svg {
    transform: rotate(180deg);
}

@media (max-width: 991.98px) {
    .service-edit-header__actions-col,
    .service-edit-header__identity-col {
        flex-basis: 100%;
    }

    .service-edit-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: .15rem;
    }

    .service-edit-tab {
        flex: 0 0 auto;
    }
}

.service-workspace-tab > span {
    align-items: center;
    background: #eef4ff;
    border-radius: 999px;
    color: #3978d4;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 800;
    height: 1.45rem;
    justify-content: center;
    margin-right: .35rem;
    width: 1.45rem;
}

.service-workspace-tab.is-active > span {
    background: #3978d4;
    color: #fff;
}

.service-product-simple-choices { display: grid; gap: .65rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.service-product-simple-choices .form-check { background: #f8fafc; border: 1px solid #e5eaf1; border-radius: 10px; padding: .7rem .8rem .7rem 2.15rem; }
.service-main-details-group .card { border: 0; box-shadow: none; }
.service-main-details-group .card-body { padding: .35rem; }
.service-main-details-group > summary { align-items: center; gap: .85rem; }
.service-main-details-group:not([open]) > summary { background: #f8fafc; }
.service-main-details-group[open] > summary { background: #f8fafc; }
.service-main-details-group__lead { align-items: center; display: flex; flex: 1; gap: .9rem; min-width: 0; }
.service-main-details-group__identity { min-width: 0; }
.service-main-details-group > summary .service-summary-kicker {
    color: #6b7280;
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: .12rem;
    text-transform: uppercase;
}
.service-main-details-group > summary strong {
    color: #1e293b;
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: .2rem;
}
.service-main-details-group__meta {
    align-items: center;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    font-size: .78rem;
    gap: .45rem;
}
.service-main-details-group__thumb {
    flex: 0 0 46px;
    height: 46px;
    overflow: hidden;
    padding: 0;
}
.service-main-details-group__thumb-img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}
.service-main-details-group__thumb-fallback {
    align-items: center;
    display: inline-flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}
.service-main-details-group__thumb-fallback svg { height: 22px; width: 22px; }
.service-main-details-group .summary-status-badge {
    border-radius: 999px;
    flex-shrink: 0;
    font-weight: 700;
    letter-spacing: .02em;
    margin-left: auto;
    margin-right: .2rem;
    padding: .45rem .9rem;
    text-transform: capitalize;
}
.service-main-details-group .service-id-badge {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 700;
    letter-spacing: .01em;
}
.service-main-details-group .service-summary-icon {
    align-items: center;
    background: linear-gradient(135deg, #e8f0fe, #f2f7ff);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
    color: #1a56db;
    display: inline-flex;
    justify-content: center;
}

@media (max-width: 575.98px) {
    .service-product-simple-choices { grid-template-columns: 1fr; }
    .service-main-details-group__thumb { flex-basis: 40px; height: 40px; }
    .service-main-details-group > summary strong { font-size: 1.02rem; }
    .service-main-details-group .summary-status-badge { padding: .35rem .7rem; }
    .service-workspace-settings-card .service-settings-tab-shell.is-advanced-pane .service-settings-tab-nav { grid-template-columns: 1fr; }
}

/* ── Service edit page (scoped brand) ── */

/* Modest horizontal breathing room reduction on large screens only. */
@media (min-width: 992px) {
    .system-phoenix-page:has(.system-service-edit-page) {
        padding-left: 28px;
        padding-right: 28px;
    }
}

@media (min-width: 1200px) {
    .system-phoenix-page:has(.system-service-edit-page) {
        padding-left: 24px;
        padding-right: 24px;
    }

    .system-phoenix-page .container-xl.system-service-edit-page {
        max-width: 1360px;
    }
}

.system-phoenix-page .system-service-edit-page .btn-primary {
    border-color: var(--pcs-primary-500);
    background: var(--pcs-primary-500);
    color: #ffffff;
}

.system-phoenix-page .system-service-edit-page .btn-primary:hover,
.system-phoenix-page .system-service-edit-page .btn-primary:focus {
    border-color: var(--pcs-primary-600);
    background: var(--pcs-primary-600);
    color: #ffffff;
}

.system-phoenix-page .system-service-edit-page .btn-link:hover,
.system-phoenix-page .system-service-edit-page .btn-link:focus {
    color: var(--pcs-primary-500);
}

/* Inline text links (helper copy, banners) — purple, per design tokens */
.system-phoenix-page .system-service-edit-page a:not(.btn):not(.dropdown-item):not(.page-link):not(.nav-link):not(.service-edit-header__back) {
    color: var(--pcs-primary-500);
}

.system-phoenix-page .system-service-edit-page a:not(.btn):not(.dropdown-item):not(.page-link):not(.nav-link):not(.service-edit-header__back):hover {
    color: var(--pcs-primary-600);
}

.system-phoenix-page .system-service-edit-page .form-control:focus,
.system-phoenix-page .system-service-edit-page .form-select:focus {
    border-color: var(--pcs-primary-500);
    box-shadow: 0 0 0 0.2rem rgba(111, 92, 230, 0.12);
}

.system-phoenix-page .system-service-edit-page .form-check-input:checked {
    background-color: var(--pcs-primary-500);
    border-color: var(--pcs-primary-500);
}

.system-phoenix-page .system-service-edit-page .form-check-input:focus {
    border-color: var(--pcs-primary-300);
    box-shadow: 0 0 0 0.2rem rgba(111, 92, 230, 0.12);
}

.system-phoenix-page .system-service-edit-page .badge {
    border-radius: var(--pcs-radius-pill);
}

.system-phoenix-page .system-service-edit-page .badge.bg-primary,
.system-phoenix-page .system-service-edit-page .service-product-option-default-badge {
    background: var(--pcs-primary-100) !important;
    color: var(--pcs-primary-700) !important;
}

.system-phoenix-page .system-service-edit-page .service-id-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: var(--pcs-radius-pill);
    background: #f1f5f9;
    border: 1px solid var(--pcs-border);
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.system-phoenix-page .system-service-edit-page .service-product-row-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.system-phoenix-page .system-service-edit-page .service-product-row-actions .btn svg {
    width: 16px;
    height: 16px;
}

.system-phoenix-page .system-service-edit-page .service-product-row-more-toggle::after {
    display: none;
}

.system-phoenix-page .system-service-edit-page .service-image-preview {
    min-width: 220px;
    max-width: 260px;
    border: 1px solid var(--pcs-border);
    border-radius: var(--pcs-radius-lg);
    background: var(--pcs-bg-surface);
    box-shadow: none;
    padding: 0.75rem;
}

.system-phoenix-page .system-service-edit-page .service-image-preview .preview-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    background: var(--pcs-primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px dashed var(--pcs-border-input);
}

.system-phoenix-page .system-service-edit-page .service-image-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--pcs-bg-surface);
}

.system-phoenix-page .system-service-edit-page .service-image-placeholder {
    color: var(--pcs-text-muted);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.system-phoenix-page .system-service-edit-page .service-products-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid var(--pcs-border);
    border-radius: var(--pcs-radius-md);
    background: var(--pcs-bg-surface);
    box-shadow: none;
}

.system-phoenix-page .system-service-edit-page .service-products-table tbody tr {
    position: relative;
}

.system-phoenix-page .system-service-edit-page .service-products-table tbody tr:has(.dropdown.show),
.system-phoenix-page .system-service-edit-page .service-products-table tbody tr:hover {
    z-index: 5;
}

.system-phoenix-page .system-service-edit-page .service-product-row-actions .dropdown-menu {
    z-index: 1060;
}

.system-phoenix-page .system-service-edit-page .service-products-table {
    margin-bottom: 0;
}

.system-phoenix-page .system-service-edit-page .service-products-table thead th {
    background: #f8fafc;
    border-bottom-width: 1px;
    white-space: nowrap;
    padding: 0.85rem 1rem;
}

.system-phoenix-page .system-service-edit-page .service-products-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

/* Drilldown hides Image + Options columns; Name is 2nd cell and needs the table edge inset */
.system-phoenix-page .system-service-edit-page .service-products-table.is-drilldown thead th:nth-child(2),
.system-phoenix-page .system-service-edit-page .service-products-table.is-drilldown [data-service-product-option-row] td:nth-child(2) {
    padding-left: 1rem;
}

.system-phoenix-page .system-service-edit-page .service-products-table:not(.is-drilldown) tbody tr:nth-child(odd of [data-service-product-row]) > * {
    background-color: #f8fafc;
}

.system-phoenix-page .system-service-edit-page .service-products-table:not(.is-drilldown) tbody tr:nth-child(even of [data-service-product-row]) > * {
    background-color: var(--pcs-bg-surface, #ffffff);
}

.system-phoenix-page .system-service-edit-page .service-products-table.is-drilldown tbody tr:nth-child(odd of [data-service-product-option-row]:not(.d-none)) > * {
    background-color: #f8fafc;
}

.system-phoenix-page .system-service-edit-page .service-products-table.is-drilldown tbody tr:nth-child(even of [data-service-product-option-row]:not(.d-none)) > * {
    background-color: var(--pcs-bg-surface, #ffffff);
}

.system-phoenix-page .system-service-edit-page .service-product-options-table tbody tr:nth-child(odd of [data-service-product-option-row]) > * {
    background-color: #f8fafc;
}

.system-phoenix-page .system-service-edit-page .service-product-options-table tbody tr:nth-child(even of [data-service-product-option-row]) > * {
    background-color: var(--pcs-bg-surface, #ffffff);
}

.system-phoenix-page .system-service-edit-page .service-product-options-table .service-variation-name {
    padding-left: 0;
}

.system-phoenix-page .system-service-edit-page .service-product-options-table__order-col {
    width: 3rem;
}

.system-phoenix-page .system-service-edit-page .service-product-thumb-cell {
    width: 88px;
}

.system-phoenix-page .system-service-edit-page .service-product-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--pcs-radius-lg);
    overflow: hidden;
    border: 1px solid var(--pcs-border);
    background: var(--pcs-primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.system-phoenix-page .system-service-edit-page .service-product-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--pcs-bg-surface);
    display: block;
}

.system-phoenix-page .system-service-edit-page .service-product-thumb-placeholder {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--pcs-text-muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.system-phoenix-page .system-service-edit-page .service-product-name-cell {
    min-width: 220px;
}

.system-phoenix-page .system-service-edit-page .service-product-name-meta {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.system-phoenix-page .system-service-edit-page .service-products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

.system-phoenix-page .system-service-edit-page .service-products-toolbar form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.system-phoenix-page .system-service-edit-page .service-products-toolbar .service-products-filter-form {
    width: 100%;
    justify-content: space-between;
}

.system-phoenix-page .system-service-edit-page .service-products-filter-fields {
    display: flex;
    align-items: end;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1 1 560px;
}

.system-phoenix-page .system-service-edit-page .service-products-filter-actions {
    display: flex;
    align-items: end;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.system-phoenix-page .system-service-edit-page .service-products-filter-field {
    min-width: 120px;
    flex: 0 0 auto;
}

.system-phoenix-page .system-service-edit-page .service-products-filter-field.is-search {
    min-width: 200px;
    max-width: 280px;
    flex: 0 1 240px;
}

.system-phoenix-page .system-service-edit-page .service-products-toolbar .form-select {
    min-width: 88px;
}

.system-phoenix-page .system-service-edit-page .service-products-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.system-phoenix-page .system-service-edit-page .service-products-pagination .pagination {
    margin-bottom: 0;
}

.system-phoenix-page .system-service-edit-page .page-item.active .page-link {
    background: var(--pcs-primary-500);
    color: #ffffff;
}

.system-phoenix-page .system-service-edit-page .service-variation-name {
    padding-left: 1.5rem;
    color: #475569;
}

.system-phoenix-page .system-service-edit-page .service-products-table.is-drilldown .service-variation-name {
    padding-left: 0;
}

.system-phoenix-page .system-service-edit-page .service-save-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.system-phoenix-page .system-service-edit-page .service-save-toolbar-status {
    font-size: 0.8rem;
    color: #64748b;
}

.system-phoenix-page .system-service-edit-page .service-save-all-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.system-phoenix-page .system-service-edit-page .service-form-state-badge {
    display: none;
    align-items: center;
    border-radius: var(--pcs-radius-pill);
    padding: 0.2rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: var(--pcs-warning-bg);
    color: #92400e;
    border: 1px solid #fcd34d;
    white-space: nowrap;
}

.system-phoenix-page .system-service-edit-page .service-form-state-badge.is-visible {
    display: inline-flex;
}

.system-phoenix-page .system-service-edit-page .service-settings-card {
    overflow: hidden;
}

.system-phoenix-page .system-service-edit-page .service-settings-header {
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid #d8e2ef;
}

.system-phoenix-page .system-service-edit-page .service-settings-tab-shell {
    display: grid;
    grid-template-columns: minmax(220px, 30%) minmax(0, 1fr);
    min-height: 480px;
}

.system-phoenix-page .system-service-edit-page .service-settings-tab-nav {
    border-right: 1px solid #d8e2ef;
    background: #f8fafc;
}

.system-phoenix-page .system-service-edit-page .service-settings-tab-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 64px;
    padding: 1rem 1.25rem;
    border: 0;
    border-bottom: 1px solid #d8e2ef;
    border-radius: 0;
    background: transparent;
    color: #526476;
    font-weight: 600;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.system-phoenix-page .system-service-edit-page .service-settings-tab-link:hover,
.system-phoenix-page .system-service-edit-page .service-settings-tab-link:focus {
    background: var(--pcs-bg-surface);
    color: #111827;
}

.system-phoenix-page .system-service-edit-page .service-settings-tab-link.active {
    background: var(--pcs-bg-surface);
    color: #111827;
    font-weight: 700;
}

.system-phoenix-page .system-service-edit-page .service-settings-tab-link.active::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -1px;
    width: 14px;
    height: 14px;
    background: var(--pcs-bg-surface);
    border-right: 1px solid #d8e2ef;
    border-bottom: 1px solid #d8e2ef;
    transform: translate(50%, -50%) rotate(-45deg);
}

.system-phoenix-page .system-service-edit-page .service-settings-tab-content {
    min-width: 0;
    background: var(--pcs-bg-surface);
}

.system-phoenix-page .system-service-edit-page .service-settings-pane-body {
    padding: 1.5rem;
    max-height: 640px;
    overflow-y: auto;
}

.system-phoenix-page .system-service-edit-page .service-basic-sidecard {
    height: 100%;
}

.system-phoenix-page .system-service-edit-page .service-basic-sidecard .service-image-preview {
    min-width: 100%;
    max-width: 100%;
}

.system-phoenix-page .system-service-edit-page .service-settings-save-row {
    position: sticky;
    bottom: -1.5rem;
    margin: 1rem -1.5rem -1.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--pcs-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), #ffffff 35%);
    z-index: 5;
}

.system-phoenix-page .system-service-edit-page .product-row td {
    border-top: 2px solid #e2e8f0;
}

.system-phoenix-page .system-service-edit-page .service-product-draft-row td {
    background-color: #fffbeb !important;
    border-top: 2px solid #fcd34d;
}

.system-phoenix-page .system-service-edit-page .service-product-option-draft-row td {
    background-color: #fffbeb !important;
    border-top: 1px dashed #fcd34d;
}

.system-phoenix-page .system-service-edit-page .service-product-inline-edit-row td {
    background-color: var(--pcs-primary-50) !important;
    border-top: 2px solid var(--pcs-primary-300);
}

.system-phoenix-page .system-service-edit-page .service-product-option-row-drop-target {
    outline: 2px dashed var(--pcs-primary-500);
    outline-offset: -2px;
}

.system-phoenix-page .system-service-edit-page .service-entity-back-nav {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--pcs-primary-200, #d8d2f4);
    border-radius: 999px;
    color: var(--pcs-primary-700, #5b4cc4);
    display: inline-flex;
    flex-shrink: 0;
    font-size: .8125rem;
    font-weight: 600;
    gap: .35rem;
    line-height: 1.25;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    padding: .35rem .8rem;
    text-align: left;
    text-decoration: none;
    text-overflow: ellipsis;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}

.system-phoenix-page .system-service-edit-page .service-entity-back-nav:hover,
.system-phoenix-page .system-service-edit-page .service-entity-back-nav:focus-visible {
    background: var(--pcs-primary-50, #f4f2fd);
    border-color: var(--pcs-primary-300, #c4baf0);
    box-shadow: 0 0 0 3px rgba(111, 92, 230, 0.08);
    color: var(--pcs-primary-800, #4a3db0);
    outline: none;
    text-decoration: none;
}

.system-phoenix-page .system-service-edit-page .service-entity-back-nav svg {
    flex-shrink: 0;
    height: 13px;
    width: 13px;
}

.system-phoenix-page .system-service-edit-page .service-edit-drilldown-header__main {
    align-items: flex-start;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: .45rem;
    min-width: 0;
}

.system-phoenix-page .system-service-edit-page .service-edit-breadcrumb {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: .35rem .45rem;
    min-width: 0;
}

.system-phoenix-page .system-service-edit-page .service-edit-breadcrumb__sep {
    color: #94a3b8;
    flex-shrink: 0;
    font-size: .95rem;
    font-weight: 500;
    line-height: 1;
    user-select: none;
}

.system-phoenix-page .system-service-edit-page .service-edit-breadcrumb__link {
    background: none;
    border: 0;
    color: var(--pcs-primary-600);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
    text-align: left;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-phoenix-page .system-service-edit-page .service-edit-breadcrumb__link:hover,
.system-phoenix-page .system-service-edit-page .service-edit-breadcrumb__link:focus-visible {
    color: var(--pcs-primary-700);
    outline: none;
    text-decoration: underline;
    text-underline-offset: .12rem;
}

.system-phoenix-page .system-service-edit-page .service-edit-breadcrumb__current {
    color: #1e293b;
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-phoenix-page .system-service-edit-page .card-header.service-edit-drilldown-header {
    align-items: flex-start;
    border-bottom: 1px solid #e5ebf3;
    padding-bottom: .85rem;
    padding-top: .85rem;
}


.system-phoenix-page .system-service-edit-page .service-workspace-settings-card .service-settings-tab-shell.is-advanced-pane .service-settings-tab-link.active {
    border-color: var(--pcs-primary-300);
    box-shadow: 0 0 0 3px rgba(111, 92, 230, 0.09);
    color: var(--pcs-primary-600);
}

.system-phoenix-page .system-service-edit-page .service-workspace-settings-card .service-settings-tab-shell.is-advanced-pane .service-settings-tab-link > svg {
    background: var(--pcs-info-bg);
    border-radius: 10px;
    box-sizing: content-box;
    color: var(--pcs-info);
    height: 20px;
    padding: .55rem;
    width: 20px;
}

.system-phoenix-page .system-service-edit-page .service-workspace-settings-card .service-settings-tab-shell.is-advanced-pane .service-settings-tab-link:nth-child(4) > svg {
    background: var(--pcs-primary-tint);
    color: var(--pcs-primary-700);
}

.system-phoenix-page .system-service-edit-page .rte-preview:hover {
    border-color: var(--pcs-primary-500) !important;
    box-shadow: 0 0 0 4px rgba(111, 92, 230, 0.1);
}

.system-phoenix-page .system-service-edit-page .system-service-delete-confirm-modal .modal-content {
    border-radius: var(--pcs-radius-xl);
    overflow: hidden;
}

.system-phoenix-page .system-service-edit-page .system-service-delete-confirm-kicker {
    display: block;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.system-phoenix-page .system-service-edit-page .system-service-delete-confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--pcs-radius-pill);
    background: var(--pcs-danger-bg);
    color: var(--pcs-danger);
}

.system-phoenix-page .system-service-edit-page .system-service-delete-confirm-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.system-phoenix-page .system-service-edit-page .system-service-delete-confirm-modal .modal-footer .btn svg {
    width: 1rem;
    height: 1rem;
}

.system-phoenix-page .system-service-edit-page .service-product-inline-field {
    cursor: pointer;
}

.system-phoenix-page .system-service-edit-page .service-product-inline-field:hover [data-service-product-inline-display] {
    text-decoration: underline;
}

.system-phoenix-page .system-service-edit-page .service-product-draft-actions,
.system-phoenix-page .system-service-edit-page .service-product-inline-actions,
.system-phoenix-page .system-service-edit-page .service-product-option-inline-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.system-phoenix-page .system-service-edit-page .service-product-inline-feedback.is-saving {
    color: #64748b !important;
}

.system-phoenix-page .system-service-edit-page .service-product-inline-feedback.is-saved {
    color: #15803d !important;
}

.system-phoenix-page .system-service-edit-page .service-product-inline-feedback.is-error {
    color: #b91c1c !important;
}

.system-phoenix-page .system-service-edit-page .service-products-table tbody tr.d-none {
    display: none;
}

.system-phoenix-page .system-service-edit-page .service-edit-drilldown-kicker {
    color: #7b889d;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: .15rem;
    text-transform: uppercase;
}

.system-phoenix-page .system-service-edit-page .service-edit-drilldown-heading h5 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.system-phoenix-page .system-service-edit-page .service-product-advanced-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.system-phoenix-page .system-service-edit-page .service-product-advanced-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.system-phoenix-page .system-service-edit-page .service-product-advanced-section-title {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.system-phoenix-page .system-service-edit-page .service-entity-edit-card {
    border: 1px solid #e3e6ed;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.system-phoenix-page .system-service-edit-page .service-entity-edit-card__body {
    padding: 16px;
}

.system-phoenix-page .system-service-edit-page .service-entity-edit-card .service-entity-subtabs {
    margin-bottom: 1rem;
}

.system-phoenix-page .system-service-edit-page .service-entity-edit-card .service-entity-subtabs__panes {
    margin-top: 0;
}

.system-phoenix-page .system-service-edit-page .service-product-inline-editor__body {
    max-width: none;
    width: 100%;
    margin: 0;
}

.system-phoenix-page .system-service-edit-page .service-edit-drilldown-header {
    margin-bottom: 1rem;
}

.system-phoenix-page .system-service-edit-page .card-body > .service-edit-drilldown-header {
    margin: -.25rem -.25rem 1rem;
}

.system-phoenix-page .system-service-edit-page .service-edit-drilldown-header__top {
    margin-bottom: 0.5rem;
}

.system-phoenix-page .system-service-edit-page .service-product-inline-editor__footer {
    border-top: 1px solid #e3e6ed;
    margin-top: 0;
    padding: 12px 16px;
}

.system-phoenix-page .system-service-edit-page .service-product-inline-editor .service-edit-breadcrumb__current {
    font-weight: 600;
}

.system-phoenix-page .system-service-edit-page .service-products-table.is-drilldown thead th:first-child,
.system-phoenix-page .system-service-edit-page .service-products-table.is-drilldown thead th:nth-child(4),
.system-phoenix-page .system-service-edit-page .service-products-table.is-drilldown [data-service-product-option-row] td:first-child,
.system-phoenix-page .system-service-edit-page .service-products-table.is-drilldown [data-service-product-option-row] td:nth-child(4) {
    display: none;
}

.system-phoenix-page .system-service-edit-page .service-workspace-settings-card .service-settings-tab-shell.is-simple-pane {
    display: block;
    min-height: 0;
}

.system-phoenix-page .system-service-edit-page .service-workspace-settings-card .service-settings-tab-shell.is-simple-pane .service-settings-tab-nav {
    display: none;
}

.system-phoenix-page .system-service-edit-page .service-workspace-settings-card .service-settings-tab-shell.is-simple-pane .service-settings-pane-body {
    max-height: none;
    overflow: visible;
}

.system-phoenix-page .system-service-edit-page .service-workspace-settings-card .service-settings-tab-shell.is-simple-pane .service-settings-save-row {
    position: static;
    bottom: auto;
    margin: 1rem 0 0;
    padding: 1rem 0 0;
}

.system-phoenix-page .system-service-edit-page .service-workspace-settings-card .service-settings-tab-shell.is-advanced-pane {
    display: block;
    min-height: 0;
}

.system-phoenix-page .system-service-edit-page .service-workspace-settings-card .service-settings-tab-shell.is-advanced-pane .service-settings-tab-nav {
    background: var(--pcs-primary-50);
    border: 0;
    border-bottom: 1px solid #dfe7f3;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 1rem 1.25rem;
}

.system-phoenix-page .system-service-edit-page .service-workspace-settings-card .service-settings-tab-shell.is-advanced-pane .service-settings-tab-link {
    background: var(--pcs-bg-surface);
    border: 1px solid #dfe7f3;
    border-radius: var(--pcs-radius-xl);
    justify-content: flex-start;
    min-height: 70px;
    padding: .9rem 1rem;
}

.system-phoenix-page .system-service-edit-page .service-workspace-settings-card .service-settings-tab-shell.is-advanced-pane .service-settings-tab-link.active::after {
    display: none;
}

.system-phoenix-page .system-service-edit-page .service-workspace-settings-card .service-settings-tab-shell.is-advanced-pane .service-settings-tab-link:nth-child(2) > svg {
    background: #eaf9ef;
    color: #21a55b;
}

.system-phoenix-page .system-service-edit-page .service-workspace-settings-card .service-settings-tab-shell.is-advanced-pane .service-settings-tab-link:nth-child(3) > svg {
    background: #fff4e5;
    color: #d88627;
}

.system-phoenix-page .system-service-edit-page .service-save-button.is-saving,
.system-phoenix-page .system-service-edit-page .service-save-all-button.is-saving {
    pointer-events: none;
    opacity: 0.8;
}

.system-phoenix-page .system-service-edit-page .service-settings-pane-body::-webkit-scrollbar {
    width: 6px;
}

.system-phoenix-page .system-service-edit-page .service-settings-pane-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.system-phoenix-page .system-service-edit-page .service-settings-pane-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.system-phoenix-page .pcs-service-slots-modal .modal-dialog {
    max-width: min(1400px, calc(100vw - 2rem));
}

.system-phoenix-page .pcs-service-slots-modal-copy {
    max-width: 640px;
}

.system-phoenix-page .pcs-service-slots-modal-copy p {
    margin-bottom: 0;
}

.system-phoenix-page .pcs-service-slots-modal-copy strong {
    color: #0f172a;
}

.system-phoenix-page .pcs-service-slots-modal .pcs-dt-selector {
    border: 1px solid #d8e2ef;
    box-shadow: none;
}

/* FontAwesome is not loaded in the phoenix admin shell; give the shared
   date-time-selector month nav textual chevrons so they aren't blank. */
.system-phoenix-page .pcs-service-slots-modal .pcs-dt-prev i::before,
.system-phoenix-page .pcs-service-slots-modal .pcs-dt-next i::before {
    font-family: inherit;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
}

.system-phoenix-page .pcs-service-slots-modal .pcs-dt-prev i::before {
    content: "‹";
}

.system-phoenix-page .pcs-service-slots-modal .pcs-dt-next i::before {
    content: "›";
}

.system-phoenix-page .pcs-service-slots-modal .pcs-dt-selector .row > [class*='col-'] {
    min-width: 0;
}

@media (min-width: 992px) {
    .system-phoenix-page .pcs-service-slots-modal .pcs-dt-selector .row > .col-12.col-lg-8,
    .system-phoenix-page .pcs-service-slots-modal .pcs-dt-selector .row > .col-12.col-lg-4 {
        flex: 0 0 50%;
        width: 50%;
        max-width: 50%;
    }
}

.system-phoenix-page .pcs-service-slots-modal .pcs-dt-slots {
    max-width: 100%;
    overflow-x: auto;
    padding-right: 0;
}

.system-phoenix-page .pcs-service-slots-modal .pcs-dt-slot-table-wrap {
    border: 1px solid #d8e2ef;
    border-radius: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    background: #fff;
}

.system-phoenix-page .pcs-service-slots-modal .pcs-dt-slot-table {
    min-width: 100%;
}

.system-phoenix-page .pcs-service-slots-modal .pcs-dt-slot-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.system-phoenix-page .pcs-service-slots-modal .pcs-dt-slot-table tbody td {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .system-phoenix-page .pcs-service-slots-modal-copy {
        max-width: none;
    }

    .system-phoenix-page .pcs-service-slots-modal .modal-dialog {
        max-width: calc(100vw - 1rem);
    }
}

@media (max-width: 575.98px) {
    .system-phoenix-page .pcs-service-slots-modal .pcs-dt-slot-table tbody td,
    .system-phoenix-page .pcs-service-slots-modal .pcs-dt-slot-table thead th {
        white-space: normal;
    }
}

.system-phoenix-page .system-service-edit-page .service-edit-details-card.is-collapsed .service-edit-details-card__body {
    display: none;
}

.system-phoenix-page .system-service-edit-page .service-edit-details-card.is-collapsed .service-edit-details-card__collapse svg {
    transform: rotate(180deg);
}

.system-phoenix-page .system-service-edit-page .service-product-option-default-badge {
    font-size: 0.65rem;
    vertical-align: middle;
    margin-left: 0.35rem;
}

.system-phoenix-page .system-service-edit-page .service-product-option-row-default .service-variation-name {
    font-weight: 500;
}

.system-phoenix-page .system-service-edit-page .service-save-all-spinner {
    display: none;
}

.system-phoenix-page .system-service-edit-page .service-save-all-button.is-saving .service-save-all-spinner {
    display: inline-flex;
}

.system-phoenix-page .system-service-edit-page .service-save-all-button.is-saving .service-save-all-icon {
    display: none;
}

.system-phoenix-page .system-service-edit-page .service-save-feedback {
    display: none;
}

.system-phoenix-page .system-service-edit-page .service-save-feedback.is-visible {
    display: block;
}

.system-phoenix-page .system-service-edit-page .service-section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.system-phoenix-page .system-service-edit-page .btn-xs {
    padding: 0.125rem 0.4rem;
    font-size: 0.7rem;
    min-height: auto;
}

.system-phoenix-page .system-service-edit-page .form-control-flush {
    border: none;
    background: transparent;
    box-shadow: none !important;
    font-weight: 600;
}

.system-phoenix-page .system-service-edit-page .form-control-flush:focus {
    background: #f1f5f9;
}

.system-phoenix-page .system-service-edit-page .service-settings-pane-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.system-phoenix-page .system-service-edit-page .service-section-feedback {
    display: none;
    margin-bottom: 1rem;
}

.system-phoenix-page .system-service-edit-page .service-section-feedback.is-visible {
    display: block;
}

.system-phoenix-page .system-service-edit-page .service-settings-save-row .btn {
    min-width: 180px;
}

.system-phoenix-page .system-service-edit-page .service-settings-tab-link .service-form-state-badge {
    margin-left: auto;
    position: relative;
    z-index: 1;
}

.system-phoenix-page .system-service-edit-page .table-responsive:not(.service-products-table-wrap) {
    border-radius: var(--pcs-radius-md);
    overflow: hidden;
}

.system-phoenix-page .system-service-edit-page .rte-preview {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 767.98px) {
    .system-phoenix-page .system-service-edit-page .service-product-inline-editor .service-product-advanced-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .system-phoenix-page .system-service-edit-page .service-settings-tab-shell {
        display: block;
    }

    .system-phoenix-page .system-service-edit-page .service-settings-tab-nav {
        display: flex;
        flex-direction: row !important;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid #d8e2ef;
    }

    .system-phoenix-page .system-service-edit-page .service-settings-tab-link {
        flex: 0 0 auto;
        width: auto;
        min-height: 58px;
        border-right: 1px solid #d8e2ef;
        border-bottom: 0;
        white-space: nowrap;
    }

    .system-phoenix-page .system-service-edit-page .service-settings-tab-link.active::after {
        display: none;
    }

    .system-phoenix-page .system-service-edit-page .service-settings-pane-body {
        max-height: none;
    }

    .system-phoenix-page .system-service-edit-page .service-workspace-settings-card .service-settings-tab-shell.is-advanced-pane .service-settings-tab-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .system-phoenix-page .system-service-edit-page .service-products-filter-field,
    .system-phoenix-page .system-service-edit-page .service-products-filter-field.is-search {
        width: 100%;
        min-width: 0;
        max-width: none;
        flex: 1 1 100%;
    }
}

/* -------------------------------------------------------------------------- */
/* System dashboard — scoped brand UX (.system-dashboard-page)                */
/* -------------------------------------------------------------------------- */

.system-phoenix-page .system-dashboard-page {
    display: grid;
    gap: 16px;
}

.system-phoenix-page .system-dashboard-page .btn-primary {
    background-color: var(--pcs-primary-500);
    border-color: var(--pcs-primary-500);
}

.system-phoenix-page .system-dashboard-page .btn-primary:hover,
.system-phoenix-page .system-dashboard-page .btn-primary:focus {
    background-color: var(--pcs-primary-600);
    border-color: var(--pcs-primary-600);
}

.system-phoenix-page .system-dashboard-page .btn-outline-primary {
    color: var(--pcs-primary-600);
    border-color: var(--pcs-border);
    background: #f5f7fa;
}

.system-phoenix-page .system-dashboard-page .btn-outline-primary:hover,
.system-phoenix-page .system-dashboard-page .btn-outline-primary:focus {
    color: var(--pcs-primary-700);
    background: #edf2f9;
    border-color: #d8e2ef;
}

.system-phoenix-page .system-dashboard-page .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 35px;
    font-size: 12.8px;
    font-weight: 700;
    border-radius: var(--pcs-radius-sm);
}

.system-phoenix-page .system-dashboard-page .btn svg {
    width: 14px;
    height: 14px;
}

.system-phoenix-page .system-dashboard-header {
    margin-bottom: 0;
}

.system-phoenix-page .system-dashboard-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--pcs-primary-600);
    font-size: 12.8px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.system-phoenix-page .system-dashboard-title {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: clamp(1.55rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.system-phoenix-page .system-dashboard-lead {
    max-width: 760px;
    margin: 0;
    color: #72809a;
    font-size: 0.84rem;
    line-height: 1.55;
}

.system-phoenix-page .system-dashboard-context {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.system-phoenix-page .system-dashboard-context-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--pcs-radius-pill);
    background: #f5f7fa;
    color: #525b75;
    font-size: 12.8px;
    line-height: 1.35;
}

.system-phoenix-page .system-dashboard-context-pill strong {
    color: #31374a;
    font-weight: 800;
}

.system-phoenix-page .system-dashboard-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.system-phoenix-page .system-dashboard-insights {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.system-phoenix-page .system-dashboard-insights--compact {
    margin-top: 12px;
}

.system-phoenix-page .system-dashboard-insight {
    padding: 12px 14px;
    border: 1px solid var(--pcs-border);
    border-radius: var(--pcs-radius-md);
    background: #f8fafc;
}

.system-phoenix-page .system-dashboard-insight-pill {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: var(--pcs-radius-pill);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.system-phoenix-page .system-dashboard-insight-pill.is-insight {
    background: var(--pcs-info-bg);
    color: var(--pcs-info);
}

.system-phoenix-page .system-dashboard-insight-pill.is-opportunity {
    background: var(--pcs-success-bg);
    color: var(--pcs-success);
}

.system-phoenix-page .system-dashboard-insight-pill.is-risk {
    background: var(--pcs-warning-bg);
    color: var(--pcs-warning);
}

.system-phoenix-page .system-dashboard-insight-text {
    color: #525b75;
    font-size: 12.8px;
    line-height: 1.5;
}

.system-phoenix-page .system-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.system-phoenix-page .system-dashboard-kpi {
    padding: 16px;
    border: 1px solid var(--pcs-border);
    border-radius: var(--pcs-radius-md);
    background: #ffffff;
    box-shadow: none;
}

.system-phoenix-page .system-dashboard-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.system-phoenix-page .system-dashboard-kpi-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: var(--pcs-radius-lg);
}

.system-phoenix-page .system-dashboard-kpi-icon svg {
    width: 22px;
    height: 22px;
}

.system-phoenix-page .system-dashboard-kpi-chip {
    padding: 5px 10px;
    border-radius: var(--pcs-radius-pill);
    background: #f5f7fa;
    color: #72809a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.system-phoenix-page .system-dashboard-kpi-label {
    display: block;
    margin-bottom: 6px;
    color: #72809a;
    font-size: 12.8px;
    font-weight: 700;
}

.system-phoenix-page .system-dashboard-kpi-value {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.system-phoenix-page .system-dashboard-delta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: var(--pcs-radius-pill);
    font-size: 11px;
    font-weight: 800;
}

.system-phoenix-page .system-dashboard-delta svg {
    width: 12px;
    height: 12px;
}

.system-phoenix-page .system-dashboard-delta.is-up {
    background: var(--pcs-success-bg);
    color: var(--pcs-success);
}

.system-phoenix-page .system-dashboard-delta.is-down {
    background: #fde8ec;
    color: var(--pcs-danger);
}

.system-phoenix-page .system-dashboard-delta.is-flat {
    background: #f1f3f8;
    color: #7b8499;
}

.system-phoenix-page .system-dashboard-kpi-meta {
    color: #72809a;
    font-size: 12.8px;
    line-height: 1.45;
}

.system-phoenix-page .system-dashboard-main {
    margin-top: 0;
}

.system-phoenix-page .system-dashboard-card {
    margin-bottom: 0;
    border: 1px solid var(--pcs-border);
    border-radius: var(--pcs-radius-md);
    background: #ffffff;
    box-shadow: none;
}

.system-phoenix-page .system-dashboard-card__header {
    margin-bottom: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pcs-border);
}

.system-phoenix-page .system-dashboard-card .service-edit-details-card__body {
    padding-top: 16px;
}

.system-phoenix-page .system-dashboard-legend {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.system-phoenix-page .system-dashboard-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #72809a;
    font-size: 11px;
    font-weight: 700;
}

.system-phoenix-page .system-dashboard-legend i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.system-phoenix-page .system-dashboard-legend i.is-bookings {
    background: #4f7fd6;
}

.system-phoenix-page .system-dashboard-legend i.is-consultations {
    background: #12b8b0;
}

.system-phoenix-page .system-dashboard-legend i.is-patients {
    background: var(--pcs-primary-500);
}

.system-phoenix-page .system-dashboard-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    min-height: 220px;
    padding-top: 8px;
}

.system-phoenix-page .system-dashboard-chart-day {
    display: grid;
    gap: 8px;
    align-items: end;
}

.system-phoenix-page .system-dashboard-chart-bars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 14px));
    gap: 6px;
    justify-content: center;
    align-items: end;
    min-height: 180px;
}

.system-phoenix-page .system-dashboard-chart-bar {
    border-radius: var(--pcs-radius-pill) var(--pcs-radius-pill) var(--pcs-radius-sm) var(--pcs-radius-sm);
}

.system-phoenix-page .system-dashboard-chart-bar.is-blue {
    background: #4f7fd6;
}

.system-phoenix-page .system-dashboard-chart-bar.is-teal {
    background: #12b8b0;
}

.system-phoenix-page .system-dashboard-chart-bar.is-violet {
    background: var(--pcs-primary-500);
}

.system-phoenix-page .system-dashboard-chart-label {
    text-align: center;
    color: #8a94ad;
    font-size: 11px;
    font-weight: 700;
}

.system-phoenix-page .system-dashboard-empty {
    grid-column: 1 / -1;
    padding: 24px 16px;
    text-align: center;
    font-size: 12.8px;
}

.system-phoenix-page .system-dashboard-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: var(--pcs-radius-pill);
    background: var(--pcs-primary-100);
    color: var(--pcs-primary-700);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.system-phoenix-page .system-dashboard-usage {
    display: grid;
    gap: 10px;
}

.system-phoenix-page .system-dashboard-usage-item {
    padding: 12px 14px;
    border: 1px solid #edf2f9;
    border-radius: var(--pcs-radius-md);
    background: #f8fafc;
}

.system-phoenix-page .system-dashboard-usage-item strong {
    display: block;
    margin-bottom: 4px;
    color: #31374a;
    font-size: 12.8px;
    font-weight: 700;
}

.system-phoenix-page .system-dashboard-usage-item > span {
    display: block;
    color: #72809a;
    font-size: 12.8px;
    line-height: 1.45;
}

.system-phoenix-page .system-dashboard-usage-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.system-phoenix-page .system-dashboard-usage-meta strong {
    margin-bottom: 0;
}

.system-phoenix-page .system-dashboard-usage-meta > span {
    color: var(--pcs-primary-600);
    font-weight: 800;
}

.system-phoenix-page .system-dashboard-progress {
    height: 8px;
    margin-top: 10px;
    border-radius: var(--pcs-radius-pill);
    overflow: hidden;
    background: #e8edf5;
}

.system-phoenix-page .system-dashboard-progress > i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--pcs-primary-500);
}

.system-phoenix-page .system-dashboard-feed {
    display: grid;
    gap: 10px;
}

.system-phoenix-page .system-dashboard-feed-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid #edf2f9;
    border-radius: var(--pcs-radius-md);
    background: #f8fafc;
}

.system-phoenix-page .system-dashboard-feed-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--pcs-radius-lg);
    background: var(--pcs-primary-tint);
    color: var(--pcs-primary-700);
}

.system-phoenix-page .system-dashboard-feed-icon svg {
    width: 16px;
    height: 16px;
}

.system-phoenix-page .system-dashboard-feed-item strong {
    display: block;
    margin-bottom: 4px;
    color: #31374a;
    font-size: 12.8px;
    font-weight: 700;
}

.system-phoenix-page .system-dashboard-feed-item span {
    display: block;
    color: #72809a;
    font-size: 12.8px;
    line-height: 1.45;
}

.system-phoenix-page .system-dashboard-feed-time {
    color: #8a94ad;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.system-phoenix-page .system-dashboard-spotlight {
    background: linear-gradient(180deg, var(--pcs-primary-50) 0%, #ffffff 48%);
}

.system-phoenix-page .system-dashboard-spotlight-value {
    display: block;
    margin-bottom: 8px;
    color: var(--pcs-primary-700);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.system-phoenix-page .system-dashboard-spotlight-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.system-phoenix-page .system-dashboard-spotlight-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #ede9fe;
    border-radius: var(--pcs-radius-md);
    background: #ffffff;
}

.system-phoenix-page .system-dashboard-spotlight-item span {
    color: #72809a;
    font-size: 12.8px;
}

.system-phoenix-page .system-dashboard-spotlight-item strong {
    color: #1e293b;
    font-size: 12.8px;
    font-weight: 800;
}

/* Neutralize legacy phoenix-dashboard glass styles inside scoped page */
.system-phoenix-page .system-dashboard-page.phoenix-dashboard {
    gap: 16px;
}

.system-phoenix-page .system-dashboard-page .phoenix-dashboard-hero-panel,
.system-phoenix-page .system-dashboard-page .phoenix-dashboard-stat-card,
.system-phoenix-page .system-dashboard-page .phoenix-dashboard-panel {
    border-radius: var(--pcs-radius-md);
    border: 1px solid var(--pcs-border);
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
}

.system-phoenix-page .system-dashboard-page .phoenix-dashboard-hero-panel::after {
    display: none;
}

.system-phoenix-page .system-dashboard-page .phoenix-dashboard-eyebrow {
    margin-bottom: 10px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    text-transform: uppercase;
}

.system-phoenix-page .system-dashboard-page .phoenix-dashboard-spotlight {
    color: inherit;
    background: linear-gradient(180deg, var(--pcs-primary-50) 0%, #ffffff 48%);
}

.system-phoenix-page .system-dashboard-page .phoenix-dashboard-spotlight .phoenix-dashboard-panel-header h3,
.system-phoenix-page .system-dashboard-page .phoenix-dashboard-spotlight .phoenix-dashboard-panel-header p,
.system-phoenix-page .system-dashboard-page .phoenix-dashboard-spotlight .phoenix-dashboard-panel-header span,
.system-phoenix-page .system-dashboard-page .phoenix-dashboard-spotlight .phoenix-dashboard-stat-meta {
    color: inherit;
}

.system-phoenix-page .system-dashboard-page .phoenix-dashboard-spotlight-item {
    border-radius: var(--pcs-radius-md);
    background: #ffffff;
    box-shadow: none;
}

.system-phoenix-page .system-dashboard-page .phoenix-dashboard-spotlight-item span {
    color: #72809a;
}

.system-phoenix-page .system-dashboard-page .phoenix-dashboard-insight,
.system-phoenix-page .system-dashboard-page .phoenix-dashboard-usage-item,
.system-phoenix-page .system-dashboard-page .phoenix-dashboard-feed-item {
    border-radius: var(--pcs-radius-md);
    background: #f8fafc;
    box-shadow: none;
}

.system-phoenix-page .system-dashboard-page .phoenix-dashboard-progress > i {
    background: var(--pcs-primary-500);
}

.system-phoenix-page .system-dashboard-page .phoenix-dashboard-feed-dot {
    display: none;
}

@media (max-width: 1300px) {
    .system-phoenix-page .system-dashboard-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .system-phoenix-page .system-dashboard-toolbar {
        justify-content: flex-start;
    }

    .system-phoenix-page .system-dashboard-card__header {
        flex-direction: column;
        align-items: stretch;
    }

    .system-phoenix-page .system-dashboard-legend {
        margin-top: 8px;
    }
}

@media (max-width: 767.98px) {
    .system-phoenix-page .system-dashboard-kpis {
        grid-template-columns: 1fr;
    }

    .system-phoenix-page .system-dashboard-chart {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .system-phoenix-page .system-dashboard-chart-day:nth-child(n + 5) {
        display: none;
    }

    .system-phoenix-page .system-dashboard-feed-item {
        grid-template-columns: auto 1fr;
    }

    .system-phoenix-page .system-dashboard-feed-time {
        grid-column: 2;
    }
}

/* Shared PCS confirm modal (§8.6 / §8.6.1) */
.system-phoenix-page .pcs-confirm-modal .modal-content {
    border-radius: 16px;
    overflow: hidden;
}

.system-phoenix-page .pcs-confirm-kicker {
    display: block;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.system-phoenix-page .pcs-confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
}

.system-phoenix-page .pcs-confirm-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.system-phoenix-page .pcs-confirm-icon--danger {
    background: rgba(var(--bs-danger-rgb), 0.12);
    color: var(--bs-danger-text-emphasis, #b42318);
}

.system-phoenix-page .pcs-confirm-icon--warning {
    background: rgba(var(--bs-warning-rgb), 0.12);
    color: var(--bs-warning-text-emphasis, #b45309);
}

.system-phoenix-page .pcs-confirm-icon--primary {
    background: var(--pcs-primary-50, #f5f3ff);
    color: var(--pcs-primary-600, #5c45db);
}

.system-phoenix-page .pcs-confirm-icon--neutral {
    background: #f3f4f6;
    color: #6b7280;
}

.system-phoenix-page .pcs-confirm-modal .modal-footer .btn svg {
    width: 1rem;
    height: 1rem;
}

/* Dispensing dashboard — theme-only pass */
.system-phoenix-page .pcs-dispensing-dashboard-page .btn-primary,
.system-phoenix-page .pcs-dispensing-page .btn-primary {
    background-color: var(--pcs-primary-500);
    border-color: var(--pcs-primary-500);
}

.system-phoenix-page .pcs-dispensing-dashboard-page .btn-primary:hover,
.system-phoenix-page .pcs-dispensing-page .btn-primary:hover {
    background-color: var(--pcs-primary-600);
    border-color: var(--pcs-primary-600);
}

.system-phoenix-page .pcs-dispensing-dashboard-page .card,
.system-phoenix-page .pcs-dispensing-page .card {
    border-color: #e3e6ed;
    box-shadow: none;
}

.system-phoenix-page .pcs-dispensing-dashboard-page .system-list-kicker,
.system-phoenix-page .pcs-dispensing-page .system-list-kicker {
    color: var(--pcs-primary-500);
}
