:root {
    --dlpro-bg: #eef3f8;
    --dlpro-bg-soft: #f7f9fc;
    --dlpro-surface: rgba(255, 255, 255, .96);
    --dlpro-surface-2: #ffffff;
    --dlpro-surface-3: #f8fafc;
    --dlpro-border: rgba(15, 23, 42, .10);
    --dlpro-border-strong: rgba(15, 23, 42, .16);
    --dlpro-text: #0f172a;
    --dlpro-muted: #64748b;
    --dlpro-accent: #16a34a;
    --dlpro-primary: #2563eb;
    --dlpro-primary-soft: rgba(37, 99, 235, .10);
    --dlpro-danger-soft: rgba(220, 38, 38, .10);
    --dlpro-shadow: 0 18px 42px rgba(15, 23, 42, .08);
    --dlpro-radius: 16px;
    --dlpro-radius-sm: 12px;
    --dlpro-sidebar-width: 276px;
    --dlpro-topbar-height: 72px;
    --dlpro-font-size: .925rem;
}

[data-bs-theme="dark"] {
    --dlpro-bg: #07111f;
    --dlpro-bg-soft: #0b1524;
    --dlpro-surface: rgba(15, 25, 42, .94);
    --dlpro-surface-2: #111f33;
    --dlpro-surface-3: #0e1a2c;
    --dlpro-border: rgba(255, 255, 255, .10);
    --dlpro-border-strong: rgba(255, 255, 255, .18);
    --dlpro-text: #e7eef8;
    --dlpro-muted: #9aa9bc;
    --dlpro-primary: #60a5fa;
    --dlpro-primary-soft: rgba(96, 165, 250, .14);
    --dlpro-shadow: 0 22px 50px rgba(0, 0, 0, .24);
}

html {
    font-size: 15px;
}

body {
    background: var(--dlpro-bg);
    color: var(--dlpro-text);
    min-height: 100vh;
    font-size: var(--dlpro-font-size);
    letter-spacing: -.006em;
}

a {
    color: inherit;
}

.dlpro-login-body {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .18), transparent 28rem),
        radial-gradient(circle at bottom right, rgba(22, 163, 74, .12), transparent 30rem),
        var(--dlpro-bg);
}

.dlpro-login-body .login-card {
    width: min(100%, 460px);
    padding: 1.75rem;
    border: 1px solid var(--dlpro-border);
    border-radius: 24px;
    background: var(--dlpro-surface);
    box-shadow: var(--dlpro-shadow);
    backdrop-filter: blur(16px);
}

.login-logo {
    max-width: 170px;
    max-height: 76px;
    object-fit: contain;
    border-radius: 14px;
}

.eyebrow {
    color: var(--dlpro-accent);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .68rem;
    font-weight: 800;
}

.dlpro-shell {
    display: grid;
    grid-template-columns: var(--dlpro-sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
}

.dlpro-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1rem;
    background: var(--dlpro-surface);
    border-right: 1px solid var(--dlpro-border);
    box-shadow: 10px 0 40px rgba(15, 23, 42, .04);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 50;
}

.sidebar-brand-wrap {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.brand {
    display: flex;
    flex: 1;
    gap: .75rem;
    align-items: center;
    text-decoration: none;
    color: var(--dlpro-text);
    padding: .55rem;
    border-radius: 14px;
    border: 1px solid var(--dlpro-border);
    background: var(--dlpro-surface-3);
}

.brand img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 12px;
}

.brand strong {
    font-size: .98rem;
}

.brand small {
    display: block;
    color: var(--dlpro-muted);
    font-size: .72rem;
}

.sidebar-nav {
    display: grid;
    gap: .55rem;
    overflow-y: auto;
    padding-right: .15rem;
}

.nav-group {
    display: grid;
    gap: .25rem;
}

.nav-group-label {
    color: var(--dlpro-muted);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
    padding: .45rem .75rem .15rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .62rem .72rem;
    border-radius: 12px;
    color: var(--dlpro-muted);
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.sidebar-nav a i {
    width: 1.1rem;
    text-align: center;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--dlpro-text);
    background: var(--dlpro-primary-soft);
    border-color: var(--dlpro-border);
}

.sidebar-footer {
    margin-top: auto;
    padding: .9rem;
    background: var(--dlpro-surface-3);
    border: 1px solid var(--dlpro-border);
    border-radius: 14px;
}

.sidebar-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin-top: .85rem;
}

.dlpro-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dlpro-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: var(--dlpro-topbar-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1.25rem;
    background: rgba(238, 243, 248, .92);
    border-bottom: 1px solid var(--dlpro-border);
    backdrop-filter: blur(16px);
}

[data-bs-theme="dark"] .dlpro-topbar {
    background: rgba(7, 17, 31, .88);
}

.topbar-left,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.topbar-title {
    min-width: 0;
}

.breadcrumb-line {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: var(--dlpro-muted);
    font-size: .72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-title h1 {
    margin: .08rem 0 0;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 750;
    letter-spacing: -.02em;
}

.btn-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--dlpro-border);
    background: var(--dlpro-surface-2);
    color: var(--dlpro-text);
}

.btn-topbar {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.25rem;
    border-radius: 999px;
    border: 1px solid var(--dlpro-border);
    background: var(--dlpro-surface-2);
    color: var(--dlpro-text);
    font-size: .86rem;
}

.topbar-search {
    align-items: center;
    gap: .5rem;
    min-width: 320px;
    padding: .44rem .7rem;
    background: var(--dlpro-surface-2);
    border: 1px solid var(--dlpro-border);
    border-radius: 999px;
    color: var(--dlpro-muted);
}

.topbar-search input {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--dlpro-text);
    width: 100%;
    font-size: .86rem;
}

