* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f6f7f9;
    color: #1b1f24;
    line-height: 1.4;
}

.topbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 60;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 28px;
    background: #123c55;
    color: white;
}

.topbar nav {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.brand,
.topbar a {
    color: white;
    text-decoration: none;
}

.brand {
    font-weight: 700;
}

.auth-user {
    color: #d8e7ef;
    font-size: 14px;
}

.language-switch {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: #d8e7ef;
    font-size: 13px;
    font-weight: 700;
}

.profile-menu {
    position: relative;
}

.profile-menu summary {
    min-height: 34px;
    padding: 6px 28px 6px 10px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    cursor: pointer;
    list-style: none;
}

.profile-menu summary::-webkit-details-marker {
    display: none;
}

.profile-menu summary::after {
    position: absolute;
    right: 10px;
    top: 9px;
    content: "\25BE";
    color: #d8e7ef;
    font-size: 11px;
}

.profile-menu[open] summary::after {
    content: "\25B4";
}

.profile-menu-panel {
    position: absolute;
    right: 0;
    z-index: 30;
    display: grid;
    gap: 4px;
    min-width: 190px;
    margin-top: 6px;
    padding: 8px;
    border: 1px solid #c8d0da;
    border-radius: 6px;
    background: white;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .16);
}

.profile-menu-panel span {
    padding: 6px 8px;
    color: #53606d;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.profile-menu-panel a {
    padding: 7px 8px;
    border-radius: 4px;
    color: #123c55;
}

.profile-menu-panel a:hover {
    background: #eef2f5;
    text-decoration: none;
}

.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px;
}

.page-header {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
}

h1 {
    margin: 0 0 6px;
    font-size: 28px;
}

p {
    margin: 0;
    color: #53606d;
}

.filter-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

input,
select,
textarea {
    min-width: 140px;
    padding: 8px 10px;
    border: 1px solid #c8d0da;
    border-radius: 4px;
    background: white;
    font: inherit;
}

button {
    min-height: 40px;
    padding: 9px 14px;
    border: 0;
    border-radius: 4px;
    background: #123c55;
    color: white;
    cursor: pointer;
    font-weight: 700;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #b8d7e8;
    border-radius: 4px;
    background: #e8f4fb;
    color: #123c55;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.secondary-button:visited {
    color: #123c55;
}

.secondary-button:hover {
    background: #d8ecf8;
    text-decoration: none;
}

.button-link {
    display: inline-block;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 4px;
    background: #123c55;
    color: white;
    font-weight: 700;
    text-decoration: none;
}

.button-link:hover {
    background: #0d2e42;
}

.button-link.secondary-button {
    border: 1px solid #b8d7e8;
    background: #e8f4fb;
    color: #123c55;
}

.help-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.help-section-nav a {
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid #c8d0da;
    border-radius: 4px;
    background: white;
    color: #123c55;
    font-weight: 700;
    text-decoration: none;
}

.help-section {
    margin-bottom: 26px;
}

.help-section-heading {
    margin-bottom: 12px;
}

.help-section-heading h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.help-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.help-card-grid-compact {
    grid-template-columns: minmax(0, 1fr);
}

.help-card {
    min-width: 0;
    padding: 0;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    background: white;
}

.help-card summary {
    min-height: 46px;
    padding: 12px 42px 12px 14px;
    color: #123c55;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    position: relative;
}

.help-card summary::-webkit-details-marker {
    display: none;
}

.help-card summary::after {
    position: absolute;
    top: 14px;
    right: 14px;
    content: "\25BE";
    color: #53606d;
    font-size: 12px;
}

.help-card[open] summary::after {
    content: "\25B4";
}

.help-card ul {
    margin: 0;
    padding: 0 14px 12px 32px;
}

.help-card li {
    margin-bottom: 7px;
    color: #374151;
}

.help-card .button-link {
    margin: 0 14px 14px;
}

.review-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1.7fr) minmax(130px, .8fr) minmax(210px, 1.1fr) minmax(190px, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
    padding: 12px;
    background: white;
    border: 1px solid #d8dee6;
    border-radius: 6px;
}

.admin-task-filters {
    grid-template-columns: minmax(220px, 1.4fr) minmax(190px, 1fr) minmax(130px, .7fr) minmax(180px, .9fr) auto;
}

.filter-field {
    min-width: 0;
}

