﻿/* VelTech Portals — Professional UI layer */

body.portal-pro {
    /* Coherent slate/navy canvas — shared by Client + Admin authenticated pages */
    --pro-page-bg: #0b1220;
    --pro-surface: #111827;
    --pro-surface-elevated: #1e293b;
    --pro-surface-border: rgba(148, 163, 184, 0.12);
    --pro-accent: #2dd4bf;
    --bg-primary: #0b1220;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.72);
    --bg-hover: #334155;
    --border-color: rgba(148, 163, 184, 0.14);
    --border-subtle: rgba(148, 163, 184, 0.1);
    background-color: var(--pro-page-bg);
    background-image:
        radial-gradient(ellipse 90% 55% at 12% -8%, rgba(45, 212, 191, 0.14), transparent 52%),
        radial-gradient(ellipse 70% 45% at 92% 8%, rgba(56, 189, 248, 0.08), transparent 50%),
        radial-gradient(ellipse 55% 40% at 78% 92%, rgba(15, 118, 110, 0.12), transparent 55%),
        linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, #070b14 0%, #0b1220 42%, #0f172a 100%);
    background-size:
        auto,
        auto,
        auto,
        48px 48px,
        48px 48px,
        auto;
    background-attachment: fixed;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat;
    min-height: 100vh;
}

body.portal-pro.portal-admin {
    /* Same professional canvas; slightly cooler top wash for admin */
    background-image:
        radial-gradient(ellipse 90% 55% at 12% -8%, rgba(45, 212, 191, 0.12), transparent 52%),
        radial-gradient(ellipse 65% 42% at 94% 6%, rgba(125, 211, 252, 0.07), transparent 48%),
        radial-gradient(ellipse 55% 40% at 80% 94%, rgba(15, 118, 110, 0.11), transparent 55%),
        linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, #070b14 0%, #0b1220 42%, #0f172a 100%);
    background-size:
        auto,
        auto,
        auto,
        48px 48px,
        48px 48px,
        auto;
    background-attachment: fixed;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat;
}

body.portal-pro .sidebar {
    background: rgba(15, 23, 42, 0.96);
    border-right: 1px solid rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(12px);
}

body.portal-pro .logo-title {
    font-weight: 600;
    letter-spacing: -0.02em;
}

body.portal-pro .logo-subtitle {
    color: #64748b;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.portal-pro .nav-link {
    font-weight: 500;
    border-radius: 10px;
    margin: 2px 8px;
}

body.portal-pro .nav-link.active {
    background: rgba(45, 212, 191, 0.12);
    color: #5eead4;
}

body.portal-pro.portal-admin .nav-link.active {
    background: rgba(45, 212, 191, 0.12);
    color: #5eead4;
}

body.portal-pro .top-header {
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    backdrop-filter: blur(10px);
}

body.portal-pro .page-title {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #f1f5f9;
}

body.portal-pro .welcome-banner {
    background: var(--pro-surface-elevated);
    border: 1px solid var(--pro-surface-border);
    box-shadow: none;
}

body.portal-pro .welcome-banner::before {
    display: none;
}