.topbar-health {
    border-radius: 999px;
}

.page-help-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 1.25rem;
    background: var(--dlpro-bg-soft);
    border-bottom: 1px solid var(--dlpro-border);
    color: var(--dlpro-muted);
    font-size: .84rem;
}

.page-help-strip > div {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
}

.content-wrap {
    padding: 1.25rem;
    flex: 1;
}

.panel,
.metric-card {
    border: 1px solid var(--dlpro-border);
    border-radius: var(--dlpro-radius);
    background: var(--dlpro-surface);
    box-shadow: var(--dlpro-shadow);
}

.panel {
    padding: 1.1rem;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    margin-bottom: 1rem;
}

.panel-header h2 {
    font-size: .98rem;
    font-weight: 750;
    margin: 0;
}

.panel-subtitle {
    margin: .25rem 0 0;
    color: var(--dlpro-muted);
    font-size: .84rem;
}

.metric-card {
    padding: 1rem;
    min-height: 124px;
    display: grid;
    align-content: space-between;
}

.metric-card i {
    font-size: 1.35rem;
    color: var(--dlpro-accent);
}

.metric-card span {
    color: var(--dlpro-muted);
    font-size: .8rem;
}

.metric-card strong {
    font-size: clamp(1.25rem, 3vw, 1.62rem);
    line-height: 1.1;
}

.table-responsive {
    border-radius: 12px;
}

.table-dlpro {
    --bs-table-bg: transparent;
    --bs-table-color: var(--dlpro-text);
    --bs-table-border-color: var(--dlpro-border);
    vertical-align: middle;
    margin-bottom: 0;
}

.table-dlpro thead th {
    position: sticky;
    top: 0;
    color: var(--dlpro-muted);
    background: var(--dlpro-surface);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.table-dlpro td,
.table-dlpro th {
    padding: .7rem .75rem;
}

.form-label {
    font-weight: 650;
    font-size: .82rem;
    color: var(--dlpro-text);
    margin-bottom: .35rem;
}

.form-control,
.form-select {
    border-radius: 11px;
    min-height: 2.45rem;
    font-size: .9rem;
}

.form-text,
small,
.small {
    font-size: .78rem;
}

.sticky-panel {
    position: sticky;
    top: calc(var(--dlpro-topbar-height) + 1rem);
}

.health-card,
.ticket-card,
.role-pill,
.requirement-card {
    border: 1px solid var(--dlpro-border);
    background: var(--dlpro-surface-2);
    border-radius: 14px;
    padding: .85rem;
}

.health-card {
    display: grid;
    gap: .2rem;
}

.health-card.operational strong {
    color: var(--dlpro-accent);
}

.timeline {
    display: grid;
    gap: .9rem;
}

.timeline > div {
    position: relative;
    padding-left: 1.15rem;
}

.timeline > div span {
    position: absolute;
    left: 0;
    top: .36rem;
    width: .5rem;
    height: .5rem;
    border-radius: 999px;
    background: var(--dlpro-accent);
}

.timeline small {
    color: var(--dlpro-muted);
}

.portal-menu {
    min-width: 340px;
    border: 1px solid var(--dlpro-border);
    border-radius: 16px;
    background: var(--dlpro-surface);
    box-shadow: var(--dlpro-shadow);
}

.portal-item {
    display: grid;
    grid-template-columns: 1.6rem 1fr auto;
    gap: .65rem;
    align-items: start;
    padding: .65rem;
    border-radius: 12px;
}

.portal-item:hover {
    background: var(--dlpro-primary-soft);
}

.portal-item small,
.portal-item em {
    display: block;
    color: var(--dlpro-muted);
    font-size: .74rem;
    font-style: normal;
}

.help-offcanvas {
    --bs-offcanvas-width: min(430px, 100vw);
    background: var(--dlpro-surface);
    color: var(--dlpro-text);
}

.help-offcanvas h2 {
    font-size: 1.2rem;
    font-weight: 750;
}

.help-offcanvas h3 {
    margin-top: 1.3rem;
    font-size: .9rem;
    font-weight: 750;
}

.help-meta {
    display: grid;
    gap: .25rem;
    padding: .75rem;
    border: 1px solid var(--dlpro-border);
    border-radius: 12px;
    margin-bottom: .6rem;
    background: var(--dlpro-surface-3);
}

.help-meta span {
    color: var(--dlpro-muted);
    font-size: .74rem;
}

.help-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.help-chip-list span {
    padding: .36rem .55rem;
    border-radius: 999px;
    background: var(--dlpro-primary-soft);
    border: 1px solid var(--dlpro-border);
    font-size: .78rem;
}

.help-list {
    color: var(--dlpro-muted);
    padding-left: 1.15rem;
}

.doc-list {
    display: grid;
    gap: .55rem;
}

.doc-row {
    display: grid;
    grid-template-columns: 1.4rem 1fr;
    gap: .75rem;
    padding: .75rem;
    border: 1px solid var(--dlpro-border);
    border-radius: 12px;
    background: var(--dlpro-surface-2);
    text-decoration: none;
}

.doc-row:hover {
    background: var(--dlpro-primary-soft);
}

.doc-row small {
    display: block;
    color: var(--dlpro-muted);
}

.portal-roadmap-body {
    display: grid;
    gap: .85rem;
}

.portal-roadmap-body small {
    display: block;
    color: var(--dlpro-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.portal-roadmap-body p {
    margin: .2rem 0 0;
    color: var(--dlpro-muted);
}

.requirement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.requirement-card {
    display: grid;
    gap: .4rem;
}

.requirement-card span {
    color: var(--dlpro-muted);
    font-size: .84rem;
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 1199.98px) {
    .topbar-search {
        min-width: 260px;
    }

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

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

    .dlpro-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(var(--dlpro-sidebar-width), 86vw);
        transform: translateX(-105%);
        transition: transform .2s ease;
        height: 100vh;
    }

    body.sidebar-open .dlpro-sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 45;
        background: rgba(15, 23, 42, .45);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

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

    .dlpro-topbar {
        position: sticky;
        padding: .72rem 1rem;
    }

    .page-help-strip {
        padding-inline: 1rem;
    }

    .sticky-panel {
        position: static;
    }
}

@media (max-width: 767.98px) {
    html {
        font-size: 14px;
    }

    .dlpro-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: .65rem;
    }

    .topbar-left,
    .topbar-actions {
        width: 100%;
    }

    .topbar-actions {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: .15rem;
    }

    .breadcrumb-line {
        max-width: calc(100vw - 5rem);
    }

    .content-wrap {
        padding: 1rem;
    }

    .page-help-strip {
        align-items: flex-start;
        flex-direction: column;
        gap: .55rem;
    }

    .panel {
        padding: .95rem;
    }

    .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .metric-card {
        min-height: 108px;
    }

    .requirement-grid {
        grid-template-columns: 1fr;
    }

    .portal-menu {
        min-width: 300px;
    }
}

@media (max-width: 575.98px) {
    .content-wrap,
    .dlpro-sidebar {
        padding: .85rem;
    }

    .topbar-actions .btn {
        white-space: nowrap;
    }

    .sidebar-footer-actions {
        grid-template-columns: 1fr;
    }
}

/* v1.0.4 enterprise cards, modal workflows, file explorer, and payment lab */
.entity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 1rem;
}

