@charset "UTF-8";

:root {
  /* Farbvorlage mit eingebettetem Display-Profil nach sRGB umgerechnet. */
  --brand: #008ccc;
  --brand-dark: #006fa3;
  --brand-soft: #eaf6fc;
  --danger: #bc2430;
  --danger-dark: #971724;
  --danger-soft: #fbefef;
  --text: #252d36;
  --muted: #6d7580;
  --faint: #969da6;
  --line: #e6e9ec;
  --background: #f7f8fa;
  --white: #fff;
  --green: #247352;
  --green-soft: #eaf5ee;
  --amber: #97631a;
  --amber-soft: #fff5df;
  --radius: 12px;
  --shadow: 0 2px 3px rgba(24, 32, 43, .025);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: var(--brand); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: var(--text); line-height: 1.3; font-weight: 650; }
h1 { font-size: clamp(25px, 2.2vw, 33px); letter-spacing: -.8px; }
h2 { font-size: 19px; letter-spacing: -.35px; }
h3 { font-size: 16px; letter-spacing: -.15px; }
h4 { font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
img { max-width: 100%; height: auto; }
svg { vertical-align: middle; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
small { font-size: 12px; }
strong { font-weight: 650; }
ul, ol { padding-left: 1.5rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.icon { flex-shrink: 0; }
.muted, .text-muted, .help-text, .helptext { color: var(--muted); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 12px; padding: 12px 18px; background: var(--text); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.mobile-only { display: none; }

/* The primary navigation stays available while moving around a large inventory. */
.sidebar { width: 252px; position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; flex-direction: column; overflow-y: auto; background: var(--white); border-right: 1px solid var(--line); padding: 30px 16px 0; }
.brand { display: flex; align-items: center; color: var(--text); gap: 11px; padding: 0 7px; min-width: 0; }
.brand:hover { color: var(--text); }
.brand-mark { flex: 0 0 48px; display: flex; align-items: center; justify-content: center; }
.brand-mark img { display: block; object-fit: contain; width: 48px; height: 48px; }
.brand-copy { min-width: 0; display: grid; gap: 1px; }
.brand-copy strong { display: block; font-size: 14px; font-weight: 720; letter-spacing: -.3px; line-height: 1.3; overflow-wrap: anywhere; }
.brand-copy > span { color: var(--muted); font-size: 10.5px; letter-spacing: .25px; }
.sidebar-section-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: #9298a1; text-transform: uppercase; margin: 40px 14px 12px; }
.sidebar-section-label.secondary-label { margin-top: 32px; }
.primary-nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 11px 13px; color: #636a74; font-size: 12px; font-weight: 550; border-radius: 8px; line-height: 1.5; }
.nav-link .icon { width: 18px; height: 18px; stroke-width: 1.6; }
.nav-link:hover { background: #f5f6f8; color: var(--text); }
.nav-link.active { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.sidebar-bottom { margin-top: auto; padding-top: 35px; }
.organization-note { padding: 16px 12px; margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.small-dot { display: inline-block; vertical-align: middle; width: 5px; height: 5px; background: var(--brand); border-radius: 50%; margin-right: 7px; }
.user-panel { display: flex; align-items: center; gap: 9px; min-height: 88px; padding: 14px 2px; border-top: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; background: #f0f1f4; color: #666c77; border-radius: 50%; font-size: 10px; font-weight: 700; }
.user-copy { flex: 1; min-width: 0; }
.user-copy strong, .user-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy strong { font-size: 11px; }
.user-copy span { color: var(--muted); font-size: 10px; margin-top: 1px; }
.user-panel form { margin: 0; }
.user-panel .icon-button { width: 30px; height: 34px; }
.user-panel .icon { width: 16px; height: 16px; }
.nav-close { display: none !important; }
.workspace { margin-left: 252px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; padding: 14px 42px; background: var(--white); border-bottom: 1px solid var(--line); }
.topbar-breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 11px; white-space: nowrap; }
.topbar-breadcrumb > span { color: var(--muted); }
.topbar-breadcrumb strong { font-weight: 500; }
.topbar-breadcrumb .icon { color: #bbc0c6; width: 11px; height: 11px; }
.global-search { display: flex; align-items: center; gap: 8px; background: #f7f8fa; border: 1px solid #edf0f2; border-radius: 7px; width: 260px; padding: 0 10px 0 12px; height: 37px; }
.global-search > .icon { width: 15px; height: 15px; color: #969da6; }
.global-search input { min-width: 0; flex: 1; border: 0; background: none; outline: 0; box-shadow: none; font-size: 11px; padding: 8px 0; border-radius: 0; color: var(--text); }
.global-search:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.global-search input:focus { outline: 0; box-shadow: none; }
.search-submit { color: #8b929b; border: 0; background: none; padding: 0 3px; min-width: 20px; height: 30px; }
.search-submit .icon { width: 14px; height: 14px; }
.menu-toggle { display: none !important; }
.main-content { padding: 37px 42px 50px; width: 100%; max-width: 1690px; margin: 0 auto; flex: 1; }
.main-content:focus { outline: none; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 42px; padding: 18px 0; color: #939aa4; font-size: 10px; border-top: 1px solid var(--line); }

/* Reusable content and form elements. */
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-header > div:first-child { min-width: 0; }
.page-header p:last-child { margin-bottom: 0; }
.eyebrow { text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; color: var(--brand); margin: 0 0 10px; }
.page-subtitle, .page-header > div > p:not(.eyebrow) { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.heading-actions { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; gap: 12px; }
.date-label { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.date-label .icon { width: 14px; height: 14px; }
.button, button[type="submit"], input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px; min-height: 40px; border: 1px solid var(--brand); background: var(--brand); color: white; font-size: 12px; font-weight: 600; line-height: 1.5; border-radius: 7px; text-align: center; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.button:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: white; }
.button .icon { width: 16px; height: 16px; }
.button-secondary, button.button-secondary, a.button-secondary { background: var(--white); color: #4d5662; border: 1px solid #dce1e7; }
.button-secondary:hover, button.button-secondary:hover, a.button-secondary:hover { background: #f5f7fa; border-color: #bcc4cf; color: var(--text); }
.button-danger, button.button-danger { background: var(--danger); border-color: var(--danger); color: white; }
.button-danger:hover, button.button-danger:hover { background: var(--danger-dark); border-color: var(--danger-dark); color: white; }
.button-small, .button-sm { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.button-ghost, .button-link { border-color: transparent; color: var(--brand); background: none; }
.button-ghost:hover, .button-link:hover { color: var(--brand-dark); background: var(--brand-soft); border-color: transparent; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: none; color: var(--muted); width: 36px; height: 36px; cursor: pointer; padding: 6px; }
.icon-button:hover { color: var(--text); background: #f0f2f5; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: var(--brand); }
.text-link .icon { width: 14px; height: 14px; }
.text-link:hover { text-decoration: underline; }
.actions, .form-actions, .page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.form-actions { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.actions form, .page-actions form { margin: 0; }
.card { padding: 25px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card > h2, .card > h3 { margin-bottom: 16px; }
.card + .card { margin-top: 20px; }
.flush-card { padding: 0; overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.card-body { padding: 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-heading h2 { font-size: 17px; }
.section-heading p { color: var(--muted); font-size: 11px; margin: 5px 0 0; }
.section-heading .text-link { white-space: nowrap; }
.grid, .two-column, .detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.stack > * + * { margin-top: 20px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 11px; margin-bottom: 22px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.form-field { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.form-field.full-width, .form-field-wide, .span-2 { grid-column: 1 / -1; }
label { display: block; font-size: 12px; font-weight: 600; color: #4b5460; margin-bottom: 7px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]), select, textarea { display: block; width: 100%; color: var(--text); padding: 10px 12px; min-height: 42px; background: var(--white); border: 1px solid #d8dee5; border-radius: 7px; font-size: 13px; transition: box-shadow .15s, border-color .15s; }
input::placeholder, textarea::placeholder { color: #9ca3ad; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
input[type="file"] { max-width: 100%; color: var(--muted); padding: 9px 0; font-size: 12px; }
input[type="file"]::file-selector-button { color: var(--text); border: 1px solid #d8dee5; background: #f5f7f9; border-radius: 5px; padding: 7px 10px; cursor: pointer; margin-right: 12px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); width: 16px; height: 16px; vertical-align: middle; margin: 3px 7px 3px 0; }
input:disabled, select:disabled, textarea:disabled { background: #f6f7f9; color: var(--muted); }
textarea { min-height: 120px; resize: vertical; }
.form-field .help-text, .helptext { display: block; font-size: 11px; margin-top: 6px; line-height: 1.6; }
.helptext ul { margin-top: 5px; }
.errorlist { list-style: none; color: var(--danger); background: var(--danger-soft); padding: 9px 12px; border-radius: 6px; font-size: 12px; margin: 6px 0 8px; }
.errorlist.nonfield { margin-bottom: 20px; }
.errorlist li + li { margin-top: 5px; }
.required { color: var(--brand); }
fieldset { border: 0; padding: 0; margin: 0 0 25px; min-width: 0; }
legend { font-size: 16px; font-weight: 650; margin-bottom: 18px; }
form > p:has(input), form > p:has(select), form > p:has(textarea) { margin-bottom: 20px; }
.filter-bar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; padding: 18px 20px; }
.filter-bar .form-field { flex: 1 1 150px; }
.filter-bar .form-field:first-child { flex: 2 1 250px; }
.filter-bar .button { min-height: 42px; }
.filter-bar .text-link { padding-bottom: 11px; }
.filter-bar label { font-size: 10px; margin-bottom: 5px; }
.filter-bar input, .filter-bar select { font-size: 12px !important; }
.badge, .status-badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 4px 8px; border-radius: 5px; color: #637080; background: #f0f2f5; font-size: 10px; font-weight: 550; line-height: 1.5; }
.badge-success, .badge-ready, .badge-green, .status-ready, .success { color: var(--green); background: var(--green-soft); }
.badge-warning, .badge-unknown, .badge-limited, .badge-yellow, .status-unknown, .status-limited, .warning { color: var(--amber); background: var(--amber-soft); }
.badge-danger, .badge-unavailable, .badge-red, .status-unavailable, .danger { color: #b02c3a; background: #faeaec; }
.badge-neutral, .badge-out_of_service, .badge-retired, .badge-grey, .status-out_of_service, .neutral { color: #717782; background: #eff0f3; }
.status-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: currentColor; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table, .table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
.data-table th, .table th { padding: 12px 20px; font-size: 10px; font-weight: 600; color: #7e8792; background: #fcfcfd; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td, .table td { padding: 17px 20px; border-bottom: 1px solid #edf0f3; vertical-align: middle; }
.data-table tr:last-child td, .table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover, .table tbody tr:hover { background: #fdfdfe; }
.data-table .table-primary { display: block; color: #343e4a; font-size: 12px; font-weight: 600; }
.data-table .table-primary:hover { color: var(--brand); }
.table-secondary { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.inventory-code, code { color: #657184; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; white-space: nowrap; background: #f5f7f9; padding: 3px 6px; border-radius: 4px; }
.empty-state { text-align: center; padding: 44px 30px; color: var(--muted); grid-column: 1 / -1; }
.empty-state h3 { color: #515c6a; font-size: 15px; margin: 12px 0 8px; }
.empty-state p { font-size: 12px; max-width: 340px; margin: 0 auto 16px; }
.empty-symbol { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto; border-radius: 13px; color: #a1a9b4; background: #f5f7f9; }
.empty-symbol .icon { width: 23px; height: 23px; stroke-width: 1.3; }
.empty-state-compact { padding: 32px 24px; }
.messages { display: grid; gap: 12px; margin-bottom: 22px; }
.message { display: flex; align-items: flex-start; gap: 10px; background: #eef3fa; border: 1px solid #dce5ef; color: #48637d; padding: 13px 16px; border-radius: 8px; font-size: 12px; }
.message > .icon { width: 18px; height: 18px; margin-top: 1px; }
.message-success { background: var(--green-soft); border-color: #d4e9dc; color: var(--green); }
.message-error, .message-danger { background: #fcf0f1; border-color: #f0d4d7; color: #a33240; }
.message-warning { background: var(--amber-soft); border-color: #f0e1bf; color: var(--amber); }
.network-message { margin-bottom: 22px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 24px; font-size: 12px; color: var(--muted); }
dl { margin: 0; }
dt { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
dd { margin: 0 0 20px; font-size: 13px; overflow-wrap: anywhere; }
.detail-list { display: grid; grid-template-columns: 1fr 2fr; gap: 14px 20px; }
.detail-list dt, .detail-list dd { margin: 0; }
details summary { cursor: pointer; color: #52617a; font-size: 11px; padding: 4px 0; }
details[open] summary { margin-bottom: 12px; }
.audit-changes { max-width: 340px; white-space: pre-wrap; }
.audit-changes dd { font-size: 11px; }
.audit-table td { vertical-align: top; }

/* Overview */
.dashboard-heading { margin-bottom: 30px; }
.dashboard-heading h1 { font-size: clamp(24px, 2.1vw, 31px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 39px; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px 17px; color: var(--text); transition: border-color .15s, transform .15s; }
.stat-card:hover { border-color: #cbd2dd; color: var(--text); transform: translateY(-1px); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 550; color: #6b7380; margin-bottom: 11px; }
.stat-icon { display: grid; place-items: center; color: #8b939e; }
.stat-icon .icon { width: 18px; height: 18px; stroke-width: 1.5; }
.stat-card > strong { display: block; font-size: 30px; line-height: 1.1; font-weight: 630; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.stat-caption { display: block; color: #9298a2; font-size: 10px; margin-top: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 282px; gap: 28px; align-items: start; }
.dashboard-main { min-width: 0; }
.dashboard-aside { display: grid; gap: 23px; padding-top: 2px; }
.asset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.asset-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 20px 19px 0; box-shadow: var(--shadow); overflow: hidden; }
.asset-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
.asset-card-top .badge { margin-top: 3px; max-width: 75%; font-size: 9px; }
.asset-symbol { display: grid; place-items: center; width: 40px; height: 40px; background: #f5f3f3; color: #8e7c7b; border-radius: 10px; }
.asset-symbol .icon { width: 22px; height: 22px; stroke-width: 1.5; }
.asset-symbol-water { background: #edf3f6; color: #7a92a1; }
.asset-type { font-size: 9px; color: #939ba5; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; font-weight: 600; }
.asset-card h3 { font-size: 17px; font-weight: 650; }
.asset-card h3 a { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text); }
.asset-card h3 .icon { width: 15px; height: 15px; color: #adb3bd; }
.asset-card h3 a:hover { color: var(--brand); }
.asset-location { display: flex; align-items: flex-start; gap: 5px; color: #89919d; font-size: 10px; margin: 11px 0 20px; }
.asset-location .icon { width: 13px; height: 13px; margin-top: 1px; }
.asset-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 10px; color: #757e8b; }
.asset-meta > span, .asset-meta > a { display: inline-flex; align-items: center; gap: 6px; }
.asset-meta a { color: #6a7482; }
.asset-meta a:hover { color: var(--brand); }
.asset-meta .icon { width: 13px; height: 13px; }
.attached-assets { padding: 2px 19px 3px; margin: 0 -19px; background: #fbfcfd; border-top: 1px solid #edf0f2; }
.attached-assets > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 0; }
.attached-assets > a + a { border-top: 1px solid #edf0f2; }
.attached-assets .badge { font-size: 8px; padding: 3px 5px; text-align: right; max-width: 55%; }
.attached-label { font-size: 10px; color: #687382; display: flex; align-items: center; gap: 6px; }
.attachment-line { display: inline-block; width: 9px; height: 8px; border-left: 1px solid #c5cbd4; border-bottom: 1px solid #c5cbd4; transform: translateY(-3px); }
.recent-inventory { margin-top: 33px; }
.recent-inventory .data-table td { padding: 14px 17px; }
.recent-inventory .data-table th { padding: 12px 17px; }
.readiness-note { background: #fdf6e9; border: 1px solid #f0e5d2; padding: 22px; border-radius: 10px; }
.note-icon { color: #ac8445; display: flex; margin-bottom: 20px; }
.note-icon .icon { width: 26px; height: 26px; stroke-width: 1.4; }
.readiness-note .eyebrow { color: #a78959; font-size: 9px; letter-spacing: 1.4px; margin-bottom: 8px; }
.readiness-note h2 { font-size: 18px; line-height: 1.4; font-weight: 620; letter-spacing: -.4px; color: #665133; margin-bottom: 12px; }
.readiness-note > p:not(.eyebrow) { color: #917d5d; font-size: 11px; line-height: 1.85; margin-bottom: 18px; }
.notice-status { display: flex; align-items: center; gap: 6px; color: #997330; font-size: 10px; margin: 0 0 20px; font-weight: 600; }
.readiness-note .text-link { color: #947039; font-size: 10px; border-top: 1px solid #eddfc8; padding-top: 15px; width: 100%; justify-content: space-between; }
.quick-links { padding: 20px 19px 6px; border-radius: 10px; }
.quick-links > h2 { font-size: 13px; margin: 0 0 7px; }
.quick-links > a { display: flex; align-items: center; gap: 9px; padding: 15px 0; }
.quick-links > a + a { border-top: 1px solid #eef0f3; }
.quick-links > a > .icon { width: 12px; height: 12px; color: #a0a8b3; margin-left: auto; }
.quick-link-icon { color: #8a94a2; width: 28px; }
.quick-link-icon .icon { width: 18px; height: 18px; stroke-width: 1.6; }
.quick-links strong { display: block; font-size: 10px; color: #5d6877; font-weight: 600; }
.quick-links small { display: block; font-size: 9px; color: #929aa6; margin-top: 3px; }
.quick-links a:hover strong { color: var(--brand); }

/* Login and security forms use the same visual language as the application. */
.public-layout { min-height: 100vh; display: flex; flex-direction: column; background: #f8f9fb; }
.public-header { padding: 34px 42px; }
.public-header .brand { display: inline-flex; }
.public-header .brand-mark { flex-basis: 64px; }
.public-header .brand-mark img { width: 64px; height: 64px; }
.public-layout .main-content { max-width: 560px; padding-top: 35px; padding-bottom: 80px; }
.public-layout .card { padding: 32px; }
.public-layout .page-header { margin-bottom: 24px; }
.public-layout h1 { font-size: 27px; }
.public-layout .form-grid { grid-template-columns: 1fr; }
.public-layout .page-footer { margin-top: auto; }
.login-card, .auth-card { max-width: 490px; margin: 0 auto; }
.recovery-codes { background: #f4f6f8; border: 1px solid var(--line); border-radius: 8px; padding: 20px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.qr-code { max-width: 240px; }

@media (min-width: 1600px) {
  .sidebar { width: 270px; padding-left: 23px; padding-right: 23px; }
  .workspace { margin-left: 270px; }
  .main-content { padding-top: 45px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 310px; gap: 32px; }
  .asset-card { padding-left: 24px; padding-right: 24px; }
  .attached-assets { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 1280px) {
  .sidebar { width: 225px; padding-left: 12px; padding-right: 12px; }
  .workspace { margin-left: 225px; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy > span { font-size: 9px; }
  .nav-link { font-size: 11px; gap: 9px; }
  .topbar { padding-left: 28px; padding-right: 28px; }
  .main-content { padding-left: 28px; padding-right: 28px; }
  .page-footer { margin-left: 28px; margin-right: 28px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 245px; gap: 20px; }
  .asset-grid { gap: 14px; }
  .asset-card { padding-left: 16px; padding-right: 16px; }
  .attached-assets { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .asset-card-top .badge { font-size: 8px; max-width: 66%; }
  .asset-card h3 { font-size: 15px; }
  .readiness-note { padding: 20px; }
  .stats-grid { gap: 14px; }
  .stat-card { padding: 16px; }
  .stat-caption { font-size: 9px; }
  .quick-links { padding-left: 16px; padding-right: 16px; }
  .dashboard-heading h1 { font-size: 25px; }
  .dashboard-heading .page-subtitle { font-size: 11px; }
  .recent-inventory .data-table td, .recent-inventory .data-table th { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 1100px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-aside { grid-template-columns: 1fr 1fr; align-items: start; margin-top: 8px; }
  .dashboard-heading { align-items: flex-start; }
  .dashboard-heading h1 { max-width: 320px; }
  .dashboard-heading .heading-actions { margin-top: 5px; }
  .stats-grid { margin-bottom: 32px; }
  .stat-card { padding: 14px; }
  .stat-top { font-size: 10px; }
  .stat-card > strong { font-size: 27px; }
  .stat-caption { font-size: 8px; }
  .global-search { width: 210px; }
  .topbar-breadcrumb { font-size: 10px; gap: 8px; }
  .asset-card-top .badge { max-width: 75%; font-size: 9px; }
  .asset-card h3 { font-size: 17px; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; width: 270px; padding-left: 18px; padding-right: 18px; box-shadow: 15px 0 40px rgba(30, 39, 54, .08); }
  .sidebar .brand { padding-right: 21px; }
  .nav-close { display: inline-flex !important; position: absolute; right: 10px; top: 32px; width: 27px; height: 27px; }
  .nav-close .icon { width: 17px; height: 17px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy > span { font-size: 10px; }
  .nav-link { font-size: 12px; }
  .navigation-open { overflow: hidden; }
  .navigation-open .sidebar { transform: translateX(0); }
  .nav-scrim { position: fixed; z-index: 25; inset: 0; background: rgba(24, 33, 47, .3); backdrop-filter: blur(2px); }
  .workspace { margin-left: 0; }
  .menu-toggle { display: inline-flex !important; margin-left: -6px; }
  .topbar { justify-content: flex-start; min-height: 68px; gap: 15px; }
  .global-search { margin-left: auto; width: 245px; }
  .main-content { padding-top: 30px; }
  .topbar-breadcrumb { font-size: 11px; }
  .dashboard-heading h1 { max-width: none; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 240px; }
  .dashboard-aside { grid-template-columns: 1fr; margin-top: 0; }
  .asset-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 18px; }
  .stat-caption { font-size: 9px; }
  .stat-top { font-size: 11px; }
}
@media (max-width: 700px) {
  :root { font-size: 14px; }
  .main-content { padding: 26px 20px 35px; }
  .topbar { padding: 11px 20px; gap: 12px; }
  .topbar-breadcrumb > span, .topbar-breadcrumb > .icon { display: none; }
  .global-search { width: min(235px, 52%); }
  .global-search input { font-size: 10px; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
  .heading-actions { flex-direction: row-reverse; align-items: center; justify-content: space-between; width: 100%; }
  .dashboard-heading .heading-actions { margin-top: 0; }
  .dashboard-heading h1 { font-size: 28px; }
  .dashboard-heading .page-subtitle { font-size: 12px; max-width: 350px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 30px; }
  .stat-card { padding: 17px; }
  .stat-top { font-size: 11px; }
  .stat-card > strong { font-size: 29px; }
  .stat-caption { font-size: 9px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-card-top { flex-wrap: wrap; margin-bottom: 16px; }
  .asset-card-top .badge { max-width: 100%; font-size: 8px; }
  .asset-card h3 { font-size: 15px; }
  .asset-location { min-height: 32px; }
  .attached-assets > a { align-items: flex-start; flex-direction: column; gap: 5px; }
  .attached-assets .badge { max-width: 100%; margin-left: 15px; }
  .dashboard-aside { grid-template-columns: 1fr 1fr; gap: 16px; }
  .readiness-note { padding: 20px; }
  .readiness-note h2 { font-size: 17px; }
  .quick-links { padding-left: 15px; padding-right: 15px; }
  .quick-link-icon { display: none; }
  .quick-links strong { font-size: 11px; }
  .quick-links small { font-size: 10px; }
  .quick-links > a { padding-top: 17px; padding-bottom: 17px; }
  .page-footer { margin: 0 20px; font-size: 9px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .grid, .two-column, .detail-grid { grid-template-columns: 1fr; gap: 20px; }
  .card { padding: 20px; }
  .flush-card { padding: 0; }
  .card-header, .card-body { padding: 20px; }
  .section-heading h2 { font-size: 16px; }
  .section-heading p { font-size: 10px; }
  .section-heading .text-link { font-size: 10px; }
  .data-table td, .table td { padding: 14px 16px; }
  .data-table th, .table th { padding: 12px 16px; }
  .filter-bar { padding: 16px; gap: 12px; }
  .filter-bar .form-field, .filter-bar .form-field:first-child { flex-basis: 100%; }
  .empty-state { padding: 30px 20px; }
  .public-header { padding: 24px 20px; }
  .public-layout .main-content { padding-top: 15px; }
  .public-layout .card { padding: 25px; }
  .button, button[type="submit"], input[type="submit"] { min-height: 44px; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]), select, textarea { font-size: 16px; }
  .global-search input { font-size: 12px !important; }
  .filter-bar input, .filter-bar select { font-size: 16px !important; }
}
@media (max-width: 450px) {
  .main-content { padding-left: 16px; padding-right: 16px; }
  .topbar { padding-left: 16px; padding-right: 16px; }
  .topbar-breadcrumb { max-width: 100px; white-space: normal; font-size: 10px; }
  .global-search { width: 53%; padding-left: 9px; gap: 5px; }
  .global-search input { font-size: 10px !important; }
  .global-search .search-submit { display: none; }
  .mobile-only { display: initial; }
  .dashboard-heading h1 { font-size: 27px; line-height: 1.3; }
  .dashboard-heading .page-subtitle { font-size: 11px; }
  .date-label { font-size: 10px; }
  .stat-card { padding: 15px; }
  .stat-caption { font-size: 8px; }
  .stat-top { font-size: 10px; }
  .asset-grid { grid-template-columns: 1fr; gap: 14px; }
  .asset-card { padding-left: 20px; padding-right: 20px; }
  .asset-card-top { flex-wrap: nowrap; margin-bottom: 18px; }
  .asset-card-top .badge { font-size: 9px; max-width: 75%; }
  .asset-card h3 { font-size: 18px; }
  .asset-location { min-height: 0; font-size: 11px; }
  .asset-meta { font-size: 11px; }
  .attached-assets { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .attached-assets > a { flex-direction: row; align-items: center; }
  .attached-assets .badge { margin-left: 0; max-width: 55%; }
  .dashboard-aside { grid-template-columns: 1fr; }
  .readiness-note { padding: 24px; }
  .readiness-note h2 { font-size: 20px; }
  .readiness-note h2 br { display: none; }
  .readiness-note > p:not(.eyebrow) { font-size: 12px; }
  .quick-links { padding: 22px 22px 6px; }
  .quick-link-icon { display: inline-block; }
  .quick-links > h2 { font-size: 15px; }
  .quick-links > a { padding-top: 17px; padding-bottom: 17px; }
  .page-footer { flex-direction: column; align-items: flex-start; gap: 3px; margin-left: 16px; margin-right: 16px; }
  .detail-list { grid-template-columns: 1fr; gap: 5px; }
  .detail-list dd { margin-bottom: 13px; }
  .recovery-codes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* Keep controls readable on phones and compact metadata within detail cards. */
.mobile-brand { display: none; }
#global-search { background: transparent; border: 0; padding: 8px 0; min-height: 0; box-shadow: none; font-size: 13px; }
.global-search .search-submit { background: transparent; border: 0; color: var(--muted); min-height: 30px; min-width: 26px; padding: 0; }
.global-search .search-submit:hover { color: var(--brand); background: var(--brand-soft); }
.detail-grid dd { margin-bottom: 0; }
.detail-grid { margin-bottom: 22px; }
.card + .actions { margin-top: 20px; }
.results-count { margin: 16px 0; color: var(--muted); }
.readiness-causes li + li { margin-top: 10px; }
.htmx-request { cursor: progress; }
@media (max-width: 900px) {
  .mobile-brand { display: flex; align-items: center; gap: 7px; color: var(--text); min-width: 0; }
  .mobile-brand img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
  .mobile-brand strong { font-size: 12px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-breadcrumb { display: none; }
  .topbar { gap: 8px; }
  .global-search { flex: 1; width: auto; max-width: 240px; min-width: 70px; }
  #global-search { font-size: 16px !important; }
  .stat-caption { font-size: 11px; color: var(--muted); }
  .stat-top, .asset-card-top .badge, .asset-location, .asset-meta { font-size: 12px; }
  .section-heading p, .page-subtitle, .dashboard-heading .page-subtitle { font-size: 13px; }
  .quick-links strong { font-size: 13px; }
  .quick-links small, .quick-links > a > span small { font-size: 12px; }
  .detail-grid dt { font-size: 12px; }
  .detail-grid dd { font-size: 14px; }
}
@media print {
  .sidebar, .topbar, .page-footer, .heading-actions, .page-actions, .actions, .filter-bar, .skip-link, .pagination, .network-message { display: none !important; }
  .workspace { margin: 0; }
  .main-content { padding: 0; max-width: none; }
  body { background: white; color: black; }
  .card, .asset-card { box-shadow: none; break-inside: avoid; }
  a { color: inherit; }
  .dashboard-grid { display: block; }
  .dashboard-aside { margin-top: 25px; }
}

/* Fristen und Mängel bleiben auf kleinen Bildschirmen gut erfassbar. */
.maintenance-dashboard { margin-bottom: 28px; }
.maintenance-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.maintenance-metrics > a { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--background); }
.maintenance-metrics strong { display: block; font-size: 25px; line-height: 1.3; }
.maintenance-metrics span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.maintenance-lists { margin-top: 24px; }
.maintenance-lists li { margin-bottom: 10px; overflow-wrap: anywhere; }
.maintenance-dashboard .table-primary { min-width: 170px; }
@media (max-width: 1000px) { .maintenance-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .maintenance-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .maintenance-lists { grid-template-columns: 1fr; } }

.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.stack-form { display: grid; gap: 18px; justify-items: start; margin-bottom: 18px; }
.stack-form .form-field { width: 100%; max-width: 680px; }
.export-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.report-preview, .report-preview p { overflow-wrap: anywhere; }
.operations-panels > .card { margin-top: 0; min-width: 0; }
.operations-panels .help-text { overflow-wrap: anywhere; }
.export-choice { border: 1px solid var(--line); border-radius: 10px; padding: 18px; min-width: 0; }
.export-choice h3 { margin-top: 0; }
.import-table td { vertical-align: top; min-width: 110px; max-width: 360px; white-space: normal; overflow-wrap: anywhere; }
.import-table td:nth-child(2) { min-width: 260px; }
.import-errors { margin: 0; padding-left: 18px; color: #b02c3a; }

/* Stock and load management */
.section-space { margin-bottom: 24px; }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.data-table details { max-width: 28rem; margin-top: 8px; white-space: normal; }
.data-table summary { cursor: pointer; color: var(--brand); }
.stock-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .stock-metrics { grid-template-columns: 1fr; } }

/* Vor-Ort-Checks und druckbare QR-Etiketten. */
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.check-points { padding-left: 24px; }
.check-points li { margin-bottom: 14px; overflow-wrap: anywhere; }
.mobile-check-form { max-width: 800px; }
.check-point { min-width: 0; }
.check-point legend { font-weight: 700; font-size: 17px; padding: 0 8px; max-width: 100%; overflow-wrap: anywhere; }
.check-point > div { display: grid; gap: 10px; }
.check-point label { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.check-point .form-field { margin-top: 16px; }
.check-point .form-field label { padding: 0; border: 0; min-height: auto; }
.check-point input[type="radio"] { flex: 0 0 auto; width: 20px; height: 20px; }
.qr-label { max-width: 440px; text-align: center; }
.qr-label img { width: 280px; max-width: 100%; height: auto; image-rendering: pixelated; }
.qr-address { font-size: 11px; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .personal-issues-table, .personal-issues-table tbody, .personal-issues-table tr, .personal-issues-table td { display: block; }
  .personal-issues-table thead { display: none; }
  .personal-issues-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .personal-issues-table tr:last-child { border-bottom: 0; }
  .personal-issues-table td { padding: 8px 0; border: 0; overflow-wrap: anywhere; }
  .personal-issues-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
}
@media print {
  .sidebar, .topbar, .public-header, .page-footer, .no-print, .messages, .network-message, .skip-link { display: none !important; }
  .workspace { margin: 0; }
  .main-content { padding: 0; max-width: none; }
  .qr-label { border: 1px solid #000; border-radius: 0; box-shadow: none; width: 80mm; max-width: 100%; padding: 6mm; break-inside: avoid; color: #000; background: #fff; }
  .qr-label img { width: 55mm; }
}