body.portal-pro .welcome-kicker {
    color: #2dd4bf;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

body.portal-pro.portal-admin .welcome-kicker {
    color: #2dd4bf;
}

body.portal-pro .welcome-title {
    font-weight: 700;
    letter-spacing: -0.03em;
}

body.portal-pro .stat-card,
body.portal-pro .card {
    background: var(--pro-surface-elevated);
    border: 1px solid var(--pro-surface-border);
    box-shadow: 0 4px 18px rgba(2, 6, 23, 0.22);
}

body.portal-pro .btn-primary {
    background: linear-gradient(135deg, #0d9488, #0891b2);
    border: 1px solid rgba(45, 212, 191, 0.3);
    font-weight: 600;
}

body.portal-pro.portal-admin .btn-primary {
    background: linear-gradient(135deg, #0d9488, #0891b2);
    border-color: rgba(45, 212, 191, 0.3);
}

/* Landing (portal home) */
body.portal-pro .landing-page-msp {
    background:
        radial-gradient(ellipse 95% 60% at 50% -18%, rgba(45, 212, 191, 0.15), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 30%, rgba(56, 189, 248, 0.07), transparent 50%),
        radial-gradient(ellipse 45% 35% at 0% 80%, rgba(15, 118, 110, 0.1), transparent 50%),
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(180deg, #070b14 0%, #0b1220 40%, #0f172a 100%);
    background-size: auto, auto, auto, 48px 48px, 48px 48px, auto;
    background-attachment: fixed;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat;
}

body.portal-pro .hero-grid-glow {
    display: block;
    opacity: 0.55;
    background-image:
        linear-gradient(rgba(45, 212, 191, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 212, 191, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

body.portal-pro .hero-title-msp {
    animation: none;
    background: none;
    -webkit-text-fill-color: #f8fafc;
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: -0.03em;
}

body.portal-pro .hero-subtitle-msp {
    color: #94a3b8;
    line-height: 1.75;
}

body.portal-pro .landing-trust-bar {
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(15, 23, 42, 0.6);
}

body.portal-pro .landing-trust-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: center;
    font-size: 0.82rem;
    color: #94a3b8;
}

body.portal-pro .landing-trust-inner span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

body.portal-pro .landing-trust-inner i {
    color: #2dd4bf;
    width: 14px;
    height: 14px;
}

body.portal-pro .landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.75rem;
}

body.portal-pro .landing-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
    justify-items: stretch;
    align-content: start;
    width: 100%;
}

/* Higher specificity than site.css — must stack on phone/tablet */
@media (max-width: 900px) {
    body.portal-pro .landing-features-grid {
        grid-template-columns: 1fr;
        max-width: 22rem;
        margin-inline: auto;
        width: 100%;
    }

    body.portal-pro .landing-feature-card {
        min-height: 0;
    }

    body.portal-pro .landing-hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 20rem;
        margin-inline: auto;
    }

    body.portal-pro .landing-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    body.portal-pro .hero-section-msp,
    body.portal-pro .hero-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    body.portal-pro .landing-features,
    body.portal-pro .landing-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Global .card + .card { margin-top } pushes 2nd/3rd grid cards down - reset here */
body.portal-pro .landing-features-grid > .card,
body.portal-pro .landing-features-grid > .landing-feature-card {
    margin-top: 0;
}

body.portal-pro .landing-feature-card {
    display: grid;
    grid-template-rows: 56px auto 1fr;
    justify-items: center;
    align-items: start;
    text-align: center;
    min-height: 292px;
    height: 100%;
}

body.portal-pro .landing-feature-title,
body.portal-pro .landing-feature-text {
    width: 100%;
    text-align: center;
    max-width: none;
}

body.portal-pro .landing-feature-text {
    min-height: 5.1em;
}

body.portal-pro .landing-nav {
    background: rgba(11, 17, 32, 0.9);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(10px);
}

/* Auth */
body.portal-pro .auth-container {
    background-color: var(--pro-page-bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(45, 212, 191, 0.16), transparent 55%),
        radial-gradient(ellipse 55% 40% at 100% 100%, rgba(56, 189, 248, 0.08), transparent 50%),
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, #070b14 0%, #0b1220 50%, #0f172a 100%);
    background-size: auto, auto, 48px 48px, 48px 48px, auto;
    background-attachment: fixed;
    background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat;
}

body.portal-pro.portal-admin .auth-container {
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(45, 212, 191, 0.14), transparent 55%),
        radial-gradient(ellipse 55% 40% at 100% 100%, rgba(125, 211, 252, 0.07), transparent 50%),
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, #070b14 0%, #0b1220 50%, #0f172a 100%);
}

body.portal-pro .auth-container::before {
    display: none;
}

body.portal-pro .auth-card {
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    border-radius: 16px;
}

body.portal-pro .auth-logo h1 {
    background: none;
    -webkit-text-fill-color: #f8fafc;
    color: #f8fafc;
    font-weight: 700;
}

body.portal-pro .auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(45, 212, 191, 0.12);
    color: #5eead4;
    margin-bottom: 0.75rem;
}

body.portal-pro.portal-admin .auth-badge {
    background: rgba(129, 140, 248, 0.14);
    color: #a5b4fc;
}

@media (max-width: 768px) {
    body.portal-pro .landing-trust-inner {
        justify-content: center;
        overflow-x: visible;
        flex-wrap: wrap;
        padding-inline: 1rem;
    }
}

body.portal-pro .sidebar-header {
    justify-content: center;
    gap: 0;
}

body.portal-pro .sidebar .logo {
    width: 100%;
    padding-right: 0;
    justify-content: center;
}

body.portal-pro .sidebar .logo-title {
    -webkit-text-fill-color: #f1f5f9;
    color: #f1f5f9;
    background: none;
}

/* Privacy Policy document */
body.portal-pro .privacy-nav {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
}

body.portal-pro .privacy-nav-inner {
    max-width: 44rem;
    margin: 0 auto;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

body.portal-pro .privacy-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #f1f5f9;
    font-weight: 600;
    text-decoration: none;
}

body.portal-pro .privacy-nav-brand .logo-icon {
    display: inline-flex;
    color: #2dd4bf;
}

body.portal-pro .privacy-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

body.portal-pro .privacy-nav-back:hover {
    color: #5eead4;
}

body.portal-pro .privacy-doc {
    max-width: 44rem;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 3rem;
    color: #94a3b8;
    line-height: 1.75;
}

body.portal-pro .privacy-doc--standalone {
    min-height: calc(100vh - 4rem);
    background: linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
}

body.portal-pro .privacy-doc-header {
    margin-bottom: 2.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

body.portal-pro .privacy-doc-kicker {
    margin: 0 0 0.65rem;
    color: #2dd4bf;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.portal-pro .privacy-doc-title {
    margin: 0 0 1rem;
    color: #f8fafc;
    font-size: clamp(1.65rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

body.portal-pro .privacy-doc-intro {
    margin: 0 0 1.1rem;
    color: #cbd5e1;
    font-size: 1.02rem;
}

body.portal-pro .privacy-doc-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.18);
    color: #94a3b8;
    font-size: 0.88rem;
}

body.portal-pro .privacy-doc-updated i {
    width: 16px;
    height: 16px;
    color: #2dd4bf;
}

body.portal-pro .privacy-section {
    margin: 0 0 2rem;
    padding: 0;
}

body.portal-pro .privacy-section h2 {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin: 0 0 0.85rem;
    color: #f1f5f9;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.35;
}

body.portal-pro .privacy-section-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    border-radius: 6px;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.22);
    color: #5eead4;
    font-size: 0.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

body.portal-pro .privacy-section p {
    margin: 0 0 0.85rem;
}

body.portal-pro .privacy-section p:last-child {
    margin-bottom: 0;
}

body.portal-pro .privacy-section ul {
    margin: 0.35rem 0 0.85rem;
    padding-left: 1.2rem;
}

body.portal-pro .privacy-section li {
    margin-bottom: 0.45rem;
}

body.portal-pro .privacy-section li:last-child {
    margin-bottom: 0;
}

body.portal-pro .privacy-section a {
    color: #5eead4;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.portal-pro .privacy-section a:hover {
    color: #99f6e4;
}

body.portal-pro .privacy-section code {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.86em;
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
}

body.portal-pro .privacy-section--contact {
    margin-top: 2.5rem;
    padding: 1.35rem 1.25rem 1.4rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(45, 212, 191, 0.2);
}

body.portal-pro .privacy-section--contact h2 {
    margin-bottom: 0.75rem;
}

body.portal-pro .privacy-contact {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

body.portal-pro .privacy-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

body.portal-pro .privacy-contact-item > i {
    width: 20px;
    height: 20px;
    margin-top: 0.15rem;
    color: #2dd4bf;
    flex-shrink: 0;
}

body.portal-pro .privacy-contact-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.15rem;
}

body.portal-pro .privacy-contact-value {
    display: block;
    color: #f1f5f9;
    font-weight: 500;
    text-decoration: none;
}

a.privacy-contact-value:hover {
    color: #5eead4;
}

@media (max-width: 640px) {
    body.portal-pro .privacy-doc {
        padding: 1.35rem 1rem 2.5rem;
    }

    body.portal-pro .privacy-section h2 {
        font-size: 1.05rem;
    }

    body.portal-pro .privacy-section--contact {
        padding: 1.1rem 1rem;
    }
}

/* =====================================================
   Dashboard grid — professional MSP layout
   ===================================================== */
body.portal-pro .dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

/* Legacy Index.cshtml: flatten col-8 / col-4 wrappers */
body.portal-pro .dashboard-grid > .col-8,
body.portal-pro .dashboard-grid > .col-4 {
    display: contents;
    grid-column: unset;
}

body.portal-pro .dashboard-grid > .card,
body.portal-pro .dashboard-grid > .dashboard-panel,
body.portal-pro .dashboard-grid .col-8 > .card,
body.portal-pro .dashboard-grid .col-4 > .card {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    background: var(--pro-surface-elevated);
    border-radius: 14px;
}

body.portal-pro .dashboard-grid .card-header {
    padding: 0.95rem 1.15rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    gap: 0.75rem;
}

body.portal-pro .dashboard-grid .card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #f1f5f9;
}

body.portal-pro .dashboard-grid .card-header-link {
    margin-left: auto;
    color: #5eead4;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

body.portal-pro .dashboard-grid .card-header-link:hover {
    color: #99f6e4;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.portal-pro.portal-admin .dashboard-grid .card-header-link {
    color: #5eead4;
}

body.portal-pro.portal-admin .dashboard-grid .card-header-link:hover {
    color: #99f6e4;
}

body.portal-pro .dashboard-grid .card-body,
body.portal-pro .dashboard-grid .dashboard-panel-body {
    flex: 1;
    padding: 0.85rem 1.15rem 1.15rem;
}

body.portal-pro .dashboard-grid .empty-state,
body.portal-pro .dashboard-grid .empty-state--compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 11rem;
    padding: 1.5rem 1rem;
    margin: 0;
}

body.portal-pro .dashboard-grid .empty-state-icon {
    width: 2.25rem;
    height: 2.25rem;
    opacity: 0.45;
    margin-bottom: 0.65rem;
    color: #64748b;
}

body.portal-pro .dashboard-grid .empty-state-icon [data-lucide],
body.portal-pro .dashboard-grid .empty-state-icon i {
    width: 2.25rem;
    height: 2.25rem;
}

body.portal-pro .dashboard-grid .empty-state h3 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #cbd5e1;
}

