:root {
    --bg: #07111f;
    --panel: #0d1929;
    --panel-2: #111f32;
    --line: rgba(255,255,255,.08);
    --text: #eef5ff;
    --muted: #8ca0ba;
    --accent: #46a9ff;
    --accent-2: #6dd5fa;
    --success: #36d399;
    --warning: #fbbd23;
    --danger: #fb923c;
    --critical: #f87272;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(70,169,255,.12),
            transparent 34rem
        ),
        var(--bg);
    font-family:
        Montserrat,
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 28px;
    background: rgba(7,17,31,.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    gap: 11px;
    align-items: center;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 800;
    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-2)
        );
    color: #04101e;
    box-shadow:
        0 9px 30px
        rgba(70,169,255,.25);
}

.brand-mark.large {
    width: 56px;
    height: 56px;
    font-size: 28px;
    border-radius: 16px;
}

.brand strong,
.brand small {
    display: block;
}

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

.userbox {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 13px;
}

.userbox form {
    margin: 0;
}

.link-button {
    padding: 0;
    color: var(--accent);
    background: none;
    border: 0;
    cursor: pointer;
}

.container {
    width: min(1500px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 70px;
}

.page-heading,
.application-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.page-heading h1,
.application-hero h1 {
    margin: 4px 0 7px;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -.04em;
}

.page-heading p,
.application-hero p {
    margin: 0;
    color: var(--muted);
}

.eyebrow {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.version-pill {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255,255,255,.025);
    font-size: 12px;
}

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

.stat-card,
.score-card,
.engine-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.012)
        );
}

.stat-card span,
.score-card span,
.engine-card span {
    display: block;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 12px;
}

.stat-card strong {
    font-size: 30px;
}

.stat-card.success {
    border-color: rgba(54,211,153,.25);
}

.stat-card.warning {
    border-color: rgba(251,189,35,.25);
}

.stat-card.critical {
    border-color: rgba(248,114,114,.25);
}

.panel {
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(13,25,41,.78);
    box-shadow:
        0 20px 60px
        rgba(0,0,0,.15);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
}

.panel-header h2 {
    margin: 0 0 4px;
    font-size: 17px;
}

.panel-header p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.search-form {
    display: flex;
    gap: 8px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 12px 13px;
    color: var(--text);
    background: #081422;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(70,169,255,.6);
    box-shadow:
        0 0 0 3px
        rgba(70,169,255,.08);
}

textarea {
    resize: vertical;
}

label {
    display: grid;
    gap: 7px;
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 12px;
}

button {
    font-family: inherit;
}

.search-form button,
.primary-button,
.secondary-button {
    border: 0;
    border-radius: 11px;
    padding: 12px 17px;
    cursor: pointer;
    font-weight: 700;
}

.search-form button,
.primary-button {
    color: #03101d;
    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-2)
        );
}

.secondary-button {
    color: var(--text);
    background: var(--panel-2);
    border: 1px solid var(--line);
}

.wide {
    width: 100%;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}

th {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

td {
    font-size: 13px;
}

td small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

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

.clickable-row {
    cursor: pointer;
    transition:
        background .2s ease,
        transform .2s ease;
}

.clickable-row:hover {
    background: rgba(70,169,255,.045);
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
}

.badge.large {
    padding: 9px 15px;
    font-size: 11px;
}

.badge.success {
    color: var(--success);
    border-color: rgba(54,211,153,.30);
    background: rgba(54,211,153,.07);
}

.badge.warning {
    color: var(--warning);
    border-color: rgba(251,189,35,.30);
    background: rgba(251,189,35,.07);
}

.badge.danger {
    color: var(--danger);
    border-color: rgba(251,146,60,.30);
    background: rgba(251,146,60,.07);
}

.badge.critical {
    color: var(--critical);
    border-color: rgba(248,114,114,.30);
    background: rgba(248,114,114,.07);
}

.badge.neutral {
    color: var(--muted);
}

.engine-grid,
.details-grid,
.score-grid {
    display: grid;
    gap: 12px;
}

.engine-grid {
    grid-template-columns:
        repeat(4, minmax(0,1fr));
    padding: 20px;
}

.engine-card {
    padding: 15px;
}

.score-grid {
    grid-template-columns:
        repeat(4, minmax(0,1fr));
    margin-bottom: 20px;
}

.score-card strong {
    display: block;
    font-size: 23px;
    line-height: 1.1;
}

.score-card small {
    color: var(--muted);
}

.score-card.decision {
    border-color: rgba(70,169,255,.25);
}

.two-column {
    display: grid;
    grid-template-columns:
        minmax(0, 2fr)
        minmax(290px, .85fr);
    gap: 20px;
}

.details-grid {
    grid-template-columns:
        repeat(3, minmax(0,1fr));
    padding: 22px;
}

.details-grid div {
    padding: 15px;
    border-radius: 13px;
    background: rgba(255,255,255,.025);
}

.details-grid span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 11px;
}