.entity-card {
    border: 1px solid var(--dlpro-border);
    border-radius: var(--dlpro-radius);
    background: var(--dlpro-surface);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
    padding: 1rem;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.entity-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.entity-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    background: var(--dlpro-primary-soft);
    color: var(--dlpro-primary);
    font-weight: 800;
}

.entity-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
}

.entity-subtitle {
    margin: .2rem 0 0;
    color: var(--dlpro-muted);
    font-size: .82rem;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
}

.meta-tile {
    border: 1px solid var(--dlpro-border);
    border-radius: 12px;
    padding: .55rem .65rem;
    background: var(--dlpro-surface-3);
}

.meta-tile span {
    display: block;
    color: var(--dlpro-muted);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
}

.meta-tile strong {
    display: block;
    font-size: .86rem;
    word-break: break-word;
}

.file-explorer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 430px) minmax(0, 1fr);
    gap: 1rem;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    max-height: 67vh;
    overflow: auto;
    padding-right: .25rem;
}

.file-row {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .65rem .75rem;
    border: 1px solid var(--dlpro-border);
    border-radius: 12px;
    text-decoration: none;
    background: var(--dlpro-surface-3);
}

.file-row:hover {
    border-color: var(--dlpro-border-strong);
    background: var(--dlpro-primary-soft);
}

.file-row i {
    font-size: 1.05rem;
    color: var(--dlpro-primary);
}

.file-row small {
    color: var(--dlpro-muted);
}

.code-editor {
    width: 100%;
    min-height: 62vh;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .82rem;
    line-height: 1.5;
    border-radius: 14px;
    white-space: pre;
    tab-size: 4;
}

.payment-lab-card {
    border: 1px dashed var(--dlpro-border-strong);
    border-radius: var(--dlpro-radius);
    background: linear-gradient(135deg, var(--dlpro-surface), var(--dlpro-surface-3));
    padding: 1rem;
}

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

    .code-editor {
        min-height: 48vh;
    }
}

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

    .meta-grid {
        grid-template-columns: 1fr;
    }

    .entity-card {
        padding: .85rem;
    }
}


.login-security-note {
    border: 1px solid var(--dlpro-border);
    border-radius: 1rem;
    padding: .85rem 1rem;
    background: rgba(255,255,255,.04);
    color: var(--dlpro-muted);
    font-size: .86rem;
    line-height: 1.45;
}

.metric-card-link {
    display: grid;
    color: var(--dlpro-text);
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.metric-card-link:hover,
.metric-card-link:focus {
    transform: translateY(-2px);
    border-color: var(--dlpro-primary);
    box-shadow: 0 20px 48px rgba(37, 99, 235, .14);
    color: var(--dlpro-text);
}

.client-detail-tabs .nav-link {
    font-size: .82rem;
    font-weight: 700;
}

.addon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: .75rem;
}

.addon-card {
    border: 1px solid var(--dlpro-border);
    border-radius: 14px;
    background: var(--dlpro-surface-3);
    padding: .85rem;
}

.billing-history-list {
    max-height: 320px;
    overflow: auto;
}

.quick-jump-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .5rem;
}

.quick-jump-card {
    border: 1px solid var(--dlpro-border);
    background: var(--dlpro-surface-3);
    border-radius: 12px;
    padding: .7rem;
    text-decoration: none;
    color: var(--dlpro-text);
}

.quick-jump-card:hover {
    border-color: var(--dlpro-primary);
    background: var(--dlpro-primary-soft);
}


/* v1.0.7 clickable navigation and ticket detail refinements */
.table-clickable tbody tr[data-href],
.table-dlpro tbody tr[data-href],
.clickable-row {
    cursor: pointer;
}

.table-clickable tbody tr[data-href]:hover,
.table-dlpro tbody tr[data-href]:hover,
.clickable-row:hover {
    background: var(--dlpro-primary-soft);
}

.table-clickable tbody tr.active-row,
.table-dlpro tbody tr.active-row {
    background: var(--dlpro-primary-soft);
    outline: 1px solid var(--dlpro-border-strong);
}