.filter-field label,
.form-label {
    display: block;
    margin-bottom: 5px;
    color: #53606d;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.filter-field input,
.filter-field select {
    width: 100%;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    flex-wrap: nowrap;
}

.checkbox-dropdown {
    position: relative;
    width: 100%;
}

.checkbox-dropdown summary {
    min-height: 38px;
    padding: 8px 34px 8px 10px;
    border: 1px solid #c8d0da;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    list-style: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkbox-dropdown summary::-webkit-details-marker {
    display: none;
}

.checkbox-dropdown summary::after {
    position: absolute;
    right: 11px;
    top: 11px;
    content: "\25BE";
    color: #53606d;
    font-size: 12px;
}

.checkbox-dropdown[open] summary::after {
    content: "\25B4";
}

.checkbox-dropdown-panel {
    position: absolute;
    z-index: 20;
    width: 100%;
    max-height: 280px;
    margin-top: 4px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    border: 1px solid #c8d0da;
    border-radius: 4px;
    background: white;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .16);
}

.checkbox-option {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 7px 6px;
    border-radius: 4px;
    color: #1b1f24;
    cursor: pointer;
    line-height: 1.3;
    overflow-wrap: anywhere;
    width: 100%;
}

.checkbox-option:hover {
    background: #eef2f5;
}

.checkbox-option input {
    flex: 0 0 18px;
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    margin-top: 2px;
}

.checkbox-option span {
    flex: 1 1 auto;
    min-width: 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 16px;
}

.dashboard-card {
    position: relative;
    display: grid;
    gap: 12px;
    min-height: 160px;
    padding: 22px 22px 22px 28px;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    background: white;
    color: #1b1f24;
    text-decoration: none;
    overflow: hidden;
}

.dashboard-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    content: "";
}

.dashboard-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 8px 22px rgba(17, 24, 39, .10);
}

.dashboard-card span {
    color: #53606d;
    font-size: 18px;
    font-weight: 700;
}

.dashboard-card strong {
    align-self: end;
    font-size: 54px;
    line-height: 1;
}

.overdue-card {
    border-color: #fecaca;
    background: #fff5f5;
}

.overdue-card::before {
    background: #dc2626;
}

.due-card {
    border-color: #fde68a;
    background: #fffbeb;
}

.due-card::before {
    background: #d97706;
}