.check-list {
    padding: 7px 22px;
}

.check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.check-row:last-child {
    border-bottom: 0;
}

.check-row small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.condition {
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
}

.condition:last-child {
    border-bottom: 0;
}

.condition strong {
    color: var(--warning);
    font-size: 12px;
}

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

.review-form,
.panel form:not(.search-form) {
    padding: 22px;
}

.timeline {
    padding: 20px 22px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 12px;
    position: relative;
    padding-bottom: 20px;
}

.timeline-item > span {
    width: 9px;
    height: 9px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow:
        0 0 0 4px
        rgba(70,169,255,.10);
}

.timeline-item p {
    margin: 4px 0;
    color: var(--muted);
    font-size: 12px;
}

.timeline-item small {
    color: #61738a;
    font-size: 10px;
}

.note {
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
}

.note:last-child {
    border-bottom: 0;
}

.note p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.note small {
    color: #65768a;
}

.breadcrumb {
    margin-bottom: 22px;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
}

.login-shell {
    min-height:
        calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 30px;
}

.login-card {
    width: min(440px, 100%);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(13,25,41,.92);
    box-shadow:
        0 30px 90px
        rgba(0,0,0,.35);
}

.login-title {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 30px;
}

.login-title h1 {
    margin: 0;
}

.login-title p {
    margin: 4px 0 0;
    color: var(--muted);
}

.login-version {
    margin-top: 20px;
    color: #62758d;
    text-align: center;
    font-size: 10px;
}

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 12px;
}

.alert.critical {
    color: var(--critical);
    border: 1px solid rgba(248,114,114,.25);
    background: rgba(248,114,114,.07);
}

.footer {
    padding: 25px;
    color: #52667d;
    text-align: center;
    font-size: 10px;
}

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

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

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

    .two-column {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 700px) {
    .topbar {
        padding: 0 16px;
    }

    .userbox > span {
        display: none;
    }

    .container {
        width:
            min(
                100% - 24px,
                1500px
            );
        padding-top: 25px;
    }

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

    .score-grid,
    .details-grid,
    .engine-grid {
        grid-template-columns: 1fr;
    }

    .page-heading,
    .application-hero,
    .panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .search-form {
        width: 100%;
    }

    .search-form input {
        min-width: 0;
    }
}

/* =================================================
   BURZAM DaaS BACKOFFICE 1.1
   Secure document access
   ================================================= */

.document-view-link {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border:
        1px solid
        rgba(70,169,255,.20);
    border-radius: 9px;
    color: var(--accent);
    background:
        rgba(70,169,255,.04);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
}

.document-view-link:hover {
    background:
        rgba(70,169,255,.09);
}


/* =================================================
   BURZAM DaaS BACKOFFICE 1.1
   Secure document access
   ================================================= */

.document-view-link {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border:
        1px solid
        rgba(70,169,255,.20);
    border-radius: 9px;
    color: var(--accent);
    background:
        rgba(70,169,255,.04);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
}

.document-view-link:hover {
    background:
        rgba(70,169,255,.09);
}