.quick-jump-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.quick-jump-actions .btn {
    justify-content: flex-start;
    min-width: 10.5rem;
    text-align: left;
}

.support-ticket-body {
    display: grid;
    gap: 1rem;
}

.support-description {
    padding: 1rem;
    border: 1px solid var(--dlpro-border);
    border-radius: var(--dlpro-radius-sm);
    background: var(--dlpro-surface-3);
}

.ticket-message-list {
    display: grid;
    gap: .75rem;
}

.ticket-message {
    padding: .85rem;
    border: 1px solid var(--dlpro-border);
    border-radius: var(--dlpro-radius-sm);
    background: var(--dlpro-surface-3);
}

.ticket-message p {
    margin: .5rem 0 .35rem;
}

@media (max-width: 767.98px) {
    .quick-jump-actions .btn {
        width: 100%;
        min-width: 0;
    }
}


/* Migration runner cards */
.migration-list {
    display: grid;
    gap: .75rem;
}

.migration-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--dlpro-border);
    border-radius: 1rem;
    padding: .9rem 1rem;
    background: var(--dlpro-surface);
}

.migration-card-ran {
    border-color: rgba(25, 135, 84, .85) !important;
    box-shadow: inset 0 0 0 1px rgba(25, 135, 84, .2);
}

.migration-card-pending {
    border-color: rgba(13, 110, 253, .55);
}

.migration-card-main {
    min-width: 0;
}

.migration-card-action {
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .migration-card {
        align-items: stretch;
        flex-direction: column;
    }

    .migration-card-action,
    .migration-card-action .btn {
        width: 100%;
    }
}


/* Documentation reader and modal detail patterns. */
.help-document,
.documentation-reader {
    color: var(--dlpro-text);
}

.help-document h2,
.help-document h3,
.help-document h4,
.documentation-reader h2,
.documentation-reader h3,
.documentation-reader h4 {
    margin-top: 1rem;
    margin-bottom: .45rem;
    font-weight: 750;
}

.help-document h2,
.documentation-reader h2 {
    font-size: 1.05rem;
}

.help-document h3,
.documentation-reader h3 {
    font-size: .98rem;
}

.help-document p,
.help-document li,
.documentation-reader p,
.documentation-reader li {
    color: var(--dlpro-muted);
    line-height: 1.55;
}

.help-document ul,
.help-document ol,
.documentation-reader ul,
.documentation-reader ol {
    padding-left: 1.1rem;
}

.help-code,
.audit-metadata {
    background: var(--dlpro-surface-3);
    border: 1px solid var(--dlpro-border);
    border-radius: 12px;
    padding: .9rem;
    color: var(--dlpro-text);
    max-height: 320px;
    overflow: auto;
    white-space: pre-wrap;
}

.documentation-reader {
    padding: 1rem;
    border: 1px solid var(--dlpro-border);
    border-radius: var(--dlpro-radius-sm);
    background: var(--dlpro-surface-3);
}

.doc-row.active {
    border-color: var(--dlpro-primary);
    background: var(--dlpro-primary-soft);
}

.dlpro-modal {
    background: var(--dlpro-surface);
    border: 1px solid var(--dlpro-border);
    border-radius: 18px;
    box-shadow: var(--dlpro-shadow);
}

.detail-tile {
    border: 1px solid var(--dlpro-border);
    border-radius: 14px;
    background: var(--dlpro-surface-3);
    padding: .85rem;
    min-height: 84px;
}