.upcoming-card {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.upcoming-card::before {
    background: #16a34a;
}

.feedback-card {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.feedback-card::before {
    background: #2563eb;
}

.summary-grid div {
    background: white;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    padding: 14px;
}

.summary-grid strong {
    display: block;
    font-size: 24px;
}

.summary-grid span {
    color: #53606d;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: white;
    border: 1px solid #d8dee6;
    border-radius: 6px;
}

.admin-table-wrap {
    max-height: 70vh;
    overflow: auto;
}

.maintenance-overview-table-wrap {
    max-height: calc(100vh - 380px);
    min-height: 260px;
    overflow: auto;
}

.maintenance-overview-table-wrap th,
.admin-maintenance-table-wrap th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #eef2f5;
    box-shadow: 0 1px 0 #d8dee6;
}

.admin-table-wrap th {
    min-width: 96px;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
}

.admin-table-wrap .col-id,
.admin-table-wrap .col-status {
    min-width: 82px;
}

.admin-table-wrap .col-actions {
    min-width: 124px;
    white-space: nowrap;
}

.admin-table-wrap th,
.admin-table-wrap td {
    padding: 5px 7px;
    overflow-wrap: normal;
    word-break: normal;
}

.admin-table-wrap td {
    overflow-wrap: anywhere;
}

.admin-table-wrap .task-link {
    white-space: nowrap;
}

.admin-maintenance-table {
    min-width: 1080px;
}

.maintenance-overview-table {
    min-width: 960px;
}

.admin-maintenance-table .col-id {
    min-width: 48px;
    width: 48px;
}

.admin-maintenance-table .col-status {
    min-width: 86px;
    width: 86px;
}

.admin-maintenance-table .col-building {
    min-width: 128px;
}

.admin-maintenance-table .col-location {
    min-width: 132px;
}

.admin-maintenance-table .col-maintenance-object {
    min-width: 180px;
}

.admin-maintenance-table .col-priority {
    min-width: 98px;
    width: 98px;
}

.admin-maintenance-table .col-date {
    min-width: 118px;
}

.admin-maintenance-table .col-actions {
    min-width: 104px;
    width: 104px;
}

.admin-maintenance-table .col-active-status {
    min-width: 76px;
    width: 76px;
}

.admin-users-table {
    min-width: 1120px;
}

.admin-users-table th,
.admin-users-table td {
    overflow-wrap: normal;
    word-break: normal;
}

.admin-users-table .col-username {
    min-width: 132px;
}

.admin-users-table .col-display-name {
    min-width: 180px;
}

.admin-users-table .col-role,
.admin-users-table .col-active {
    min-width: 104px;
}

.admin-users-table .col-date {
    min-width: 150px;
}

.admin-users-table .col-password-required {
    min-width: 170px;
}

.admin-users-table .col-actions {
    min-width: 112px;
    width: 112px;
}

table {
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
    table-layout: auto;
}

th,
td {
    padding: 10px 12px;
    border-bottom: 1px solid #e6e9ee;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

th {
    background: #eef2f5;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .02em;
    overflow-wrap: normal;
    white-space: nowrap;
    word-break: keep-all;
    hyphens: none;
}

.empty-table-message {
    padding: 22px;
    color: #53606d;
    font-weight: 700;
    text-align: center;
}

.col-id {
    min-width: 74px;
}

.col-status {
    min-width: 96px;
}

.col-priority {
    min-width: 96px;
}

.col-date {
    min-width: 138px;
}

.col-days {
    min-width: 142px;
}

.col-actions {
    min-width: 118px;
}

small {
    display: block;
    max-width: 420px;
    margin-top: 4px;
    color: #53606d;
}

.description {
    max-width: 360px;
    margin-top: 0;
}

.task-link {
    color: #123c55;
    text-decoration: none;
}

.task-link:hover,
.back-link:hover {
    text-decoration: underline;
}

.details-pill {
    display: inline-block;
    padding: 5px 11px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #e8f4fb;
    color: #123c55;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.details-pill:hover {
    background: #d8ecf8;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: #123c55;
    font-weight: 700;
    text-decoration: none;
}

.detail-header {
    align-items: center;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.success-message {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #a8d8b8;
    border-radius: 6px;
    background: #e7f7ec;
    color: #146b2e;
    font-weight: 700;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.detail-panel {
    margin-bottom: 20px;
}

.detail-panel h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.field {
    min-width: 0;
    padding: 14px;
    background: white;
    border: 1px solid #d8dee6;
    border-radius: 6px;
}

.field-wide {
    grid-column: 1 / -1;
}

.field-label {
    display: block;
    margin-bottom: 6px;
    color: #53606d;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.field-value {
    display: block;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

.long-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.completion-form {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: white;
    border: 1px solid #d8dee6;
    border-radius: 6px;
}

.auth-form {
    max-width: 460px;
    display: grid;
    gap: 14px;
    padding: 18px;
    background: white;
    border: 1px solid #d8dee6;
    border-radius: 6px;
}

.task-admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
    background: white;
    border: 1px solid #d8dee6;
    border-radius: 6px;
}

.schedule-form-row {
    display: grid;
    grid-template-columns: minmax(96px, .6fr) minmax(140px, .9fr) minmax(170px, 1fr) minmax(140px, .9fr);
    gap: 12px;
}

.checkbox-field {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #53606d;
}

.checkbox-field input,
.radio-field input {
    min-width: auto;
}

.radio-field {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-right: 18px;
    color: #1b1f24;
    font-weight: 700;
}

.mode-fieldset {
    margin: 0;
    padding: 12px;
    border: 1px solid #d8dee6;
    border-radius: 6px;
}

.mode-fieldset legend {
    padding: 0 4px;
    color: #53606d;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.form-section {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    background: #f8fafc;
}

.form-section h2 {
    margin: 0;
    font-size: 18px;
}

.form-field {
    display: grid;
    gap: 6px;
}

.form-field label {
    color: #53606d;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #c8d0da;
    border-radius: 4px;
    font-family: inherit;
}

.form-field select {
    width: 100%;
}

.inline-field-group {
    display: grid;
    grid-template-columns: minmax(90px, .7fr) minmax(130px, 1fr);
    gap: 8px;
}

.inline-action-form {
    margin-top: 10px;
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.form-actions a {
    display: inline-block;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #b8d7e8;
    border-radius: 4px;
    background: #e8f4fb;
    color: #123c55;
    font-weight: 700;
    text-decoration: none;
}

.form-actions a:hover {
    background: #d8ecf8;
}

.advanced-section {
    padding: 12px;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    background: #f8fafc;
}

.advanced-section summary {
    cursor: pointer;
    color: #123c55;
    font-weight: 700;
}

.advanced-section p {
    margin: 8px 0 12px;
}

.validation-summary,
.validation-message {
    color: #a62920;
    font-weight: 700;
}

.sensitive-panel {
    padding: 18px;
    background: white;
    border: 1px solid #d8dee6;
    border-radius: 6px;
}

.attachments-panel {
    margin-bottom: 20px;
    padding: 18px;
    background: white;
    border: 1px solid #d8dee6;
    border-radius: 6px;
}

.events-panel {
    margin-bottom: 20px;
    padding: 18px;
    background: white;
    border: 1px solid #d8dee6;
    border-radius: 6px;
}

.events-panel h2,
.attachments-panel h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.events-panel summary {
    cursor: pointer;
    color: #123c55;
    font-size: 18px;
    font-weight: 700;
}

.compact-table {
    border: 0;
}

.compact-table table {
    min-width: 680px;
}

.print-body {
    background: white;
    color: #111827;
}

.print-report {
    max-width: none;
    padding: 18px;
}

.print-header {
    margin-bottom: 14px;
}

.print-header h1 {
    margin: 0 0 4px;
}

.print-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.print-actions a {
    text-decoration: none;
}

.print-table {
    min-width: 0;
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 11px;
}

.print-table th,
.print-table td {
    padding: 5px 6px;
    border: 1px solid #cbd5e1;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.print-table th {
    background: #eef2f5;
    font-size: 9.5px;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
}

.print-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
}

.print-col-id {
    width: 5%;
}

.print-col-building {
    width: 14%;
}

.print-col-location {
    width: 14%;
}

.print-col-area {
    width: 16%;
}

.print-col-description {
    width: 36%;
}

.print-col-date {
    width: 10%;
}

.print-col-done {
    width: 5%;
}

.print-done-marker {
    text-align: center;
    font-size: 14px;
    line-height: 1;
}

.attachment-list {
    display: grid;
    gap: 10px;
}

.attachment-item {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border: 1px solid #e6e9ee;
    border-radius: 6px;
}

.attachment-meta {
    display: grid;
    gap: 4px;
    color: #53606d;
    font-size: 13px;
}

.attachment-meta strong {
    color: #1b1f24;
}

.attachment-target {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.attachment-target a {
    color: #123c55;
}

.attachment-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.attachment-actions .button-link,
.attachment-actions button {
    flex: 0 0 auto;
}

.attachment-actions .button-link,
.attachment-actions .button-link:visited,
.attachment-actions .button-link:hover,
.attachment-actions .button-link:focus {
    color: #fff;
}

.attachment-unavailable {
    color: #53606d;
    font-weight: 700;
}

.feedback-warning {
    border-color: #fca5a5;
    background: #fff5f5;
}

.feedback-warning-text {
    color: #a62920;
    font-weight: 700;
}

.warning-note {
    color: #a62920;
    font-weight: 700;
}

.sensitive-panel h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.sensitive-note {
    margin-bottom: 16px;
    color: #6c5b18;
}

.status {
    display: inline-block;
    min-width: 74px;
    padding: 4px 8px;
    border-radius: 999px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
}

.status.ok {
    background: #dff4e5;
    color: #146b2e;
}

.status.duenow {
    background: #fff3c4;
    color: #7b5a00;
}

.status.overdue {
    background: #ffe0df;
    color: #a62920;
}

.status.invalid {
    background: #e4e8ee;
    color: #4b5563;
}

@media (max-width: 760px) {
    .topbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 14px 18px;
    }

    .topbar nav {
        justify-content: flex-start;
    }

    .brand {
        overflow-wrap: anywhere;
    }

    .page-shell {
        padding: 18px;
    }

    .page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .summary-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .help-card-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .review-filters {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        justify-content: flex-start;
    }

    .checkbox-dropdown-panel {
        position: static;
        box-shadow: none;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .attachment-item {
        grid-template-columns: 1fr;
    }

    .task-admin-form {
        grid-template-columns: 1fr;
    }

    .schedule-form-row {
        grid-template-columns: 1fr;
    }

    .auth-form,
    .completion-form,
    .task-admin-form {
        padding: 14px;
    }

    input,
    select,
    textarea,
    button,
    .button-link {
        min-height: 44px;
    }

    input,
    select,
    textarea {
        min-width: 0;
        width: 100%;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .form-actions button,
    .form-actions .button-link,
    .form-actions .secondary-button {
        width: 100%;
    }

    .profile-menu-panel {
        left: 0;
        right: auto;
    }

    .table-wrap {
        margin-left: -2px;
        margin-right: -2px;
    }

    .maintenance-overview-table-wrap {
        max-height: 54vh;
        min-height: 240px;
    }

    table {
        min-width: 760px;
    }

    .compact-table table {
        min-width: 620px;
    }
}

@page {
    size: A4 landscape;
    margin: 10mm;
}

@media print {
    body {
        background: white;
    }

    .topbar {
        position: static;
    }

    .maintenance-overview-table-wrap,
    .admin-maintenance-table-wrap {
        max-height: none;
        overflow: visible;
    }

    .maintenance-overview-table-wrap th,
    .admin-maintenance-table-wrap th {
        position: static;
        box-shadow: none;
    }

    .print-actions {
        display: none;
    }

    .print-report {
        padding: 0;
    }

    .print-table {
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .page-shell {
        padding: 14px;
    }

    h1 {
        font-size: 24px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .field,
    .attachments-panel,
    .events-panel,
    .sensitive-panel {
        padding: 12px;
    }
}