body.portal-pro .dashboard-grid .empty-state p {
    margin: 0 0 0.9rem;
    max-width: 18rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #64748b;
}

body.portal-pro .dashboard-grid .item-list {
    margin: 0;
    padding: 0;
}

body.portal-pro .dashboard-grid .item-list li {
    padding: 0.75rem 0;
    gap: 0.75rem;
}

body.portal-pro .dashboard-grid .item-list li:first-child {
    padding-top: 0.15rem;
}

body.portal-pro .dashboard-grid .item-title a {
    color: #e2e8f0;
    font-weight: 500;
    text-decoration: none;
}

body.portal-pro .dashboard-grid .item-title a:hover {
    color: #5eead4;
}

body.portal-pro.portal-admin .dashboard-grid .item-title a:hover {
    color: #a5b4fc;
}

body.portal-pro .dashboard-grid .item-meta {
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: #64748b;
}

body.portal-pro .dashboard-grid .table-wrap {
    margin: 0 -0.25rem;
}

body.portal-pro .dashboard-grid .data-table {
    font-size: 0.86rem;
}

body.portal-pro .dashboard-grid .data-table th {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

body.portal-pro .dashboard-actions {
    display: grid;
    gap: 0.55rem;
}

body.portal-pro .dashboard-actions .btn-block + .btn-block {
    margin-top: 0;
}

body.portal-pro .dashboard-aside-lead {
    margin: 0 0 0.85rem;
    color: #94a3b8;
    font-size: 0.86rem;
    line-height: 1.5;
}

body.portal-pro .dashboard-aside-lead strong {
    color: #f1f5f9;
    font-weight: 600;
}

body.portal-pro .dashboard-grid .summary-list {
    margin-top: 0.85rem;
}

body.portal-pro .dashboard-grid .summary-list li {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
}

body.portal-pro .dashboard-grid .summary-value {
    margin-top: 0;
    font-variant-numeric: tabular-nums;
    color: #e2e8f0;
}

body.portal-pro .dashboard-grid .summary-value--accent {
    color: #2dd4bf;
}

body.portal-pro.portal-admin .dashboard-grid .summary-value--accent {
    color: #a5b4fc;
}

@media (max-width: 1100px) {
    body.portal-pro .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1101px) and (max-width: 1280px) {
    body.portal-pro .dashboard-grid {
        gap: 1rem;
    }
}

/* VelTech brand assets:
   logo.png / logo-full.png  = stacked full brand (icon + wordmark)
   logo-mark.png             = icon only (nav / sidebar)
   logo-mark-80.png          = small mark (favicon / touches)
*/

/* --- Mark in chrome (nav / sidebar) --- */
.logo-icon.logo-image-wrap,
.logo-icon:has(img) {
    background: none !important;
    box-shadow: none !important;
    width: auto;
    height: 36px;
    max-width: 48px;
    border-radius: 0;
    min-width: 0 !important;
}

.logo-icon img,
.logo-icon.logo-mark img,
img.logo-mark {
    display: block;
    height: 36px;
    width: auto;
    max-width: 48px;
    object-fit: contain;
}

/* Mark + visible brand text beside it */
.logo:has(.logo-mark) .logo-text,
.logo:has(.logo-mark) .logo-title,
.logo:has(img.logo-mark) .logo-text,
.logo:has(img.logo-mark) .logo-title {
    display: inline-block !important;
}

/* Full stacked logo — hide duplicate text */
.logo:has(.logo-full) .logo-text,
.logo:has(.logo-full) .logo-title,
.landing-footer-brand:has(.logo-full) > span:not(.logo-icon),
.auth-logo:has(.auth-brand-logo) > h1 {
    display: none !important;
}

/* Auth / login — stacked full brand */
.auth-logo .auth-icon:has(img),
.auth-logo .auth-icon.logo-image-wrap {
    background: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: 200px !important;
    border-radius: 0 !important;
    margin: 0 auto 1.25rem !important;
    padding: 0 !important;
}

.auth-brand-logo {
    display: block;
    height: auto;
    width: auto;
    max-height: 120px;
    max-width: 200px;
    margin: 0 auto;
    object-fit: contain;
}

.landing-nav .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.landing-nav .logo-icon.logo-image-wrap,
.landing-nav .logo-icon:has(img),
.landing-nav .logo-icon.logo-mark {
    max-width: 44px;
    height: 40px;
}

.landing-nav .logo-icon img,
.landing-nav .logo-mark img {
    height: 40px;
    max-width: 44px;
}

.landing-nav .logo-text {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

/* Footer — taller stacked brand */
.landing-footer-logo.logo-image-wrap,
.landing-footer-logo:has(img),
.landing-footer-logo.logo-full {
    max-width: 160px;
    height: auto;
    min-height: 72px;
}

.landing-footer-logo img,
.landing-footer-logo.logo-full img {
    height: auto;
    max-height: 96px;
    max-width: 160px;
    width: auto;
}

.sidebar a.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.sidebar .logo-icon.logo-image-wrap,
.sidebar .logo-icon:has(img),
.sidebar .logo-icon.logo-mark {
    max-width: 36px;
    height: 34px;
    min-width: 0 !important;
}

.sidebar .logo-icon img,
.sidebar .logo-mark img {
    height: 34px;
    max-width: 36px;
}

.sidebar .logo-title, .sidebar .logo-text { display: none !important; }

@media (max-width: 768px) {
    .auth-brand-logo {
        max-height: 96px;
        max-width: 160px;
        margin-bottom: 1rem;
    }

    .logo-icon.logo-image-wrap,
    .logo-icon:has(img) {
        max-width: 36px;
        height: 32px;
    }

    .logo-icon img {
        height: 32px;
        max-width: 36px;
    }
}

/* Fallback when markup still has lucide icons — use mark, keep text */
.landing-nav a.logo .logo-icon:not(:has(img)),
.sidebar a.logo .logo-icon:not(:has(img)),
.privacy-nav-brand .logo-icon:not(:has(img)) {
    background: url('../images/logo-mark.png') center / contain no-repeat !important;
    background-color: transparent !important;
    box-shadow: none !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    border-radius: 0 !important;
}

/* Lucide replaces <i data-lucide> with <svg> — hide both so layout-dashboard (4 squares) never shows under the V mark */
.landing-nav a.logo .logo-icon i,
.landing-nav a.logo .logo-icon svg,
.landing-nav a.logo .logo-icon [data-lucide],
.sidebar a.logo .logo-icon i,
.sidebar a.logo .logo-icon svg,
.sidebar a.logo .logo-icon [data-lucide],
.privacy-nav-brand .logo-icon i,
.privacy-nav-brand .logo-icon svg,
.privacy-nav-brand .logo-icon [data-lucide],
.auth-logo .auth-icon i,
.auth-logo .auth-icon svg,
.auth-logo .logo-icon i,
.auth-logo .logo-icon svg {
    display: none !important;
}

.landing-footer-brand .logo-icon:not(:has(img)),
.auth-logo .auth-icon:not(:has(img)),
.auth-logo .logo-icon:not(:has(img)) {
    background: url('../images/logo.png') center / contain no-repeat !important;
    background-color: transparent !important;
    box-shadow: none !important;
    width: 160px !important;
    min-width: 120px !important;
    height: 96px !important;
    max-width: 180px !important;
    border-radius: 0 !important;
    margin: 0 auto 1.25rem;
}

.auth-logo .auth-icon:not(:has(img)) + h1,
.auth-logo:has(.auth-brand-logo) > h1 {
    display: none !important;
}

/* ===== Legendary sidebar: logo-mark ONLY + icon column (Client + Admin) ===== */
body.portal-pro .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center !important;
    gap: 0;
    padding: 0.85rem 0.5rem !important;
    min-height: 4.25rem;
    position: relative;
}

body.portal-pro .sidebar-header .sidebar-toggle {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    align-items: center !important;
    justify-content: center !important;
    width: 36px;
    height: 36px;
    padding: 0;
    line-height: 0;
}

body.portal-pro .sidebar-header .sidebar-toggle i,
body.portal-pro .sidebar-header .sidebar-toggle svg,
body.portal-pro .sidebar-header .sidebar-toggle [data-lucide] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

body.portal-pro .sidebar .logo,
body.portal-pro .sidebar a.logo {
    display: flex;
    align-items: center;
    justify-content: center !important;
    width: 100%;
    padding: 0 !important;
    margin: 0;
    gap: 0;
    flex: 0 0 auto;
}

/* Never show brand text in sidebar (incl. collapsed:hover expand) */
body.portal-pro .sidebar .logo-meta,
body.portal-pro .sidebar .logo-title,
body.portal-pro .sidebar .logo-subtitle,
body.portal-pro .sidebar .logo-text,
body.portal-pro .sidebar.collapsed:hover .logo-meta,
body.portal-pro .sidebar.collapsed:hover .logo-title,
body.portal-pro .sidebar.collapsed:hover .logo-subtitle,
body.portal-pro .sidebar.collapsed:hover .logo-text,
.sidebar a.logo .logo-meta,
.sidebar a.logo .logo-title,
.sidebar a.logo .logo-subtitle,
.sidebar a.logo .logo-text {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Logo mark — focused, no glow/gradient tile */
body.portal-pro .sidebar a.logo .logo-icon,
.sidebar a.logo .logo-icon {
    background: url('../images/logo-mark.png') center / contain no-repeat !important;
    background-color: transparent !important;
    box-shadow: none !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    margin: 0 auto !important;
    border-radius: 10px !important;
    flex-shrink: 0;
    opacity: 0.96;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

body.portal-pro .sidebar a.logo:hover .logo-icon {
    opacity: 1;
    transform: translateY(-1px);
}

body.portal-pro .sidebar a.logo .logo-icon i,
.sidebar a.logo .logo-icon i {
    display: none !important;
}

body.portal-pro .sidebar a.logo .logo-icon img,
.sidebar a.logo .logo-icon img {
    display: block;
    width: 38px;
    height: 38px;
    max-width: 38px;
    object-fit: contain;
}

/* Keep mark centered even when flyout expands */
body.portal-pro .sidebar.collapsed .sidebar-header,
body.portal-pro .sidebar.collapsed .logo,
body.portal-pro .sidebar.collapsed:hover .sidebar-header,
body.portal-pro .sidebar.collapsed:hover .logo {
    justify-content: center !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

body.portal-pro .sidebar.collapsed a.logo .logo-icon {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
}

/* Nav + footer: centered, symmetrical icon + label column */
body.portal-pro .sidebar-nav {
    padding: 0.75rem 0.4rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

body.portal-pro .sidebar .nav-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
}

body.portal-pro .sidebar .nav-item {
    margin: 0;
    width: 100%;
}

body.portal-pro .sidebar .nav-link,
body.portal-pro .sidebar-footer .nav-link,
body.portal-pro .sidebar-footer .logout-btn {
    margin: 0;
    gap: 0.4rem;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.7rem 0.45rem !important;
    min-height: 3.35rem;
    width: 100%;
    box-sizing: border-box;
}

body.portal-pro .sidebar .nav-link > span,
body.portal-pro .sidebar-footer .nav-link > span,
body.portal-pro .sidebar-footer .logout-btn > span {
    display: block;
    width: 100%;
    text-align: center !important;
    line-height: 1.25;
    font-size: 0.78rem;
    font-weight: 550;
    letter-spacing: 0.01em;
    white-space: normal;
    max-width: 100%;
}

body.portal-pro .sidebar .nav-link i,
body.portal-pro .sidebar .nav-link [data-lucide],
body.portal-pro .sidebar .nav-link svg.lucide,
body.portal-pro .sidebar-footer .nav-link i,
body.portal-pro .sidebar-footer .nav-link [data-lucide],
body.portal-pro .sidebar-footer .nav-link svg.lucide,
body.portal-pro .sidebar-footer .logout-btn i,
body.portal-pro .sidebar-footer .logout-btn [data-lucide],
body.portal-pro .sidebar-footer .logout-btn svg.lucide {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    margin: 0 auto !important;
    opacity: 0.95;
    display: block !important;
    flex-shrink: 0;
}

body.portal-pro .sidebar .nav-link.active {
    border-left: none;
    margin-left: 0;
    box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.22);
}

/* Collapsed: icon-only, still centered */
body.portal-pro .sidebar.collapsed .nav-item {
    margin: 0;
}

body.portal-pro .sidebar.collapsed .nav-link,
body.portal-pro .sidebar.collapsed .sidebar-footer > .nav-link,
body.portal-pro .sidebar.collapsed .sidebar-footer .logout-btn {
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
    padding: 0.72rem 0.35rem !important;
    min-height: 2.75rem;
    gap: 0;
}

body.portal-pro .sidebar.collapsed .nav-link > span,
body.portal-pro .sidebar.collapsed .sidebar-footer .nav-link > span,
body.portal-pro .sidebar.collapsed .sidebar-footer .logout-btn > span {
    display: none !important;
}

body.portal-pro .sidebar.collapsed .nav-link i,
body.portal-pro .sidebar.collapsed .nav-link [data-lucide],
body.portal-pro .sidebar.collapsed .nav-link svg.lucide,
body.portal-pro .sidebar.collapsed .sidebar-footer .nav-link i,
body.portal-pro .sidebar.collapsed .sidebar-footer .nav-link [data-lucide],
body.portal-pro .sidebar.collapsed .sidebar-footer .logout-btn i,
body.portal-pro .sidebar.collapsed .sidebar-footer .logout-btn [data-lucide] {
    margin: 0 auto !important;
}

/* Hover-expand still keeps centered column (no left rail) */
body.portal-pro .sidebar:not(.collapsed) .nav-link,
body.portal-pro .sidebar.collapsed:hover .nav-link,
body.portal-pro .sidebar:not(.collapsed) .sidebar-footer > .nav-link,
body.portal-pro .sidebar:not(.collapsed) .sidebar-footer .logout-btn,
body.portal-pro .sidebar.collapsed:hover .sidebar-footer > .nav-link,
body.portal-pro .sidebar.collapsed:hover .sidebar-footer .logout-btn {
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
    text-align: center !important;
    padding-left: 0.45rem !important;
    padding-right: 0.45rem !important;
}

body.portal-pro .sidebar.collapsed:hover .nav-link > span,
body.portal-pro .sidebar.collapsed:hover .sidebar-footer .nav-link > span,
body.portal-pro .sidebar.collapsed:hover .sidebar-footer .logout-btn > span {
    display: block !important;
}

body.portal-pro .logout-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

body.portal-pro .logout-btn {
    width: auto;
    align-self: stretch;
    box-sizing: border-box;
}

body.portal-pro .sidebar.collapsed .logout-btn {
    align-self: center;
    justify-content: center;
    text-align: center;
}

body.portal-pro .sidebar.collapsed:hover .logout-btn {
    align-self: stretch;
    text-align: center;
}
/* END sidebar-logo-icon-only */

/* ===== Global page shell + empty states (Client + Admin) ===== */

body.portal-pro main#mainContent {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

body.portal-pro .content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 1rem;
    min-height: calc(100vh - 4.5rem);
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
}

/* Page header: single clear row */
body.portal-pro .content-wrapper > .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 0;
}

body.portal-pro .content-wrapper > .page-header .page-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

/* Top bar already shows ViewData Title — hide duplicate on empty pages */
body.portal-pro .content-wrapper > .page-header:has(+ .card .empty-state) > .page-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.portal-pro .content-wrapper > .page-header:has(+ .card .empty-state):not(:has(.btn)):not(:has(form)) {
    display: none;
}

/* Empty-state card fills remaining viewport and centers content */
body.portal-pro .content-wrapper > .card:has(> .empty-state),
body.portal-pro .content-wrapper > .card:has(> .card-body.empty-state) {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: min(28rem, calc(100vh - 12rem));
}

body.portal-pro .card-body.empty-state,
body.portal-pro .card > .empty-state,
body.portal-pro .empty-state:not(.empty-state--compact) {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.65rem;
    padding: clamp(2.5rem, 6vh, 4rem) 1.5rem;
    min-height: inherit;
}

body.portal-pro .empty-state-icon,
body.portal-pro .empty-state > .empty-state-icon,
body.portal-pro .empty-state > i[data-lucide],
body.portal-pro .empty-state > [data-lucide],
body.portal-pro .empty-state > i {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.35rem !important;
    width: 3.25rem !important;
    height: 3.25rem !important;
    color: #64748b;
    opacity: 0.9;
}

body.portal-pro .empty-state h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 650;
    color: #f1f5f9;
}