.detail-tile span {
    display: block;
    color: var(--dlpro-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .3rem;
}

.detail-tile strong {
    display: block;
    word-break: break-word;
}

.audit-log-row {
    cursor: pointer;
}

.audit-log-row:hover {
    background: var(--dlpro-primary-soft);
}


/* v1.1.0 enterprise interaction and admin feature enhancements */
.notification-bell{position:relative}
.notification-badge{position:absolute;top:-.35rem;right:-.35rem;min-width:1.25rem;height:1.25rem;border-radius:999px;background:#dc2626;color:#fff;font-size:.68rem;font-weight:800;display:inline-flex;align-items:center;justify-content:center;border:2px solid var(--dlpro-surface)}
.notification-menu{width:min(92vw,390px);max-height:70vh;overflow:auto;border-radius:18px;border:1px solid var(--dlpro-border);box-shadow:var(--dlpro-shadow)}
.notification-item{display:grid;grid-template-columns:auto 1fr;gap:.7rem;padding:.75rem;border-radius:14px;text-decoration:none;border:1px solid transparent}
.notification-item:hover,.notification-item.unread{background:var(--dlpro-primary-soft);border-color:var(--dlpro-border)}
.notification-item strong,.notification-item small,.notification-item em{display:block}
.notification-item small{color:var(--dlpro-muted);line-height:1.25}
.notification-item em{font-size:.72rem;color:var(--dlpro-muted);font-style:normal;margin-top:.2rem}
.notification-dot{width:.65rem;height:.65rem;border-radius:50%;background:var(--dlpro-primary);margin-top:.3rem}
.severity-critical,.severity-high{background:#dc2626}.severity-warning{background:#f59e0b}.severity-success{background:#16a34a}
.chat-thread{display:flex;flex-direction:column;gap:.85rem;max-height:560px;overflow:auto;padding:.75rem;background:var(--dlpro-surface-3);border-radius:var(--dlpro-radius);border:1px solid var(--dlpro-border)}
.chat-message{max-width:min(82%,760px);border:1px solid var(--dlpro-border);border-radius:18px;padding:.8rem .9rem;background:var(--dlpro-surface-2);box-shadow:0 8px 20px rgba(15,23,42,.05)}
.chat-message.admin{align-self:flex-end;border-top-right-radius:6px;background:var(--dlpro-primary-soft)}
.chat-message.client{align-self:flex-start;border-top-left-radius:6px}
.chat-message .chat-meta{display:flex;gap:.5rem;flex-wrap:wrap;font-size:.75rem;color:var(--dlpro-muted);margin-bottom:.35rem}
.chat-attachments{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.55rem}
.chat-attachment{display:inline-flex;gap:.35rem;align-items:center;border:1px solid var(--dlpro-border);border-radius:999px;padding:.25rem .55rem;background:var(--dlpro-surface);font-size:.8rem}
.filter-bar{display:flex;flex-wrap:wrap;gap:.55rem;align-items:end}
.admin-code-editor{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;min-height:420px;font-size:.85rem;line-height:1.45}
.pipeline-stage{display:inline-flex;align-items:center;border-radius:999px;padding:.22rem .55rem;background:var(--dlpro-primary-soft);font-size:.78rem;font-weight:700}
.clickable-panel{cursor:pointer;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.clickable-panel:hover{transform:translateY(-1px);border-color:var(--dlpro-primary);box-shadow:var(--dlpro-shadow)}
.analytics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}
.stat-list{display:grid;gap:.55rem}
.stat-list-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.65rem .75rem;border:1px solid var(--dlpro-border);border-radius:12px;background:var(--dlpro-surface-3)}
.suspension-banner{border:1px solid rgba(220,38,38,.35);background:rgba(220,38,38,.08);border-radius:14px;padding:.7rem .85rem;color:var(--dlpro-text)}
.provision-step{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.55rem .7rem;border:1px solid var(--dlpro-border);border-radius:12px;background:var(--dlpro-surface-3);margin-bottom:.45rem}
.provision-step code{font-size:.78rem}
@media (max-width: 768px){.chat-message{max-width:100%}.filter-bar>*{width:100%}.notification-menu{width:calc(100vw - 1.5rem)}}

.deep-link-highlight{outline:3px solid var(--dlpro-primary);outline-offset:3px;transition:outline .2s ease}


/* v1.1.1 Sales CRM detail workspace additions */
.detail-card {
    border: 1px solid var(--dlpro-border);
    border-radius: 1rem;
    padding: 1rem;
    background: var(--dlpro-surface);
    min-height: 94px;
}
.detail-card small {
    display: block;
    color: var(--dlpro-muted);
    margin-bottom: .35rem;
}
.detail-card strong {
    font-size: 1.05rem;
}
.panel-subtle {
    border: 1px solid var(--dlpro-border);
    border-radius: 1rem;
    background: rgba(15, 23, 42, .025);
    padding: 1rem;
}
.conversation-message {
    display: flex;
    width: 100%;
}
.conversation-left {
    justify-content: flex-start;
}
.conversation-right {
    justify-content: flex-end;
}
.conversation-bubble {
    max-width: min(760px, 100%);
    border: 1px solid var(--dlpro-border);
    border-radius: 1rem;
    padding: .9rem 1rem;
    background: var(--dlpro-surface);
    box-shadow: var(--dlpro-shadow-sm);
}


/* Template Sandbox / Portal Preview Lab */
.sandbox-template-list .list-group-item {
    background: rgba(255,255,255,.03);
    border-color: rgba(255,255,255,.08);
    color: var(--dlpro-text, #f8fafc);
    border-radius: 16px;
    margin-bottom: .65rem;
}
.sandbox-template-list .list-group-item.active {
    background: linear-gradient(135deg, rgba(13,110,253,.95), rgba(77,171,247,.8));
    border-color: rgba(255,255,255,.18);
}
.sandbox-db-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sandbox-db-row:last-child { border-bottom: 0; }
.sandbox-db-row small {
    display: block;
    color: var(--bs-secondary-color);
}
.sandbox-readiness {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
.sandbox-readiness div {
    padding: .7rem .8rem;
    border-radius: 14px;
    background: rgba(25,135,84,.12);
    color: var(--dlpro-text, #f8fafc);
    font-size: .9rem;
}
.sandbox-readiness i { color: #52d273; margin-right: .35rem; }
.sandbox-preview-stage {
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(13,110,253,.16), transparent 34rem),
        radial-gradient(circle at bottom right, rgba(32,201,151,.12), transparent 28rem),
        rgba(255,255,255,.025);
    overflow: auto;
}
.sandbox-device-frame {
    width: 390px;
    max-width: 100%;
    height: 760px;
    border-radius: 42px;
    padding: 12px;
    background: linear-gradient(145deg, #111827, #020617);
    box-shadow: 0 24px 80px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.12);
}
.sandbox-device-frame.preset-iphone_se { width: 320px; height: 640px; }
.sandbox-device-frame.preset-iphone_pro_max { width: 430px; height: 860px; }
.sandbox-device-frame.preset-android_small { width: 360px; height: 720px; border-radius: 34px; }
.sandbox-device-frame.preset-android_large { width: 412px; height: 846px; border-radius: 34px; }
.sandbox-device-frame.preset-tablet { width: 768px; height: 960px; border-radius: 30px; }
.sandbox-device-frame.preset-desktop { width: min(100%, 1120px); height: 720px; border-radius: 22px; }
.sandbox-device-frame.is-landscape {
    width: 760px;
    height: 390px;
}
.sandbox-device-frame.preset-tablet.is-landscape { width: 960px; height: 640px; }
.sandbox-device-frame.preset-desktop.is-landscape { width: min(100%, 1120px); height: 720px; }
.sandbox-device-top {
    height: 34px;
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    font-size: .78rem;
}
.sandbox-device-screen {
    height: calc(100% - 58px);
    overflow: hidden;
    border-radius: 30px;
    background: #0b1220;
    border: 1px solid rgba(255,255,255,.08);
}
.preset-desktop .sandbox-device-screen,
.preset-tablet .sandbox-device-screen {
    border-radius: 18px;
}
.sandbox-device-screen iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}
.sandbox-device-home {
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sandbox-device-home::after {
    content: "";
    width: 110px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.55);
}
.sandbox-placeholder {
    min-height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    color: #f8fafc;
    text-align: center;
}
.sandbox-placeholder > i {
    font-size: 3rem;
    color: #8ec5ff;
}
.sandbox-placeholder p {
    color: rgba(248,250,252,.72);
}
.sandbox-mock-card {
    text-align: left;
    border-radius: 16px;
    padding: .85rem 1rem;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
}
.sandbox-mock-card strong,
.sandbox-mock-card span {
    display: block;
}
.sandbox-mock-card span {
    color: rgba(248,250,252,.72);
    word-break: break-word;
}


/* v1.1.6 Template Sandbox controlled new-window preview */
.sandbox-open-frame {
    width: 100%;
    height: calc(100dvh - 150px);
    min-height: 520px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    background: #fff;
    box-shadow: 0 18px 70px rgba(0,0,0,.28);
}
.sandbox-open-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}
@media (max-width: 991.98px) {
    .sandbox-open-frame {
        height: calc(100dvh - 220px);
        min-height: 480px;
        border-radius: 16px;
    }
}


/* --------------------------------------------------------------------------
 * DLPro DDS Button, Topbar & Help Refinement
 * Version: 1.1.7
 *
 * Establishes clear filled/tinted button styling across desktop and mobile and
 * improves the shared help/topbar experience for all ECOS portals.
 * -------------------------------------------------------------------------- */

.btn {
    --bs-btn-border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    font-weight: 750;
    letter-spacing: -.01em;
    border-width: 1px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, border-color .14s ease, color .14s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .10);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 12px rgba(15, 23, 42, .08);
}

.btn-sm {
    --bs-btn-border-radius: 11px;
    min-height: 34px;
}

.btn-primary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info {
    color: #fff;
}

.btn-outline-primary {
    color: var(--dlpro-primary);
    border-color: color-mix(in srgb, var(--dlpro-primary) 38%, transparent);
    background: color-mix(in srgb, var(--dlpro-primary) 13%, var(--dlpro-surface-2));
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #fff;
    background: var(--dlpro-primary);
    border-color: var(--dlpro-primary);
}

.btn-outline-secondary,
.btn-outline-light,
.btn-outline-dark {
    color: var(--dlpro-text);
    border-color: var(--dlpro-border-strong);
    background: color-mix(in srgb, var(--dlpro-surface-2) 82%, var(--dlpro-primary-soft));
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-dark:hover,
.btn-outline-dark:focus {
    color: var(--dlpro-text);
    background: color-mix(in srgb, var(--dlpro-primary-soft) 70%, var(--dlpro-surface-2));
    border-color: color-mix(in srgb, var(--dlpro-primary) 40%, var(--dlpro-border-strong));
}

.btn-outline-danger {
    color: #dc2626;
    border-color: rgba(220, 38, 38, .32);
    background: color-mix(in srgb, var(--dlpro-danger-soft) 86%, var(--dlpro-surface-2));
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
}

.btn-outline-success {
    color: var(--dlpro-accent);
    border-color: color-mix(in srgb, var(--dlpro-accent) 36%, transparent);
    background: color-mix(in srgb, var(--dlpro-accent) 12%, var(--dlpro-surface-2));
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    color: #fff;
    background: var(--dlpro-accent);
    border-color: var(--dlpro-accent);
}

.btn-icon,
.btn-topbar {
    background: color-mix(in srgb, var(--dlpro-surface-2) 88%, var(--dlpro-primary-soft));
    border-color: var(--dlpro-border-strong);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .07);
}

.btn-icon:hover,
.btn-topbar:hover {
    background: color-mix(in srgb, var(--dlpro-primary-soft) 72%, var(--dlpro-surface-2));
    border-color: color-mix(in srgb, var(--dlpro-primary) 38%, var(--dlpro-border-strong));
}

.btn-dlpro-help {
    color: #fff;
    border-color: color-mix(in srgb, var(--dlpro-primary) 70%, transparent);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--dlpro-primary) 96%, #fff 4%), color-mix(in srgb, var(--dlpro-primary) 76%, #16a34a 24%));
    box-shadow: 0 12px 26px rgba(37, 99, 235, .22);
}

.btn-dlpro-help:hover,
.btn-dlpro-help:focus {
    color: #fff;
    border-color: var(--dlpro-primary);
    filter: brightness(1.04);
}

.dlpro-topbar {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--dlpro-surface) 96%, transparent), color-mix(in srgb, var(--dlpro-bg-soft) 96%, transparent));
    border-bottom: 1px solid var(--dlpro-border);
}

