:root {
    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;

    --sidebar: #081321;
    --sidebar-2: #0c1a2d;

    --text: #152033;
    --text-strong: #091425;
    --muted: #68758a;
    --muted-light: #98a3b4;

    --border: #e4e9f1;

    --primary: #3157df;
    --primary-hover: #2748bd;

    --green: #16845c;
    --warning: #d48924;
    --critical: #cc4e4e;

    --shadow:
        0 12px 34px rgba(20, 34, 57, .07);

    --sidebar-width: 246px;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}


* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    min-height: 100%;
}


body {
    background: var(--bg);
    color: var(--text);

    font-size: 14px;

    -webkit-font-smoothing:
        antialiased;
}


button,
input,
select {
    font: inherit;
}


button {
    border: 0;
}


a {
    color: inherit;
    text-decoration: none;
}


svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =====================================================
   LOGIN
===================================================== */

.login-page {
    min-height: 100vh;

    overflow: hidden;

    background: #07111e;
}


.login-background {
    position: fixed;
    inset: 0;

    z-index: 0;

    background:
        url("/assets/images/login-bg.jpg")
        center center / cover
        no-repeat;
}


.login-overlay {
    position: fixed;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            180deg,
            rgba(4, 14, 25, .50),
            rgba(4, 14, 25, .64)
        );
}


.login-stage {
    position: relative;

    z-index: 2;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        42px 20px 90px;
}


.login-card {
    width: min(
        100%,
        560px
    );

    overflow: hidden;

    border:
        1px solid rgba(
            255,
            255,
            255,
            .5
        );

    border-radius: 22px;

    background:
        rgba(
            255,
            255,
            255,
            .94
        );

    box-shadow:
        0 30px 80px rgba(
            0,
            0,
            0,
            .30
        );

    backdrop-filter:
        blur(14px);
}


.login-card-header {
    padding:
        28px 34px 24px;

    text-align: center;

    border-bottom:
        1px solid #e7ebf1;

    background:
        linear-gradient(
            180deg,
            rgba(
                234,
                248,
                239,
                .85
            ),
            rgba(
                255,
                255,
                255,
                .82
            )
        );
}


.login-logo-box {
    width: 66px;
    height: 66px;

    margin:
        0 auto 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 8px 25px rgba(
            20,
            35,
            55,
            .10
        );
}


.login-logo {
    max-width: 54px;
    max-height: 54px;

    object-fit: contain;
}


.login-card-header h1 {
    margin:
        0 0 8px;

    color: #081939;

    font-size: 25px;

    font-weight: 800;

    letter-spacing:
        .035em;
}


.login-card-header p {
    margin: 0;

    color: #5f6b7e;

    font-size: 14px;
}


.login-card-body {
    padding:
        27px 31px 30px;
}


.login-error {
    margin-bottom: 19px;

    padding:
        12px 13px;

    border:
        1px solid #f0caca;

    border-radius: 10px;

    color: #aa3737;

    background: #fff1f1;

    line-height: 1.5;
}


.form-field {
    margin-bottom: 18px;
}


.form-field label {
    display: block;

    margin-bottom: 8px;

    color: #283448;

    font-size: 13px;

    font-weight: 700;
}


.form-field input {
    width: 100%;

    height: 47px;

    padding:
        0 13px;

    border:
        1px solid #d6dee9;

    border-radius: 10px;

    color: #121c2e;

    background: #ffffff;

    outline: none;

    transition:
        border-color .16s ease,
        box-shadow .16s ease;
}


.form-field input:focus {
    border-color: #7187e8;

    box-shadow:
        0 0 0 4px rgba(
            49,
            87,
            223,
            .09
        );
}


.password-control {
    position: relative;
}


.password-control input {
    padding-right: 62px;
}


.password-toggle {
    position: absolute;

    top: 50%;
    right: 7px;

    transform:
        translateY(-50%);

    min-width: 48px;
    height: 34px;

    border-radius: 8px;

    color: #657186;

    background: #f2f5f8;

    cursor: pointer;

    font-size: 11px;

    font-weight: 700;
}


.login-submit {
    width: 100%;
    height: 49px;

    margin-top: 4px;

    border-radius: 10px;

    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            #13934f,
            #1aa8d0
        );

    cursor: pointer;

    font-size: 14px;
    font-weight: 750;

    box-shadow:
        0 10px 24px rgba(
            18,
            154,
            115,
            .18
        );
}