body.portal-pro .empty-state p {
    margin: 0;
    max-width: 28rem;
    line-height: 1.5;
    color: #94a3b8;
}

body.portal-pro .empty-state .btn {
    margin-top: 0.65rem;
}

/* Compact empties inside dashboard cards stay compact */
body.portal-pro .empty-state--compact,
body.portal-pro .dashboard-grid .empty-state {
    min-height: 0 !important;
    flex: 0 0 auto !important;
    padding: 1.75rem 1rem !important;
    justify-content: center;
}

body.portal-pro .dashboard-grid .empty-state-icon,
body.portal-pro .empty-state--compact .empty-state-icon {
    width: 2.25rem !important;
    height: 2.25rem !important;
    margin-bottom: 0.25rem !important;
}

/* List/index cards with tables: keep natural height */
body.portal-pro .content-wrapper > .card:not(:has(.empty-state)) {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    body.portal-pro .content-wrapper {
        max-width: none;
        min-height: calc(100vh - 3.75rem);
        padding-inline: 1rem;
    }
}
/* END page-shell-empty-states */

/* ===== Unified main surfaces + UI polish (2026-07) ===== */

/* One page canvas for main content (expanded + default) — transparent so body atmosphere shows */
body.portal-pro main#mainContent.main-content,
body.portal-pro main#mainContent.main-content.expanded {
    background: transparent !important;
    background-color: transparent !important;
}

