html {
    font-size: 1rem;
}

th {
    font-size: 1rem;
}

.admin-user-selected {
    background-color: #eef6ff;
    border-left: 4px solid #0d6efd;
}

.admin-user-list {
    max-height: 40rem;
    overflow-y: auto;
}

.admin-description-field {
    min-height: 8rem;
}

.home-result-card {
    background: #f8fff8;
}

.home-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.75rem 1rem;
}

.home-result-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.home-result-stack > div {
    word-break: break-word;
}

.home-result-secondary {
    margin-top: 1rem;
}

.home-result-secondary summary {
    cursor: pointer;
    font-weight: 600;
}

.home-result-secondary div {
    margin-top: 0.5rem;
    word-break: break-word;
}

.auth-page {
    overflow-x: hidden;
}

.auth-shell {
    display: flex;
    justify-content: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.auth-card-wrap {
    width: 100%;
    max-width: 36rem;
}

.auth-card {
    width: 100%;
}

.auth-card-block {
    padding: 1.5rem;
}

.admin-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-accordion-toggle {
    color: #212529;
    font-weight: 600;
    padding: 1rem 1.25rem;
    text-decoration: none;
}

.admin-accordion-toggle:hover,
.admin-accordion-toggle:focus {
    color: #212529;
    text-decoration: none;
}

.admin-log-table {
    max-height: 28rem;
}

.admin-log-table table {
    min-width: 32rem;
}

.admin-log-toolbar {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.75rem;
}

.admin-log-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.admin-geo-details {
    line-height: 1.35;
}

.admin-geo-switch {
    padding-top: 0.35rem;
}

.admin-role-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-role-remove-form {
    margin: 0;
}

.navbar-toggler {
    min-width: 48px;
    min-height: 48px;
    padding: 0.5rem 0.75rem;
}

.nav-link i {
    margin-right: 0.35rem;
}

#responseResultPCM31 {
    white-space: normal;
    word-break: break-word;
}

.history-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-card {
    border: 1px solid #e9ecef;
}

.history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.history-meta-bar {
    margin-bottom: 1rem;
    color: #6c757d;
}

.history-body {
    line-height: 1.5;
    word-break: break-word;
}

.history-toolbar {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.history-details {
    width: 100%;
}

.history-summary {
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-summary::-webkit-details-marker {
    margin-right: 0.35rem;
}

.history-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.server-log-message {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    body {
        font-size: 1rem;
    }

    .container,
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .jumbotron {
        padding: 1.5rem 1rem;
    }

    .display-4 {
        font-size: 2.1rem;
    }

    .form-control,
    .btn,
    .nav-link,
    .navbar-brand,
    .dropdown-item {
        font-size: 1rem;
    }

    input.form-control,
    select.form-control,
    textarea.form-control {
        min-height: 2.75rem;
        font-size: 16px;
    }

    .btn {
        min-height: 2.75rem;
    }

    .nav-link {
        padding: 0.75rem 0;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

    .admin-accordion-toggle {
        padding: 0.9rem 1rem;
    }

    .auth-shell {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .auth-card-wrap {
        max-width: 100%;
    }

    .auth-card-block {
        padding: 1rem;
    }

    .admin-log-meta,
    .admin-pagination,
    .history-pagination {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-result-grid {
        grid-template-columns: 1fr;
    }
}