.page-help-strip {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--dlpro-primary-soft) 42%, var(--dlpro-bg-soft)), var(--dlpro-bg-soft));
}

.page-help-summary {
    font-weight: 650;
}

.page-help-icon {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--dlpro-primary);
    background: color-mix(in srgb, var(--dlpro-primary-soft) 86%, var(--dlpro-surface-2));
    border: 1px solid color-mix(in srgb, var(--dlpro-primary) 24%, var(--dlpro-border));
}

.help-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--dlpro-border);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--dlpro-primary-soft) 82%, transparent), transparent 18rem),
        var(--dlpro-surface);
}

.help-offcanvas .offcanvas-title,
.help-offcanvas h2 {
    letter-spacing: -.025em;
}

.help-offcanvas .btn-close {
    border-radius: 999px;
    background-color: color-mix(in srgb, var(--dlpro-surface-2) 85%, var(--dlpro-primary-soft));
    opacity: 1;
    padding: .7rem;
}

.action-toolbar,
.panel-header .btn-group,
.panel-header form,
.card-action-row {
    gap: .45rem;
}

/* ==========================================================================
   DLPro DDS Clickable Interaction States
   --------------------------------------------------------------------------
   Gives every selectable row, card, tile, widget, notification, and action
   surface a consistent hover/focus/tap response across all ECOS portals.
   ========================================================================== */