body.portal-pro .content-wrapper {
    background: transparent !important;
}

body.portal-pro .ticket-create-page,
body.portal-pro .ticket-create-card,
body.portal-pro .ticket-create-card-inner {
    background-color: transparent;
}

body.portal-pro .ticket-create-card {
    background: var(--pro-surface-elevated);
    border: 1px solid var(--pro-surface-border);
}

body.portal-pro .card-header,
body.portal-pro .table-wrap,
body.portal-pro .data-table thead th {
    background: transparent;
}

body.portal-pro .data-table tbody tr:hover {
    background: rgba(51, 65, 85, 0.45);
}

/* Sidebar footer: same icon column as nav (under logo mark) */
body.portal-pro .sidebar-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.75rem 0.55rem 1rem;
}

body.portal-pro .sidebar-footer > .nav-link,
body.portal-pro .sidebar-footer .logout-btn {
    width: 100%;
    margin-inline: 0;
}

body.portal-pro .sidebar-footer .logout-form {
    width: 100%;
    margin-top: 0;
    display: flex;
    justify-content: stretch;
}

body.portal-pro .sidebar.collapsed .sidebar-footer {
    align-items: center;
    padding: 0.65rem 0.35rem 0.9rem;
    gap: 0.2rem;
}

body.portal-pro .sidebar.collapsed .sidebar-footer > .nav-link,
body.portal-pro .sidebar.collapsed .sidebar-footer .logout-btn {
    justify-content: center;
    align-self: center;
    width: auto;
    min-width: 2.5rem;
    padding: 0.72rem 0.5rem;
    margin: 0;
}

