:root {
    --navy-950: #071b2d;
    --navy-900: #0b2942;
    --navy-800: #123c5b;
    --teal-600: #0a8fa5;
    --teal-500: #14a3ba;
    --teal-300: #7edbdc;
    --ink: #102f4c;
    --muted: #667e90;
    --line: #dfe7ed;
    --surface: #ffffff;
    --canvas: #f3f6fa;
    --success: #2aa77f;
    --danger: #ce4556;
    --shadow-sm: 0 4px 18px rgba(14, 38, 60, .06);
    --shadow-md: 0 16px 45px rgba(14, 38, 60, .10);
}
html, body {
    font-family: Inter, Aptos, "Segoe UI Variable", "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--canvas);
    text-rendering: optimizeLegibility;
}

body { margin: 0; }
a { color: var(--teal-600); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 740; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 3vw, 3rem); }
h1:focus { outline: none; }
p { color: var(--muted); }

.eyebrow {
    display: block;
    margin-bottom: .7rem;
    color: var(--teal-600);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.6rem;
}

.page-heading h1 { margin: 0 0 .55rem; }
.page-heading p { margin: 0; font-size: 1rem; }
.heading-badge {
    padding: .6rem .9rem;
    border: 1px solid #cde4e7;
    border-radius: 999px;
    color: #08798b;
    background: #edfafa;
    font-size: .72rem;
    font-weight: 760;
    letter-spacing: .04em;
}