:root {
    --dlpro-interactive-bg: color-mix(in srgb, var(--dlpro-primary-soft) 42%, var(--dlpro-surface-2));
    --dlpro-interactive-border: color-mix(in srgb, var(--dlpro-primary) 34%, var(--dlpro-border-strong));
    --dlpro-interactive-shadow: 0 16px 34px rgba(15, 23, 42, .10);
    --dlpro-focus-ring: 0 0 0 .22rem color-mix(in srgb, var(--dlpro-primary) 24%, transparent);
}

[data-bs-theme="dark"] {
    --dlpro-interactive-bg: color-mix(in srgb, var(--dlpro-primary-soft) 54%, var(--dlpro-surface-2));
    --dlpro-interactive-border: color-mix(in srgb, var(--dlpro-primary) 44%, var(--dlpro-border-strong));
    --dlpro-interactive-shadow: 0 18px 36px rgba(0, 0, 0, .26);
}

.clickable-row,
.clickable-card,
.clickable-widget,
.card-clickable,
.dlpro-clickable,
tr[data-href],
tr[data-url],
tr[data-bs-target],
.table-dlpro tbody tr,
.dashboard-widget,
.stat-card,
.template-card,
.notification-item,
.documentation-row,
.support-ticket-row,
.sales-lead-row,
.provisioning-job-row,
.audit-log-row,
.migration-row,
.client-row,
.user-row,
.action-tile {
    transition:
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease,
        color .18s ease;
}

.clickable-row,
.clickable-card,
.clickable-widget,
.card-clickable,
.dlpro-clickable,
tr[data-href],
tr[data-url],
tr[data-bs-target],
.dashboard-widget,
.stat-card,
.template-card,
.notification-item,
.documentation-row,
.support-ticket-row,
.sales-lead-row,
.provisioning-job-row,
.audit-log-row,
.migration-row,
.client-row,
.user-row,
.action-tile {
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .clickable-card:hover,
    .clickable-widget:hover,
    .card-clickable:hover,
    .dlpro-clickable:hover,
    .dashboard-widget:hover,
    .stat-card:hover,
    .template-card:hover,
    .notification-item:hover,
    .documentation-row:hover,
    .support-ticket-row:hover,
    .sales-lead-row:hover,
    .provisioning-job-row:hover,
    .audit-log-row:hover,
    .migration-row:hover,
    .client-row:hover,
    .user-row:hover,
    .action-tile:hover {
        background: var(--dlpro-interactive-bg);
        border-color: var(--dlpro-interactive-border);
        box-shadow: var(--dlpro-interactive-shadow);
        transform: translateY(-1px);
    }

    .table-dlpro tbody tr:hover,
    tr.clickable-row:hover,
    tr[data-href]:hover,
    tr[data-url]:hover,
    tr[data-bs-target]:hover {
        background: var(--dlpro-interactive-bg);
        box-shadow: inset 4px 0 0 var(--dlpro-primary);
    }

    .table-dlpro tbody tr:hover td:first-child {
        border-top-left-radius: .65rem;
        border-bottom-left-radius: .65rem;
    }

    .table-dlpro tbody tr:hover td:last-child {
        border-top-right-radius: .65rem;
        border-bottom-right-radius: .65rem;
    }
}

.clickable-card:focus-visible,
.clickable-widget:focus-visible,
.card-clickable:focus-visible,
.dlpro-clickable:focus-visible,
.dashboard-widget:focus-visible,
.stat-card:focus-visible,
.template-card:focus-visible,
.notification-item:focus-visible,
.documentation-row:focus-visible,
.support-ticket-row:focus-visible,
.sales-lead-row:focus-visible,
.provisioning-job-row:focus-visible,
.audit-log-row:focus-visible,
.migration-row:focus-visible,
.client-row:focus-visible,
.user-row:focus-visible,
.action-tile:focus-visible,
.table-dlpro tbody tr:focus-visible,
tr.clickable-row:focus-visible,
tr[data-href]:focus-visible,
tr[data-url]:focus-visible,
tr[data-bs-target]:focus-visible {
    outline: 0;
    border-color: var(--dlpro-interactive-border);
    box-shadow: var(--dlpro-focus-ring), var(--dlpro-interactive-shadow);
}

.clickable-card:active,
.clickable-widget:active,
.card-clickable:active,
.dlpro-clickable:active,
.dashboard-widget:active,
.stat-card:active,
.template-card:active,
.notification-item:active,
.documentation-row:active,
.support-ticket-row:active,
.sales-lead-row:active,
.provisioning-job-row:active,
.audit-log-row:active,
.migration-row:active,
.client-row:active,
.user-row:active,
.action-tile:active {
    transform: translateY(0);
    background: color-mix(in srgb, var(--dlpro-primary-soft) 66%, var(--dlpro-surface-2));
}