body.portal-pro .sidebar.collapsed:hover .sidebar-footer {
    align-items: stretch;
}

body.portal-pro .sidebar.collapsed:hover .sidebar-footer > .nav-link,
body.portal-pro .sidebar.collapsed:hover .sidebar-footer .logout-btn {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    align-self: stretch;
}

/* Documents Index: hide header "Качи документ" (keep empty-state path) */
body.portal-pro.portal-client .content-wrapper > .page-header .page-header-actions > a.btn[href*="/Documents/Upload"],
body.portal-pro.portal-client .content-wrapper > .page-header .page-header-actions > a.btn[href*="Documents/Upload"] {
    display: none !important;
}

/* Ticket create help grid — equal columns */
body.portal-pro .ticket-create-help-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

body.portal-pro .ticket-create-help-grid > .card,
body.portal-pro .ticket-create-help-grid > .ticket-create-help-card {
    margin-top: 0 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--pro-surface-elevated) !important;
    border: 1px solid var(--pro-surface-border);
    box-shadow: 0 4px 18px rgba(2, 6, 23, 0.22);
}

body.portal-pro .ticket-create-help-grid > .card > .card-header,
body.portal-pro .ticket-create-help-grid > .ticket-create-help-card > .card-header {
    background: transparent;
    border-bottom: 1px solid var(--pro-surface-border);
    padding: 1rem 1.15rem;
}