.login-submit:hover {
    filter: brightness(
        .97
    );
}


.login-security {
    margin-top: 21px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    color: #788397;

    font-size: 11px;
}


.login-security svg {
    width: 16px;
    height: 16px;

    color: #16845c;
}


.login-footer {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 3;

    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #e8edf7;

    background:
        #08142d;

    border-top:
        1px solid rgba(
            255,
            255,
            255,
            .08
        );

    font-size: 13px;
}


/* =====================================================
   APPLICATION
===================================================== */

.application-shell {
    min-height: 100vh;
}


.sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    z-index: 50;

    width:
        var(--sidebar-width);

    padding:
        21px 14px 18px;

    display: flex;
    flex-direction: column;

    color: #aeb8c7;

    background:
        linear-gradient(
            180deg,
            var(--sidebar),
            var(--sidebar-2)
        );

    border-right:
        1px solid rgba(
            255,
            255,
            255,
            .045
        );
}


.sidebar-brand {
    padding:
        0 7px 21px;

    border-bottom:
        1px solid rgba(
            255,
            255,
            255,
            .07
        );
}


.sidebar-brand-link {
    display: flex;
    align-items: center;

    gap: 11px;
}


.sidebar-logo-box {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 10px;

    background:
        rgba(
            255,
            255,
            255,
            .08
        );
}


.sidebar-logo-box img {
    max-width: 38px;
    max-height: 38px;
}


.sidebar-brand strong {
    display: block;

    color: #ffffff;

    font-size: 13px;
}


.sidebar-brand span {
    display: block;

    margin-top: 3px;

    color: #728095;

    font-size: 9px;
}


.sidebar-nav {
    flex: 1;

    padding-top: 18px;
}


.nav-caption {
    margin:
        0 11px 8px;

    color: #536178;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .14em;
}


.nav-admin-caption {
    margin-top: 23px;
}


.nav-link {
    min-height: 42px;

    margin-bottom: 3px;

    padding:
        0 12px;

    display: flex;
    align-items: center;

    gap: 11px;

    border-radius: 8px;

    color: #98a5b7;

    font-size: 12px;

    font-weight: 580;

    transition:
        background .15s ease,
        color .15s ease;
}


.nav-link:hover {
    color: #ffffff;

    background:
        rgba(
            255,
            255,
            255,
            .05
        );
}


.nav-link.active {
    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            rgba(
                69,
                94,
                216,
                .30
            ),
            rgba(
                69,
                94,
                216,
                .12
            )
        );

    box-shadow:
        inset 3px 0
        #6d83ef;
}


.nav-disabled {
    cursor: default;

    opacity: .48;
}


.nav-disabled:hover {
    color: #98a5b7;

    background: transparent;
}


.nav-icon {
    display: flex;

    width: 20px;
}


.nav-icon svg {
    width: 18px;
    height: 18px;
}


.sidebar-footer {
    padding:
        14px 7px 0;

    display: flex;
    align-items: center;

    gap: 10px;

    border-top:
        1px solid rgba(
            255,
            255,
            255,
            .07
        );
}


.server-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #38c58b;

    box-shadow:
        0 0 0 5px rgba(
            56,
            197,
            139,
            .08
        );
}


.sidebar-footer strong {
    display: block;

    color: #d9e0ea;

    font-size: 10px;
}


.sidebar-footer small {
    display: block;

    margin-top: 2px;

    color: #66758b;

    font-size: 8px;
}


.content-shell {
    min-height: 100vh;

    margin-left:
        var(--sidebar-width);

    display: flex;
    flex-direction: column;
}


.topbar {
    height: 72px;

    flex-shrink: 0;

    padding:
        0 27px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background:
        rgba(
            255,
            255,
            255,
            .95
        );

    border-bottom:
        1px solid var(--border);
}


.topbar-left,
.topbar-right,
.user-area {
    display: flex;
    align-items: center;
}


.topbar-left {
    gap: 13px;
}


.topbar-caption {
    display: block;

    margin-bottom: 3px;

    color: #98a2b1;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .13em;
}


.topbar h1 {
    margin: 0;

    color: var(--text-strong);

    font-size: 19px;
}


.sidebar-toggle {
    display: none;

    width: 39px;
    height: 39px;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    color: #536074;

    background: #f1f4f8;

    cursor: pointer;
}


