/* Loaded only by sistem-durumu.php (muv_page_start css). */
.muv-status-page .heading {
    margin-bottom: 30px;
}

.muv-status-page .alert p {
    margin: 8px 0 0;
}

.muv-status-page .h-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--bs-dark);
}

.muv-status-page .h-desc {
    font-size: 17px;
    line-height: 1.6;
    color: var(--bs-dark-gray);
    max-width: 52rem;
}

.muv-status-page .h-desc a,
.muv-status-page .h-desc a:visited {
    color: var(--bs-success-text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.muv-status-page .h-desc a:hover {
    color: #087256;
}

.muv-status-alert {
    margin-top: 0;
}

.muv-status-alert__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
}

.muv-status-alert strong {
    display: block;
    font-size: 18px;
    color: var(--bs-dark);
    margin-bottom: 4px;
}

.muv-status-alert span {
    display: block;
    font-size: 15px;
    color: var(--bs-dark-gray);
}

.muv-status-alert__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.muv-status-panel {
    background: #fff;
    border: 1px solid var(--mh-line);
    border-radius: .5rem;
    overflow: hidden;
    margin-top: 8px;
}

.muv-status-panel__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--mh-line);
    background: var(--bs-light-gray);
}

.muv-status-panel__bar h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--bs-dark);
}

.muv-status-panel__bar span {
    display: block;
    font-size: 13px;
    color: var(--bs-dark-gray);
    margin-top: 2px;
}

.muv-status-panel__bar .muv-status-count {
    font-weight: 700;
    color: var(--bs-dark);
    margin-top: 0;
}

/* Service list: one block per group, one row per service. The state is a
   word with a mark; the small bars repeat it for the last checks. */
.st-group + .st-group {
    border-top: 1px solid var(--mh-line);
}

.st-group-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 18px 18px 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--bs-dark);
}

.st-group-title span {
    font-size: 13px;
    font-weight: 400;
    color: var(--bs-dark-gray);
    white-space: nowrap;
}

/* .section-content styles every ul as a bulleted text list */
.muv-status-panel .st-list {
    list-style: none;
    margin: 0;
    padding: 0 18px 8px;
}

.muv-status-panel .st-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 182px 132px 150px;
    align-items: center;
    gap: 6px 20px;
    padding: 12px 0;
}

.st-row + .st-row {
    border-top: 1px solid var(--mh-line);
}

.st-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--bs-dark);
    overflow-wrap: anywhere;
}

.st-state {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 6px;
    order: 4;
    padding: 4px 10px;
    border: 1px solid var(--mh-line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    color: var(--bs-dark-gray);
    background: var(--bs-light-gray);
}

.st-state--up {
    color: var(--mh-chip-ink);
    background: var(--mh-chip-bg);
    border-color: var(--mh-chip-line);
}

.st-state--down {
    color: #b00c16;
    background: var(--bs-light-danger);
    border-color: #f6c9d2;
}

.st-state--maint {
    color: var(--mh-orange-text);
    background: #fff4ec;
    border-color: #f8d6c0;
}

.st-beats {
    display: flex;
    justify-content: flex-end;
    gap: 2px;
}

.st-beats i {
    flex: 0 0 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--bs-gray);
}

.st-beats .b-up {
    background: var(--bs-success);
}

.st-beats .b-down {
    background: var(--bs-danger);
}

.st-beats .b-maint {
    background: var(--bs-orange);
}

.st-uptime {
    font-size: 13px;
    color: var(--bs-dark-gray);
    text-align: right;
    white-space: nowrap;
}

.st-uptime b {
    font-weight: 600;
    color: var(--bs-dark);
}

/* Shown only when the status server does not answer this site. */
.muv-status-frame {
    display: block;
    width: 100%;
    min-height: 860px;
    border: 0;
    background: #fff;
}

@media (max-width: 991.98px) {
    /* name and state on the first line, bars and uptime under them */
    .muv-status-panel .st-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .st-state {
        order: 0;
    }

    .st-beats {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .muv-status-alert__actions {
        width: 100%;
    }

    .muv-status-alert__actions .btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .muv-status-frame {
        min-height: 980px;
    }
}