/* v1.2.0 CSP-safe visual polish, colored icons, and stronger clickable states */
:root {
    --dlpro-warning: #f59e0b;
    --dlpro-warning-soft: rgba(245, 158, 11, .16);
    --dlpro-success-soft: rgba(22, 163, 74, .14);
    --dlpro-info-soft: rgba(14, 165, 233, .14);
    --dlpro-purple: #8b5cf6;
    --dlpro-purple-soft: rgba(139, 92, 246, .14);
    --dlpro-hover-bg: rgba(37, 99, 235, .075);
    --dlpro-hover-border: rgba(37, 99, 235, .42);
}
[data-bs-theme="dark"] {
    --dlpro-hover-bg: rgba(96, 165, 250, .13);
    --dlpro-hover-border: rgba(96, 165, 250, .54);
}

.btn-topbar i,
.btn-dlpro-help i,
.sidebar-nav a i,
.dlpro-mobile-bottom-nav i,
.portal-item i,
.metric-card i {
    transition: transform .16s ease, color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.btn-topbar {
    background: linear-gradient(180deg, var(--dlpro-surface-2), var(--dlpro-surface-3));
    border-color: var(--dlpro-border-strong);
}
.btn-topbar:hover,
.btn-topbar:focus-visible {
    border-color: var(--dlpro-hover-border);
    background: var(--dlpro-hover-bg);
    box-shadow: 0 10px 24px rgba(37, 99, 235, .12);
}
.btn-topbar:hover i,
.btn-topbar:focus-visible i {
    transform: translateY(-1px);
}

.btn-topbar-notifications i,
.notification-bell i {
    color: var(--dlpro-warning);
    text-shadow: 0 0 14px rgba(245, 158, 11, .34);
}
.btn-topbar-notifications,
.notification-bell {
    background: var(--dlpro-warning-soft);
    border-color: rgba(245, 158, 11, .32);
}
.btn-topbar-notifications:hover,
.notification-bell:hover {
    background: rgba(245, 158, 11, .22);
    border-color: rgba(245, 158, 11, .55);
}

.btn-topbar-help i,
.btn-dlpro-help i,
.page-help-icon i {
    color: #2563eb;
}
.btn-topbar-help,
.btn-dlpro-help {
    background: var(--dlpro-primary-soft);
    border-color: rgba(37, 99, 235, .26);
}

.btn-topbar-portals i {
    color: var(--dlpro-purple);
}
.btn-topbar-theme i {
    color: #38bdf8;
}
.topbar-health i {
    color: #22c55e;
}

.sidebar-nav a i {
    color: var(--dlpro-muted);
}
.sidebar-nav a:hover i,
.sidebar-nav a.active i {
    color: var(--dlpro-primary);
}

.dlpro-mobile-bottom-nav a:nth-child(1) i { color: var(--dlpro-primary); }
.dlpro-mobile-bottom-nav a:nth-child(2) i { color: #06b6d4; }
.dlpro-mobile-bottom-nav a:nth-child(3) i { color: #ef4444; }
.dlpro-mobile-bottom-nav a:nth-child(4) i { color: var(--dlpro-warning); }
.dlpro-mobile-bottom-nav button i { color: var(--dlpro-purple); }

.metric-card:nth-child(6n+1) i { color: var(--dlpro-primary); }
.metric-card:nth-child(6n+2) i { color: var(--dlpro-accent); }
.metric-card:nth-child(6n+3) i { color: var(--dlpro-warning); }
.metric-card:nth-child(6n+4) i { color: #ef4444; }
.metric-card:nth-child(6n+5) i { color: #06b6d4; }
.metric-card:nth-child(6n+6) i { color: var(--dlpro-purple); }

.clickable-row,
.table-clickable tbody tr,
.table-dlpro tbody tr[data-href],
.metric-card,
.dashboard-widget,
.template-card,
.portal-item,
.notification-item,
.health-card,
.ticket-card,
.requirement-card,
.role-pill,
.card[data-href],
[data-clickable="true"],
[data-href] {
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease, outline-color .16s ease;
}

.table-clickable tbody tr:hover,
.table-dlpro tbody tr:hover,
.table-dlpro tbody tr[data-href]:hover,
.clickable-row:hover {
    --bs-table-bg: var(--dlpro-hover-bg);
    background-color: var(--dlpro-hover-bg) !important;
    box-shadow: inset 3px 0 0 var(--dlpro-hover-border);
    cursor: pointer;
}

.metric-card:hover,
.metric-card:focus-within,
.dashboard-widget:hover,
.template-card:hover,
.portal-item:hover,
.notification-item:hover,
.health-card:hover,
.ticket-card:hover,
.requirement-card:hover,
.card[data-href]:hover,
[data-clickable="true"]:hover {
    border-color: var(--dlpro-hover-border) !important;
    background: linear-gradient(180deg, var(--dlpro-hover-bg), var(--dlpro-surface)) !important;
    box-shadow: 0 16px 34px rgba(37, 99, 235, .13);
    transform: translateY(-2px);
    cursor: pointer;
}

.metric-card:hover i,
.dashboard-widget:hover i,
.template-card:hover i,
.portal-item:hover i,
.notification-item:hover i {
    transform: scale(1.06);
}

.clickable-row:focus-visible,
.table-clickable tbody tr:focus-visible,
.table-dlpro tbody tr:focus-visible,
.metric-card:focus-visible,
.dashboard-widget:focus-visible,
.template-card:focus-visible,
.portal-item:focus-visible,
.notification-item:focus-visible,
.card[data-href]:focus-visible,
[data-clickable="true"]:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--dlpro-hover-border);
    outline-offset: 2px;
}

@media (hover: none) {
    .metric-card:active,
    .dashboard-widget:active,
    .template-card:active,
    .portal-item:active,
    .notification-item:active,
    .card[data-href]:active,
    [data-clickable="true"]:active {
        transform: scale(.992);
        background: var(--dlpro-hover-bg) !important;
    }
}