.topbar-right {
    gap: 20px;
}


.live-time {
    color: #7d899a;

    font-size: 10px;
}


.user-area {
    gap: 9px;
}


.user-avatar {
    width: 37px;
    height: 37px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: #3157df;

    background: #edf1ff;

    font-size: 11px;

    font-weight: 800;
}


.user-info {
    min-width: 105px;
}


.user-info strong {
    display: block;

    color: #293448;

    font-size: 11px;
}


.user-info span {
    display: block;

    margin-top: 2px;

    color: #919bac;

    font-size: 9px;
}


.logout-button {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    color: #778396;

    background: transparent;

    cursor: pointer;
}


.logout-button:hover {
    color: #bd4444;

    background: #fff0f0;
}


.logout-button svg {
    width: 17px;
    height: 17px;
}


.main-content {
    width: 100%;
    max-width: 1640px;

    margin:
        0 auto;

    padding:
        25px 27px 36px;

    flex: 1;
}


/* =====================================================
   HERO
===================================================== */

.dashboard-hero {
    position: relative;

    min-height: 270px;

    margin-bottom: 19px;

    overflow: hidden;

    border-radius: 20px;

    color: #ffffff;

    background:
        linear-gradient(
            105deg,
            rgba(
                5,
                17,
                34,
                .90
            ),
            rgba(
                32,
                64,
                119,
                .72
            )
        ),
        url("/assets/images/dashboard-hero.jpg")
        center center / cover
        no-repeat;

    box-shadow: var(--shadow);
}


.dashboard-hero-shade {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(
                80,
                108,
                223,
                .22
            ),
            transparent 38%
        );
}


.dashboard-hero-inner {
    position: relative;

    z-index: 2;

    min-height: 270px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding:
        36px 34px;

    text-align: center;
}


.hero-platform {
    margin-bottom: 18px;

    display: flex;
    align-items: center;

    gap: 9px;

    color:
        rgba(
            255,
            255,
            255,
            .70
        );

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .12em;
}


.hero-health-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #43c68e;

    box-shadow:
        0 0 0 5px rgba(
            67,
            198,
            142,
            .10
        );
}


.dashboard-hero[
    data-health="warning"
]
.hero-health-dot {
    background: #e3a143;
}


.dashboard-hero[
    data-health="critical"
]
.hero-health-dot {
    background: #df5b5b;
}


.dashboard-hero h2 {
    margin:
        0 0 10px;

    color: #ffffff;

    font-size:
        clamp(
            33px,
            4vw,
            48px
        );

    line-height: 1.1;

    letter-spacing:
        -.035em;
}


.dashboard-hero p {
    max-width: 760px;

    margin: 0;

    color:
        rgba(
            255,
            255,
            255,
            .70
        );

    font-size: 14px;

    line-height: 1.65;
}


/* =====================================================
   METRICS
===================================================== */

.metrics-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        );

    gap: 15px;

    margin-bottom: 19px;
}


.metric-card {
    padding:
        19px 20px;

    border:
        1px solid var(--border);

    border-radius: 14px;

    background: var(--surface);

    box-shadow:
        0 5px 18px rgba(
            20,
            34,
            57,
            .045
        );
}


.metric-label {
    margin-bottom: 11px;

    color: #687489;

    font-size: 11px;

    font-weight: 650;
}


.metric-value {
    color: #0c1729;

    font-size: 30px;

    font-weight: 760;

    letter-spacing:
        -.035em;
}


.metric-note {
    margin-top: 7px;

    color: #939dad;

    font-size: 9px;
}


/* =====================================================
   PANEL
===================================================== */

.panel {
    margin-bottom: 19px;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background: var(--surface);

    box-shadow:
        0 5px 18px rgba(
            20,
            34,
            57,
            .045
        );
}


.panel-header {
    min-height: 72px;

    padding:
        16px 19px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    border-bottom:
        1px solid #edf0f4;
}


.panel-caption {
    display: block;

    margin-bottom: 4px;

    color: #9ca5b4;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .13em;
}


.panel-header h3 {
    margin:
        0 0 3px;

    color: #1a2437;

    font-size: 15px;
}


.panel-header p {
    margin: 0;

    color: #8b96a7;

    font-size: 9px;
}