/* Landing page */
.home-hero {
    min-height: 540px;
    padding: clamp(2.5rem, 5vw, 5rem);
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    align-items: center;
    gap: 3rem;
    overflow: hidden;
    position: relative;
    border-radius: 32px;
    background:
        radial-gradient(circle at 85% 15%, rgba(36, 184, 190, .16), transparent 24%),
        linear-gradient(140deg, #ffffff 0%, #f2f9fa 65%, #e7f5f6 100%);
    box-shadow: var(--shadow-md);
}

.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { margin: 0 0 1.5rem; font-size: clamp(2.7rem, 4vw, 4.3rem); line-height: 1.03; letter-spacing: -.055em; }
.hero-copy h1 span { color: var(--teal-600); }
.hero-copy p { max-width: 650px; margin-bottom: 2rem; font-size: 1.12rem; line-height: 1.75; }

.hero-visual { min-height: 400px; position: relative; display: grid; place-items: center; }
.security-core {
    width: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 38%;
    color: white;
    background: linear-gradient(145deg, #123e5c, #0a263d);
    box-shadow: 0 28px 65px rgba(8, 42, 66, .26), inset 0 1px rgba(255,255,255,.15);
    transform: rotate(-5deg);
}
.security-core > * { transform: rotate(5deg); }
.core-check { width: 52px; height: 52px; margin-bottom: .9rem; display: grid; place-items: center; border-radius: 16px; color: #07334b; background: #83dfdc; font-size: 1.5rem; font-weight: 900; }
.security-core strong { font-size: 1.8rem; letter-spacing: .08em; }
.security-core small { margin-top: .35rem; color: #8fb5c6; }
.orbit { position: absolute; border: 1px solid rgba(10,143,165,.18); border-radius: 50%; }
.orbit-one { width: 345px; height: 345px; }
.orbit-two { width: 430px; height: 250px; transform: rotate(35deg); }
.floating-card { min-width: 150px; padding: 1rem; position: absolute; z-index: 4; border: 1px solid rgba(255,255,255,.85); border-radius: 17px; background: rgba(255,255,255,.86); box-shadow: var(--shadow-md); backdrop-filter: blur(12px); }
.floating-card span { float: left; width: 34px; height: 34px; margin-right: .7rem; display: grid; place-items: center; border-radius: 10px; color: var(--teal-600); background: #e7f7f7; }
.floating-card small, .floating-card strong { display: block; }
.floating-card small { color: #7b909e; font-size: .67rem; }
.floating-card strong { margin-top: .18rem; color: var(--ink); font-size: .82rem; }
.card-doc { left: 0; top: 2.3rem; }
.card-shield { right: 0; bottom: 2.4rem; }

.feature-strip { margin: 1.5rem 0; padding: 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow-sm); }
.feature-strip > div { padding: .55rem 1rem; display: flex; align-items: center; gap: .9rem; border-right: 1px solid var(--line); }
.feature-strip > div:last-child { border-right: 0; }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: var(--teal-600); background: #eaf8f8; font-weight: 800; }
.feature-strip strong, .feature-strip small { display: block; }
.feature-strip strong { font-size: .85rem; }
.feature-strip small { margin-top: .25rem; color: #8092a0; font-size: .72rem; }
.welcome-note { padding: 4.5rem 2rem 2rem; text-align: center; }
.welcome-note h2 { margin: 0 0 .7rem; font-size: 2rem; }

/* Admin hub */
.admin-section { margin-top: 3rem; }
.section-heading { margin-bottom: 1.25rem; display: flex; align-items: flex-start; gap: 1rem; }
.section-number { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: var(--teal-600); background: #e7f6f7; font-size: .68rem; font-weight: 850; }
.section-heading h2 { margin: 0 0 .2rem; font-size: 1.25rem; }
.section-heading p { margin: 0; font-size: .84rem; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.admin-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portal-card { min-height: 118px; padding: 1.35rem; display: flex; align-items: center; gap: 1rem; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: white; box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.portal-card:hover { color: var(--ink); border-color: #b8dadd; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.portal-card.featured { background: linear-gradient(130deg, #0d3652, #0b2942); border-color: transparent; color: white; }
.portal-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 15px; color: var(--teal-600); background: #e9f7f8; font-size: 1.2rem; font-weight: 750; }
.featured .portal-icon { color: #9ae2df; background: rgba(255,255,255,.1); }
.portal-content { min-width: 0; flex: 1; }
.portal-content strong, .portal-content small { display: block; }
.portal-content strong { font-size: .93rem; }
.portal-content small { margin-top: .35rem; color: #788d9b; font-size: .75rem; line-height: 1.4; }
.featured .portal-content small { color: #99b6c5; }
.portal-arrow { color: #86a0ae; font-size: 1.25rem; transition: transform .18s ease; }
.portal-card:hover .portal-arrow, .import-card:hover .portal-arrow { transform: translateX(4px); }
.import-card { max-width: 720px; padding: 1.25rem 1.4rem; display: flex; align-items: center; gap: 1rem; border-radius: 18px; color: white; background: linear-gradient(115deg, #0a8fa5, #08758c); box-shadow: 0 14px 30px rgba(10, 143, 165, .18); text-decoration: none; }
.import-card:hover { color: white; }
.import-card > span:nth-child(2) { flex: 1; }
.import-card strong, .import-card small { display: block; }
.import-card small { margin-top: .3rem; color: #c7edf0; font-size: .76rem; }
.import-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.14); font-size: 1.25rem; }
.import-card .portal-arrow { color: white; }

/* Assignment administration */
.assignment-picker { max-width: 760px; padding: 1.3rem; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow-sm); }
.assignment-picker label, .assignment-toolbar label { display: block; margin-bottom: .45rem; }
.assignment-picker-search { margin-bottom: .85rem; }
.assignment-picker-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; color: var(--muted); font-size: .76rem; }
.assignment-picker-meta span { padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 999px; background: #f7fafb; }
.assignment-picker optgroup { color: var(--navy); font-weight: 700; }
.assignment-picker option { color: #253746; font-weight: 400; }
.assignment-summary { margin: 1.4rem 0; padding: 1.4rem; display: flex; align-items: center; gap: 1rem; border-radius: 20px; color: white; background: linear-gradient(125deg, #0d3652, #0a2941); box-shadow: var(--shadow-md); }
.assignment-avatar { width: 56px; height: 56px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 17px; color: #07334b; background: #8ce1df; font-size: 1.2rem; font-weight: 850; }
.assignment-type { color: #8ddadd; font-size: .67rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.assignment-summary h2 { margin: .15rem 0; color: white; font-size: 1.2rem; }
.assignment-summary p { margin: 0; color: #9eb8c6; font-size: .78rem; }
.assignment-toolbar { margin: 1.4rem 0 1rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.assignment-toolbar > div { width: min(520px, 100%); }
.tenant-assignment-list { display: grid; gap: .75rem; }
.tenant-assignment-card { padding: 1.15rem 1.25rem; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow-sm); transition: border-color .18s ease, box-shadow .18s ease; }
.tenant-assignment-card.selected { border-color: #9ed7da; box-shadow: 0 8px 24px rgba(10,143,165,.09); }
.tenant-select { display: flex; align-items: center; gap: .8rem; }
.tenant-select label { margin: 0; cursor: pointer; }
.tenant-select strong, .tenant-select small { display: block; }
.tenant-select strong { color: var(--ink); font-size: .9rem; }
.tenant-select small { min-height: 1em; margin-top: .2rem; color: #7b8f9d; font-size: .7rem; }
.tenant-assignment-options { margin: 1rem 0 0 1.8rem; padding-top: 1rem; display: flex; align-items: flex-end; gap: 1.5rem; border-top: 1px solid #edf1f4; }
.tenant-assignment-options > div { width: 180px; }
.primary-choice { margin-bottom: .55rem; display: flex; align-items: center; gap: .45rem; }
.location-choices { margin: .9rem 0 0 1.8rem; padding: .85rem; display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; border-radius: 12px; background: #f6f9fa; }
.location-choices > span { width: 100%; color: #6e8391; font-size: .68rem; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; }
.location-choices label { display: flex; align-items: center; gap: .4rem; font-size: .76rem; cursor: pointer; }

/* Modern data tables */
.table-toolbar { min-height: 52px; margin-bottom: .85rem; display: flex; align-items: center; gap: .8rem; }
.table-search { width: min(420px, 100%); height: 44px; display: flex; align-items: center; gap: .6rem; padding: 0 .85rem; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow-sm); }
.table-search span { color: var(--teal-600); font-size: 1.15rem; }
.table-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .82rem; }
.record-count { margin-left: auto; color: #758b9a; font-size: .76rem; font-weight: 680; }
.table-filter-group { display: flex; gap: .35rem; }
.filter-chip { padding: .48rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: #647c8c; background: white; font-size: .7rem; font-weight: 700; }
.filter-chip.active { color: #08798d; border-color: #a9dadd; background: #eaf8f8; }
.data-table-shell { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow-sm); }
.assistance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}.assistance-grid>a{min-height:160px;display:flex;align-items:center;gap:1.15rem;padding:1.5rem;border:1px solid var(--line);border-radius:20px;color:var(--ink);text-decoration:none;background:#fff;box-shadow:var(--shadow-sm);transition:.18s ease}.assistance-grid>a:hover{transform:translateY(-2px);border-color:var(--teal-300);box-shadow:var(--shadow-md)}.assistance-grid>a>span{width:58px;height:58px;flex:0 0 58px;display:grid;place-items:center;border-radius:16px;background:var(--teal-50);color:var(--teal-700);font-size:1.6rem}.assistance-grid h2{margin:0 0 .35rem;font-size:1.18rem;font-weight:800}.assistance-grid p{margin:0;color:var(--muted);font-size:.88rem}.assistance-grid b{margin-left:auto;color:var(--teal-700);font-size:1.3rem}.work-plan-card{padding:1.25rem;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow-sm)}
.work-plan-modal-backdrop{position:fixed;inset:0;z-index:1050;display:grid;place-items:center;padding:1.5rem;background:rgba(4,28,47,.58);backdrop-filter:blur(3px)}.work-plan-modal{width:min(940px,100%);max-height:calc(100vh - 3rem);overflow:auto;padding:1.5rem;border-radius:22px;background:#fff;box-shadow:0 26px 70px rgba(4,28,47,.28)}.work-plan-modal>header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding-bottom:1rem;border-bottom:1px solid var(--line)}.work-plan-modal h2{margin:.2rem 0 0;font-size:1.45rem}.modal-close-button{border:0;background:transparent;color:var(--muted);font-size:2rem;line-height:1}.work-plan-selection{padding:1.25rem 0}.work-plan-selection>label{display:block;margin-bottom:.45rem;font-weight:800}.work-plan-selection>div{display:flex;gap:.75rem}.work-plan-selection select{max-width:520px}.work-plan-selection small{display:block;margin-top:.45rem;color:var(--muted)}.work-plan-suggestions>div>h3{margin:0;font-size:1.05rem}.work-plan-suggestions>div>p{color:var(--muted);font-size:.82rem}.work-plan-suggestions article{display:grid;grid-template-columns:minmax(220px,2fr) minmax(100px,.7fr) minmax(150px,1fr) auto;align-items:center;gap:1rem;padding:1rem;border-top:1px solid var(--line)}.work-plan-suggestions article div{display:flex;flex-direction:column}.work-plan-suggestions article span{color:var(--muted);font-size:.7rem;text-transform:uppercase;letter-spacing:.05em}.work-plan-suggestions article strong{font-size:.84rem}.adopted-text{color:#178368}@media(max-width:760px){.assistance-grid{grid-template-columns:1fr}.work-plan-modal-backdrop{padding:.5rem}.work-plan-suggestions article{grid-template-columns:1fr 1fr}.work-plan-suggestions article button{grid-column:1/-1}.work-plan-selection>div{flex-direction:column}}
.modern-table { min-width: 880px; }
.table:not(.modern-table) { margin-top: .85rem; overflow: hidden; border: 1px solid var(--line); border-collapse: separate; border-spacing: 0; border-radius: 18px; background: white; box-shadow: var(--shadow-sm); }
.table:not(.modern-table) tbody tr:last-child td { border-bottom: 0; }
.table:not(.modern-table) a { color: #187f91; font-weight: 680; text-decoration: none; }
.table:not(.modern-table) a:hover { color: #075f72; }
.auto-paginated-table { width: 100%; }
.auto-paginated-table tr[hidden] { display: none; }
.auto-table-toolbar { min-height: 32px; margin-top: .85rem; margin-bottom: .45rem; }
.auto-table-toolbar .record-count { margin-left: auto; }
.auto-table-pagination { margin-bottom: 1.25rem; }
.modern-table > :not(caption) > * > * { padding: 1rem 1.2rem; }
.modern-table tbody tr:last-child td { border-bottom: 0; }
.entity-cell { display: flex; align-items: center; gap: .8rem; }
.entity-avatar { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: #08788b; background: linear-gradient(145deg, #e5f7f7, #d5efef); font-size: .72rem; font-weight: 850; letter-spacing: .03em; }
.entity-avatar.user { color: #fff; background: linear-gradient(145deg, #0f90a7, #0c6584); }
.entity-cell strong, .entity-cell small { display: block; }
.entity-cell strong { color: var(--ink); font-size: .82rem; }
.entity-cell small { max-width: 300px; margin-top: .22rem; overflow: hidden; color: #7b909e; font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.soft-badge { display: inline-flex; padding: .4rem .6rem; border-radius: 8px; color: #4f7184; background: #f0f5f7; font-size: .68rem; font-weight: 700; }
.cell-primary, .cell-secondary { display: block; }
.cell-primary { color: #36566c; font-size: .76rem; }
.cell-secondary { margin-top: .22rem; color: #8b9ca7; font-size: .65rem; }
.status-pill { display: inline-flex; align-items: center; gap: .42rem; padding: .42rem .65rem; border-radius: 999px; font-size: .68rem; font-weight: 750; }
.status-pill i { width: .42rem; height: .42rem; border-radius: 50%; }
.status-pill.active { color: #217b61; background: #e9f7f1; }
.status-pill.active i { background: #33ad83; }
.status-pill.inactive { color: #9b5260; background: #fbeef0; }
.status-pill.inactive i { background: #cf6173; }
.action-column { width: 1%; text-align: right; white-space: nowrap; }
.btn-table-action { padding: .48rem .7rem; border: 1px solid #d8e5ea; color: #315b71; background: white; }
.btn-table-action:hover { color: #08798d; border-color: #9ed6da; background: #f1fafa; }
.btn-table-action span { margin-left: .3rem; color: var(--teal-600); }
.user-type-pill { display: inline-flex; padding: .42rem .62rem; border-radius: 8px; font-size: .66rem; font-weight: 750; }
.user-type-pill.agency { color: #08788d; background: #e5f6f7; }
.user-type-pill.tenant { color: #526b7c; background: #eef2f5; }
.tenant-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.tenant-tags span, .tenant-tags b { padding: .28rem .45rem; border-radius: 6px; color: #557181; background: #f1f5f7; font-size: .62rem; font-weight: 680; }
.tenant-tags b { color: #08798d; background: #e6f7f7; }
.loading-state { padding: 3rem; display: flex; justify-content: center; align-items: center; gap: .7rem; color: #748a99; font-size: .8rem; }
.loading-state span { width: 18px; height: 18px; border: 2px solid #cde3e5; border-top-color: var(--teal-600); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.inline-create-panel { margin-bottom: 1.5rem; padding: 1.4rem; border: 1px solid #cce3e5; border-radius: 18px; background: #f7fbfb; }
.heading-actions { display: flex; align-items: center; gap: .55rem; }
.table-pagination { margin-top: .85rem; padding: .75rem .9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.table-pagination > label { margin: 0; display: flex; align-items: center; gap: .6rem; color: #6c8291; font-size: .7rem; }
.table-pagination select { width: 72px; min-height: 34px; }
.pagination-controls { display: flex; align-items: center; gap: .75rem; }
.pagination-controls > span { color: #728795; font-size: .7rem; }
.pagination-controls strong { color: var(--ink); }
.btn-pagination { border: 1px solid var(--line); color: #3c6074; background: white; }
.btn-pagination:hover:not(:disabled) { color: #08798d; border-color: #a2d6da; background: #eff9f9; }
.btn-pagination:disabled { color: #aab7bf; background: #f5f7f8; }

/* Tenant detail hub */
.tenant-detail-heading { margin-bottom: 1.5rem; }
.tenant-detail-logo { max-width: 220px; max-height: 90px; object-fit: contain; padding: .6rem .8rem; border: 1px solid #d8e5ea; border-radius: 14px; background: #fff; }
.tenant-hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.tenant-hub-card { min-height: 100px; padding: 1rem; display: flex; align-items: center; gap: .8rem; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: white; box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.tenant-hub-card:hover { color: var(--ink); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tenant-hub-card.primary { color: white; border-color: transparent; background: linear-gradient(125deg, #0d3652, #0a2941); }
.tenant-hub-card > span:nth-child(2) { min-width: 0; flex: 1; }
.tenant-hub-card strong, .tenant-hub-card small { display: block; }
.tenant-hub-card strong { font-size: .8rem; }
.tenant-hub-card small { margin-top: .25rem; color: #7a8f9c; font-size: .66rem; line-height: 1.35; }
.tenant-hub-card.primary strong { color: white; }
.tenant-hub-card.primary small { color: #9bb7c5; }
.tenant-hub-card b { color: #77a1b3; font-weight: 500; }
.more-modules { margin: .8rem 0 2rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.more-modules summary { padding: .85rem 1rem; color: #557185; font-size: .72rem; font-weight: 720; cursor: pointer; }
.more-modules > div { padding: 0 1rem 1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.more-modules a { padding: .4rem .6rem; border-radius: 8px; color: #477084; background: #f1f6f7; font-size: .68rem; text-decoration: none; }
.detail-form { padding: 1.6rem; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-sm); }
.agency-toggle { padding: 1rem 1rem 1rem 2.7rem; border: 1px solid #cce4e6; border-radius: 14px; background: #f1fafa; }
.agency-toggle label strong, .agency-toggle label small { display: block; }
.agency-toggle label small { margin-top: .2rem; color: #78909e; font-size: .68rem; font-weight: 500; }
.system-email-form { margin-bottom: 1rem; }.system-email-test { max-width: 850px; }.form-actions { display: flex; gap: .55rem; }
.document-export-panel { margin: 0 0 1.5rem; padding: 1.35rem 1.5rem; display: flex; align-items: center; gap: 1rem; border: 1px solid #b9dcde; border-radius: 20px; background: linear-gradient(120deg,#f5fbfb,#edf8f8); box-shadow: var(--shadow-sm); }
.document-export-icon { width: 56px; height: 56px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 16px; color: white; background: linear-gradient(145deg,#0f90a7,#0b657d); font-size: 1.35rem; }
.document-export-panel > div:nth-child(2) { min-width: 0; flex: 1; }.document-export-panel h2 { margin: .15rem 0 .3rem; font-size: 1.15rem; }.document-export-panel p { margin: 0; color: #6f8694; font-size: .74rem; }
.document-export-actions { display: flex; gap: .5rem; }
.document-export-actions { flex-wrap: wrap; justify-content: flex-end; }
.pdf-preview-shell { width: 100%; min-height: 82vh; padding: .75rem; border: 1px solid #cfe0e4; border-radius: 20px; background: #e9f0f2; box-shadow: var(--shadow-sm); }
.pdf-preview-shell iframe { display: block; width: 100% !important; max-width: none; height: 82vh; min-height: 760px; border: 0; border-radius: 13px; background: white; }
.table-actions { display: flex; justify-content: flex-end; gap: .35rem; }.invitation-toggle { border-color: #b9dedc; background: #edf9f8; }
.dpa-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-bottom: 1.25rem; }.dpa-summary-grid > div { padding: 1.15rem 1.3rem; border: 1px solid #cbe1e4; border-radius: 18px; background: linear-gradient(140deg,#fff,#f1f9f9); box-shadow: var(--shadow-sm); }.dpa-summary-grid strong,.dpa-summary-grid span { display: block; }.dpa-summary-grid strong { color: var(--teal-600); font-size: 1.65rem; }.dpa-summary-grid span { margin-top: .2rem; color: #657d8b; font-size: .7rem; font-weight: 750; }.dpa-create-card { margin-bottom: 1.5rem; }.dpa-create-card > div:first-child { margin-bottom: 1rem; }.dpa-create-card h2 { margin: .2rem 0 .3rem; font-size: 1.25rem; }.dpa-create-card p { margin: 0; color: #708794; }.dpa-contract-section { margin: 0 0 1.8rem; }.dpa-section-heading { display: flex; align-items: center; gap: .8rem; margin-bottom: .65rem; }.dpa-section-heading > div:nth-child(2) { flex: 1; }.dpa-section-heading h2 { margin: 0 0 .15rem; font-size: 1.15rem; }.dpa-section-heading p { margin: 0; color: #708794; font-size: .72rem; }.table-empty-state { padding: 1.2rem; color: #718794; text-align: center; }
.form-grid.three-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-bottom: 1rem; }.form-grid .span-two { grid-column: span 2; }
.form-section-heading { display: flex; align-items: center; gap: .8rem; margin: .25rem 0 1rem; padding-bottom: .75rem; border-bottom: 1px solid #dce8eb; }.form-section-heading:not(:first-child) { margin-top: 1.8rem; }.form-section-heading > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: white; background: linear-gradient(145deg,#0f90a7,#0b657d); font-size: .68rem; font-weight: 800; }.form-section-heading h2 { margin: 0 0 .12rem; font-size: 1.1rem; }.form-section-heading p { margin: 0; color: #718895; font-size: .68rem; }
@media (max-width: 850px) { .dpa-summary-grid,.form-grid.three-columns { grid-template-columns: 1fr; }.form-grid .span-two { grid-column: auto; } }
.identity-alert { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: .9rem 1.1rem; border: 1px solid #efd39d; border-radius: 16px; background: linear-gradient(120deg,#fffaf0,#fff5df); box-shadow: var(--shadow-sm); }.identity-alert-icon { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 13px; color: #fff; background: linear-gradient(145deg,#ee9d28,#cf7412); font-size: 1.4rem; font-weight: 900; }.identity-alert h2 { margin: .1rem 0 .18rem; font-size: .95rem; }.identity-alert p { margin: 0; color: #6f7e86; font-size: .68rem; line-height: 1.4; }.rights-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; margin-bottom: 1rem; }.right-card { display: flex; gap: .8rem; min-height: 140px; padding: 1rem; border: 1px solid #d4e3e6; border-radius: 16px; background: white; box-shadow: var(--shadow-sm); transition: transform .2s ease,box-shadow .2s ease,border-color .2s ease; }.right-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }.right-card.selected { border-color: #1599a1; background: linear-gradient(145deg,#fff,#edfafa); box-shadow: 0 0 0 2px rgba(21,153,161,.12),var(--shadow-md); }.right-card > div:last-child { display: flex; min-width: 0; flex: 1; flex-direction: column; }.right-card-icon { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 13px; color: #087f88; background: #dff2f3; font-size: 1.35rem; font-weight: 900; }.right-article { color: #0b8b91; font-size: .56rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }.right-card h2 { margin: .18rem 0 .25rem; font-size: .9rem; line-height: 1.25; }.right-card p { margin: 0 0 .55rem; color: #718794; font-size: .64rem; line-height: 1.4; }.right-card-actions { display: flex; gap: .4rem; margin-top: auto; }.right-card-actions .btn { padding: .34rem .58rem; font-size: .59rem; }.rights-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1.25rem; padding: .7rem .85rem; border: 1px solid #bfe0e1; border-radius: 13px; color: #526d78; background: #eff9f9; font-size: .68rem; }.rights-filter-bar strong { color: #087f88; }.request-section { margin-bottom: 1.5rem; scroll-margin-top: 1rem; }.request-section-heading { margin-bottom: .55rem; }.request-section-heading h2 { margin: .1rem 0 .15rem; font-size: 1.08rem; }.request-section-heading p { margin: 0; color: #718794; font-size: .66rem; }.compact-request-table .modern-table th,.compact-request-table .modern-table td { padding: .65rem .75rem; font-size: .7rem; }.compact-request-table .soft-badge,.compact-request-table .status-pill { font-size: .58rem; white-space: nowrap; }.compact-person strong,.compact-person small { display: block; }.compact-person strong { font-size: .72rem; }.compact-person small { overflow: hidden; max-width: 320px; margin-top: .12rem; color: #78909d; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }.deadline-overdue { color: #c34836; }.deadline-note { display: flex; gap: .7rem; margin: 1rem 0; padding: .85rem 1rem; border-radius: 13px; color: #526b78; background: #edf7f7; font-size: .7rem; }.deadline-note strong { color: #087f88; }
@media (max-width: 1050px) { .rights-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) { .rights-grid { grid-template-columns: 1fr; }.identity-alert { align-items: flex-start; }.deadline-note { flex-direction: column; } }
.btn-ai-help { border-color: #b8d9d8; color: #087f88; background: linear-gradient(135deg,#eefafa,#e2f4f3); }.btn-ai-help:hover { border-color: #1599a1; color: #066b72; background: #d9f1f0; }.btn-ai-help span { margin-right: .16rem; color: #0ba0a5; }.rights-help-backdrop { position: fixed; z-index: 1200; inset: 0; display: flex; justify-content: flex-end; background: rgba(5,25,40,.54); backdrop-filter: blur(3px); animation: help-fade .18s ease-out; }.rights-help-panel { width: min(610px,94vw); height: 100%; overflow-y: auto; border-left: 1px solid rgba(255,255,255,.5); background: #f4f8f9; box-shadow: -24px 0 70px rgba(4,31,46,.28); animation: help-slide .24s ease-out; }.rights-help-header { position: sticky; z-index: 1; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.6rem 1.7rem 1.35rem; color: white; background: radial-gradient(circle at 90% 10%,rgba(65,213,206,.23),transparent 36%),linear-gradient(130deg,#092d46,#0b6071); box-shadow: 0 8px 28px rgba(5,35,50,.16); }.rights-help-header h2 { margin: .35rem 0 .2rem; color: white; font-size: 1.65rem; }.rights-help-header p { margin: 0; color: #b7d4dc; font-size: .7rem; }.ai-label { color: #63ddd6; font-size: .62rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }.rights-help-close { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; color: white; background: rgba(255,255,255,.08); font-size: 1.45rem; line-height: 1; cursor: pointer; }.rights-help-close:hover { background: rgba(255,255,255,.18); }.rights-help-body { padding: 1.4rem 1.7rem 2rem; }.rights-help-body section { margin-bottom: 1rem; padding: 1.1rem 1.2rem; border: 1px solid #d5e3e6; border-radius: 16px; background: white; box-shadow: var(--shadow-sm); }.rights-help-body h3 { margin: 0 0 .75rem; font-size: .9rem; }.rights-help-summary { border-color: #b9dfdc !important; background: linear-gradient(145deg,#fff,#edf9f7) !important; }.rights-help-summary strong,.rights-help-warning strong { display: block; margin-bottom: .35rem; color: #087f88; font-size: .72rem; }.rights-help-summary p,.rights-help-warning p { margin: 0; color: #536d79; font-size: .72rem; line-height: 1.58; }.rights-help-checklist { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }.rights-help-checklist li { display: flex; align-items: flex-start; gap: .65rem; }.rights-help-checklist li > span { display: grid; place-items: center; flex: 0 0 auto; width: 23px; height: 23px; border-radius: 8px; color: white; background: #15958f; font-size: .58rem; font-weight: 900; }.rights-help-checklist p { margin: .08rem 0 0; color: #506875; font-size: .69rem; line-height: 1.48; }.rights-help-warning { border-color: #ecd9aa !important; background: #fffaf0 !important; }.rights-help-warning strong { color: #a96810; }.rights-help-sources { display: grid; gap: .5rem; }.rights-help-sources a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: .65rem; padding: .65rem; border: 1px solid #d9e5e7; border-radius: 12px; color: #153e52; text-decoration: none; transition: border-color .16s ease,transform .16s ease; }.rights-help-sources a:hover { transform: translateX(2px); border-color: #4caeb0; }.rights-help-sources a > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #087f88; background: #e3f5f4; font-size: .56rem; font-weight: 900; }.rights-help-sources strong,.rights-help-sources small { display: block; }.rights-help-sources strong { font-size: .67rem; }.rights-help-sources small { margin-top: .1rem; color: #78909b; font-size: .56rem; }.rights-help-disclaimer { margin: .4rem .15rem 0; color: #7c8f98; font-size: .58rem; line-height: 1.5; }.rights-help-disclaimer::before { content: "ⓘ "; color: #0b9298; }.rights-help-warning + section { margin-bottom: .75rem; }
@keyframes help-fade { from { opacity: 0; } to { opacity: 1; } } @keyframes help-slide { from { transform: translateX(40px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 700px) { .right-card-actions { flex-wrap: wrap; }.rights-help-header { padding: 1.25rem; }.rights-help-body { padding: 1rem; }.rights-help-panel { width: 100%; }.rights-help-header h2 { font-size: 1.3rem; } }
.request-workflow-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(260px,.72fr); gap: 1rem; align-items: start; }.request-workflow-steps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }.workflow-step { padding: 1.15rem; border: 1px solid #d4e2e5; border-radius: 18px; background: white; box-shadow: var(--shadow-sm); }.workflow-step:first-child { grid-column: 1 / -1; }.workflow-step.complete { border-color: #b9ddd0; background: linear-gradient(145deg,#fff,#eef8f3); }.workflow-step.pending { border-color: #ead8d8; background: linear-gradient(145deg,#fff,#fff4f4); }.workflow-step header { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }.workflow-step header > span { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; color: white; background: #0c7782; font-size: .65rem; font-weight: 850; }.workflow-step header > div { flex: 1; }.workflow-step header h2 { margin: 0 0 .12rem; font-size: 1rem; }.workflow-step header p { margin: 0; color: #728792; font-size: .63rem; }.workflow-step header b { color: #26946d; }.form-grid.two-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }.workflow-check { display: flex; align-items: center; gap: .6rem; margin: .75rem 0; color: #526b77; font-size: .7rem; }.workflow-check input { width: 17px; height: 17px; }.workflow-finish { margin-top: 1rem; padding: .7rem; border-radius: 10px; background: rgba(255,255,255,.72); font-weight: 800; }.request-history-panel { position: sticky; top: 1rem; padding: 1.15rem; border: 1px solid #cbdde1; border-radius: 18px; background: white; box-shadow: var(--shadow-sm); }.request-history-panel h2 { margin: .18rem 0 1rem; font-size: 1.1rem; }.history-entry { display: flex; gap: .65rem; padding: .7rem 0; border-bottom: 1px solid #e3ecee; }.history-entry > span { display: grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; font-size: .65rem; font-weight: 850; }.history-entry.done > span { color: white; background: #2b9b73; }.history-entry.open > span { color: #879aa3; background: #edf2f3; }.history-entry strong,.history-entry small { display: block; }.history-entry strong { font-size: .69rem; }.history-entry small { margin-top: .12rem; color: #7b8f99; font-size: .58rem; }.history-meta { display: flex; justify-content: space-between; gap: .6rem; margin-top: .65rem; color: #738995; font-size: .6rem; }.history-meta strong { color: #435f6c; }.workflow-actions { display: flex; gap: .55rem; margin-top: 1rem; padding: 1rem 0; }.request-history-panel .deadline-note { flex-direction: column; gap: .2rem; margin-bottom: 0; }
@media (max-width: 1100px) { .request-workflow-layout { grid-template-columns: 1fr; }.request-history-panel { position: static; }.request-workflow-steps { grid-template-columns: 1fr; }.workflow-step:first-child { grid-column: auto; } }
@media (max-width: 700px) { .form-grid.two-columns { grid-template-columns: 1fr; } }

.document-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; margin-bottom: 1rem; }.document-summary-grid > div { padding: 1rem 1.2rem; border: 1px solid #ccdee2; border-radius: 16px; background: linear-gradient(145deg,#fff,#f1f8f9); box-shadow: var(--shadow-sm); }.document-summary-grid strong,.document-summary-grid span { display: block; }.document-summary-grid strong { color: #087f88; font-size: 1.45rem; }.document-summary-grid span { margin-top: .12rem; color: #708691; font-size: .65rem; font-weight: 750; }.document-upload-card { margin-bottom: 1rem; padding: 1.2rem; border: 1px solid #bcdedc; border-radius: 18px; background: #f0fafa; box-shadow: var(--shadow-sm); }.document-upload-card h2 { margin: .15rem 0 .2rem; font-size: 1.05rem; }.document-upload-card p { margin: 0 0 1rem; color: #6d838e; font-size: .68rem; }.document-filter-panel { display: grid; grid-template-columns: minmax(280px,1fr) 210px 210px auto; align-items: center; gap: .6rem; margin-bottom: .75rem; padding: .75rem; border: 1px solid #d4e2e5; border-radius: 16px; background: white; box-shadow: var(--shadow-sm); }.document-search { display: flex; align-items: center; gap: .55rem; padding: 0 .75rem; border: 1px solid #d3e0e3; border-radius: 11px; background: #f9fbfc; }.document-search span { color: #078e96; font-size: 1.15rem; }.document-search input { width: 100%; padding: .62rem 0; border: 0; outline: 0; color: #274c5e; background: transparent; font-size: .68rem; }.document-result-count { padding: 0 .45rem; color: #66808d; font-size: .64rem; font-weight: 800; white-space: nowrap; }.document-name-cell { display: flex; align-items: center; gap: .7rem; }.document-name-cell strong,.document-name-cell small { display: block; }.document-name-cell strong { font-size: .72rem; }.document-name-cell small { overflow: hidden; max-width: 400px; margin-top: .12rem; color: #7a8f99; font-size: .57rem; text-overflow: ellipsis; white-space: nowrap; }.document-type-icon { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; color: #087d86; background: #e3f4f4; font-size: .5rem; font-weight: 900; }.version-count { display: block; margin-top: .12rem; color: #7b909a; font-size: .55rem; }.document-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 1rem; align-items: start; }.document-detail-layout main { display: grid; gap: 1rem; }.document-preview-card,.document-version-card,.document-metadata-card { padding: 1.15rem; border: 1px solid #d2e0e3; border-radius: 18px; background: white; box-shadow: var(--shadow-sm); }.document-preview-card header,.document-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }.document-preview-card h2,.document-version-card h2,.document-metadata-card h2 { margin: .15rem 0 0; font-size: 1.05rem; }.version-badge,.current-label { padding: .3rem .55rem; border-radius: 999px; color: #087c79; background: #ddf4ed; font-size: .56rem; font-weight: 850; }.document-preview-card iframe { display: block; width: 100%; height: 68vh; min-height: 560px; border: 1px solid #d7e2e4; border-radius: 12px; background: #edf2f3; }.document-preview-empty { display: grid; justify-items: center; min-height: 360px; place-content: center; padding: 2rem; border: 1px dashed #c4d8dc; border-radius: 13px; color: #708792; background: #f6f9fa; text-align: center; }.document-preview-empty > span { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: .8rem; border-radius: 18px; color: #07868f; background: #dff1f2; font-size: 1.45rem; }.document-preview-empty strong { color: #315565; }.document-preview-empty p { max-width: 430px; margin: .35rem 0 .9rem; font-size: .65rem; }.version-upload-box { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; padding: .9rem; border-radius: 13px; background: #eef8f8; }.version-timeline { display: grid; gap: .55rem; }.version-entry { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: .75rem; padding: .8rem; border: 1px solid #dce7e9; border-radius: 13px; }.version-entry.current { border-color: #85c9c3; background: #f0faf7; }.version-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #087d84; background: #e2f3f3; font-size: .62rem; font-weight: 900; }.version-entry strong,.version-entry p,.version-entry small { display: block; }.version-entry strong { font-size: .7rem; }.version-entry p { margin: .12rem 0; color: #637c88; font-size: .62rem; }.version-entry small { color: #8799a1; font-size: .54rem; }.version-actions { display: flex; align-items: center; gap: .4rem; }.document-metadata-card { position: sticky; top: 1rem; }.document-metadata-card .form-label { margin-top: .72rem; }.document-meta-facts { display: grid; gap: .4rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid #e0e9eb; }.document-meta-facts div { display: flex; justify-content: space-between; gap: .5rem; color: #78909a; font-size: .57rem; }.document-meta-facts strong { color: #496674; text-align: right; }.document-save-button { width: 100%; margin-top: 1rem; }
@media (max-width: 1100px) { .document-filter-panel { grid-template-columns: 1fr 1fr; }.document-search { grid-column: 1/-1; }.document-detail-layout { grid-template-columns: 1fr; }.document-metadata-card { position: static; }.document-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 650px) { .document-filter-panel,.document-summary-grid,.version-upload-box { grid-template-columns: 1fr; }.document-search { grid-column: auto; }.version-entry { grid-template-columns: 38px 1fr; }.version-actions { grid-column: 2; }.document-preview-card iframe { min-height: 430px; } }

/* Persönliches Benutzerportal */
.incident-captured-form { max-width: 980px; padding: 1.3rem; border: 1px solid #d1e0e3; border-radius: 20px; background: white; box-shadow: var(--shadow-sm); }.incident-completed-view { max-width: 1050px; padding: 1.2rem; border: 1px solid #cfe0dc; border-radius: 20px; background: white; box-shadow: var(--shadow-sm); }.incident-completed-banner { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; padding: .85rem; border-radius: 13px; background: #eaf8f1; }.incident-completed-banner > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: white; background: #29956f; font-weight: 900; }.incident-completed-banner strong,.incident-completed-banner p { display: block; margin: 0; }.incident-completed-banner strong { color: #267457; font-size: .72rem; }.incident-completed-banner p { margin-top: .12rem; color: #688077; font-size: .6rem; }.incident-read-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }.incident-read-grid > div { padding: .75rem; border: 1px solid #dce7e9; border-radius: 12px; background: #f8fafb; }.incident-read-grid .span-two { grid-column: 1/-1; }.incident-read-grid span,.incident-read-grid strong,.incident-read-grid p { display: block; }.incident-read-grid span { margin-bottom: .25rem; color: #758b95; font-size: .55rem; font-weight: 800; text-transform: uppercase; }.incident-read-grid strong,.incident-read-grid p { margin: 0; color: #3e5d6a; font-size: .67rem; line-height: 1.5; white-space: pre-line; }.incident-completed-files { margin-top: 1rem; }.incident-completed-files h2 { font-size: .9rem; }.incident-completed-files > div { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: .55rem; margin-top: .4rem; padding: .6rem; border: 1px solid #d8e5e7; border-radius: 11px; }.incident-completed-files strong,.incident-completed-files small { display: block; }.incident-completed-files strong { font-size: .65rem; }.incident-completed-files small { color: #81949c; font-size: .54rem; }
@media (max-width: 650px) { .incident-read-grid { grid-template-columns: 1fr; }.incident-read-grid .span-two { grid-column: auto; } }

/* Persönliches Benutzerportal */
.incident-workflow-layout { display: grid; grid-template-columns: minmax(0,1fr) 285px; gap: 1rem; align-items: start; }.incident-workflow-main { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }.incident-workflow-step { padding: 1.15rem; border: 1px solid #ead8d8; border-radius: 18px; background: linear-gradient(145deg,#fff,#fff6f5); box-shadow: var(--shadow-sm); }.incident-workflow-step:first-child,.incident-workflow-step:last-child { grid-column: 1/-1; }.incident-workflow-step.complete { border-color: #b9ddd0; background: linear-gradient(145deg,#fff,#eef8f3); }.incident-workflow-step header { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }.incident-workflow-step header > span { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; color: white; background: #0c7782; font-size: .65rem; font-weight: 850; }.incident-workflow-step header > div { flex: 1; }.incident-workflow-step header h2 { margin: 0 0 .12rem; font-size: 1rem; }.incident-workflow-step header p { margin: 0; color: #728792; font-size: .62rem; }.incident-workflow-step header b { color: #26946d; }.incident-decision-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .6rem; }.incident-decision { display: grid; justify-items: start; min-height: 105px; padding: .75rem; border: 1px solid #d3e1e4; border-radius: 13px; color: #456572; background: white; text-align: left; cursor: pointer; }.incident-decision:hover,.incident-decision.selected { border-color: #39a5a6; box-shadow: 0 0 0 2px rgba(25,151,153,.1); }.incident-decision.selected.safe { border-color: #49a77f; background: #eff9f4; }.incident-decision.selected.danger { border-color: #da7566; background: #fff1ef; }.incident-decision > span { font-size: 1rem; font-weight: 900; }.incident-decision strong,.incident-decision small { display: block; }.incident-decision strong { margin-top: .3rem; font-size: .66rem; }.incident-decision small { margin-top: .12rem; color: #84969e; font-size: .54rem; }.incident-followup { margin-top: .8rem; padding: .75rem; border-radius: 12px; background: rgba(255,255,255,.75); }.incident-file-upload { display: grid; justify-items: center; gap: .45rem; padding: 1.3rem; border: 1px dashed #a9cdd1; border-radius: 13px; background: rgba(255,255,255,.72); }.incident-file-upload span { color: #718892; font-size: .6rem; }.incident-file-list { display: grid; gap: .45rem; margin-top: .75rem; }.incident-file-list > div { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: .55rem; padding: .6rem; border: 1px solid #d8e5e7; border-radius: 11px; background: white; }.incident-file-list strong,.incident-file-list small { display: block; }.incident-file-list strong { font-size: .65rem; }.incident-file-list small { margin-top: .1rem; color: #81949c; font-size: .54rem; }.incident-workflow-sidebar { position: sticky; top: 1rem; padding: 1.1rem; border: 1px solid #cfdee1; border-radius: 18px; background: white; box-shadow: var(--shadow-sm); }.incident-workflow-sidebar h2 { margin: .15rem 0 .8rem; font-size: 1.05rem; }.incident-deadline-box { margin-bottom: .8rem; padding: .75rem; border-radius: 12px; color: #7b5918; background: #fff4d7; }.incident-deadline-box.overdue { color: #a23d31; background: #ffe8e4; }.incident-deadline-box span,.incident-deadline-box strong,.incident-deadline-box small { display: block; }.incident-deadline-box span { font-size: .55rem; font-weight: 800; text-transform: uppercase; }.incident-deadline-box strong { margin: .18rem 0; font-size: .72rem; }.incident-deadline-box small { font-size: .56rem; }.incident-sidebar-step { display: flex; align-items: center; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid #e4ecee; }.incident-sidebar-step > span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #7c9199; background: #edf2f3; font-size: .57rem; font-weight: 900; }.incident-sidebar-step.done > span { color: white; background: #29956f; }.incident-sidebar-step strong { color: #526e7a; font-size: .62rem; }
@media (max-width: 1100px) { .incident-workflow-layout { grid-template-columns: 1fr; }.incident-workflow-sidebar { position: static; }.incident-workflow-main { grid-template-columns: 1fr; }.incident-workflow-step:first-child,.incident-workflow-step:last-child { grid-column: auto; } }
.incident-mail-log { margin-top: 1.25rem; padding: 1rem; border: 1px solid #d1e0e3; border-radius: 18px; background: white; box-shadow: var(--shadow-sm); }.incident-mail-log .request-section-heading { align-items: end; }.incident-mail-log .request-section-heading > strong { color: #708691; font-size: .62rem; }.incident-mail-log .modern-table th,.incident-mail-log .modern-table td { padding: .65rem .7rem; font-size: .63rem; }.mail-action-status { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .5rem; border-radius: 999px; font-size: .55rem; font-weight: 850; }.mail-action-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }.mail-action-status.sent { color: #27785f; background: #e1f5ed; }.mail-action-status.failed { color: #b64435; background: #fde7e3; }.mail-action-status.pending { color: #96701c; background: #fff3cc; }.mail-action-detail strong,.mail-action-detail small { display: block; }.mail-action-detail strong { font-size: .63rem; }.mail-action-detail small { margin-top: .14rem; color: #7e919a; font-size: .54rem; }.incident-mail-privacy { margin: .65rem 0 0; color: #7b9099; font-size: .55rem; }
.status-entry-card,.status-history-card,.status-report { margin-bottom: 1.2rem; padding: 1.2rem; border: 1px solid #d1e0e3; border-radius: 20px; background: white; box-shadow: var(--shadow-sm); }.status-meta-grid { display: grid; grid-template-columns: minmax(180px,.55fr) 1fr; gap: .8rem; margin-bottom: 1rem; }.status-question-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem 1rem; margin-bottom: 1rem; }.status-question { padding: .75rem; border: 1px solid #dce7e9; border-radius: 13px; background: #f8fbfb; }.status-question label { display: flex; align-items: center; gap: .55rem; margin-bottom: .5rem; }.status-question label span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: white; background: #0b858d; font-size: .56rem; font-weight: 900; }.status-question label strong { color: #385d69; font-size: .65rem; }.status-history-card .modern-table th,.status-history-card .modern-table td { padding: .68rem .75rem; font-size: .64rem; }.status-selected-row { background: #eef9f7; }.status-score-pill { display: inline-flex; padding: .28rem .52rem; border-radius: 999px; font-weight: 850; }.score-excellent { --gauge-color:#28bd78; color: #217657; background: #e0f6ed; }.score-good { --gauge-color:#80bc3b; color: #607b2b; background: #edf6dc; }.score-medium { --gauge-color:#f2a51f; color: #91640d; background: #fff1ce; }.score-low { --gauge-color:#df6253; color: #a13e33; background: #fde8e5; }.status-note-cell { display: block; overflow: hidden; max-width: 480px; text-overflow: ellipsis; white-space: nowrap; }.status-report > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }.status-report > header h2 { margin: .15rem 0; font-size: 1.25rem; }.status-report > header p { margin: 0; color: #748a94; font-size: .64rem; }.status-report-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; margin-bottom: 1rem; }.status-report-summary > div { padding: .85rem; border-radius: 14px; background: #f0f7f7; }.status-report-summary span,.status-report-summary strong,.status-report-summary small { display: block; }.status-report-summary span { color: #718892; font-size: .54rem; font-weight: 850; text-transform: uppercase; }.status-report-summary strong { margin: .1rem 0; color: #087f88; font-size: 1.4rem; }.status-report-summary small { color: #81949c; font-size: .55rem; }.status-gauge-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }.status-gauge { --gauge-color:#df6253; padding: 1rem .6rem; border: 1px solid #dce7e9; border-radius: 15px; text-align: center; background: #fbfdfd; }.status-gauge h3 { min-height: 2.2em; margin: 0 0 .6rem; color: #385c69; font-size: .65rem; }.gauge-visual { position: relative; overflow: hidden; width: 180px; max-width: 100%; height: 90px; margin: 0 auto .4rem; }.gauge-visual > div { position: absolute; inset: 0 auto auto 50%; width: 180px; height: 180px; max-width: 100%; transform: translateX(-50%); border-radius: 50%; background: conic-gradient(from 270deg,var(--gauge-color) 0 var(--score),#e8edef var(--score) 50%,transparent 50%); -webkit-mask: radial-gradient(farthest-side,transparent calc(100% - 25px),#000 0); mask: radial-gradient(farthest-side,transparent calc(100% - 25px),#000 0); }.gauge-visual > span { position: absolute; right: 0; bottom: 0; left: 0; color: #607984; font-size: .7rem; font-weight: 900; }.status-gauge > strong { display: block; color: #163f50; font-size: 1.12rem; }.status-gauge > strong small { color: #7d929b; font-size: .55rem; }.status-gauge > p { margin: .18rem 0 0; color: #718892; font-size: .55rem; }.status-gauge.score-excellent,.status-gauge.score-good,.status-gauge.score-medium,.status-gauge.score-low { background: #fbfdfd; }
@media (max-width: 1050px) { .status-gauge-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 720px) { .status-question-grid,.status-meta-grid,.status-report-summary,.status-gauge-grid { grid-template-columns: 1fr; } }
@media print { .no-print,.sidebar,.topbar { display:none!important; }.main-content { margin:0!important; padding:0!important; }.status-report { border:0; box-shadow:none; }.status-gauge-grid { grid-template-columns:repeat(4,1fr); }.status-gauge { break-inside:avoid; } }
@media (max-width: 650px) { .incident-decision-grid { grid-template-columns: 1fr; } }

/* Persönliches Benutzerportal */
.incident-guidance { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; padding: 1rem 1.15rem; border: 1px solid #efcf99; border-radius: 17px; background: linear-gradient(130deg,#fffaf1,#fff4dc); box-shadow: var(--shadow-sm); }.incident-guidance-icon,.incident-form-intro > span { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; color: white; background: linear-gradient(145deg,#e99a26,#c96a12); font-size: 1.25rem; font-weight: 900; }.incident-guidance strong { color: #70460f; font-size: .76rem; }.incident-guidance p { margin: .18rem 0 0; color: #746852; font-size: .65rem; line-height: 1.45; }.incident-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; margin-bottom: .8rem; }.incident-summary-grid > div { padding: .9rem 1.1rem; border: 1px solid #d1e1e4; border-radius: 15px; background: white; box-shadow: var(--shadow-sm); }.incident-summary-grid strong,.incident-summary-grid span { display: block; }.incident-summary-grid strong { color: #087f88; font-size: 1.4rem; }.incident-summary-grid span { color: #718793; font-size: .62rem; font-weight: 750; }.incident-summary-grid .urgent { border-color: #efb7ac; background: #fff4f1; }.incident-summary-grid .urgent strong { color: #c54835; }.incident-search { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; margin-bottom: 1.2rem; padding: .68rem .9rem; border: 1px solid #d2e1e4; border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }.incident-search > span { color: #0a929a; font-size: 1.1rem; }.incident-search input { border: 0; outline: 0; color: #294d5d; background: transparent; font-size: .68rem; }.incident-search strong { color: #728893; font-size: .6rem; }.incident-section { margin-bottom: 1.45rem; }.compact-incident-table .modern-table th,.compact-incident-table .modern-table td { padding: .68rem .75rem; font-size: .66rem; }.incident-title-cell strong,.incident-title-cell small { display: block; }.incident-title-cell strong { font-size: .71rem; }.incident-title-cell small { overflow: hidden; max-width: 440px; margin-top: .12rem; color: #7d9099; font-size: .56rem; text-overflow: ellipsis; white-space: nowrap; }.incident-overdue-row { background: #fff6f3; }.severity-badge { display: inline-flex; padding: .28rem .5rem; border-radius: 999px; font-size: .56rem; font-weight: 850; }.severity-niedrig { color: #27785f; background: #e1f5ed; }.severity-mittel { color: #96701c; background: #fff3cc; }.severity-hoch,.severity-kritisch { color: #b64435; background: #fde7e3; }.incident-form-intro { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; padding: 1rem 1.15rem; border-radius: 16px; color: #5f7180; background: #eef6f7; }.incident-form-intro p { margin: 0; font-size: .68rem; line-height: 1.5; }.incident-create-card { padding: 1.3rem; border: 1px solid #d1e0e3; border-radius: 20px; background: white; box-shadow: var(--shadow-sm); }.incident-deadline-preview { display: flex; align-items: center; gap: .7rem; margin: .5rem 0 1rem; padding: .8rem; border-radius: 13px; color: #5d6e78; background: #fff5df; }.incident-deadline-preview > span { font-size: 1.15rem; }.incident-deadline-preview strong,.incident-deadline-preview p { display: block; margin: 0; }.incident-deadline-preview strong { color: #8e5a10; font-size: .67rem; }.incident-deadline-preview p { margin-top: .1rem; font-size: .62rem; }.incident-release { padding: .85rem; border: 1px solid #bcded9; border-radius: 13px; background: #eef9f6; }.incident-release span strong,.incident-release span small { display: block; }.incident-release span small { margin-top: .12rem; color: #748991; font-size: .56rem; }
@media (max-width: 850px) { .incident-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.incident-guidance { align-items: flex-start; } }
@media (max-width: 550px) { .incident-summary-grid { grid-template-columns: 1fr; } }

/* Persönliches Benutzerportal */
.portal-welcome { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; min-height: 210px; margin-bottom: 2rem; padding: 2.6rem 3rem; border-radius: 26px; color: white; background: radial-gradient(circle at 86% 15%, rgba(31,184,181,.28), transparent 31%), linear-gradient(125deg, #0a2941, #103e5c); box-shadow: var(--shadow-md); }
.portal-welcome::after { content: ""; position: absolute; right: -80px; bottom: -130px; width: 320px; height: 320px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.portal-welcome h1 { margin: .35rem 0 .55rem; color: white; font-size: clamp(2rem, 4vw, 3.3rem); }.portal-welcome p { margin: 0; color: #b7ceda; }.portal-welcome .eyebrow { color: #62d7d1; }
.portal-welcome-mark { z-index: 1; display: grid; place-items: center; width: 112px; height: 112px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 9px rgba(255,255,255,.035); }.portal-welcome-mark span { color: #62d7d1; font-size: 2rem; line-height: 1; }.portal-welcome-mark small { color: white; font-size: .62rem; font-weight: 800; letter-spacing: .16em; }
.tenant-selection-heading { display: flex; align-items: end; justify-content: space-between; margin: 0 0 1rem; }.tenant-selection-heading h2 { margin: .18rem 0 0; font-size: 1.45rem; }.tenant-count { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 .6rem; border-radius: 12px; color: #087f88; background: #e2f6f5; font-size: .75rem; font-weight: 800; }
.tenant-search { position: relative; display: flex; align-items: center; margin: 0 0 1rem; }.tenant-search .form-control { min-height: 48px; padding-left: 3rem; padding-right: 3rem; border-color: #c6dde1; border-radius: 15px; background: white; box-shadow: var(--shadow-sm); }.tenant-search .form-control:focus { border-color: #159d9b; box-shadow: 0 0 0 3px rgba(21,157,155,.12); }.tenant-search-icon { position: absolute; left: 1rem; z-index: 1; color: #0b8b91; font-size: 1.25rem; font-weight: 800; pointer-events: none; }.tenant-search-clear { position: absolute; right: .7rem; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; color: #55717e; background: #edf5f6; font-size: 1.15rem; cursor: pointer; }.tenant-search-clear:hover { color: #083b52; background: #dfecee; }.tenant-search-empty { margin-top: .25rem; }
.legacy-source-panel { margin: 1.25rem 0; padding: 1.25rem 1.4rem; border: 1px solid #bcdde0; border-radius: 18px; background: linear-gradient(135deg,#f7fcfc,#edf8f8); box-shadow: var(--shadow-sm); }.legacy-source-panel h2 { margin: .18rem 0 .25rem; font-size: 1.1rem; }.legacy-source-panel p { margin: 0; color: #6c828e; font-size: .7rem; }.legacy-source-controls { display: flex; gap: .6rem; margin-top: 1rem; }.legacy-source-controls .form-select { max-width: 430px; }.legacy-source-result { display: flex; gap: .55rem; margin-top: .8rem; padding: .65rem .8rem; border-radius: 10px; font-size: .68rem; }.legacy-source-result.success { color: #216e59; background: #e4f5ee; }.legacy-source-result.error { color: #954b58; background: #fae9ec; }.legacy-source-result span { color: inherit; }
.tenant-selection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tenant-selection-card { position: relative; display: flex; align-items: center; gap: 1rem; min-height: 138px; padding: 1.3rem; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: white; box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }.tenant-selection-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(#19aaa7, #087f88); }.tenant-selection-card:hover { color: var(--ink); border-color: #afd9d8; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tenant-monogram { flex: 0 0 auto; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 17px; color: white; background: linear-gradient(145deg, #0e4864, #082b43); font-size: .9rem; font-weight: 800; letter-spacing: .05em; }.tenant-selection-copy { min-width: 0; flex: 1; }.tenant-selection-copy > strong,.tenant-selection-copy > small { display: block; }.tenant-selection-copy > strong { overflow: hidden; margin-bottom: .3rem; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }.tenant-selection-copy > small { color: #708794; font-size: .69rem; }
.tenant-card-meta { display: flex; align-items: center; gap: .55rem; margin-top: .75rem; }.tenant-card-meta b { padding: .27rem .48rem; border-radius: 7px; color: #087f88; background: #e9f7f6; font-size: .55rem; }.tenant-card-meta em { color: #69808e; font-size: .6rem; font-style: normal; font-weight: 700; }.tenant-selection-arrow { color: #159d9b; font-size: 1.45rem; transition: transform .2s ease; }.tenant-selection-card:hover .tenant-selection-arrow { transform: translateX(4px); }
.portal-loading { padding: 3rem; color: #708794; text-align: center; }.portal-empty { max-width: 650px; margin: 3rem auto; padding: 3rem; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow-sm); text-align: center; }.portal-empty-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 17px; color: #0a8f93; background: #e4f6f5; font-size: 1.6rem; font-weight: 800; }.portal-empty p { color: #708794; }
.tenant-portal-header { display: flex; align-items: center; justify-content: space-between; min-height: 235px; padding: 2.5rem 3rem; overflow: hidden; border-radius: 26px 26px 0 0; color: white; background: radial-gradient(circle at 85% 20%, rgba(44,196,188,.3), transparent 27%), linear-gradient(120deg, #082a43, #10506b); }.tenant-portal-header h1 { margin: .35rem 0 .55rem; color: white; font-size: clamp(2rem, 4vw, 3rem); }.tenant-portal-header p { margin: 0; color: #b7ceda; }.tenant-portal-header .eyebrow { display: block; color: #5cd4cf; }.portal-back-link { display: inline-block; margin-bottom: 1.2rem; color: #c0d6df; font-size: .65rem; font-weight: 700; text-decoration: none; }.portal-back-link:hover { color: white; }
.tenant-portal-badge { display: grid; place-items: center; width: 130px; height: 130px; border: 1px solid rgba(255,255,255,.2); border-radius: 30px; background: rgba(255,255,255,.09); transform: rotate(3deg); }.tenant-portal-badge span { color: white; font-size: 1.7rem; font-weight: 800; }.tenant-portal-badge small { color: #5cd4cf; font-size: .56rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tenant-portal-badge.has-logo { grid-template-rows: 1fr auto; padding: .8rem; background: rgba(255,255,255,.96); transform: none; }.tenant-portal-badge img { width: 100%; height: 82px; object-fit: contain; }.tenant-portal-badge.has-logo small { color: #0b6574; }
.tenant-portal-tabs { display: flex; gap: .4rem; margin-bottom: 1.5rem; padding: .65rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; background: white; box-shadow: var(--shadow-sm); }.tenant-portal-tabs span { padding: .62rem 1.05rem; border-radius: 10px; color: #708794; font-size: .65rem; font-weight: 700; }.tenant-portal-tabs .active { color: white; background: #0d405c; }
.module-selection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }.module-selection-card { position: relative; display: flex; align-items: center; gap: .85rem; min-height: 130px; padding: 1.2rem; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; color: var(--ink); background: white; box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }.module-selection-card::after { content: ""; position: absolute; right: -30px; bottom: -45px; width: 105px; height: 105px; border-radius: 50%; background: var(--module-soft,#edf5f6); }.module-selection-card:hover { color: var(--ink); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.module-selection-card .module-icon { z-index: 1; flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: white; background: var(--module,#159d9b); font-size: 1.25rem; font-weight: 700; }.module-selection-card > span:nth-child(2) { z-index: 1; min-width: 0; flex: 1; }.module-selection-card strong,.module-selection-card small { display: block; }.module-selection-card strong { font-size: .75rem; }.module-selection-card small { margin-top: .3rem; color: #768b97; font-size: .6rem; line-height: 1.4; }.module-selection-card b { z-index: 1; color: var(--module,#159d9b); font-weight: 500; }
.module-selection-card.blue { --module:#3980b9;--module-soft:#e8f2fa }.module-selection-card.navy { --module:#284b75;--module-soft:#e9eef5 }.module-selection-card.orange { --module:#dc8435;--module-soft:#fff0df }.module-selection-card.violet { --module:#735d9c;--module-soft:#f0ebf8 }.module-selection-card.green { --module:#4a9275;--module-soft:#e7f4ed }.module-selection-card.cyan { --module:#188ca2;--module-soft:#e5f5f7 }.module-selection-card.slate { --module:#5e7181;--module-soft:#ecf0f2 }.module-selection-card.mint { --module:#49a997;--module-soft:#e3f5f1 }
.portal-permission-note { display: flex; align-items: center; gap: .7rem; margin-top: 1.2rem; padding: .9rem 1rem; border-radius: 13px; color: #55707e; background: #edf6f7; font-size: .65rem; }.portal-permission-note span { display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; color: white; background: #138e94; font-weight: 800; }

/* Bootstrap component modernization */
.btn { border-radius: 11px; font-weight: 680; letter-spacing: -.01em; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--teal-600), #08778f); border-color: transparent; box-shadow: 0 8px 20px rgba(10,143,165,.18); }
.btn-primary:hover, .btn-primary:focus { color: white; background: linear-gradient(135deg, #087f93, #06677d); border-color: transparent; }
.btn-lg { padding: .85rem 1.35rem; font-size: .9rem; }
.btn-secondary { color: var(--ink); background: white; border-color: var(--line); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-select:focus, .form-check-input:focus { box-shadow: 0 0 0 .22rem rgba(20,163,186,.16); }
.form-control, .form-select { min-height: 44px; border-color: #d8e2e8; border-radius: 10px; color: var(--ink); background-color: white; }
.form-control:focus, .form-select:focus { border-color: #60c2c8; }
.form-label, label { color: #36556b; font-size: .82rem; font-weight: 650; }
.form-check-input:checked { background-color: var(--teal-600); border-color: var(--teal-600); }
.card { border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.card-header { padding: 1rem 1.25rem; border-color: var(--line); background: #f8fafb; font-weight: 700; }
.table-responsive { border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow-sm); }
.table { margin-bottom: 0; color: #294a61; }
.table > :not(caption) > * > * { padding: .9rem 1rem; border-bottom-color: #e7edf1; vertical-align: middle; }
.table thead th { color: #6c8291; background: #f7f9fb; font-size: .68rem; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.table tbody tr { transition: background .15s ease; }
.table tbody tr:hover { background: #f3fafa; }
.badge { padding: .45em .7em; border-radius: 8px; font-weight: 700; }
.alert { border: 0; border-radius: 14px; }
.modal-content { border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(8,31,48,.22); }
.pagination { gap: .3rem; }
.page-link { border: 0; border-radius: 9px !important; color: var(--teal-600); }
.page-item.active .page-link { background: var(--teal-600); }

.valid.modified:not([type=checkbox]) { outline: 1px solid var(--success); }
.invalid { outline: 1px solid var(--danger); }
.validation-message { color: var(--danger); font-size: .78rem; }
.blazor-error-boundary { padding: 1rem; border-radius: 14px; color: white; background: var(--danger); }
.blazor-error-boundary::after { content: "Es ist ein Fehler aufgetreten."; }
.login-logo { max-width: 270px; width: 100%; height: auto; margin-bottom: 1.5rem; }
.darker-border-checkbox.form-check-input { border-color: #8295a3; }

.dpa-activity-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; max-height: 360px; overflow-y: auto; padding: .25rem; margin-bottom: 1rem; }
.dpa-activity-option { display: flex; align-items: flex-start; gap: .75rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.dpa-activity-option:hover { border-color: #72c7c8; box-shadow: 0 8px 22px rgba(4, 68, 91, .08); transform: translateY(-1px); }
.dpa-activity-option input { margin-top: .2rem; accent-color: var(--primary); }
.dpa-activity-option span { display: grid; gap: .2rem; }
.dpa-activity-option small { color: var(--muted); }
.dpa-file-upload { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border: 1px dashed #91cbd0; border-radius: 16px; background: #f7fcfc; }
.dpa-file-upload span { color: var(--muted); font-size: .86rem; }
.dpa-pending-files { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.dpa-pending-files > span { display: inline-flex; gap: .5rem; padding: .45rem .7rem; border-radius: 999px; background: #e9f6f5; color: var(--ink); font-size: .82rem; }
.dpa-pending-files small { color: var(--muted); }
.tom-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.tom-summary-grid article { display: grid; gap: .2rem; padding: 1.2rem 1.35rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.tom-summary-grid span { color: var(--primary); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.tom-summary-grid strong { color: var(--navy); font-size: 1.8rem; }
.tom-summary-grid small { color: var(--muted); }
.tom-progress-pill { display: inline-flex; padding: .35rem .65rem; border-radius: 999px; background: #e7f6f3; color: #16765a; font-weight: 800; font-size: .78rem; }
.tom-disabled-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0; }
.tom-disabled-tabs span { padding: .6rem .85rem; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #f5f7f9; font-size: .82rem; }
.tom-editor { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-soft); }
.tom-tabs { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); border-bottom: 1px solid var(--line); background: #f7f9fb; }
.tom-tabs button { position: relative; display: grid; gap: .15rem; min-height: 76px; padding: .8rem .55rem; border: 0; border-right: 1px solid var(--line); color: var(--muted); background: transparent; font-size: .78rem; text-align: left; }
.tom-tabs button:last-child { border-right: 0; }.tom-tabs button.active { color: #fff; background: linear-gradient(135deg,var(--primary),#087287); }
.tom-tabs button span { font-weight: 900; }.tom-tabs button small { opacity: .8; }.tom-tabs button.active small { color: #d9ffff; }
.tom-tab-panel { padding: 1.5rem; }.tom-tab-panel > header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; }.tom-tab-panel > header h2 { margin: .15rem 0; }.tom-tab-panel > header p { margin: 0; color: var(--muted); }.tom-tab-panel > header > strong { padding: .55rem .75rem; border-radius: 12px; color: var(--primary); background: #e9f7f8; }
.tom-check-grid { display: grid; gap: .65rem; }.tom-check-grid.two-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
.tom-check-item { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfd; cursor: pointer; transition: .2s ease; }.tom-check-item:hover { border-color: #7ccbd0; }.tom-check-item.checked { border-color: #91d3bf; background: #f0faf6; }.tom-check-item input { margin-top: .2rem; accent-color: var(--success); }.tom-check-item span { display: flex; gap: .55rem; line-height: 1.42; }.tom-check-item b { color: var(--primary); white-space: nowrap; }
.tom-remarks { margin-top: 1.25rem; }.tom-editor > .form-actions { padding: 0 1.5rem 1.5rem; }

@media (max-width: 1100px) {
    .home-hero { grid-template-columns: 1fr; }
    .hero-visual { min-height: 340px; }
    .admin-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tenant-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .module-selection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .home-hero { padding: 2.2rem 1.4rem; border-radius: 22px; grid-template-columns: minmax(0,1fr); }
    .hero-copy h1 { font-size: 2.6rem; }
    .hero-visual { min-height: 300px; transform: scale(.82); margin: -1rem; }
    .feature-strip, .admin-grid, .admin-grid.compact { grid-template-columns: 1fr; }
    .feature-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .feature-strip > div:last-child { border-bottom: 0; }
    .page-heading { display: block; }
    .heading-badge { display: inline-block; margin-top: 1rem; }
    .assignment-toolbar { align-items: stretch; flex-direction: column; }
    .tenant-assignment-options { align-items: stretch; flex-direction: column; }
    .table-toolbar { align-items: stretch; flex-direction: column; }
    .record-count { margin-left: 0; }
    .tenant-hub { grid-template-columns: 1fr; }
    .portal-welcome, .tenant-portal-header { min-height: auto; padding: 2rem 1.35rem; }
    .portal-welcome-mark, .tenant-portal-badge { display: none; }
    .tenant-selection-grid, .module-selection-grid { grid-template-columns: 1fr; }
    .tenant-portal-tabs { overflow-x: auto; }
    .heading-actions { margin-top: 1rem; }
    .dpa-activity-picker { grid-template-columns: 1fr; }
    .dpa-file-upload { align-items: stretch; flex-direction: column; }
    .tom-summary-grid, .tom-check-grid.two-columns { grid-template-columns: 1fr; }
    .tom-tabs { display: flex; overflow-x: auto; }.tom-tabs button { flex: 0 0 145px; }
    .document-export-panel { align-items: stretch; flex-direction: column; }.document-export-actions { flex-direction: column; }
    .table-pagination { align-items: stretch; flex-direction: column; }
    .pagination-controls { justify-content: space-between; }
}
/* KI-Register */
.ai-register-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1.25rem}.ai-register-summary>div{display:flex;flex-direction:column;padding:1.15rem 1.3rem;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow-sm)}.ai-register-summary span{color:var(--muted);font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.ai-register-summary strong{margin:.15rem 0;font-size:1.65rem;color:var(--ink)}.ai-register-summary small{color:var(--muted)}.ai-register-card{padding:1.25rem;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow-sm)}.ai-name-cell{display:flex;align-items:center;gap:.7rem}.ai-name-cell>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--teal-50);color:var(--teal-700)}.ai-name-cell>div{display:flex;flex-direction:column}.ai-name-cell small{color:var(--muted)}
.ai-register-tabs{display:flex;gap:.35rem;overflow-x:auto;margin-bottom:1.25rem;padding:.35rem;border:1px solid var(--line);border-radius:15px;background:#fff}.ai-register-tabs button{min-width:max-content;display:flex;align-items:center;gap:.45rem;padding:.7rem .8rem;border:0;border-radius:11px;background:transparent;color:var(--muted);font-size:.74rem;font-weight:700}.ai-register-tabs button b{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:var(--surface);font-size:.65rem}.ai-register-tabs button.active{background:var(--teal-700);color:#fff}.ai-register-tabs button.active b{background:rgba(255,255,255,.18)}.ai-form-card{padding:1.4rem;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow-sm)}.ai-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.25rem}.ai-form-grid .span-two{grid-column:1/-1}.ai-check-list{display:flex;flex-direction:column;gap:.55rem;padding:1rem;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.ai-check-list label,.ai-relation-grid label{display:flex;align-items:flex-start;gap:.65rem;font-size:.84rem}.ai-check-list input,.ai-relation-grid input{margin-top:.18rem;accent-color:var(--teal-700)}.ai-risk-grid,.ai-relation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}.ai-risk-grid>div,.ai-relation-grid>div{padding:1.1rem;border:1px solid var(--line);border-radius:16px;background:#fff}.ai-risk-grid h3,.ai-relation-grid h3,.ai-subheading{margin:0 0 .85rem;font-size:.94rem}.ai-relation-grid>div{display:flex;flex-direction:column;gap:.55rem;max-height:420px;overflow:auto;background:var(--surface)}.ai-relation-grid label{padding:.55rem;border-radius:9px;background:#fff}.ai-approval{display:flex;align-items:center;gap:.8rem;padding:1rem;border:1px solid #b9ded3;border-radius:14px;background:#effaf6}.ai-approval>span{display:flex;flex-direction:column}.ai-approval small{color:var(--muted)}@media(max-width:760px){.ai-register-summary,.ai-form-grid,.ai-risk-grid,.ai-relation-grid{grid-template-columns:1fr}.ai-form-grid .span-two{grid-column:auto}}
/* Interne Schulungsmediathek */
.training-library,.internal-decisions,.internal-decision-form{margin-bottom:1.25rem;padding:1.25rem;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow-sm)}.training-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.8fr);gap:1.25rem}.training-player-card{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#071f31;color:#fff}.training-player-card video{display:block;width:100%;aspect-ratio:16/9;background:#02121d}.training-player-card>div{padding:1rem 1.15rem}.training-player-card h3{margin:.2rem 0;font-size:1.12rem}.training-player-card p{margin:0;color:#a9bfcd;font-size:.8rem}.training-video-list{display:flex;flex-direction:column;gap:.55rem}.training-video-list button{display:flex;align-items:center;gap:.75rem;width:100%;padding:.8rem;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--ink);text-align:left}.training-video-list button:hover,.training-video-list button.active{border-color:var(--teal-400);background:var(--teal-50)}.training-video-list button>span{width:32px;height:32px;display:grid;place-items:center;flex:0 0 32px;border-radius:9px;background:var(--teal-100);color:var(--teal-700);font-size:.7rem}.training-video-list button>div{display:flex;min-width:0;flex:1;flex-direction:column}.training-video-list strong{font-size:.79rem}.training-video-list small{color:var(--muted)}.training-video-list b{color:var(--teal-700)}.internal-decision-form{max-width:900px}.internal-decision-form h2{font-size:1.1rem;margin-bottom:1rem}@media(max-width:900px){.training-layout{grid-template-columns:1fr}}