body.portal-pro .ticket-create-help-grid > .card > .card-body,
body.portal-pro .ticket-create-help-grid > .ticket-create-help-card > .card-body {
    flex: 1 1 auto;
    padding: 1rem 1.15rem 1.25rem;
    background: transparent;
}

@media (max-width: 768px) {
    body.portal-pro .ticket-create-help-grid {
        grid-template-columns: 1fr;
    }
}

/* Services Create — Advanced / Integrations */
body.portal-pro .service-integrations-section {
    margin: 1.25rem 0 1.5rem;
    padding: 0.85rem 1rem 1rem;
    border: 1px solid var(--pro-surface-border);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
}

body.portal-pro .service-integrations-summary {
    cursor: pointer;
    font-weight: 600;
    color: #e2e8f0;
    list-style: none;
}

body.portal-pro .service-integrations-summary::-webkit-details-marker {
    display: none;
}

body.portal-pro .service-integrations-summary::before {
    content: "▸";
    display: inline-block;
    margin-right: 0.45rem;
    color: var(--pro-accent);
    transition: transform 0.15s ease;
}

body.portal-pro .service-integrations-section[open] .service-integrations-summary::before {
    transform: rotate(90deg);
}

body.portal-pro .service-integrations-help {
    margin: 0.65rem 0 1rem;
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.45;
}

body.portal-pro .service-integrations-section .form-group {
    margin-bottom: 0.85rem;
}