.period-filter {
    display: flex;

    padding: 3px;

    border-radius: 9px;

    background: #f1f4f8;
}


.period-button {
    min-width: 67px;
    height: 32px;

    padding:
        0 10px;

    border-radius: 7px;

    color: #7b8798;

    background: transparent;

    cursor: pointer;

    font-size: 10px;

    font-weight: 700;
}


.period-button.active {
    color: #ffffff;

    background: #3157df;

    box-shadow:
        0 4px 12px rgba(
            49,
            87,
            223,
            .18
        );
}


/* =====================================================
   LINE CHART
===================================================== */

.line-chart {
    min-height: 330px;

    padding:
        22px 18px 0;
}


.chart-svg {
    width: 100%;
    height: 310px;

    overflow: visible;
}


.chart-grid-line {
    stroke: #edf0f5;

    stroke-width: 1;
}


.chart-axis-text {
    fill: #8e99aa;

    font-size: 10px;

    font-family: inherit;
}


.chart-line {
    fill: none;

    stroke: #3157df;

    stroke-width: 3;

    stroke-linecap: round;

    stroke-linejoin: round;

    vector-effect:
        non-scaling-stroke;
}


.chart-point {
    fill: #ffffff;

    stroke: #3157df;

    stroke-width: 3;

    cursor: pointer;

    vector-effect:
        non-scaling-stroke;

    transition:
        r .14s ease;
}


.chart-point:hover {
    r: 8;
}


.chart-point.active {
    fill: #3157df;

    stroke: #ffffff;

    stroke-width: 4;

    filter:
        drop-shadow(
            0 4px 8px
            rgba(
                49,
                87,
                223,
                .30
            )
        );
}


.selected-period {
    padding:
        14px 19px 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    border-top:
        1px solid #f0f2f5;

    background: #fbfcfe;
}


.selected-period > div:first-child span {
    display: block;

    margin-bottom: 3px;

    color: #929dad;

    font-size: 9px;
}


.selected-period > div:first-child strong {
    color: #2d384c;

    font-size: 11px;
}


.selected-counts {
    display: flex;
    align-items: center;

    gap: 15px;

    color: #7c8798;

    font-size: 9px;
}


.selected-counts strong {
    margin-left: 3px;

    color: #384457;
}


/* =====================================================
   DASHBOARD COLUMNS
===================================================== */

.dashboard-columns {
    display: grid;

    grid-template-columns:
        minmax(
            0,
            1.35fr
        )
        minmax(
            300px,
            .65fr
        );

    gap: 18px;
}


.logger-tools,
.event-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}


.logger-tools {
    padding:
        13px 16px;

    border-bottom:
        1px solid #eef1f5;
}


.logger-tools input,
.logger-tools select,
.event-actions input,
.event-actions select {
    height: 36px;

    padding:
        0 10px;

    border:
        1px solid #dce3ec;

    border-radius: 8px;

    color: #3d485b;

    background: #ffffff;

    outline: none;

    font-size: 10px;
}


.logger-tools input {
    flex: 1;
}


.logger-tools select {
    width: 150px;
}


.event-actions input {
    width: 215px;
}


.event-actions select {
    width: 128px;
}


.logger-scroll {
    height: 330px;

    overflow: auto;
}


.event-table-scroll {
    max-height: 430px;

    overflow: auto;
}


.data-table {
    width: 100%;

    border-collapse: collapse;
}


.data-table thead th {
    position: sticky;

    top: 0;

    z-index: 2;

    padding:
        10px 14px;

    color: #929dad;

    background: #fafbfc;

    border-bottom:
        1px solid #e9edf2;

    text-align: left;

    white-space: nowrap;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .05em;

    text-transform: uppercase;
}


.data-table td {
    padding:
        12px 14px;

    border-bottom:
        1px solid #eff2f5;

    color: #525e70;

    vertical-align: middle;

    font-size: 9px;
}


.data-table tbody tr:hover {
    background: #fafcff;
}


.data-table strong {
    display: block;

    color: #2a3548;

    font-size: 9px;
}


.data-table small {
    display: block;

    margin-top: 3px;

    color: #9aa4b3;

    font-size: 8px;
}


.table-empty {
    padding:
        30px 15px !important;

    color: #9aa4b3 !important;

    text-align: center;
}


