body {
    background: #f7f8fa;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.auth-box,
.form-panel,
.filters,
.column-settings,
.hidden-apartments {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
}

.auth-box {
    width: min(420px, calc(100vw - 2rem));
}

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

.view-settings {
    display: grid;
    gap: 1rem;
}

.compact-filters {
    align-items: end;
}

.column-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: .5rem 1rem;
}

.column-settings-title {
    grid-column: 1 / -1;
    font-weight: 600;
}

.column-settings .form-check {
    margin-bottom: 0;
}

.hidden-apartments-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .5rem 1rem;
}

.hidden-apartments .form-check {
    margin-bottom: 0;
}

.filter-actions {
    display: flex;
    align-items: end;
    gap: .5rem;
    flex-wrap: wrap;
}

.selection-column {
    width: 74px;
    text-align: center;
}

.settings-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    padding: 2rem 1rem;
    background: rgba(15, 23, 42, .45);
}

.settings-modal-backdrop.is-open {
    display: flex;
}

.settings-modal {
    width: min(980px, 100%);
    max-height: calc(100vh - 4rem);
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .25);
    padding: 1.25rem;
}

.settings-modal-section {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
    margin-top: 1rem;
}

.settings-modal-section:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.apartment-list-textarea {
    min-height: 120px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.copy-status {
    margin-left: .75rem;
    color: #198754;
    font-size: .875rem;
}

.readings-table {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.readings-table table {
    min-width: 1450px;
    margin-bottom: 0;
}