body.portal-pro .service-integrations-section .form-text,
body.portal-pro .service-integrations-section .text-muted {
    color: #64748b !important;
    font-size: 0.8rem;
}

/* Fallback when Views ACL-locked: clarify Monitoring/Settings URL fields */
body.portal-pro form:not(:has(.service-integrations-section)) .form-group:has(input[name="MonitoringUrl"]),
body.portal-pro form:not(:has(.service-integrations-section)) .form-group:has(input[name="SettingsUrl"]) {
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--pro-surface-border);
    background: rgba(15, 23, 42, 0.55);
}

body.portal-pro form:not(:has(.service-integrations-section)) .form-group:has(input[name="MonitoringUrl"]) {
    margin-top: 1.25rem;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    padding-bottom: 0.35rem;
}

body.portal-pro form:not(:has(.service-integrations-section)) .form-group:has(input[name="SettingsUrl"]) {
    border-radius: 0 0 12px 12px;
    margin-bottom: 1.25rem;
    padding-top: 0.35rem;
}

body.portal-pro form:not(:has(.service-integrations-section)) .form-group:has(input[name="MonitoringUrl"])::before {
    content: "Разширени / интеграции (по желание)";
    display: block;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.45rem;
}

body.portal-pro form:not(:has(.service-integrations-section)) .form-group:has(input[name="MonitoringUrl"])::after {
    content: "Опционални връзки към Checkmk мониторинг и MSP панел за настройки. Оставете празни, ако не ползвате интеграции.";
    display: block;
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.65rem;
}

body.portal-pro form:not(:has(.service-integrations-section)) .form-group:has(input[name="MonitoringUrl"]) label {
    font-size: 0;
}

body.portal-pro form:not(:has(.service-integrations-section)) .form-group:has(input[name="MonitoringUrl"]) label::after {
    content: "Мониторинг URL (Checkmk / мониторинг deep-link)";
    font-size: 0.95rem;
    color: #e2e8f0;
}

body.portal-pro form:not(:has(.service-integrations-section)) .form-group:has(input[name="SettingsUrl"]) label {
    font-size: 0;
}

body.portal-pro form:not(:has(.service-integrations-section)) .form-group:has(input[name="SettingsUrl"]) label::after {
    content: "Настройки URL (панел / управление)";
    font-size: 0.95rem;
    color: #e2e8f0;
}

/* Rename Табло → Контролен панел (sidebar + dashboard header) */
body.portal-pro .sidebar .nav-list > .nav-item:first-child > .nav-link > span {
    font-size: 0 !important;
    line-height: 0;
    width: 100%;
    text-align: center;
}

body.portal-pro .sidebar .nav-list > .nav-item:first-child > .nav-link > span::after {
    content: "Контролен панел";
    display: block;
    font-size: 0.78rem;
    line-height: 1.25;
    font-weight: 550;
    text-align: center;
    width: 100%;
}

body.portal-pro:has(.welcome-banner) .top-header .page-title {
    font-size: 0 !important;
    line-height: 0;
}

body.portal-pro:has(.welcome-banner) .top-header .page-title::after {
    content: "Контролен панел";
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #f1f5f9;
}

/* Ticket create: Ново запитване */
body.portal-pro .ticket-create-title {
    font-size: 0 !important;
    line-height: 0;
}

body.portal-pro .ticket-create-title::after {
    content: "Ново запитване";
    font-size: var(--font-3xl, 1.875rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary, #f1f5f9);
}

body.portal-pro .ticket-create-back span {
    font-size: 0 !important;
}

body.portal-pro .ticket-create-back span::after {
    content: "Към запитванията";
    font-size: 0.9rem;
}

body.portal-pro .ticket-create-submit {
    font-size: 0 !important;
}

body.portal-pro .ticket-create-submit [data-lucide],
body.portal-pro .ticket-create-submit i {
    width: 1rem;
    height: 1rem;
    margin-right: 0.35rem;
}

body.portal-pro .ticket-create-submit::after {
    content: "Изпрати запитване";
    font-size: 0.95rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    body.portal-pro .ticket-create-title::after {
        font-size: var(--font-2xl, 1.5rem);
    }
}

/* Header dropdowns: solid opaque panels (no glass / see-through) */
body.portal-pro .notification-dropdown,
body.portal-pro .notifications-dropdown,
body.portal-pro .user-menu-dropdown,
body.portal-pro #notificationDropdown.notification-dropdown,
body.portal-pro #userMenuDropdown.user-menu-dropdown {
    background: #1e293b !important;
    background-color: #1e293b !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 48px rgba(2, 6, 23, 0.55), 0 0 0 1px rgba(15, 23, 42, 0.45);
    color: #e2e8f0;
}

body.portal-pro .notification-dropdown-header,
body.portal-pro .notifications-header,
body.portal-pro .user-menu-header {
    background: #0f172a !important;
    background-color: #0f172a !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    color: #f1f5f9;
}

body.portal-pro .notification-dropdown-body,
body.portal-pro .notifications-list {
    background: #1e293b;
}

body.portal-pro .user-menu-item {
    color: #e2e8f0;
}

body.portal-pro .user-menu-item:hover {
    background: #334155 !important;
    color: #f8fafc;
}

body.portal-pro .notification-dropdown-body .notification-item:hover {
    background: #334155;
}

/* END unified-surfaces-ui-polish */