.version-chip,
.type-chip {
    display: inline-flex;

    padding:
        4px 7px;

    border-radius: 6px;

    color: #5d6980;

    background: #f0f3f7;

    font-size: 8px;

    font-weight: 700;
}


.status-badge,
.severity-badge {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding:
        4px 7px;

    border-radius: 999px;

    font-size: 8px;

    font-weight: 750;
}


.status-badge i {
    width: 5px;
    height: 5px;

    border-radius: 50%;
}


.status-badge.online {
    color: #187353;

    background: #eaf8f2;
}


.status-badge.online i {
    background: #38b681;
}


.status-badge.offline {
    color: #7c6870;

    background: #f4eff1;
}


.status-badge.offline i {
    background: #aa7c8b;
}


.severity-critical {
    color: #b33c3c;

    background: #fff0f0;
}


.severity-warning {
    color: #ad6c18;

    background: #fff6e9;
}


.severity-info {
    color: #3d5fbb;

    background: #eef3ff;
}


/* =====================================================
   ATTENTION
===================================================== */

.attention-list {
    max-height: 416px;

    overflow-y: auto;
}


.attention-item {
    min-height: 62px;

    padding:
        11px 16px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-bottom:
        1px solid #f0f2f5;
}


.attention-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #d45656;
}


.attention-main {
    min-width: 0;

    flex: 1;
}


.attention-main strong,
.attention-time strong {
    display: block;

    font-size: 9px;
}


.attention-main strong {
    overflow: hidden;

    color: #303b4e;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.attention-main small,
.attention-time small {
    display: block;

    margin-top: 3px;

    color: #99a3b3;

    font-size: 8px;
}


.attention-time {
    text-align: right;
}


.attention-time strong {
    color: #c74e4e;
}


.attention-empty {
    min-height: 250px;

    padding: 28px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}


.attention-empty strong {
    color: #677387;

    font-size: 10px;
}


.attention-empty span {
    margin-top: 5px;

    color: #9aa4b3;

    font-size: 8px;
}


/* =====================================================
   EVENT
===================================================== */

.event-panel-header {
    align-items: center;
}


.event-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}


.export-button {
    height: 36px;

    padding:
        0 12px;

    border-radius: 8px;

    color: #4c5870;

    background: #edf1f6;

    cursor: pointer;

    font-size: 9px;

    font-weight: 750;
}


.export-button:hover {
    color: #ffffff;

    background: #3157df;
}


.event-summary-strip {
    padding:
        10px 17px;

    display: flex;
    align-items: center;

    gap: 18px;

    color: #7d899a;

    background: #fafbfc;

    border-bottom:
        1px solid #eef1f5;

    font-size: 9px;
}


.event-summary-strip strong {
    margin-left: 3px;
}


.text-critical {
    color: #c54b4b !important;
}


.text-warning {
    color: #bd761e !important;
}


.event-row {
    cursor: pointer;
}


/* =====================================================
   MODAL
===================================================== */

.modal-open {
    overflow: hidden;
}


.event-modal {
    position: fixed;
    inset: 0;

    z-index: 200;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 25px;
}


.event-modal.open {
    display: flex;
}


.event-modal-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(
            4,
            12,
            23,
            .64
        );

    backdrop-filter:
        blur(4px);
}


.event-modal-card {
    position: relative;

    z-index: 2;

    width:
        min(
            920px,
            100%
        );

    max-height:
        calc(
            100vh - 50px
        );

    overflow: hidden;

    border-radius: 17px;

    background: #ffffff;

    box-shadow:
        0 35px 90px rgba(
            0,
            0,
            0,
            .34
        );
}


.event-modal-header {
    min-height: 75px;

    padding:
        17px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom:
        1px solid #e9edf2;
}


.event-modal-header h3 {
    margin:
        5px 0 0;

    color: #1d2739;

    font-size: 17px;
}


.modal-severity {
    display: inline-flex;

    padding:
        4px 7px;

    border-radius: 999px;

    font-size: 8px;

    font-weight: 800;
}


.modal-close {
    width: 37px;
    height: 37px;

    border-radius: 9px;

    color: #6e7a8d;

    background: #f1f4f8;

    cursor: pointer;

    font-size: 23px;

    line-height: 1;
}


.event-modal-content {
    max-height:
        calc(
            100vh - 126px
        );

    overflow-y: auto;

    padding:
        20px;
}


.event-detail-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 11px;
}


.event-detail-item {
    padding:
        12px 13px;

    border:
        1px solid #e7ebf1;

    border-radius: 10px;

    background: #fafbfc;
}


.event-detail-item.wide {
    grid-column:
        1 / -1;
}


.event-detail-item span {
    display: block;

    margin-bottom: 5px;

    color: #939dac;

    font-size: 8px;
}


.event-detail-item strong {
    color: #334055;

    font-size: 10px;

    line-height: 1.55;

    word-break: break-word;
}


.context-section {
    margin-top: 18px;
}


.context-section h4 {
    margin:
        0 0 9px;

    color: #344055;

    font-size: 11px;
}


.context-list {
    overflow: hidden;

    border:
        1px solid #e5e9ef;

    border-radius: 10px;

    background: #0c1625;
}


.context-line {
    min-height: 37px;

    padding:
        8px 10px;

    display: grid;

    grid-template-columns:
        140px 42px 1fr;

    align-items: center;

    gap: 8px;

    border-bottom:
        1px solid rgba(
            255,
            255,
            255,
            .06
        );
}


.context-line:last-child {
    border-bottom: 0;
}


.context-time {
    color: #75849a;

    font-size: 8px;
}


.context-dir {
    width: fit-content;

    padding:
        3px 5px;

    border-radius: 4px;

    color: #77d6aa;

    background:
        rgba(
            69,
            196,
            138,
            .10
        );

    font-size: 7px;

    font-weight: 800;
}


.context-dir.tx {
    color: #8cb5ff;

    background:
        rgba(
            85,
            126,
            218,
            .13
        );
}


.context-line code {
    overflow-x: auto;

    color: #d2d9e4;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 9px;

    white-space: pre-wrap;

    word-break: break-word;
}


.context-empty {
    padding: 13px;

    border-radius: 9px;

    color: #949eae;

    background: #f4f6f9;

    font-size: 9px;
}


/* =====================================================
   FOOTER
===================================================== */

.app-footer {
    min-height: 55px;

    padding:
        15px 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #dfe6f1;

    background: #08142d;

    border-top:
        1px solid rgba(
            255,
            255,
            255,
            .06
        );

    font-size: 11px;
}


/* =====================================================
   RESPONSIVE
===================================================== */

.mobile-overlay {
    position: fixed;
    inset: 0;

    z-index: 45;

    display: none;

    background:
        rgba(
            2,
            8,
            18,
            .48
        );
}


@media (
    max-width: 1200px
) {

    .metrics-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }

    .dashboard-columns {
        grid-template-columns:
            1fr;
    }
}


@media (
    max-width: 950px
) {

    .sidebar {
        transform:
            translateX(
                -100%
            );

        transition:
            transform .20s ease;
    }

    .content-shell {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: flex;
    }

    .sidebar-open .sidebar {
        transform:
            translateX(0);
    }

    .sidebar-open .mobile-overlay {
        display: block;
    }

    .event-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .event-actions {
        width: 100%;

        justify-content: flex-start;
    }
}


@media (
    max-width: 720px
) {

    .main-content {
        padding:
            17px 13px 28px;
    }

    .topbar {
        padding:
            0 14px;
    }

    .live-time,
    .user-info {
        display: none;
    }

    .metrics-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .dashboard-hero {
        min-height: 235px;

        border-radius: 15px;
    }

    .dashboard-hero-inner {
        min-height: 235px;

        padding:
            28px 20px;
    }

    .dashboard-hero h2 {
        font-size: 30px;
    }

    .period-filter {
        margin-top: 10px;
    }

    .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .selected-period {
        align-items: flex-start;
        flex-direction: column;
    }

    .selected-counts {
        flex-wrap: wrap;
    }

    .event-actions input,
    .event-actions select {
        width: 100%;
    }

    .event-detail-grid {
        grid-template-columns: 1fr;
    }

    .event-detail-item.wide {
        grid-column: auto;
    }

    .context-line {
        grid-template-columns:
            1fr;

        gap: 5px;
    }
}


@media (
    max-width: 520px
) {

    .login-card {
        border-radius: 17px;
    }

    .login-card-header,
    .login-card-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .metrics-grid {
        grid-template-columns:
            1fr;
    }

    .chart-svg {
        height: 270px;
    }

    .logger-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .logger-tools select {
        width: 100%;
    }
}