:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: #1f2933;
  background: #f1eff2;
  --sidebar: #2b2230;
  --sidebar-muted: #b5a8b8;
  --accent: #643182;
  --primary: var(--accent);
  --accent-2: #a451aa;
  --accent-teal: #2f6f68;
  --accent-gold: #b8862d;
  --accent-blue: #476b92;
  --accent-coral: #b45b55;
  --line: #ded8df;
  --muted: #69777d;
  --surface: #fff;
  --soft: #f5f7f8;
  --danger: #ad454d;
  --warning: #956316;
  --success: #3f7654;
}

.case-care-editor {
  grid-column: 1 / -1;
  width: 100%;
  border: 1px solid #d7ccda;
  border-left: 4px solid var(--primary, #643182);
  background: #fbf9fc;
}

.case-care-editor > header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e4dce6;
}

.case-care-editor > header > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: #643182;
  border-radius: 6px;
}

.case-care-editor > header svg { width: 18px; height: 18px; }
.case-care-editor > header div { display: grid; gap: 2px; }
.case-care-editor > header small { color: #637176; }

.case-care-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

@media (max-width: 760px) {
  .case-care-grid { grid-template-columns: 1fr; }
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 1024px; min-height: 100vh; background: #f1eff2; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--sidebar); color: #fff; border-right: 1px solid #211924; }
.brand { height: 72px; display: flex; align-items: center; gap: 11px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand img { width: 38px; height: 38px; }
.brand strong { display: block; font-size: 15px; font-weight: 650; line-height: 1.15; }
.brand span { display: block; margin-top: 1px; color: var(--sidebar-muted); font-size: 13px; }
nav { min-height: 0; padding: 14px 10px; flex: 1; overflow-y: auto; }
.nav-label { padding: 10px 10px 6px; color: #758d90; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.nav-button { width: 100%; height: 40px; display: flex; align-items: center; gap: 11px; padding: 0 11px; margin: 2px 0; border: 0; border-radius: 5px; background: transparent; color: #cbd6d7; text-align: left; }
.nav-button:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-button.active { background: #5d2e62; color: #fff; box-shadow: inset 3px 0 #d18bd5; }
.nav-button svg { width: 17px; }
.nav-button .badge { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: #713a76; color: #f3e8f4; font-size: 13px; text-align: center; }
.nav-button.nav-subitem { width: calc(100% - 14px); height: 36px; margin-left: 14px; padding-left: 16px; position: relative; color: #cfc1d1; font-size: 12px; }
.nav-button.nav-subitem::before { content: ""; width: 8px; height: 14px; position: absolute; left: 2px; top: 0; border-left: 1px solid #725777; border-bottom: 1px solid #725777; }
.nav-button.nav-subitem svg { width: 15px; }
.branch-switcher { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.branch-switcher > span { display: block; margin: 0 7px 6px; color: #7f9699; font-size: 12px; text-transform: uppercase; }
.branch-switcher button { width: 100%; height: 36px; display: flex; justify-content: space-between; align-items: center; padding: 0 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 4px; color: #d9e3e4; background: rgba(255,255,255,.03); }
.branch-switcher button { height: auto; min-height: 40px; gap: 8px; }
.branch-switcher button > span { min-width: 0; overflow-wrap: anywhere; text-align: left; padding-block: 6px; }
.branch-switcher svg { width: 14px; flex-shrink: 0; }
.user-card { min-height: 66px; display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 9px; padding: 11px 13px; background: #221a26; }
.user-card .avatar, .avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #e5b45e; color: #3d2c10; font-size: 13px; font-weight: 700; }
.user-avatar-button { padding: 0; border: 0; cursor: pointer; }
.user-avatar-button:hover,.user-avatar-button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.user-card strong, .user-card span { display: block; }
.user-card strong { font-size: 14px; }
.user-card div span { color: #8ea1a3; font-size: 12px; margin-top: 2px; }

.workspace { min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.workspace > .content { flex: 1; }
.workspace-copyright { padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }
@media print { .workspace-copyright { display: none; } }
.topbar { height: 58px; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); }
.global-search { width: min(620px, 55vw); height: 36px; position: relative; display: flex; align-items: center; }
.global-search svg { position: absolute; left: 11px; width: 16px; color: #77858a; }
.global-search input { width: 100%; height: 36px; padding: 0 62px 0 36px; border: 1px solid #ccd5d8; border-radius: 4px; outline: none; background: #fafbfb; }
.global-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(128,52,137,.13); background: #fff; }
kbd { position: absolute; right: 8px; padding: 2px 5px; border: 1px solid #d5dcde; border-radius: 3px; color: #7b888d; background: #fff; font-family: inherit; font-size: 12px; }
.global-search-results { position: absolute; top: 42px; left: 0; z-index: 40; width: min(680px, calc(100vw - 300px)); max-height: min(620px, calc(100vh - 82px)); overflow-y: auto; border: 1px solid #cfd7da; border-radius: 5px; background: #fff; box-shadow: 0 18px 42px rgba(32,26,35,.2); }
.search-result-head { height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; border-bottom: 1px solid var(--line); background: #f7f8f9; color: var(--muted); font-size: 12px; }
.search-result-head small { font-size: 11px; }
.global-search-results section { padding: 6px; border-bottom: 1px solid #ebe7ec; }
.global-search-results section:last-child { border-bottom: 0; }
.global-search-results h3 { margin: 3px 7px 5px; color: #7b6c7e; font-size: 11px; text-transform: uppercase; }
.search-result { width: 100%; min-height: 46px; display: grid; grid-template-columns: 28px minmax(0,1fr) 48px; align-items: center; gap: 7px; padding: 5px 8px; border: 0; border-radius: 3px; background: transparent; color: #2d3b40; text-align: left; }
.search-result:hover, .search-result.active { background: #f5edf6; }
.search-result > span:first-child { color: var(--accent); }
.search-result > span:first-child svg { width: 16px; }
.search-result strong, .search-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result strong { font-size: 14px; }
.search-result small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.search-result kbd { position: static; justify-self: end; }
.search-empty { padding: 26px 18px; text-align: center; }
.search-empty strong, .search-empty span { display: block; }
.search-empty span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.top-actions { position: relative; display: flex; align-items: center; gap: 14px; }
.connection { display: flex; align-items: center; gap: 6px; color: #607076; font-size: 13px; }
.connection i { width: 7px; height: 7px; border-radius: 50%; background: #39a26b; }
.connection.offline i { background: var(--danger); }
.icon-button { position: relative; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #59686d; }
.icon-button:hover { background: #edf1f2; }
.icon-button.danger { color:var(--danger); }
.user-status-actions,.user-account-actions { display:flex; align-items:center; gap:4px; }
.user-status-actions { min-width:104px; }
.user-account-actions .icon-button { width:28px; height:28px; border:1px solid #d9dfe1; background:#fff; }
.user-account-actions .icon-button:hover { border-color:#c5cfd2; background:#f2f5f5; }
.user-account-actions .icon-button.danger:hover { border-color:#e1b8b4; background:#fdf1f0; }
.user-table { min-width:920px; }
.user-table td { overflow-wrap:anywhere; }

@media (max-width:1360px) {
  .user-table { min-width:820px; table-layout:fixed; }
  .user-table th,.user-table td { padding-left:8px; padding-right:8px; }
  .user-table th:nth-child(1) { width:14%; }
  .user-table th:nth-child(2) { width:25%; }
  .user-table th:nth-child(3) { width:15%; }
  .user-table th:nth-child(4) { width:16%; }
  .user-table th:nth-child(5) { width:14%; }
  .user-table th:nth-child(6),.user-table td:nth-child(6) { display:none; }
  .user-table th:nth-child(7) { width:16%; }
}
.icon-button b { position: absolute; top: -2px; right: -2px; min-width: 15px; height: 15px; padding: 0 4px; display: grid; place-items: center; border-radius: 8px; background: #b42318; color: #fff; font-size: 11px; }
.notification-panel { position: absolute; top: 43px; right: 0; z-index: 40; width: min(440px, calc(100vw - 24px)); max-height: min(680px, calc(100vh - 82px)); overflow: hidden; border: 1px solid #cfd7da; border-radius: 5px; background: #fff; box-shadow: 0 18px 42px rgba(32,26,35,.2); }
.notification-head { min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); }
.notification-head strong, .notification-head span { display: block; }
.notification-head strong { font-size: 15px; }
.notification-head span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.notification-tabs { height: 43px; display: grid; grid-template-columns: repeat(3,1fr); padding: 0 8px; border-bottom: 1px solid var(--line); background: #f8faf9; }
.notification-tabs button { min-width: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #68767a; font-size: 12px; }
.notification-tabs button.active { border-bottom-color: var(--primary); color: var(--primary); font-weight: 700; }
.notification-tabs b { min-width: 17px; height: 17px; display: inline-grid; place-items: center; margin-left: 3px; border-radius: 9px; background: #e5e9ea; color: #5d696d; font-size: 11px; }
.notification-tabs button.active b { background: #eaddec; color: var(--primary); }
.notification-list { max-height: calc(min(680px, 100vh - 82px) - 97px); overflow-y: auto; }
.notification-entry { border-bottom: 1px solid var(--line); background: #fff; }
.notification-entry:last-child { border-bottom: 0; }
.notification-entry .action-item { border-bottom: 0; }
.notification-entry-foot { min-height: 35px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 9px 7px 54px; }
.notification-entry-foot > div { display: flex; align-items: center; gap: 3px; }
.notification-entry-foot .icon-button { width: 29px; height: 29px; border: 1px solid #d8dfe1; }
.notification-entry-foot .icon-button.success { border-color: #b9d7c5; color: #33764f; }
.notification-state { min-width: 0; margin-right: auto; overflow: hidden; color: #68767a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.notification-snooze-presets { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 14px; }
.notification-snooze .operation-note { margin: 14px -20px -20px; }

.content { padding: 22px 24px 36px; }
.page-head { min-height: 48px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.page-head h1 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 650; color: #1b282d; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.head-actions { display: flex; gap: 8px; }
.button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid #c8d2d5; border-radius: 4px; background: #fff; color: #34444a; font-weight: 600; }
.button:hover { background: #f5f7f8; }
.button.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.button.primary:hover { background: #682a70; }
.button.danger { border-color: #e3b8b4; color: var(--danger); }
.button svg { width: 16px; height: 16px; }
.button.small { min-height: 29px; padding: 0 9px; font-size: 14px; }

.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 10px; margin-bottom: 18px; }
.metric { min-height: 93px; padding: 14px 15px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--metric-color, var(--accent)); border-radius: 5px; }
.metric span { display: block; color: var(--muted); font-size: 13px; }
.metric strong { display: block; margin: 7px 0 3px; font-size: 25px; line-height: 1; font-weight: 650; color: #233136; }
.metric small { color: #819095; font-size: 12px; }
.quality-dashboard-alert { width: 100%; min-height: 58px; display: grid; grid-template-columns: 34px minmax(0,1fr) 18px; align-items: center; gap: 10px; margin: -4px 0 18px; padding: 9px 14px; border: 1px solid #e3b8b4; border-left: 4px solid var(--danger); border-radius: 4px; background: #fff8f7; color: #4b3c3a; text-align: left; }
.quality-dashboard-alert > span:first-child { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #f4dedc; color: #a64640; }
.quality-dashboard-alert strong, .quality-dashboard-alert small { display: block; }
.quality-dashboard-alert strong { font-size: 13px; }
.quality-dashboard-alert small { margin-top: 3px; color: #7a625f; font-size: 11px; }
.quality-dashboard-alert svg { width: 16px; height: 16px; }
.quality-overview { display: grid; grid-template-columns: 1.35fr repeat(4,1fr); margin-bottom: 14px; border: 1px solid var(--line); background: #fff; }
.quality-overview > div { min-height: 112px; padding: 15px; border-right: 1px solid var(--line); }
.quality-overview > div:last-child { border-right: 0; }
.quality-overview span, .quality-overview strong, .quality-overview small { display: block; }
.quality-overview span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.quality-overview strong { margin-top: 9px; color: #27363b; font-size: 25px; line-height: 1; }
.quality-overview strong small { display: inline; margin-left: 2px; font-size: 14px; }
.quality-overview > div > small { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.quality-overview .critical strong { color: #a64640; }
.quality-overview .warning strong { color: #9b6c1d; }
.quality-score > div { height: 6px; margin-top: 10px; overflow: hidden; border-radius: 3px; background: #e6ebec; }
.quality-score > div i { height: 100%; display: block; background: #3f7d57; }
.quality-score p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.quality-toolbar { min-height: 58px; display: grid; grid-template-columns: minmax(220px,1fr) 170px 180px auto; align-items: center; gap: 8px; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.quality-toolbar > span { color: var(--muted); font-size: 12px; text-align: right; }
.work-queue-dashboard-alert { width: 100%; min-height: 58px; display: grid; grid-template-columns: 34px minmax(0,1fr) 18px; align-items: center; gap: 10px; margin: -4px 0 10px; padding: 9px 14px; border: 1px solid #e2cda4; border-left: 4px solid #b8862d; border-radius: 4px; background: #fffaf1; color: #4b4335; text-align: left; }
.work-queue-dashboard-alert > span:first-child { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #f4ead3; color: #95691c; }
.work-queue-dashboard-alert strong, .work-queue-dashboard-alert small { display: block; }
.work-queue-dashboard-alert strong { font-size: 13px; }
.work-queue-dashboard-alert small { margin-top: 3px; color: #76684f; font-size: 11px; }
.work-queue-dashboard-alert svg { width: 16px; height: 16px; }
.work-queue-overview { display: grid; grid-template-columns: repeat(5,1fr); margin-bottom: 14px; border: 1px solid var(--line); background: #fff; }
.work-queue-overview > div { min-height: 92px; padding: 13px 15px; border-right: 1px solid var(--line); }
.work-queue-overview > div:last-child { border-right: 0; }
.work-queue-overview span, .work-queue-overview strong, .work-queue-overview small { display: block; }
.work-queue-overview span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.work-queue-overview strong { margin-top: 7px; color: #344349; font-size: 24px; line-height: 1; }
.work-queue-overview small { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.work-queue-overview .critical strong { color: #a64640; }
.work-queue-overview .today strong { color: #9b6c1d; }
.work-queue-panel { overflow: hidden; }
.work-queue-toolbar { min-height: 62px; display: grid; grid-template-columns: auto minmax(220px,1fr) 155px 165px auto; align-items: center; gap: 8px; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.work-queue-toolbar > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.work-queue-toolbar .filter-select { width: 100%; }
.work-queue-toolbar .search-field { display:flex; align-items:center; gap:9px; width:100%; min-width:0; height:36px; padding:0 11px; border:1px solid var(--line); border-radius:5px; background:var(--theme-input,var(--surface,#fff)); color:var(--muted); transition:border-color .15s,box-shadow .15s; }
.work-queue-toolbar .search-field:focus-within { border-color:var(--theme-accent,var(--primary)); box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 16%,transparent); }
.work-queue-toolbar .search-field > svg { flex:0 0 16px; width:16px; height:16px; color:var(--theme-accent,var(--primary)); }
.work-queue-toolbar .search-field > input { flex:1; width:100%; min-width:0; height:100%; margin:0; padding:0; border:0; border-radius:0; outline:0; box-shadow:none; background:transparent; color:var(--theme-text,inherit); font:inherit; font-size:13px; }
.work-queue-toolbar .search-field > input::placeholder { color:var(--muted); opacity:1; }
#workqueue-search:focus-visible { outline:0; box-shadow:none; }
.work-queue-content { background: #f7f9f9; }
.work-queue-group { border-bottom: 1px solid var(--line); }
.work-queue-group:last-child { border-bottom: 0; }
.work-queue-group-head { min-height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 7px 13px; background: #f0f3f3; }
.work-queue-group-head strong { color: #46565b; font-size: 12px; text-transform: uppercase; }
.work-queue-group-head span { color: var(--muted); font-size: 11px; }
.work-queue-list { background: #fff; }
.work-queue-row { width: 100%; min-height: 76px; display: grid; grid-template-columns: 36px minmax(250px,1.5fr) minmax(130px,.7fr) minmax(155px,.75fr) 22px; align-items: center; gap: 11px; padding: 10px 13px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: inherit; text-align: left; }
.work-queue-row:last-child { border-bottom: 0; }
.work-queue-row:hover { background: #fbf7fb; }
.work-queue-icon { width: 32px; height: 32px; display: grid; place-items: center; background: #f1e8f2; color: var(--primary); }
.work-queue-icon svg, .work-queue-open svg { width: 15px; height: 15px; }
.work-queue-main, .work-queue-owner, .work-queue-due { min-width: 0; }
.work-queue-main > span { display: flex; align-items: center; gap: 7px; }
.work-queue-main strong, .work-queue-main small, .work-queue-main em, .work-queue-owner small, .work-queue-owner strong, .work-queue-due small, .work-queue-due strong, .work-queue-due em { display: block; }
.work-queue-main strong { overflow: hidden; color: #2f3e43; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.work-queue-main small { margin-top: 4px; overflow: hidden; color: #5e6c71; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.work-queue-main em { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 11px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.work-queue-priority { flex: 0 0 auto; padding: 3px 5px; border-radius: 3px; background: #eef1f2; color: #637176; font-size: 11px; font-style: normal; font-weight: 700; }
.work-queue-priority.hoch, .work-queue-priority.kritisch { background: #f5e0de; color: #993f39; }
.work-queue-owner small, .work-queue-due small { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.work-queue-owner strong, .work-queue-due strong { margin-top: 5px; overflow: hidden; color: #435258; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.work-queue-due em { margin-top: 4px; color: var(--muted); font-size: 11px; font-style: normal; }
.work-queue-due.overdue strong { color: #a64640; }
.work-queue-due.today strong { color: #9b6c1d; }
.work-queue-open { color: #8a9599; }
.quality-table tbody tr { cursor: pointer; }
.quality-table tbody tr:hover { background: #faf7fa; }
.quality-table td:nth-child(3) strong { font-size: 13px; }
.quality-table td:nth-child(4) { max-width: 520px; color: #5f6d72; font-size: 12px; }
.quality-table td:last-child { width: 46px; }
.quality-severity { min-width: 66px; display: inline-flex; justify-content: center; padding: 4px 7px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.quality-severity.critical { background: #f8e7e5; color: #a64640; }
.quality-severity.warning { background: #fff0d8; color: #85520a; }
.quality-severity.info { background: #e4eef4; color: #476b92; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 14px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
.panel + .panel { margin-top: 14px; }
.panel-head { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 15px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 16px; font-weight: 650; }
.panel-head span { color: var(--muted); font-size: 13px; }
.panel-body { padding: 14px 15px; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-actions .quick-action:last-child:nth-child(odd) { grid-column: 1 / -1; }
.quick-action { min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #34444a; text-align: left; }
.quick-action:hover { border-color: #c49ac8; background: #faf6fa; }
.quick-action svg { color: var(--accent); }
.quick-action strong { display: block; font-size: 14px; }
.quick-action span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }

.table-toolbar { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 5px 5px 0 0; }
.filter-group { display: flex; align-items: center; gap: 7px; }
.case-list-region { min-width:0; border:1px solid var(--line); background:var(--surface,#fff); }
.case-list-region .table-toolbar { flex-wrap:wrap; padding:12px 16px; border:0; border-bottom:1px solid var(--line); border-radius:0; }
.case-list-region .filter-group { flex-wrap:wrap; min-width:0; }
.case-list-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:12px; margin-left:auto; }
.case-list-actions .muted { font-size:12px; }
.case-list-region .record-sort-controls { padding:8px 16px; }
.case-list-region .data-table { border:0; border-radius:0; }
@media(max-width:600px) {
  .case-list-region .table-toolbar { padding:12px; }
  .case-list-region .filter-group,.case-list-region .filter-wrap,.case-list-region .filter-input { width:100%; }
  .case-list-actions { width:100%; justify-content:space-between; margin:0; }
  .case-list-region .record-sort-controls { padding-inline:12px; }
}
.filter-input, .filter-select { height: 32px; border: 1px solid #ccd5d8; border-radius: 4px; padding: 0 9px; background: #fff; color: #35464b; outline: none; }
.filter-input { width: 250px; padding-left: 31px; }
.filter-wrap { position: relative; }
.filter-wrap svg { position: absolute; top: 8px; left: 9px; width: 15px; color: #7a898e; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.data-table th { height: 39px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #f5f7f8; color: #59686d; font-size: 13px; font-weight: 700; text-align: left; text-transform: uppercase; }
.data-table td { height: 52px; padding: 7px 12px; border-bottom: 1px solid #e7ecee; vertical-align: middle; }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover { background: #f7fafa; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.record-list-table { --record-accent:#829397; --record-tint:#f4f7f7; overflow:hidden; border-color:#d3dcdf; border-radius:5px; }
.record-list-table th { height:43px; border-top:3px solid #704078; background:#eef2f3; color:#46585e; }
.record-list-table th:nth-child(4) { border-top-color:#aa7a2d; }
.record-list-table th:nth-child(6) { border-top-color:#42716a; }
.record-list-table tbody tr { --record-accent:#829397; --record-tint:#f3f6f6; background:#fff; transition:background .14s ease,box-shadow .14s ease; }
.record-list-table tbody tr:nth-child(even) { background:#fafcfc; }
.record-list-table tbody tr:hover { background:var(--record-tint); box-shadow:inset 4px 0 var(--record-accent); }
.record-list-table tbody td:first-child { position:relative; padding-left:17px; }
.record-list-table tbody td:first-child::before { content:""; width:4px; position:absolute; top:7px; bottom:7px; left:0; border-radius:0 3px 3px 0; background:var(--record-accent); }
.record-list-table .record-number { color:#68406d; font-weight:700; }
.record-list-table .record-owner { color:#41535a; font-weight:600; }
.record-list-table .branch-chip { display:inline-flex; align-items:center; min-height:24px; padding:3px 8px; border:1px solid #cfdfda; border-radius:4px; background:#edf5f2; color:#34635b; font-size:12px; font-weight:700; }
.record-list-table tr[data-record-status="Aufnahme"] { --record-accent:#94529a; --record-tint:#faf4fb; }
.record-list-table tr[data-record-status="Aufnahme"] .status { background:#f1e2f3; color:#713477; }
.record-list-table tr[data-record-status="Organisation"],.record-list-table tr[data-record-status="Beratung"] { --record-accent:#4c7896; --record-tint:#f1f7fa; }
.record-list-table tr[data-record-status="Organisation"] .status,.record-list-table tr[data-record-status="Beratung"] .status { background:#e3eff5; color:#376781; }
.record-list-table tr[data-record-status="Freigabe"],.record-list-table tr[data-record-status="Vertrag in Prüfung"] { --record-accent:#b48737; --record-tint:#fbf7ef; }
.record-list-table tr[data-record-status="Freigabe"] .status,.record-list-table tr[data-record-status="Vertrag in Prüfung"] .status { background:#f7ecd8; color:#805a19; }
.record-list-table tr[data-record-status="Beisetzung"] { --record-accent:#6c5b8d; --record-tint:#f6f3fa; }
.record-list-table tr[data-record-status="Beisetzung"] .status { background:#ebe5f3; color:#594775; }
.record-list-table tr[data-record-status="Abgeschlossen"] { --record-accent:#4d8064; --record-tint:#f1f8f4; }
.record-list-table tr[data-record-status="Abgeschlossen"] .status { background:#e0f0e6; color:#2f6b49; }
.table-scroll { overflow-x: auto; }
.document-metrics { grid-template-columns: repeat(5, minmax(140px, 1fr)); }
.document-table { min-width: 960px; }
.document-table:not(.trash-table) th:nth-child(5), .document-table:not(.trash-table) td:nth-child(5), .document-table:not(.trash-table) th:nth-child(7), .document-table:not(.trash-table) td:nth-child(7) { display: none; }
.document-table.trash-table { min-width: 780px; }
.document-select-cell { width: 42px; padding-right: 4px !important; text-align: center !important; }
.document-select-cell input, .document-bulk-toolbar input, .document-gallery-select input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.document-select-cell input:disabled, .document-gallery-select input:disabled { cursor: not-allowed; opacity: .5; }
.document-table tbody tr.selected { background: #faf4fb; box-shadow: inset 3px 0 var(--accent); }
.document-bulk-toolbar { min-height: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 7px 12px; border: 1px solid var(--line); border-top: 0; background: #fafbfb; }
.document-bulk-toolbar label { display: inline-flex; align-items: center; gap: 8px; color: #425258; font-weight: 600; cursor: pointer; }
.document-bulk-toolbar strong { min-width: 92px; color: var(--accent); }
.document-bulk-spacer { flex: 1; }
.document-bulk-preview { max-height: 220px; margin: 0 0 14px; padding: 0; overflow-y: auto; border: 1px solid var(--line); list-style: none; }
.document-bulk-preview li { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 46px; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.document-bulk-preview li:last-child { border-bottom: 0; }
.document-bulk-preview span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.analysis-cell small, .approval-cell small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.deleted-cell strong, .deleted-cell small { display: block; }
.deleted-cell strong { font-size: 12px; }
.deleted-cell small { max-width: 300px; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.document-actions { display: flex; gap: 6px; }
.document-scope-tabs { margin: 1px 0 0; background: #fff; }
.document-scope-tabs .tab { display: inline-flex; align-items: center; gap: 6px; }
.document-scope-tabs .tab svg { width: 13px; height: 13px; }
.document-scope-tabs .tab span { min-width: 18px; display: inline-grid; place-items: center; padding: 1px 5px; border-radius: 9px; background: #edf0f2; color: #66757a; font-size: 11px; }
.document-scope-tabs + .table-toolbar { border-top: 0; border-radius: 0; }
.segmented-control { display: inline-flex; min-height: 32px; padding: 2px; border: 1px solid #ccd5d8; border-radius: 4px; background: #f5f7f8; }
.segmented-control button { min-width: 66px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
.segmented-control button.active { background: #fff; color: var(--accent); box-shadow: 0 1px 3px rgba(25,38,42,.12); }
.institution-toolbar { display: grid; grid-template-columns: minmax(240px,1fr) auto; gap: 9px; }
.institution-toolbar .filter-wrap { width: 100%; }
.institution-toolbar > .muted { white-space: nowrap; text-align: right; }
.document-gallery { display: grid; grid-template-columns: repeat(4, minmax(190px, 1fr)); gap: 12px; padding: 12px; border: 1px solid var(--line); background: #f5f7f8; }
.document-gallery > .empty { grid-column: 1 / -1; background: #fff; }
.document-gallery-item { position: relative; min-width: 0; border-radius: 5px; }
.document-gallery-item.selected { box-shadow: 0 0 0 3px rgba(128,52,137,.22); }
.document-gallery-select { position: absolute; z-index: 2; top: 9px; left: 9px; width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #cbd4d7; border-radius: 4px; background: rgba(255,255,255,.94); box-shadow: 0 1px 4px rgba(29,39,43,.14); cursor: pointer; }
.document-gallery-select.blocked { cursor: not-allowed; }
.document-gallery-select span { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.document-gallery-select span svg { width: 14px; height: 14px; color: #8d5651; }
.document-gallery-select input:disabled { visibility: hidden; }
.document-gallery-card { min-width: 0; display: block; padding: 0; overflow: hidden; border: 1px solid #d7dfe1; border-radius: 5px; background: #fff; color: #2d3d42; text-align: left; }
.document-gallery-card:hover { border-color: #b78abb; box-shadow: 0 4px 12px rgba(38,48,52,.09); }
.document-gallery-card.deleted { opacity: .9; }
.document-gallery-card.deleted:hover { opacity: 1; }
.gallery-preview { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: #e9edef; }
.trash-ribbon { position: absolute; top: 8px; right: 8px; padding: 4px 7px; border-radius: 3px; background: rgba(56,42,58,.88); color: #fff; font-size: 11px; font-weight: 700; }
.hold-ribbon { position: absolute; top: 8px; left: 8px; padding: 4px 7px; border-radius: 3px; background: #9a3e39; color: #fff; font-size: 11px; font-weight: 700; }
.gallery-preview { position: relative; }
.gallery-preview img { width: 100%; height: 100%; display: block; object-fit: contain; }
.gallery-card-body { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px 6px; }
.gallery-card-body > span:first-child { min-width: 0; }
.gallery-card-body strong, .gallery-card-body small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-card-body strong { font-size: 12px; }
.gallery-card-body small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.gallery-card-meta { display: block; padding: 0 10px 9px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.document-protection-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.media-placeholder { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 7px; padding: 20px; color: #768489; text-align: center; }
.media-placeholder svg { width: 30px; height: 30px; color: var(--accent); }
.media-placeholder strong, .media-placeholder span { display: block; }
.media-placeholder strong { font-size: 13px; }
.media-placeholder span { max-width: 180px; font-size: 11px; line-height: 1.4; }
.person-cell strong, .person-cell span { display: block; }
.person-cell strong { font-size: 15px; }
.person-cell span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.contact-cemetery-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.muted { color: var(--muted); }
.status { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: 11px; background: #f2e8f3; color: #6a2b72; font-size: 12px; font-weight: 700; }
.status.warning { background: #fff1db; color: #8c520b; }
.status.success { background: #e5f3ea; color: #21683f; }
.status.danger { background: #fbe9e7; color: #9a2c22; }
.status.neutral { background: #edf0f2; color: #5d696e; }
.status.purple { background: #f2e8f3; color: #6a2b72; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-list li { position: relative; min-height: 58px; padding: 9px 8px 9px 34px; border-bottom: 1px solid #e8edef; }
.activity-list li:last-child { border-bottom: 0; }
.activity-list i { position: absolute; left: 8px; top: 15px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px #d5acd8; }
.activity-list strong { display: block; font-size: 14px; }
.activity-list span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.focus-list { padding: 4px 0; }
.action-item { width: 100%; min-height: 58px; display: grid; grid-template-columns: 34px minmax(0,1fr) 18px; align-items: center; gap: 9px; padding: 7px 11px; border: 0; border-bottom: 1px solid #e8edef; background: #fff; color: #324147; text-align: left; }
.action-item:last-child { border-bottom: 0; }
.action-item:hover { background: #f8f6f8; }
.action-item > span:nth-child(2) { min-width: 0; }
.action-item strong, .action-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-item strong { font-size: 13px; }
.action-item small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.action-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 4px; background: #edf2f4; color: var(--accent-blue); }
.action-icon svg { width: 15px; }
.action-item.warning .action-icon { background: #fff1db; color: #956316; }
.action-item.danger .action-icon { background: #fbe9e7; color: #ad454d; }
.action-chevron { color: #8b969a; }
.action-chevron svg { width: 13px; }
.empty.compact { padding: 24px 12px; font-size: 13px; }

.kanban-wrap { width: 100%; overflow-x: auto; padding-bottom: 10px; }
.kanban { min-width: max(1180px, calc(var(--kanban-column-count) * 230px)); display: grid; grid-template-columns: repeat(var(--kanban-column-count), minmax(220px, 1fr)); gap: 10px; align-items: start; }
.kanban-column { position: relative; min-height: 500px; background: #e9edef; border: 1px solid #d6dee1; border-top: 3px solid var(--column-color); border-radius: 5px; }
.kanban-column.drag-over { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.kanban-column.column-dragging { opacity: .5; }
.kanban-column.column-drop-before::before, .kanban-column.column-drop-after::after { content: ''; position: absolute; z-index: 4; top: -3px; bottom: 0; width: 4px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.kanban-column.column-drop-before::before { left: -7px; }
.kanban-column.column-drop-after::after { right: -7px; }
.kanban-head { height: 45px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 5px; padding: 0 10px 0 5px; }
.kanban-head strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.kanban-head span { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 10px; background: rgba(0,0,0,.08); font-size: 12px; }
.kanban-column-handle { width: 28px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #778589; cursor: grab; }
.kanban-column-handle:hover { background: rgba(128, 52, 137, .09); color: var(--accent); }
.kanban-column-handle:active { cursor: grabbing; }
.kanban-column-handle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.kanban-column-handle svg { width: 16px; height: 16px; }
.kanban-cards { min-height: 440px; padding: 0 7px 10px; }
.kanban-card { margin-bottom: 7px; padding: 10px; border: 1px solid #d5dcde; border-radius: 4px; background: #fff; box-shadow: 0 1px 1px rgba(20,35,40,.04); cursor: grab; }
.kanban-card:active { cursor: grabbing; }
.kanban-card.dragging { opacity: .45; }
.kanban-card .case-ref { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.kanban-card .case-ref > span:first-child { min-width: 0; line-height: 1.4; overflow-wrap: anywhere; }
.kanban-card .case-ref > span:last-child { flex: 0 0 auto; }
.kanban-card h3 { margin: 8px 0 9px; font-size: 14px; line-height: 1.4; }
.kanban-meta { display: flex; align-items: center; justify-content: space-between; color: #728086; font-size: 11px; }
.kanban-case-stage { border-left: 4px solid var(--column-color); background: #fff; }
.kanban-case-stage h3 { margin-bottom: 7px; font-size: 15px; }
.kanban-automation-state { display: inline-flex; align-items: center; gap: 4px; padding: 2px 5px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.kanban-automation-state svg { width: 11px; height: 11px; }
.kanban-automation-state.automatic { color: #6d2876; background: #f2e8f4; }
.kanban-automation-state.manual { color: #5e686c; background: #e9edef; }
.kanban-stage-reason { display: grid; grid-template-columns: 15px minmax(0, 1fr); gap: 5px; margin: 0 0 9px; padding: 7px; border: 1px solid #eadced; border-radius: 4px; color: #5f4a63; background: #faf6fb; font-size: 11px; line-height: 1.4; }
.kanban-stage-reason svg { width: 14px; height: 14px; color: var(--accent); }
.kanban-case-actions { display: inline-flex; align-items: center; gap: 5px; }
.kanban-case-actions > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); font-weight: 700; }
.kanban-case-actions .icon-button { width: 26px; height: 26px; }
.priority-high { color: var(--danger); font-weight: 700; }

.mail-layout { height: calc(100vh - 145px); min-height: 560px; display: grid; grid-template-columns: 180px 330px minmax(360px, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.mail-folders { padding: 12px 9px; overflow-y: auto; border-right: 1px solid var(--line); background: #f7f9fa; }
.mail-folders .button { width: 100%; margin-bottom: 12px; }
.mail-folder-heading { min-height: 25px; display: flex; align-items: center; justify-content: space-between; padding: 5px 8px 3px; color: #7a878b; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.mail-folder-heading.local { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); }
.mail-folder-heading .icon-button { width: 24px; height: 24px; color: var(--accent); }
.mail-folder-heading .icon-button svg { width: 14px; height: 14px; }
.mail-folder-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.mail-folder-row .mail-folder-delete { width: 26px; height: 30px; opacity: 0; color: #8d5b61; }
.mail-folder-row:hover .mail-folder-delete, .mail-folder-delete:focus-visible { opacity: 1; }
.mail-folder-empty { padding: 6px 9px 10px; color: var(--muted); font-size: 11px; }
.mail-folder-note { margin-top: 14px; border: 1px solid var(--line); }
.mail-sync-state { margin-top: 14px; padding: 10px 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.4; }
.mail-sync-state i { width: 7px; height: 7px; display: inline-block; margin-right: 5px; border-radius: 50%; background: #b8862d; }
.mail-sync-state i.online { background: #3f7d57; }
.mail-account-select { min-width: 250px; }
.folder-button { width: 100%; height: 34px; display: flex; justify-content: space-between; align-items: center; padding: 0 9px; border: 0; border-radius: 3px; background: transparent; color: #4f5e63; text-align: left; }
.folder-button > span { min-width: 0; display: flex; align-items: center; gap: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-button > span svg { width: 13px; height: 13px; flex: 0 0 auto; }
.folder-button b { min-width: 19px; height: 19px; display: grid; place-items: center; margin-left: 5px; border-radius: 10px; background: #e6eaeb; font-size: 11px; }
.folder-button.active { background: #f1e6f2; color: var(--accent); font-weight: 700; }
.folder-button.active b { background: #dfc9e1; }
.mail-list { overflow-y: auto; border-right: 1px solid var(--line); }
.mail-item { width: 100%; min-height: 91px; padding: 11px 12px; border: 0; border-bottom: 1px solid #e5eaec; background: #fff; color: inherit; text-align: left; }
.mail-item:hover, .mail-item.active { background: #f3f8f8; }
.mail-item.unread { border-left: 3px solid var(--accent-2); }
.mail-item.mail-draft-item { border-left: 3px solid #b8862d; }
.mail-item.mail-draft-item strong > span:first-child { color: #8b6822; }
.mail-item strong { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.mail-item h3 { margin: 7px 0 4px; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.mail-item h3 { display: flex; align-items: center; gap: 6px; }
.mail-item-attachment { display: inline-flex; flex: 0 0 auto; color: var(--primary); }
.mail-item-attachment svg { width: 12px; height: 12px; }
.mail-item p { margin: 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mail-reading { padding: 22px 24px; overflow-y: auto; }
.mail-actions { float: right; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; margin: 0 0 12px 18px; }
.mail-actions .button { display: inline-flex; align-items: center; gap: 5px; }
.mail-actions svg { width: 13px; height: 13px; }
.mail-reading h2 { clear: both; margin: 0 0 10px; font-size: 18px; overflow-wrap: anywhere; }
.mail-reading .mail-address { padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.mail-reference-line { min-height: 31px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #edf0f1; }
.mail-reference-line strong { color: #3d4a4f; }
.mail-reference-line .button { flex: 0 0 auto; }
.mail-reading .mail-body { max-width: 700px; margin-top: 20px; line-height: 1.65; white-space: pre-wrap; }
.mail-delete-summary { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 8px 14px; padding: 12px; border: 1px solid var(--line); background: #fafbfb; }
.mail-delete-summary span { color: var(--muted); }
.mail-delete-summary strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-draft-label { margin: 2px 0 8px; color: #8b6822; font-size: 11px; font-weight: 700; text-transform: uppercase; }
#mail-draft-status { color: var(--muted); }
.mail-attachments { max-width: 760px; margin-top: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mail-attachments-head { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.mail-attachments-head div { display: flex; align-items: center; gap: 7px; color: #38474c; font-size: 13px; }
.mail-attachments-head svg { width: 14px; height: 14px; color: var(--primary); }
.mail-attachment-row { min-height: 54px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #edf0f1; }
.mail-attachment-row.blocked { color: var(--muted); }
.mail-attachment-icon { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #dac7df; border-radius: 5px; color: var(--primary); background: #faf6fb; }
.mail-attachment-icon svg { width: 15px; height: 15px; }
.mail-attachment-row > div:nth-child(2), .mail-archive-summary > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mail-attachment-row > div:nth-child(2) strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.mail-attachment-row > div:nth-child(2) span, .mail-archive-summary span { color: var(--muted); font-size: 11px; }
.mail-attachment-actions { display: flex; align-items: center; gap: 6px; }
.mail-attachment-actions .icon-button { width: 30px; height: 30px; }
.mail-attachment-actions .icon-button svg { width: 14px; height: 14px; }
@media (max-width: 700px) {
  .mail-attachment-row { grid-template-columns: 34px minmax(0, 1fr); }
  .mail-attachment-actions { grid-column: 2; flex-wrap: wrap; }
}
.mail-attachment-pending { padding: 0 0 12px; color: var(--muted); font-size: 12px; }
.mail-archive-summary { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: #fafbfb; }
.mail-archive-summary .mail-attachment-icon { width: 36px; height: 36px; }
.mail-archive-summary strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
#mail-form > .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
#mail-form > .form-grid > * { min-width:0; }
.mail-compose-attachments { grid-column:1 / -1; min-width:0; margin-top:4px; padding-top:16px; border-top:1px solid var(--line); }
.mail-compose-attachments-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.mail-compose-attachments-head > div { display: flex; flex-direction: column; gap: 2px; }
.mail-compose-attachments-head strong { font-size: 14px; }
.mail-compose-attachments-head span { color: var(--muted); font-size: 11px; }
#mail-compose-attachment-summary { flex: 0 0 auto; padding: 5px 8px; border-radius: 4px; background: #f3edf5; color: var(--primary); font-weight: 700; }
#mail-compose-attachment-summary.error { background: #fbe9e7; color: #a33a2d; }
.mail-compose-attachment-grid { display:grid; grid-template-columns:minmax(180px,1fr) minmax(0,2fr); gap:0 24px; }
.mail-compose-source { min-width: 0; padding: 0 0 10px; }
.mail-compose-source:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.mail-compose-source > strong { display: block; margin-bottom: 8px; color: #3d4a4f; font-size: 12px; text-transform: uppercase; }
.mail-compose-source > p { margin: 8px 0; color: var(--muted); font-size: 12px; }
.mail-compose-source.disabled { opacity: .48; }
.mail-compose-upload { min-height: 36px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px dashed #bda3c2; border-radius: 5px; background: #faf6fb; color: var(--primary); cursor: pointer; font-size: 12px; font-weight: 700; }
.mail-compose-upload:hover { border-color: var(--primary); background: #f5ecf7; }
.mail-compose-upload svg { width: 14px; height: 14px; }
.mail-compose-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.document-upload-picker { min-height: 112px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px; border: 2px dashed #bda3c2; border-radius: 6px; background: #faf7fa; color: var(--primary); text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.document-upload-picker:hover, .document-upload-picker.dragging { border-color: var(--accent); background: #f5ecf7; }
.document-upload-picker.has-file { border-style: solid; border-color: #9f72a6; }
.document-upload-picker > svg { width: 28px; height: 28px; flex: 0 0 auto; }
.document-upload-picker span, .document-upload-picker strong, .document-upload-picker small { display: block; }
.document-upload-picker strong { color: #422848; font-size: 15px; }
.document-upload-picker small { margin-top: 5px; color: #64747a; font-size: 13px; line-height: 1.4; }
.document-upload-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.document-upload-selection { min-height: 54px; display: grid; grid-template-columns: 36px minmax(0,1fr) 34px; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 10px; border: 1px solid #d7c8da; border-radius: 5px; background: #fff; }
.document-upload-selection > span:nth-child(2), .document-upload-selection strong, .document-upload-selection small { display: block; min-width: 0; }
.document-upload-selection strong { overflow: hidden; color: #28363b; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.document-upload-selection small { margin-top: 3px; color: #68777c; font-size: 12px; }
.pdf-upload-template { min-height: 78px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid #d8c4dc; border-left: 4px solid var(--primary); border-radius: 5px; background: #faf6fb; }
.pdf-upload-template.full { grid-column: 1 / -1; }
.pdf-upload-template-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 4px; background: #eee2f0; color: var(--primary); }
.pdf-upload-template-icon svg { width: 20px; height: 20px; }
.pdf-upload-template > span,.pdf-upload-template strong,.pdf-upload-template small { display: block; min-width: 0; }
.pdf-upload-template strong { color: #402d44; font-size: 14px; }
.pdf-upload-template small { margin-top: 4px; color: #687278; font-size: 12px; line-height: 1.45; }
.pdf-upload-template-switch { display: flex; align-items: center; gap: 7px; color: #503b54; font-size: 12px; font-weight: 700; }
.document-upload-file-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 4px; background: #f0e4f1; color: var(--accent); }
.document-upload-file-icon svg { width: 17px; height: 17px; }
.document-upload-context { min-height: 72px; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 12px; padding: 11px 13px; border-left: 3px solid var(--accent); background: #f7f0f8; color: #3e2942; }
.document-upload-context > svg { width: 20px; height: 20px; justify-self: center; color: var(--accent); }
.document-upload-context span, .document-upload-context small, .document-upload-context strong, .document-upload-context em { display: block; min-width: 0; }
.document-upload-context small { color: #725b76; font-size: 11px; font-style: normal; font-weight: 700; text-transform: uppercase; }
.document-upload-context strong { margin-top: 3px; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.document-upload-context em { margin-top: 4px; color: #65747a; font-size: 12px; font-style: normal; }
.mail-compose-file-list { display: flex; flex-direction: column; margin-top: 5px; }
.mail-compose-file-list > div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 2px; color: #3d4a4f; font-size: 11px; }
.mail-compose-file-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-compose-file-list small { flex: 0 0 auto; color: var(--muted); }
.mail-compose-file { min-height: 39px; display: grid; grid-template-columns: 16px 30px minmax(0, 1fr); align-items: center; gap: 7px; padding: 5px 2px; border-top: 1px solid #edf0f1; cursor: pointer; }
.mail-compose-file:first-of-type { border-top: 0; }
.mail-compose-file > input { width: 14px; height: 14px; accent-color: var(--primary); }
.mail-compose-file .mail-attachment-icon { width: 28px; height: 28px; }
.mail-compose-file > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mail-compose-file > span:last-child strong { font-size:12px; white-space:normal; overflow-wrap:anywhere; line-height:1.45; }
.mail-compose-file > span:last-child small { color:var(--muted); font-size:11px; white-space:normal; overflow-wrap:anywhere; line-height:1.45; }
.mail-compose-file { padding:9px 4px; }
.mail-compose-file:has(input:checked) { background:var(--theme-tint,#f6eff8); }
.mail-compose-upload:focus-within { outline:2px solid var(--theme-accent,var(--primary)); outline-offset:2px; }
@media (max-width:680px) {
  #mail-form > .form-grid { grid-template-columns:minmax(0,1fr); }
  .mail-compose-attachment-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
  .mail-compose-source:nth-child(even) { padding-left:0; padding-top:16px; border-left:0; border-top:1px solid var(--line); }
  .mail-compose-attachments-head { flex-wrap:wrap; gap:8px; }
}
.mail-draft-confirm { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 7px; padding: 9px 10px; border-left: 3px solid #b8862d; background: #fff9ea; cursor: pointer; }
.mail-draft-confirm input { width: 15px; height: 15px; accent-color: var(--primary); }
.mail-draft-confirm span { display: flex; flex-direction: column; gap: 2px; }
.mail-draft-confirm strong { font-size: 12px; }
.mail-draft-confirm small { color: var(--muted); font-size: 11px; }

.transfer-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, .85fr); gap: 14px; }
.admin-metrics.transfer-metrics { grid-template-columns: repeat(5,minmax(125px,1fr)); }
.metric-warning { color: #a35e0b; }
.transfer-ticket { display: grid; grid-template-columns: 115px minmax(0, 1fr) 150px; gap: 16px; padding: 16px; border-bottom: 1px solid var(--line); }
.transfer-ticket { cursor: pointer; }
.transfer-ticket:hover { background: #faf7fa; }
.transfer-ticket:last-child { border-bottom: 0; }
.transfer-ticket.pickup-review-required { border-left:4px solid #c38a2d; background:#fffbf3; }
.transfer-ticket.pickup-review-required:hover { background:#fff7e8; }
.transfer-intake-alert { display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:start; gap:14px; margin-bottom:14px; padding:15px 17px; border:1px solid #e2c78f; border-left:5px solid #b9781c; border-radius:6px; background:#fff9ed; box-shadow:0 6px 18px rgba(99,67,16,.07); }
.transfer-intake-alert-icon { width:44px; height:44px; display:grid; place-items:center; border-radius:5px; background:#b9781c; color:#fff; }
.transfer-intake-alert-icon svg { width:22px; height:22px; }
.transfer-intake-alert > div > strong { display:block; color:#523a17; font-size:14px; }
.transfer-intake-alert p { margin:4px 0 10px; color:#776139; font-size:11px; }
.transfer-intake-alert > div > div { display:flex; flex-wrap:wrap; gap:7px; }
.transfer-intake-alert button { min-width:220px; display:flex; flex-direction:column; align-items:flex-start; gap:2px; padding:8px 10px; border:1px solid #e2c78f; border-radius:4px; background:#fff; color:#4d3b20; text-align:left; cursor:pointer; }
.transfer-intake-alert button:hover { border-color:#b9781c; background:#fffdf8; }
.transfer-intake-alert button b { font-size:10px; color:#8a5c18; }
.transfer-intake-alert button span { max-width:360px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.transfer-tabs { margin-bottom: 14px; }
.admin-metrics.branch-supply-metrics { grid-template-columns: repeat(4,minmax(140px,1fr)); }
.branch-supply-panel { min-width: 0; }
.branch-supply-table tbody tr { cursor: pointer; }
.branch-supply-table tbody tr:hover { background: #faf7fa; }
.branch-supply-table td { vertical-align: middle; }
.branch-supply-line-summary { min-width: 230px; color: #445257; font-size: 11px; line-height: 1.55; }
.branch-supply-line-summary small { display: block; margin-top: 2px; color: var(--muted); }
.branch-supply-detail-head { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 14px; border: 1px solid var(--line); background: #f8f9f9; }
.branch-supply-detail-head > div { min-width: 0; padding: 13px 15px; border-right: 1px solid var(--line); }
.branch-supply-detail-head > div:last-child { border-right: 0; }
.branch-supply-detail-head span,.branch-supply-detail-head strong { display: block; }
.branch-supply-detail-head > div > span { margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.branch-supply-stock-note { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; align-items: center; margin-top: 14px; padding: 12px; border-left: 3px solid var(--primary); background: #f8f3f8; }
.branch-supply-stock-note > svg { width: 20px; height: 20px; color: var(--primary); }
.branch-supply-stock-note strong,.branch-supply-stock-note small { display: block; }
.branch-supply-stock-note small { margin-top: 3px; color: var(--muted); line-height: 1.45; }
.branch-supply-notes { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.branch-supply-notes p { margin: 6px 0 0; color: #4e5d61; line-height: 1.55; white-space: pre-wrap; }
.branch-supply-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 8px; }
.branch-supply-editor-head strong,.branch-supply-editor-head span { display: block; }
.branch-supply-editor-head span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.branch-supply-editor-lines { display: grid; border-top: 1px solid var(--line); }
.branch-supply-editor-line { display: grid; grid-template-columns: minmax(280px,1fr) 105px 150px 34px; gap: 9px; align-items: end; padding: 11px 0; border-bottom: 1px solid var(--line); }
.branch-supply-line-stock { min-width: 0; min-height: 38px; display: flex; flex-direction: column; justify-content: center; padding: 0 10px; border: 1px solid var(--line); background: #f8f9f9; }
.branch-supply-line-stock span,.branch-supply-line-stock strong { display: block; overflow-wrap: anywhere; }
.branch-supply-line-stock span { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.branch-supply-line-stock strong { margin-top: 2px; font-size: 11px; }
.ticket-number { color: var(--accent); font-weight: 700; }
.ticket-time { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.route { display: grid; grid-template-columns: 1fr 22px 1fr; gap: 8px; align-items: start; }
.route div span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.route div strong { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; }
.route > svg { margin-top: 14px; color: #8b999e; }
.ticket-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ticket-actions small { color: var(--muted); font-size: 11px; text-align: right; }
.vehicle-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid #e7ecee; }
.vehicle-row:last-child { border-bottom: 0; }
.vehicle-row.interactive { cursor: pointer; }
.vehicle-row.interactive:hover { background: #faf7fa; }
.vehicle-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 4px; background: #edf3f3; color: var(--accent); }
.vehicle-row strong, .vehicle-row span { display: block; }
.vehicle-row span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.fleet-panel { min-width: 0; }
.fleet-list { display: grid; gap: 10px; padding: 12px; }
.fleet-card { width: 100%; min-width: 0; display: grid; grid-template-columns: 118px minmax(0,1fr); gap: 12px; align-items: stretch; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--text); text-align: left; }
button.fleet-card { cursor: pointer; transition: border-color .16s ease,box-shadow .16s ease,transform .16s ease; }
button.fleet-card:hover { border-color: #bca7bf; box-shadow: 0 8px 22px rgba(65,44,67,.10); transform: translateY(-1px); }
.fleet-card-image { min-height: 145px; display: grid; place-items: center; overflow: hidden; background: #ece7ed; }
.fleet-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.fleet-card-image i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--primary); }
.fleet-card-image i svg { width: 24px; height: 24px; }
.fleet-card-content { min-width: 0; display: flex; flex-direction: column; padding: 12px 12px 12px 0; }
.fleet-card-head { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 5px; }
.fleet-card-head .status { justify-self: start; }
.fleet-card-head > strong { min-width: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.3; }
.fleet-card-subtitle { margin-top: 3px; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; }
.fleet-card-mileage { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: #49585c; }
.fleet-card-mileage svg { width: 15px; height: 15px; color: var(--primary); }
.fleet-card-mileage b { font-size: 12px; }
.fleet-card-mileage small { margin-left: auto; color: var(--muted); font-size: 9px; text-align: right; }
.fleet-card-gps { display: flex; align-items: center; gap: 7px; margin-top: 9px; padding-top: 8px; border-top: 1px solid #e8edef; color: var(--muted); }
.fleet-card-gps svg { width: 15px; height: 15px; flex: 0 0 auto; }
.fleet-card-gps span,.fleet-card-gps b,.fleet-card-gps small { display: block; }
.fleet-card-gps b { font-size: 10px; line-height: 1.3; }
.fleet-card-gps small { margin-top: 2px; font-size: 9px; }
.fleet-card-gps.live { color: #2f7048; }
.fleet-card-gps.recent { color: #8b661a; }
.fleet-card-damages { display: flex; align-items: center; gap: 7px; margin-top: 8px; padding: 7px 8px; border-left: 3px solid #6e7c80; background: #f3f6f6; color: #536268; }
.fleet-card-damages.open { border-left-color: #b64d43; background: #fff0ed; color: #8d3028; }
.fleet-card-damages > svg { width: 15px; height: 15px; flex: 0 0 auto; }
.fleet-card-damages span,.fleet-card-damages b,.fleet-card-damages small { display: block; }
.fleet-card-damages b { font-size: 11px; line-height: 1.3; }
.fleet-card-damages small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.fleet-card-app { display:flex; align-items:center; gap:8px; margin-top:8px; padding:7px 8px; border-left:3px solid #9b929d; background:#f5f3f5; color:#655d67; }
.fleet-card-app.assigned { border-left-color:var(--primary); background:#f8f1f8; color:#63306a; }
.fleet-card-app > b { width:24px; height:24px; display:grid; place-items:center; flex:0 0 auto; border-radius:50%; background:#e8e2e9; font-size:10px; }
.fleet-card-app.assigned > b { background:var(--primary); color:#fff; }
.fleet-card-app span,.fleet-card-app strong,.fleet-card-app small { display:block; min-width:0; }
.fleet-card-app strong { font-size:10px; }
.fleet-card-app small { max-width:180px; overflow:hidden; margin-top:2px; color:var(--muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.fleet-deadlines { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; padding-top: 10px; }
.vehicle-deadline { min-width: 0; display: block; padding: 7px 8px; border-left: 3px solid #8a9698; background: #f4f6f6; }
.vehicle-deadline small,.vehicle-deadline strong { display: block; overflow-wrap: anywhere; }
.vehicle-live-panel { margin-bottom: 14px; }
.vehicle-live-panel .panel-head > div > span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.vehicle-live-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 12px; }
.vehicle-live-list > .empty { grid-column: 1 / -1; }
.vehicle-live-location { min-width: 0; min-height: 76px; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 10px; border: 1px solid var(--line); border-left: 3px solid #8a9698; border-radius: 4px; background: #fff; color: inherit; text-decoration: none; transition: border-color .16s ease,box-shadow .16s ease; }
.vehicle-live-location:hover { border-color: #bca7bf; box-shadow: 0 6px 16px rgba(65,44,67,.09); }
.vehicle-live-location.live { border-left-color: #3f7d57; }
.vehicle-live-location.recent { border-left-color: #b8862d; }
.vehicle-live-location.stale { border-left-color: #9b6560; }
.vehicle-live-pin { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f3edf4; color: var(--primary); }
.vehicle-live-pin svg { width: 17px; height: 17px; }
.vehicle-live-location > span:nth-child(2) { min-width: 0; }
.vehicle-live-location strong,.vehicle-live-location small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-live-location strong { font-size: 12px; }
.vehicle-live-location small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.vehicle-live-coordinates { color: var(--muted); font-size: 9px; line-height: 1.35; text-align: right; }
.vehicle-live-coordinates em { display: block; margin-top: 3px; color: var(--primary); font-size: 9px; font-style: normal; font-weight: 700; }
.transfer-ticket-gps { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 9px; font-weight: 700; }
.transfer-ticket-gps svg { width: 12px; height: 12px; }
.transfer-ticket-gps.live { border-color: #a9cab4; background: #edf6f0; color: #2f7048; }
.transfer-ticket-gps.recent { border-color: #d9c48e; background: #fbf7ea; color: #80601d; }
.vehicle-deadline small { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.vehicle-deadline strong { margin-top: 2px; font-size: 9px; line-height: 1.25; }
.vehicle-deadline.success { border-left-color: #4a8761; background: #edf6f0; }
.vehicle-deadline.warning { border-left-color: #c28224; background: #fff7e8; color: #7d4c08; }
.vehicle-deadline.danger { border-left-color: #b64d43; background: #fff0ed; color: #8d3028; }
.vehicle-image-editor { display: grid; grid-template-columns: minmax(260px,1fr) minmax(210px,.65fr); gap: 14px; align-items: stretch; }
.vehicle-image-preview { min-height: 190px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #eee9ef; }
.vehicle-image-preview img { width: 100%; height: 190px; display: block; object-fit: cover; }
.vehicle-image-preview > span { display: grid; place-items: center; gap: 8px; color: var(--muted); text-align: center; }
.vehicle-image-preview svg { width: 34px; height: 34px; color: var(--primary); }
.vehicle-image-preview strong { font-size: 12px; }
.vehicle-image-actions { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; }
.vehicle-image-actions label.button { display: inline-flex; }
.vehicle-image-actions input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.vehicle-image-actions small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.vehicle-image-editor.readonly { grid-template-columns: minmax(260px,520px); }
.vehicle-master-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.vehicle-master-fieldset:disabled { opacity: .86; }
.vehicle-master-notice { margin-bottom: 14px; padding: 11px 13px; border-left: 3px solid #4c7181; background: #edf5f7; color: #385965; font-size: 13px; line-height: 1.5; }
.vehicle-damage-journal { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.vehicle-cleaning-journal { margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.vehicle-cleaning-head { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:12px; }
.vehicle-cleaning-head > div { display:flex; align-items:center; gap:10px; min-width:0; }
.vehicle-cleaning-head > div > span:last-child,.vehicle-cleaning-head strong,.vehicle-cleaning-head small { display:block; }
.vehicle-cleaning-head strong { font-size:16px; }
.vehicle-cleaning-head small { margin-top:3px; color:var(--muted); font-size:12px; }
.vehicle-cleaning-head-icon { display:grid; flex:0 0 36px; width:36px; height:36px; place-items:center; border-radius:4px; background:#e8f3ed; color:#347057; }
.vehicle-cleaning-head-icon svg { width:19px; height:19px; }
.vehicle-cleaning-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--line); background:#f8f9f9; }
.vehicle-cleaning-metrics > div { min-width:0; padding:11px 13px; border-right:1px solid var(--line); }
.vehicle-cleaning-metrics > div:last-child { border-right:0; }
.vehicle-cleaning-metrics span,.vehicle-cleaning-metrics strong { display:block; overflow-wrap:anywhere; }
.vehicle-cleaning-metrics span { color:var(--muted); font-size:10px; font-weight:700; text-transform:uppercase; }
.vehicle-cleaning-metrics strong { margin-top:4px; font-size:15px; }
.vehicle-cleaning-list { border:1px solid var(--line); border-top:0; }
.vehicle-cleaning-row { display:grid; grid-template-columns:118px minmax(0,1fr) 145px; gap:14px; align-items:start; padding:15px; border-bottom:1px solid var(--line); background:#fff; }
.vehicle-cleaning-row:last-child { border-bottom:0; }
.vehicle-cleaning-date strong,.vehicle-cleaning-date span { display:block; }
.vehicle-cleaning-date strong { font-size:13px; }
.vehicle-cleaning-date span { margin-top:5px; color:var(--muted); font-size:12px; }
.vehicle-cleaning-body { min-width:0; }
.vehicle-cleaning-body > header { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.vehicle-cleaning-body > header strong { font-size:14px; }
.vehicle-cleaning-facts { display:flex; flex-wrap:wrap; gap:6px 15px; margin-top:8px; color:#506064; font-size:12px; }
.vehicle-cleaning-facts span { display:inline-flex; align-items:center; gap:5px; }
.vehicle-cleaning-facts svg { width:14px; height:14px; color:var(--primary); }
.vehicle-cleaning-body p { margin:9px 0 0; color:#405157; font-size:13px; line-height:1.55; }
.vehicle-cleaning-body > small { display:block; margin-top:9px; color:var(--muted); font-size:11px; }
.vehicle-cleaning-proof { display:grid; justify-items:start; gap:3px; padding:9px; border-left:3px solid #438064; background:#edf6f1; color:#35674f; }
.vehicle-cleaning-proof > span svg { width:15px; height:15px; }
.vehicle-cleaning-proof strong { font-size:10px; }
.vehicle-cleaning-proof code { max-width:100%; overflow:hidden; color:#557066; font-family:Consolas,monospace; font-size:9px; text-overflow:ellipsis; }
.vehicle-cleaning-integrity { display:flex; align-items:center; gap:7px; padding:10px 12px; border:1px solid #d5dfdb; border-top:0; background:#f6faf8; color:#526861; font-size:11px; line-height:1.45; }
.vehicle-cleaning-integrity svg { flex:0 0 15px; width:15px; height:15px; color:#397259; }
.vehicle-cleaning-empty { padding:24px; }
.vehicle-cleaning-lock-note { display:flex; align-items:flex-start; gap:11px; margin-bottom:17px; padding:13px 14px; border-left:4px solid #438064; background:#edf6f1; color:#355f4c; }
.vehicle-cleaning-lock-note > svg { flex:0 0 20px; width:20px; height:20px; }
.vehicle-cleaning-lock-note strong,.vehicle-cleaning-lock-note span { display:block; }
.vehicle-cleaning-lock-note strong { font-size:13px; }
.vehicle-cleaning-lock-note span { margin-top:3px; font-size:11px; line-height:1.45; }
.vehicle-device-panel { margin-top:22px; border:1px solid #d9cdda; border-radius:6px; background:#fff; }
.vehicle-device-panel > header { min-height:68px; display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:11px; padding:12px 15px; border-bottom:1px solid var(--line); background:#faf7fa; }
.vehicle-device-panel-icon { width:40px; height:40px; display:grid; place-items:center; border-radius:5px; background:var(--primary); color:#fff; font-size:10px; font-weight:800; }
.vehicle-device-panel header strong,.vehicle-device-panel header small { display:block; }
.vehicle-device-panel header strong { font-size:14px; }
.vehicle-device-panel header small { margin-top:3px; color:var(--muted); font-size:10px; }
.vehicle-device-list { display:grid; }
.vehicle-device-row { min-height:62px; display:grid; grid-template-columns:78px minmax(0,1fr) 36px; align-items:center; gap:10px; padding:10px 15px; border-bottom:1px solid var(--line); }
.vehicle-device-code { padding:6px 7px; border:1px solid #dac9dd; border-radius:4px; background:#faf5fa; color:var(--primary); font-size:11px; font-weight:800; text-align:center; }
.vehicle-device-row strong,.vehicle-device-row small { display:block; }
.vehicle-device-row strong { font-size:12px; }
.vehicle-device-row small { margin-top:3px; color:var(--muted); font-size:10px; line-height:1.35; }
.vehicle-device-assign { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; padding:13px 15px; background:#fcfbfc; }
.vehicle-device-assign select { min-height:40px; padding:0 10px; border:1px solid #cbc2cd; border-radius:4px; background:#fff; }
.vehicle-device-empty,.vehicle-device-hint { margin:0; padding:15px; color:var(--muted); font-size:11px; line-height:1.45; }
.vehicle-device-hint { padding-top:0; }
.vehicle-damage-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.vehicle-damage-head > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.vehicle-damage-head > div > span:last-child,.vehicle-damage-head strong,.vehicle-damage-head small { display: block; }
.vehicle-damage-head strong { font-size: 16px; }
.vehicle-damage-head small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.vehicle-damage-head-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 36px; border-radius: 4px; background: #f6e9e7; color: #9a3d36; }
.vehicle-damage-head-icon svg { width: 19px; height: 19px; }
.vehicle-damage-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); background: #f8f9f9; }
.vehicle-damage-metrics > div { min-width: 0; padding: 11px 13px; border-right: 1px solid var(--line); }
.vehicle-damage-metrics > div:last-child { border-right: 0; }
.vehicle-damage-metrics span,.vehicle-damage-metrics strong { display: block; overflow-wrap: anywhere; }
.vehicle-damage-metrics span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.vehicle-damage-metrics strong { margin-top: 4px; font-size: 16px; }
.vehicle-damage-list { border: 1px solid var(--line); border-top: 0; }
.vehicle-damage-row { display: grid; grid-template-columns: 118px minmax(0,1fr) minmax(150px,210px); gap: 14px; padding: 15px; border-bottom: 1px solid var(--line); background: #fff; }
.vehicle-damage-row:last-child { border-bottom: 0; }
.vehicle-damage-date strong,.vehicle-damage-date span { display: block; }
.vehicle-damage-date strong { font-size: 13px; }
.vehicle-damage-date span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.vehicle-damage-body { min-width: 0; }
.vehicle-damage-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.vehicle-damage-title > div { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vehicle-damage-title > div > strong { width: 100%; overflow-wrap: anywhere; font-size: 14px; line-height: 1.4; }
.vehicle-damage-body p { margin: 9px 0 0; color: #405157; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.vehicle-damage-body > small { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.vehicle-damage-repair { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.vehicle-damage-repair span { padding: 4px 7px; border: 1px solid #d9e0e2; border-radius: 3px; background: #f6f8f8; color: #536268; font-size: 11px; }
.vehicle-damage-notes { display: grid; gap: 3px; margin-top: 9px; padding-left: 9px; border-left: 3px solid #b89a52; color: #5e522f; font-size: 12px; line-height: 1.45; }
.vehicle-damage-photos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; gap: 6px; }
.vehicle-damage-photo { position: relative; aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: #eef1f1; }
.vehicle-damage-photo a,.vehicle-damage-photo img { width: 100%; height: 100%; display: block; }
.vehicle-damage-photo img { object-fit: cover; }
.vehicle-damage-photo button { width: 26px; height: 26px; position: absolute; top: 4px; right: 4px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.7); border-radius: 3px; background: rgba(34,38,39,.78); color: #fff; cursor: pointer; }
.vehicle-damage-photo button:hover { background: #8d3028; }
.vehicle-damage-photo button svg { width: 13px; height: 13px; }
.vehicle-damage-no-photo { grid-column: 1/-1; min-height: 68px; display: grid; place-items: center; border: 1px dashed #cbd4d7; color: var(--muted); font-size: 11px; text-align: center; }
.vehicle-damage-empty { padding: 24px; }
.vehicle-damage-existing-photos { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; margin-bottom: 8px; }
.vehicle-damage-existing-photos span { min-width: 0; padding: 5px; border: 1px solid var(--line); background: #f8f9f9; }
.vehicle-damage-existing-photos img { width: 100%; aspect-ratio: 4/3; display: block; object-fit: cover; }
.vehicle-damage-existing-photos small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-damage-upload { min-height: 70px; display: flex !important; align-items: center; gap: 11px; padding: 12px; border: 1px dashed #b8a0bb; border-radius: 4px; background: #faf6fa; color: var(--primary) !important; cursor: pointer; text-transform: none !important; }
.vehicle-damage-upload > svg { width: 24px; height: 24px; flex: 0 0 auto; }
.vehicle-damage-upload span,.vehicle-damage-upload strong,.vehicle-damage-upload small { display: block; }
.vehicle-damage-upload strong { font-size: 13px; }
.vehicle-damage-upload small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 500; }
.vehicle-damage-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.vehicle-damage-upload:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.vehicle-damage-image-selection { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; color: var(--muted); font-size: 11px; }
.vehicle-damage-image-selection span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border: 1px solid var(--line); background: #f7f9f9; }
.vehicle-damage-image-selection svg { width: 12px; height: 12px; }
.input-with-unit { display: grid; grid-template-columns: minmax(0,1fr) auto; }
.input-with-unit input { border-radius: 3px 0 0 3px; }
.input-with-unit > span { min-width: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-left: 0; border-radius: 0 3px 3px 0; background: #f4f1f4; color: var(--muted); font-size: 11px; }
.transfer-history { max-height: 250px; overflow-y: auto; }
.history-entry { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 8px; min-height: 58px; }
.history-entry::before { content: ""; position: absolute; left: 7px; top: 17px; bottom: -3px; width: 1px; background: #dacdde; }
.history-entry:last-child::before { display: none; }
.history-entry i { width: 15px; height: 15px; position: relative; z-index: 1; margin-top: 2px; border: 3px solid #f1e5f2; border-radius: 50%; background: var(--accent); }
.history-entry strong, .history-entry span { display: block; }
.history-entry strong { font-size: 13px; }
.history-entry span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.history-entry p { margin: 5px 0 0; color: #536268; font-size: 12px; }
.conflict-message { padding: 4px 2px; }
.conflict-message strong { display: block; color: #8b2b24; font-size: 16px; }
.conflict-message p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); margin-bottom: 16px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.admin-metrics > div { min-height: 68px; display: flex; flex-direction: column; justify-content: center; padding: 10px 16px; border-right: 1px solid var(--line); }
.admin-metrics > div:last-child { border-right: 0; }
.admin-metrics span { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.admin-metrics strong { margin-top: 5px; font-size: 20px; font-weight: 650; }
.admin-metrics .storage-provider { font-size: 17px; }
.admin-metrics .storage-provider.error { color: var(--danger); }
.admin-tabs { margin-bottom: 12px; }
.contact-tabs { display: flex; flex-wrap: wrap; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.contact-tabs .tab { min-height: 43px; display: inline-flex; flex: 1 1 138px; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border-right: 1px solid #e8edef; border-bottom: 2px solid transparent; text-align: center; }
.contact-tabs .tab:hover { background: #faf7fa; color: var(--accent); }
.contact-tabs .tab.active { background: #f7eef8; border-bottom-color: var(--accent); }
.contact-tabs .tab span { min-width: 20px; display: inline-grid; place-items: center; padding: 2px 6px; border-radius: 10px; background: #edf0f2; color: #5f6d72; font-size: 11px; line-height: 1.2; }
.contact-tabs .tab.active span { background: #fff; color: var(--accent); }
.admin-table .admin-person { display: flex; align-items: center; gap: 9px; }
.admin-person div strong, .admin-person div small { display: block; }
.admin-person small { margin-top: 2px; color: var(--accent); font-size: 11px; }
.role-label { font-weight: 650; }
.branch-chip { display: inline-flex; margin: 2px 4px 2px 0; padding: 3px 6px; border: 1px solid #d8c5da; border-radius: 3px; background: #faf5fa; color: #6b2d73; font-size: 11px; white-space: nowrap; }
.field-service-label { display:inline-flex; align-items:center; gap:5px; color:var(--primary); font-weight:800; white-space:nowrap; }
.field-service-label svg { width:15px; height:15px; }
.field-service-detail { display:block; margin-top:3px; color:var(--muted); font-size:11px; }
.user-workplace-mode .toggle-row { min-height:58px; padding:9px 12px; border-color:#d8c5da; background:#faf5fa; }
.user-workplace-mode .toggle-row > span { display:grid; gap:3px; }
.user-workplace-mode .toggle-row small,.field-hint { display:block; color:var(--muted); font-size:11px; font-weight:500; line-height:1.45; }
.field-hint { margin-top:6px; }
.branch-code { display: inline-flex; min-width: 48px; justify-content: center; padding: 3px 6px; border-radius: 3px; background: #edf0f2; color: #566469; font-family: Consolas, monospace; font-size: 12px; font-weight: 700; }
.role-matrix-wrap { overflow-x: auto; }
.document-rights-panel { margin-top: 14px; }
.role-matrix { width: 100%; min-width: 850px; border-collapse: collapse; }
.role-matrix th, .role-matrix td { padding: 9px 13px; border-bottom: 1px solid var(--line); text-align: center; }
.role-matrix th:first-child, .role-matrix td:first-child { width: 36%; text-align: left; }
.role-matrix th { background: #f7f8f9; vertical-align: top; }
.role-matrix th strong, .role-matrix th span { display: block; }
.role-matrix th strong { font-size: 14px; }
.role-matrix th span { max-width: 210px; margin: 4px auto 0; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.35; }
.role-matrix .permission-group td { padding: 7px 13px; background: #f1edf2; color: #625566; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.permission-check { width: 17px; height: 17px; accent-color: var(--accent); }
.permission-check:disabled { opacity: .55; }
.role-matrix tfoot td { border-bottom: 0; background: #fafbfb; }
.toggle-row { min-height: 36px; display: flex !important; align-items: center; justify-content: space-between; gap: 12px; padding: 0 9px; border: 1px solid #cbd4d7; border-radius: 4px; background: #fafbfb; color: #34444a !important; font-size: 13px !important; font-weight: 600 !important; text-transform: none !important; }
.branch-access-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.branch-access-grid label { min-height: 46px; display: flex; align-items: center; gap: 9px; margin: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; background: #fafbfb; cursor: pointer; text-transform: none; }
.field .toggle-row .switch { width: 34px; min-height: 18px; padding: 0; flex: 0 0 34px; }
.field .branch-access-grid input { width: 16px; min-height: 16px; padding: 0; flex: 0 0 16px; accent-color: var(--accent); }
.branch-access-grid span, .branch-access-grid strong, .branch-access-grid small { display: block; }
.branch-access-grid strong { color: #34444a; font-size: 13px; }
.branch-access-grid small { margin-top: 2px; color: var(--muted); font-size: 11px; }

.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.portal-option { min-height: 92px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: #fafbfb; }
.portal-option label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; }
.portal-option p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.portal-link { display: inline-block; margin-top: 9px; color: var(--accent); font-size: 12px; font-weight: 700; text-decoration: none; }
.portal-link:hover { text-decoration: underline; }
.portal-inactive { display: inline-block; margin-top: 9px; color: #879499; font-size: 12px; }
.switch { appearance: none; width: 34px; height: 18px; position: relative; flex: 0 0 auto; border-radius: 9px; background: #bbc5c8; outline: none; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch:checked { background: var(--accent-2); }
.switch:checked::after { transform: translateX(16px); }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(18,29,32,.58); }
.modal { width: min(780px, calc(100vw - 48px)); max-height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.24); }
.modal.wide { width: min(980px, calc(100vw - 48px)); }
.modal.price-information-modal { width: min(1240px, calc(100vw - 48px)); }
.modal.pdf-modal { width: min(1280px, calc(100vw - 34px)); height: calc(100vh - 34px); max-height: none; }
.modal-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-foot { min-height: 58px; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--line); background: #fafbfb; }

.pdf-viewer-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 14px; background: rgba(27,18,29,.74); backdrop-filter: blur(3px); }
.pdf-viewer { width: min(1500px,calc(100vw - 28px)); height: calc(100vh - 28px); min-height: 440px; display: grid; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; background: #eee9ef; box-shadow: 0 30px 90px rgba(22,13,24,.42); }
.pdf-viewer-head { min-height: 84px; display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 12px 16px 12px 26px; border-bottom: 1px solid rgba(255,255,255,.14); background: linear-gradient(112deg,#38283a 0%,#55305a 50%,#643182 100%); }
.pdf-viewer-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; }
.pdf-viewer-mark svg { width: 21px; height: 21px; }
.pdf-viewer-title { min-width: 0; }
.pdf-viewer-title > span { display: block; margin-bottom: 3px; overflow: hidden; color: #dacadd; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.pdf-viewer-head h2 { margin: 0; overflow: hidden; color: #fff; font-family: Georgia,serif; font-size: 23px; font-weight: 400; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.pdf-viewer-head p { margin: 4px 0 0; overflow: hidden; color: #ded2e0; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.pdf-viewer-actions { display: flex; align-items: center; gap: 7px; }
.pdf-viewer-actions .button { min-height: 40px; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.1); color: #fff; }
.pdf-viewer-actions .button:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.17); }
.pdf-viewer-actions .button svg { width: 16px; height: 16px; }
.pdf-viewer-actions .pdf-viewer-open-external { background: rgba(255,255,255,.16); }
.pdf-viewer-actions .pdf-viewer-primary { border-color: #d2b275; background: #c5a36a; color: #2d2330; }
.pdf-viewer-actions .pdf-viewer-primary:hover { border-color: #ead39d; background: #d4b777; }
.pdf-viewer-close { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #e9ddeb; cursor: pointer; }
.pdf-viewer-close:hover { background: rgba(255,255,255,.12); color: #fff; }
.pdf-viewer-close svg { width: 19px; height: 19px; }
.pdf-viewer-body { min-height: 0; padding: 16px; background: #eee9ef; }
.pdf-viewer-stage { position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; border: 1px solid #d7d0d8; border-radius: 8px; background: #d9dadd; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.pdf-viewer-stage iframe { position: relative; z-index: 2; width: 100%; height: 100%; display: block; border: 0; background: #d9dadd; }
.pdf-viewer-loading { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 12px; color: #5e5360; background: #e3e1e4; transition: opacity .15s ease; }
.pdf-viewer-loading.hidden { opacity: 0; pointer-events: none; }
.pdf-viewer-loading span { width: 30px; height: 30px; border: 3px solid #c7b3cb; border-top-color: var(--primary); border-radius: 50%; animation: pdf-viewer-spin .8s linear infinite; }
.pdf-viewer-loading strong { font-size: 13px; }
.pdf-viewer-foot { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 20px; border-top: 1px solid #d9d1da; background: #fff; color: #766d78; font-size: 11px; text-align: center; }
.pdf-viewer-foot svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--primary); }
@keyframes pdf-viewer-spin { to { transform: rotate(360deg); } }

.pdf-preview-launch { position: relative; width: 100%; height: 100%; min-height: 480px; display: block; overflow: hidden; padding: 0; border: 0; background: transparent; cursor: pointer; }
.pdf-preview-launch img { width: 100%; height: 100%; max-height: 620px; display: block; object-fit: contain; }
.pdf-preview-launch span { position: absolute; left: 50%; bottom: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #d4c0d8; border-radius: 5px; background: rgba(255,255,255,.95); color: var(--primary); font-size: 12px; font-weight: 700; transform: translateX(-50%); box-shadow: 0 5px 18px rgba(25,32,35,.14); }
.pdf-preview-launch:hover span, .pdf-preview-launch:focus-visible span { border-color: var(--primary); background: #fff; }
.pdf-preview-launch span svg { width: 14px; height: 14px; }

.image-preview-launch { position:relative; width:100%; height:100%; min-height:480px; display:block; overflow:hidden; padding:0; border:0; background:transparent; cursor:pointer; }
.image-preview-launch img { width:100%; height:100%; max-height:620px; display:block; object-fit:contain; transition:transform .2s ease; }
.image-preview-launch span { position:absolute; left:50%; bottom:16px; display:inline-flex; align-items:center; gap:7px; padding:8px 11px; border:1px solid #d4c0d8; border-radius:5px; background:rgba(255,255,255,.96); color:var(--primary); font-size:12px; font-weight:700; transform:translateX(-50%); box-shadow:0 5px 18px rgba(25,32,35,.14); white-space:nowrap; }
.image-preview-launch:hover img,.image-preview-launch:focus-visible img { transform:scale(1.02); }
.image-preview-launch:hover span,.image-preview-launch:focus-visible span { border-color:var(--primary); background:#fff; }
.image-preview-launch span svg { width:14px; height:14px; }
.media-viewer { grid-template-rows:auto auto minmax(0,1fr) auto; }
.media-viewer-toolbar { min-height:50px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:7px 18px; border-bottom:1px solid #d8d0d9; background:#fff; color:#455257; }
.media-viewer-toolbar > span,.media-viewer-toolbar > div { display:flex; align-items:center; gap:7px; }
.media-viewer-toolbar > span { font-size:12px; font-weight:800; text-transform:uppercase; }
.media-viewer-toolbar > span svg { width:17px; height:17px; color:var(--primary); }
.media-viewer-toolbar > div > strong { min-width:54px; color:#4f5d62; font-size:12px; text-align:center; }
.media-viewer-toolbar > div > small { color:var(--muted); font-size:11px; }
.media-viewer-toolbar .icon-button { width:34px; height:34px; }
.media-viewer-body { min-height:0; overflow:hidden; padding:14px; background:#e8e7e9; }
.media-image-stage,.media-video-stage { width:100%; height:100%; min-height:0; display:grid; place-items:center; overflow:auto; border:1px solid #d1ccd2; border-radius:6px; background:#242128; box-shadow:inset 0 1px 0 rgba(255,255,255,.08); }
.media-image-stage img { max-width:100%; max-height:100%; display:block; object-fit:contain; transform-origin:center; transition:transform .18s ease; cursor:zoom-in; }
.media-image-stage img.zoomed { cursor:zoom-out; }
.media-video-stage video { width:100%; height:100%; max-height:100%; display:block; object-fit:contain; background:#171519; }
.media-audio-stage { width:min(940px,100%); min-height:100%; margin:0 auto; display:grid; grid-template-columns:280px minmax(0,1fr); align-items:center; gap:42px; padding:34px; }
.media-audio-art { aspect-ratio:1; position:relative; display:grid; place-items:center; overflow:hidden; border:1px solid #cbbdce; border-radius:6px; background:#3b2a3d; color:#fff; box-shadow:0 18px 45px rgba(33,23,35,.22); }
.media-audio-art::before { content:""; position:absolute; inset:22%; border:1px solid rgba(213,181,117,.45); border-radius:50%; }
.media-audio-art svg { width:68px; height:68px; position:relative; z-index:2; color:#d5b575; }
.media-audio-copy { min-width:0; }
.media-audio-copy > span { display:block; color:var(--primary); font-size:11px; font-weight:800; text-transform:uppercase; }
.media-audio-copy h3 { margin:8px 0 0; overflow-wrap:anywhere; color:#263338; font-family:Georgia,serif; font-size:28px; font-weight:400; line-height:1.2; }
.media-audio-copy p { min-height:42px; margin:12px 0 22px; color:#5c696e; font-size:13px; line-height:1.55; }
.media-audio-copy audio { width:100%; min-height:48px; display:block; }
.media-audio-copy small { display:block; margin-top:10px; color:#778287; font-size:11px; }

@media (max-width: 760px) {
  .pdf-viewer-backdrop { padding: 0; }
  .pdf-viewer { width: 100vw; height: 100vh; min-height: 0; border: 0; border-radius: 0; }
  .pdf-viewer-head { min-height: 68px; grid-template-columns: 34px minmax(0,1fr) auto; gap: 9px; padding: 8px 8px 8px 12px; }
  .pdf-viewer-mark { width: 34px; height: 34px; }
  .pdf-viewer-title > span { font-size: 8px; }
  .pdf-viewer-head h2 { font-size: 16px; }
  .pdf-viewer-head p { display: none; }
  .pdf-viewer-actions .button { width: 36px; min-width: 36px; height: 36px; overflow: hidden; padding: 0; color: transparent; gap: 0; }
  .pdf-viewer-actions .button span { display: none; }
  .pdf-viewer-actions .button svg { flex: 0 0 auto; margin: auto; color: #fff; }
  .pdf-viewer-actions .pdf-viewer-primary svg { color: #2d2330; }
  .pdf-viewer-close { width: 34px; height: 34px; }
  .pdf-viewer-body { padding: 8px; }
  .pdf-viewer-stage { border-radius: 5px; }
  .pdf-viewer-foot { min-height: 38px; padding: 7px 12px; font-size: 10px; }
  .pdf-preview-launch span { max-width: calc(100% - 24px); white-space: nowrap; }
  .image-preview-launch span { max-width:calc(100% - 24px); }
  .media-viewer-toolbar { min-height:46px; padding:6px 9px; }
  .media-viewer-toolbar > span { font-size:10px; }
  .media-viewer-toolbar > div > small { display:none; }
  .media-viewer-toolbar .button.small { width:34px; min-width:34px; overflow:hidden; padding:0; font-size:0; }
  .media-viewer-toolbar .button.small::before { content:"1:1"; font-size:10px; }
  .media-viewer-body { padding:7px; }
  .media-audio-stage { grid-template-columns:1fr; align-content:center; gap:20px; padding:20px; text-align:center; }
  .media-audio-art { width:min(220px,65vw); justify-self:center; }
  .media-audio-copy h3 { font-size:22px; }
  .media-audio-copy p { min-height:0; }
}
.record-workspace { min-height: calc(100vh - 58px); margin: -22px -24px -36px; background: #f2f4f3; }
.record-workspace-head { min-height: 84px; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.record-workspace-head h1 { margin: 0; color: #1f2e33; font-size: 22px; line-height: 1.2; }
.record-workspace-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.record-back { align-self: center; }
.record-back svg { width: 15px; transform: rotate(180deg); }
.record-workspace-body { width: min(1400px,100%); margin: 0 auto; padding: 18px 24px 104px; }
.record-workspace-body .case-summary { margin-bottom: 0; border: 1px solid var(--line); border-left: 3px solid var(--accent-2); background: #fff; }
.record-workspace-body .preneed-summary { border-left-color: var(--accent); }
.record-workspace .case-tabs { margin-bottom: 0; padding: 0 12px; border: 1px solid var(--line); border-top: 0; background: #fff; }
.record-workspace [data-case-section], .record-workspace [data-preneed-section] { min-height: 360px; padding: 20px; border: 1px solid var(--line); border-top: 0; background: #fff; }
.record-workspace-foot { position: fixed; right: 0; bottom: 0; left: 232px; z-index: 18; min-height: 64px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 24px; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -8px 22px rgba(38,31,39,.08); }
.record-workspace-foot > :first-child { margin-right: auto; }
.analysis-summary { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 5px; }
.analysis-summary > div { min-height: 70px; padding: 11px 13px; border-right: 1px solid var(--line); }
.analysis-summary > div:last-child { border-right: 0; }
.analysis-summary span, .analysis-summary strong { display: block; }
.analysis-summary > div > span { margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.analysis-summary > div > strong { font-size: 14px; }
.analysis-message { margin: 12px 0; padding: 10px 12px; border-left: 3px solid var(--accent-2); background: #f5f8fb; color: #46575d; font-size: 13px; line-height: 1.5; }
.analysis-preview { margin-top: 15px; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.analysis-preview > div { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; background: #f5f7f8; }
.analysis-preview > div span { color: var(--muted); font-size: 11px; }
.analysis-preview pre { min-height: 120px; max-height: 280px; margin: 0; padding: 12px; overflow: auto; white-space: pre-wrap; color: #334248; background: #fff; font: 11px/1.55 Consolas, monospace; }
.review-stamp { margin-top: 10px; color: #3f7d57; font-size: 12px; font-weight: 650; text-align: right; }
#delete-transfer { margin-right: auto; }
#remove-case-contact { margin-right: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px 15px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; color: #46565c; font-size: 13px; font-weight: 700; line-height: 1.3; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid #c3ced1; border-radius: 4px; background: #fff; color: #26363b; font-size: 15px; outline: none; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-2); box-shadow: 0 0 0 2px rgba(54,123,127,.1); }
.consultation-management-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(330px,.75fr); gap:14px; margin:14px 0; }
.consultation-requests-panel,.consultation-blocks-panel { min-width:0; }
.consultation-request-list,.consultation-block-list { max-height:330px; overflow-y:auto; }
.consultation-request-card { display:grid; grid-template-columns:minmax(190px,.85fr) minmax(220px,1fr) minmax(180px,.75fr); align-items:center; gap:12px 18px; padding:14px 16px; border-bottom:1px solid var(--line); background:#fff; }
.consultation-request-card:last-child { border-bottom:0; }
.consultation-request-kind { display:grid; grid-template-columns:38px minmax(0,1fr); align-items:center; gap:10px; }
.consultation-request-kind > svg { width:36px; height:36px; padding:9px; border-radius:5px; background:#f3eaf4; color:var(--primary); }
.consultation-request-kind span,.consultation-request-person,.consultation-request-card time { min-width:0; display:grid; gap:3px; }
.consultation-request-card small { color:var(--muted); font-size:11px; }
.consultation-request-card strong { overflow:hidden; color:#2e3d42; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.consultation-request-card time span { color:var(--primary); font-size:12px; font-weight:700; }
.consultation-request-card > p { grid-column:1 / 4; margin:0; padding:9px 11px; border-left:3px solid #d6bd6e; background:#fbfaf5; color:#5a6468; font-size:12px; line-height:1.45; }
.consultation-request-actions { grid-column:1 / 4; display:flex; justify-content:flex-end; gap:7px; }
.consultation-request-actions .button svg { width:14px; height:14px; }
.consultation-block-row { min-height:62px; display:grid; grid-template-columns:32px minmax(0,1fr) 34px; align-items:center; gap:9px; padding:9px 12px; border-bottom:1px solid var(--line); }
.consultation-block-row:last-child { border-bottom:0; }
.consultation-block-row > span { width:30px; height:30px; display:grid; place-items:center; border-radius:4px; background:#eef1f2; color:#5f6e74; }
.consultation-block-row > span svg { width:15px; height:15px; }
.consultation-block-row div { min-width:0; }
.consultation-block-row strong,.consultation-block-row small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.consultation-block-row strong { color:#344349; font-size:12px; }
.consultation-block-row small { margin-top:4px; color:var(--muted); font-size:10px; }
.consultation-block-title { display:flex; align-items:center; gap:7px; min-width:0; }
.consultation-block-title strong { min-width:0; flex:1; }
.consultation-block-scope { flex:none; padding:2px 6px; border-radius:9px; background:#edf0f2; color:#5d696e; font-size:9px; font-style:normal; font-weight:800; line-height:1.5; }
.consultation-block-scope.death-case { background:#f2e8f3; color:#6a2b72; }
.consultation-block-scope.pre-need { background:#e5f1ed; color:#2f6953; }
.consultation-block-all-day { min-height:52px; padding-block:7px; }
.consultation-block-all-day > span { min-width:0; display:grid; gap:2px; }
.consultation-block-all-day strong,.consultation-block-all-day small { display:block; }
.consultation-block-all-day small { color:var(--muted); font-size:10px; font-weight:500; line-height:1.35; }
.consultation-calendar-layout { margin-top:14px; }
.consultation-history-panel { margin-top:14px; overflow:hidden; }
.consultation-history-panel .consultation-request-list { max-height:390px; }
.consultation-request-card.processed { background:#fbfcfc; }
.consultation-request-result { align-items:center; justify-content:space-between; }
.consultation-request-result small { margin-left:auto; }
.consultation-home-fields { padding:14px; border:1px solid #dbcddd; border-left:3px solid var(--primary); background:#fbf8fb; }
.consultation-home-fields[hidden] { display:none; }
.consultation-home-heading { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.consultation-home-heading > svg { width:20px; height:20px; color:var(--primary); }
.consultation-home-heading div { display:grid; gap:2px; }
.consultation-home-heading span { color:var(--muted); font-size:11px; }
@media (max-width:1050px) { .consultation-management-grid,.backup-control-grid { grid-template-columns:1fr; } }
@media (max-width:700px) { .consultation-request-card { grid-template-columns:1fr; } .consultation-request-card > p,.consultation-request-actions { grid-column:1; } }
.price-information-metrics > div:last-child strong { font-size: 19px; }
.price-information-lines { margin: 18px 0; border: 1px solid var(--line); background: #fff; }
.price-information-fee-catalog { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 2px; }
.price-information-fee-catalog > section { min-width: 0; border: 1px solid var(--line); background: #fff; }
.price-information-fee-catalog header { min-height: 50px; padding: 9px 11px; border-bottom: 1px solid var(--line); background: #faf7fa; }
.price-information-fee-catalog header strong, .price-information-fee-catalog header span { display: block; }
.price-information-fee-catalog header strong { color: #3f3042; font-size: 13px; }
.price-information-fee-catalog header span { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.price-information-fee-list { max-height: 230px; overflow-y: auto; }
.price-information-fee-list label { min-height: 58px; display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 8px; margin: 0; padding: 8px 10px; border-bottom: 1px solid #e8e4e8; color: inherit; text-transform: none; cursor: pointer; }
.price-information-fee-list label:last-child { border-bottom: 0; }
.price-information-fee-list label:has(input:checked) { background: #fbf7fb; }
.price-information-fee-list input { width: 16px; height: 16px; accent-color: var(--accent); }
.price-information-fee-list span, .price-information-fee-list strong, .price-information-fee-list small { min-width: 0; display: block; }
.price-information-fee-list strong { overflow: hidden; color: #344349; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.price-information-fee-list small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.price-information-fee-list b { color: #4e3752; font-size: 12px; white-space: nowrap; }
.price-information-fee-catalog .empty.compact { min-height: 64px; padding: 18px 10px; font-size: 11px; }
.price-information-line.institution-fee-line { background: #fcf9fc; }
.price-information-line.institution-fee-line select:disabled, .price-information-line.institution-fee-line input:read-only { border-color: #ded5df; background: #f5f0f5; color: #604c64; }
.price-information-lines > header { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #faf7fa; }
.price-information-lines > header strong, .price-information-lines > header span { display: block; }
.price-information-lines > header strong { color: #2f3e43; font-size: 14px; }
.price-information-lines > header span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.service-lines-editor { overflow: hidden; }
.service-line-block { border-top: 1px solid var(--line); background: #fff; }
.service-line-block > header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; background: #f7f9f9; }
.service-line-block.third-party-services > header { background: #f8f3f8; }
.service-line-block > header strong, .service-line-block > header span { display: block; }
.service-line-block > header strong { color: #35454a; font-size: 14px; }
.service-line-block > header span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.service-line-empty { padding: 14px 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }
.service-line-assignment { grid-column: 1 / -1; min-height: 45px; display: grid; grid-template-columns: minmax(180px,.7fr) minmax(160px,.6fr) minmax(240px,1fr) auto; align-items: end; gap: 9px; padding: 8px 9px; border-left: 3px solid var(--primary); background: #f8f3f8; }
.service-line-assignment.own { grid-template-columns: 1fr; border-left-color: #367b7f; background: #f2f8f7; }
.service-line-assignment > span { align-self: center; display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: center; gap: 7px; color: #4a3350; }
.service-line-assignment.own > span { color: #275f62; }
.service-line-assignment svg { width: 17px; height: 17px; }
.service-line-assignment strong, .service-line-assignment small { display: block; }
.service-line-assignment small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.service-line-assignment > label { margin: 0; color: #665b68; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.service-line-assignment > label select { display: block; margin-top: 4px; text-transform: none; }
.price-information-line-head, .price-information-line { display: grid; grid-template-columns: minmax(145px,1fr) minmax(210px,1.45fr) 70px 82px 100px 74px 105px 34px; align-items: center; gap: 7px; padding: 8px 10px; }
.price-information-line-head { min-height: 34px; padding-top: 5px; padding-bottom: 5px; border-bottom: 1px solid var(--line); background: #f5f7f8; color: #66757a; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.price-information-line { border-bottom: 1px solid #e8e4e8; }
.price-information-line:last-child { border-bottom: 0; }
.price-information-line input, .price-information-line select { width: 100%; min-width: 0; height: 36px; padding: 6px 7px; border: 1px solid #c3ced1; border-radius: 4px; background: #fff; color: #26363b; font-size: 13px; }
.price-information-line output { color: #3d4b50; font-size: 12px; font-weight: 700; text-align: right; white-space: nowrap; }
.price-information-totals { min-height: 52px; display: flex; align-items: center; justify-content: flex-end; gap: 22px; padding: 8px 13px; border-top: 1px solid var(--line); background: #fafbfb; color: #637278; font-size: 12px; }
.price-information-totals strong { margin-left: 6px; color: #344349; font-size: 14px; }
.price-information-totals span:last-child { padding-left: 20px; border-left: 1px solid #d9dfe1; }
.price-information-totals span:last-child strong { color: var(--primary); font-size: 17px; }
.price-information-detail { display: grid; grid-template-columns: minmax(210px,.55fr) minmax(420px,1.45fr); gap: 18px; }
.price-information-address { padding: 15px; border-left: 3px solid var(--primary); background: #f8f4f8; }
.price-information-address span, .price-information-address strong { display: block; }
.price-information-address span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.price-information-address strong { margin-top: 8px; color: #3d2f40; font-size: 16px; }
.price-information-address p { margin: 8px 0 0; color: #5d696d; font-size: 13px; line-height: 1.55; }
.price-information-facts { display: grid; grid-template-columns: repeat(2,1fr); border: 1px solid var(--line); }
.price-information-facts > div { min-height: 64px; padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-information-facts > div:nth-child(even) { border-right: 0; }
.price-information-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.price-information-facts span, .price-information-facts strong { display: block; }
.price-information-facts span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.price-information-facts strong { margin-top: 7px; color: #344349; font-size: 13px; }
.price-information-intro, .price-information-detail-table, .price-information-detail-total, .price-information-detail > .analysis-message, .price-review-comparison, .service-group-details { grid-column: 1 / -1; }
.service-group-details { display: grid; gap: 13px; }
.service-group-detail { overflow: hidden; border: 1px solid var(--line); background: #fff; }
.service-group-detail > header { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; background: #f6f8f8; }
.service-group-detail:nth-child(2) > header { background: #f8f3f8; }
.service-group-detail > header strong, .service-group-detail > header span { display: block; }
.service-group-detail > header strong { color: #35454a; font-size: 14px; }
.service-group-detail > header span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.service-group-detail > header b { color: var(--primary); font-size: 15px; white-space: nowrap; }
.service-group-detail-table { min-width: 720px; }
.service-group-detail-table th:first-child, .service-group-detail-table td:first-child { width: 48px; text-align: center; }
.service-group-empty { padding: 12px; border: 1px dashed #d7cbd8; color: var(--muted); font-size: 12px; text-align: center; }
.price-information-intro { margin: 2px 0 0; color: #526166; font-size: 13px; line-height: 1.55; }
.price-information-detail-total { display: flex; align-items: center; justify-content: flex-end; gap: 18px; color: #68777b; font-size: 12px; }
.price-information-detail-total strong { padding-left: 18px; border-left: 1px solid var(--line); color: var(--primary); font-size: 17px; }
.price-review-comparison { border:1px solid #d8c5da; background:#faf7fa; }
.price-review-comparison > header { display:flex; align-items:center; gap:10px; padding:10px 12px; border-bottom:1px solid #e3d6e4; }
.price-review-comparison > header > span { width:34px; height:34px; display:grid; place-items:center; background:var(--primary); color:#fff; }
.price-review-comparison > header svg { width:17px; height:17px; }
.price-review-comparison > header strong,.price-review-comparison > header small { display:block; }
.price-review-comparison > header small { margin-top:2px; color:var(--muted); font-size:11px; }
.price-review-comparison > div { display:grid; grid-template-columns:repeat(5,1fr); }
.price-review-comparison > div > span { padding:10px 12px; border-right:1px solid #e3d6e4; }
.price-review-comparison > div > span:last-child { border-right:0; }
.price-review-comparison small,.price-review-comparison strong { display:block; }
.price-review-comparison small { color:var(--muted); font-size:10px; text-transform:uppercase; }
.price-review-comparison strong { margin-top:5px; font-size:14px; }
.death-place-controls { display: grid; grid-template-columns: minmax(230px,1.15fr) minmax(190px,.85fr); gap: 8px; }
.death-place-controls input[readonly] { border-color: #d8c4da; background: #f8f3f8; color: #5f3164; font-weight: 650; }
.institution-preview { min-height: 50px; display: flex; align-items: center; gap: 11px; margin-top: 8px; padding: 9px 11px; border-left: 3px solid var(--accent); background: #f7f2f7; color: #4e3b51; }
.institution-preview.hidden { display: none; }
.institution-preview > span:last-child { min-width: 0; }
.institution-preview strong, .institution-preview small { display: block; }
.institution-preview strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.institution-preview small { margin-top: 4px; color: #6d5c70; font-size: 12px; line-height: 1.45; }
.institution-kind { flex: 0 0 auto; padding: 5px 7px; border-radius: 3px; background: #643182; color: #fff; font-size: 11px; font-weight: 750; text-transform: uppercase; }
.case-event-editor { grid-column: 1 / -1; overflow: hidden; border: 1px solid #d8dfe1; border-radius: 5px; background: #fff; }
.case-event-editor > header { min-height: 58px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #faf7fa; }
.case-event-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 4px; background: #643182; color: #fff; }
.case-event-mark svg { width: 16px; height: 16px; }
.case-event-editor > header strong, .case-event-editor > header small { display: block; }
.case-event-editor > header strong { font-size: 15px; }
.case-event-editor > header small { margin-top: 3px; color: #5f6f74; font-size: 12px; }
.case-event-editor > header output { padding: 6px 9px; border: 1px solid #d7c7d9; border-radius: 3px; background: #fff; color: #713077; font-size: 12px; font-weight: 750; }
.case-event-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 14px; padding: 13px; }
.case-event-grid .field.full { grid-column: 1 / -1; }
.case-event-source > div { display: grid; grid-template-columns: minmax(0,1fr) 42px auto; gap: 6px; }
.case-event-source .button { min-height: 36px; white-space: nowrap; }
.case-event-guidance { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding-top: 11px; border-top: 1px solid #edf0f1; }
.case-event-officiant label span, .preneed-officiants label span { color: var(--muted); font-size: 11px; font-weight: 500; }
.case-event-officiant > small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.case-event-editor > .institution-preview { margin: 0 13px 13px; }
.case-event-decoration-bar { min-height:58px; display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:10px; margin:0 13px 13px; padding:9px 10px; border:1px solid #ddd2df; border-left:3px solid var(--primary); border-radius:4px; background:#faf7fa; }
.case-event-decoration-icon { width:32px; height:32px; display:grid; place-items:center; border-radius:4px; background:#eee3ef; color:var(--primary); }
.case-event-decoration-icon svg { width:16px; height:16px; }
.case-event-decoration-bar > span:nth-child(2) { min-width:0; }
.case-event-decoration-bar strong,.case-event-decoration-bar small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.case-event-decoration-bar strong { color:#443047; font-size:13px; }
.case-event-decoration-bar small { margin-top:3px; color:var(--muted); font-size:11px; }
.case-event-decoration-bar .button { min-height:36px; white-space:nowrap; }
.preneed-officiants { grid-column: 1 / -1; width: 100%; overflow: hidden; border: 1px solid #d8dfe1; border-radius: 5px; background: #fff; }
.preneed-officiants > header { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #faf7fa; }
.preneed-officiants > header > span { width: 32px; height: 32px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 4px; background: #643182; color: #fff; }
.preneed-officiants > header svg { width: 16px; height: 16px; }
.preneed-officiants > header strong, .preneed-officiants > header small { display: block; }
.preneed-officiants > header strong { font-size: 15px; }
.preneed-officiants > header small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.preneed-officiants > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 13px; }
.preneed-officiant-plan { min-width: 0; display: grid; gap: 11px; padding: 11px; border-left: 3px solid #b99b43; background: #fbfaf6; }
.preneed-officiant-plan > strong { color: #413d42; font-size: 13px; }
.preneed-officiant-plan .field > small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.bereavement-notification { container-type: inline-size; overflow: hidden; border: 1px solid #d6dfe1; border-left: 4px solid #643182; border-radius: 5px; background: #fff; }
.bereavement-notification > header { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; background: #faf7fa; }
.bereavement-notification > header > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 4px; background: #643182; color: #fff; }
.bereavement-notification > header > span svg { width: 16px; height: 16px; }
.bereavement-notification > header strong, .bereavement-notification > header small { display: block; }
.bereavement-notification > header strong { font-size: 15px; }
.bereavement-notification > header small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.bereavement-notification > header .toggle-row { min-width: 150px; margin: 0; padding: 0; border: 0; background: transparent; }
.bereavement-notification-body { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(260px,100%),1fr)); align-items: end; gap: 14px; padding: 13px; border-top: 1px solid var(--line); }
.bereavement-notification-body.inactive { opacity: .62; }
.bereavement-notification-status { min-width: 0; min-height: 38px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px; }
.bereavement-notification-status small { min-width: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; line-height: 1.4; }
@container (max-width: 560px) {
  .bereavement-notification-body { grid-template-columns: 1fr; }
  .bereavement-notification-status { grid-template-columns: auto minmax(0,1fr); }
  .bereavement-notification-status .button { grid-column: 1 / -1; justify-self: start; }
}
@container (max-width: 400px) {
  .bereavement-notification > header { grid-template-columns: 34px minmax(0,1fr); }
  .bereavement-notification > header .toggle-row { grid-column: 2; justify-self: start; }
}
.cemetery-selection-preview { min-width: 0; min-height: 47px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-left: 3px solid var(--accent); background: #faf7fa; }
.cemetery-selection-preview.hidden { display: none; }
.cemetery-selection-preview > span:last-child { min-width: 0; }
.cemetery-selection-preview strong, .cemetery-selection-preview small { display: block; }
.cemetery-selection-preview strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.cemetery-selection-preview small { margin-top: 4px; color: #6d5c70; font-size: 12px; line-height: 1.45; }
.grave-location-fields { grid-column: 1 / -1; width: 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 15px; padding: 12px 14px 14px; border-left: 3px solid #b99b43; background: #fbfaf6; }
.grave-location-fields > header { grid-column: 1 / -1; display: grid; grid-template-columns: 32px minmax(0,1fr); align-items: center; gap: 9px; }
.grave-location-fields > header > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 4px; background: #f1ead6; color: #80671d; }
.grave-location-fields > header svg { width: 16px; height: 16px; }
.grave-location-fields > header strong, .grave-location-fields > header small { display: block; }
.grave-location-fields > header strong { color: #3f4140; font-size: 13px; }
.grave-location-fields > header small { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.cemetery-catalog { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.cemetery-catalog-head, .cemetery-fee-editor-head { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.cemetery-catalog-head strong, .cemetery-catalog-head span, .cemetery-fee-editor-head strong, .cemetery-fee-editor-head span { display: block; }
.cemetery-catalog-head strong, .cemetery-fee-editor-head strong { font-size: 14px; }
.cemetery-catalog-head span, .cemetery-fee-editor-head span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.cemetery-catalog-summary { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 10px; border: 1px solid var(--line); background: #fafbfb; }
.cemetery-catalog-summary > div { min-height: 55px; padding: 9px 11px; border-right: 1px solid var(--line); }
.cemetery-catalog-summary > div:last-child { border-right: 0; }
.cemetery-catalog-summary span, .cemetery-catalog-summary strong { display: block; }
.cemetery-catalog-summary span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.cemetery-catalog-summary strong { margin-top: 5px; color: var(--accent); font-size: 17px; }
.crematory-fee-master-list { overflow: hidden; border: 1px solid #d8dfe1; border-radius: 5px; background: #fff; }
.crematory-fee-master-row { min-height: 58px; display: grid; grid-template-columns: 116px minmax(0,1fr) 110px 72px 32px; align-items: center; gap: 10px; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.crematory-fee-master-row:last-child { border-bottom: 0; }
.crematory-fee-master-row.inactive { opacity: .64; background: #fafafa; }
.crematory-fee-description { min-width: 0; }
.crematory-fee-description strong, .crematory-fee-description small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crematory-fee-description strong { font-size: 12px; }
.crematory-fee-description small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.crematory-fee-price { color: #56305b; font-size: 12px; text-align: right; }
.registry-office-fee-list { overflow: hidden; border: 1px solid #d8dfe1; border-radius: 5px; background: #fff; }
.registry-office-fee-row { min-height: 60px; display: grid; grid-template-columns: 34px minmax(0,1fr) 120px 72px; align-items: center; gap: 10px; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.registry-office-fee-row:last-child { border-bottom: 0; }
.registry-office-fee-row.inactive { opacity: .62; background: #fafafa; }
.registry-office-fee-row > span:nth-child(2) { min-width: 0; }
.registry-office-fee-row > span:nth-child(2) strong, .registry-office-fee-row > span:nth-child(2) small { display: block; }
.registry-office-fee-row > span:nth-child(2) strong { color: #344449; font-size: 13px; }
.registry-office-fee-row > span:nth-child(2) small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.registry-office-fee-row > strong { color: #56305b; font-size: 12px; text-align: right; }
.registry-certificate-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 4px; background: #eee2ef; color: var(--primary); }
.registry-certificate-icon svg { width: 16px; height: 16px; }
.registry-office-fee-editor { border: 1px solid var(--line); background: #fff; }
.registry-office-fee-editor > header { min-height: 58px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #faf7fa; }
.registry-office-fee-editor > header strong, .registry-office-fee-editor > header span { display: block; }
.registry-office-fee-editor > header strong { color: #403044; font-size: 14px; }
.registry-office-fee-editor > header span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.registry-office-fee-editor-labels { display: grid; grid-template-columns: minmax(260px,1fr) 190px 150px 90px; gap: 10px; padding: 7px 12px 6px 56px; border-bottom: 1px solid var(--line); background: #f5f7f8; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.registry-office-fee-editor-row { min-height: 76px; display: grid; grid-template-columns: 34px minmax(210px,1fr) 190px 150px 90px; align-items: end; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.registry-office-fee-editor-row:last-child { border-bottom: 0; }
.registry-office-fee-editor-row.inactive { background: #fafafa; }
.registry-office-fee-editor-row.fee-free { background: #f4f8f7; }
.registry-office-fee-name { align-self: center; min-width: 0; }
.registry-office-fee-name strong, .registry-office-fee-name small { display: block; }
.registry-office-fee-name strong { color: #344449; font-size: 13px; }
.registry-office-fee-name small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.registry-office-fee-editor-row > label { margin: 0; color: #59686d; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.registry-office-fee-editor-row > label select, .registry-office-fee-editor-row > label .money-input { margin-top: 5px; }
.registry-office-fee-editor-row select, .registry-office-fee-editor-row input[type="number"] { width: 100%; min-height: 37px; padding: 6px 8px; border: 1px solid #c8d2d5; border-radius: 4px; background: #fff; color: #2e3d42; font-size: 13px; text-transform: none; }
.registry-office-fee-editor-row input:disabled { background: #edf3f2; color: #728085; }
.registry-office-fee-active { align-self: center; display: grid; justify-items: start; gap: 7px; }
.certificate-order { overflow: hidden; border: 1px solid #d5dddf; border-radius: 5px; background: #fff; }
.certificate-order.full { grid-column: 1 / -1; width: 100%; }
.certificate-order > header { min-height: 60px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px 13px; border-bottom: 1px solid #dfe4e5; background: #faf7fa; }
.certificate-order > header > span { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: var(--primary); }
.certificate-order > header svg { width: 18px; height: 18px; }
.certificate-order > header strong,.certificate-order > header small { display: block; }
.certificate-order > header strong { color: #382e3b; font-size: 14px; }
.certificate-order > header small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.certificate-order > header output { color: var(--primary); font-size: 13px; font-weight: 800; }
.certificate-order-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.certificate-order-item { min-width: 0; min-height: 82px; display: grid; grid-template-columns: 34px minmax(0,1fr) 70px; align-items: center; gap: 9px; margin: 0; padding: 10px 12px; border-right: 1px solid #e2e7e8; border-bottom: 1px solid #e2e7e8; }
.certificate-order-item:nth-child(3n) { border-right: 0; }
.certificate-order-item > span:nth-child(2) { min-width: 0; }
.certificate-order-item strong,.certificate-order-item small { display: block; }
.certificate-order-item strong { color: #344449; font-size: 12px; line-height: 1.35; }
.certificate-order-item small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.certificate-order-item input { width: 70px; min-height: 38px; padding: 6px 7px; border: 1px solid #c8d2d5; border-radius: 4px; background: #fff; color: #29383d; font-size: 14px; font-weight: 700; text-align: center; }
.certificate-order-item input:disabled { background: #edf1f2; color: #929da0; }
.certificate-order-summary { min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 9px 13px; background: #f7faf9; }
.certificate-order-summary > svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--primary); }
.certificate-order-summary strong,.certificate-order-summary small { display: block; }
.certificate-order-summary strong { color: #344449; font-size: 12px; }
.certificate-order-summary small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.cemetery-grave-list { display: grid; gap: 10px; }
.cemetery-grave-type { overflow: hidden; border: 1px solid #d8dfe1; border-radius: 5px; background: #fff; }
.cemetery-grave-type.inactive { opacity: .72; }
.cemetery-grave-type > header { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border-bottom: 1px solid var(--line); background: #f7f8f9; }
.cemetery-grave-type > header > div:last-child { display: flex; align-items: center; gap: 5px; }
.cemetery-grave-type > header strong, .cemetery-grave-type > header span { display: block; }
.cemetery-grave-type > header strong { font-size: 13px; }
.cemetery-grave-type > header span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.cemetery-fee-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.cemetery-fee-list > div { min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cemetery-fee-list > div:nth-child(2n) { border-right: 0; }
.cemetery-fee-list > div > span { min-width: 0; }
.cemetery-fee-list strong, .cemetery-fee-list small { display: block; }
.cemetery-fee-list strong { font-size: 12px; }
.cemetery-fee-list > div > strong { flex: 0 0 auto; color: #56305b; }
.cemetery-fee-list small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.cemetery-grave-type > footer { min-height: 40px; display: grid; grid-template-columns: auto auto minmax(120px,1fr); align-items: center; gap: 9px; padding: 7px 11px; background: #faf7fa; }
.cemetery-grave-type > footer > span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.cemetery-grave-type > footer > strong { color: var(--accent); font-size: 13px; }
.cemetery-grave-type > footer > small { overflow: hidden; color: var(--muted); font-size: 11px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.cemetery-gardener-head { min-height: 46px; display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; padding-top:14px; border-top:1px solid var(--line); }
.cemetery-gardener-head strong,.cemetery-gardener-head span { display:block; }
.cemetery-gardener-head strong { color:#403044; font-size:14px; }
.cemetery-gardener-head span { margin-top:3px; color:var(--muted); font-size:11px; }
.cemetery-gardener-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:9px; }
.cemetery-gardener-list article { min-width:0; min-height:72px; display:grid; grid-template-columns:38px minmax(0,1fr) 32px; align-items:center; gap:9px; padding:9px 10px; border:1px solid #d8dfe1; border-radius:5px; background:#fff; }
.cemetery-gardener-list article > div { min-width:0; }
.cemetery-gardener-list article strong,.cemetery-gardener-list article span,.cemetery-gardener-list article small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cemetery-gardener-list article strong { color:#344449; font-size:13px; }
.cemetery-gardener-list article span,.cemetery-gardener-list article small { margin-top:3px; color:var(--muted); font-size:11px; }
.cemetery-gardener-mark,.cemetery-gardener-editor-mark { width:36px; height:36px; display:grid; place-items:center; flex:0 0 auto; border-radius:4px; background:#eee2ef; color:var(--primary); }
.cemetery-gardener-mark svg,.cemetery-gardener-editor-mark svg { width:18px; height:18px; }
.cemetery-gardener-editor { border:1px solid var(--line); background:#fff; }
.cemetery-gardener-editor > header { min-height:70px; display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:11px; padding:10px 12px; border-bottom:1px solid var(--line); background:#faf7fa; }
.cemetery-gardener-editor > header strong,.cemetery-gardener-editor > header span { display:block; }
.cemetery-gardener-editor > header strong { color:#403044; font-size:14px; }
.cemetery-gardener-editor > header span { margin-top:3px; color:var(--muted); font-size:11px; }
.cemetery-gardener-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:10px; }
.cemetery-gardener-option { min-width:0; min-height:78px; display:grid; grid-template-columns:18px 36px minmax(0,1fr) auto; align-items:center; gap:9px; margin:0; padding:9px 10px; border:1px solid #d8dfe1; border-radius:4px; background:#fff; color:var(--text); cursor:pointer; text-transform:none; }
.cemetery-gardener-option:has(input:checked) { border-color:#a46baa; background:#fbf7fb; box-shadow:inset 3px 0 var(--primary); }
.cemetery-gardener-option > input { width:15px; height:15px; accent-color:var(--primary); }
.cemetery-gardener-option > span:nth-child(3) { min-width:0; }
.cemetery-gardener-option strong,.cemetery-gardener-option small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cemetery-gardener-option strong { font-size:13px; }
.cemetery-gardener-option small { margin-top:3px; color:var(--muted); font-size:11px; font-weight:500; }
.appointment-decoration { grid-column:1 / -1; overflow:hidden; margin-top:4px; border:1px solid #d8cddd; border-left:3px solid var(--primary); border-radius:5px; background:#fff; }
.appointment-decoration.hidden { display:none; }
.appointment-decoration > header { min-height:66px; display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:11px; padding:10px 12px; border-bottom:1px solid #e4dbe6; background:#faf7fa; }
.appointment-decoration > header > div { min-width:0; }
.appointment-decoration > header strong,.appointment-decoration > header span { display:block; }
.appointment-decoration > header strong { color:#403044; font-size:14px; }
.appointment-decoration > header > div > span { margin-top:3px; color:var(--muted); font-size:11px; }
.appointment-decoration > header .toggle-row { min-width:190px; margin:0; }
.appointment-decoration-mark { width:36px; height:36px; display:grid; place-items:center; border-radius:4px; background:var(--primary); color:#fff; }
.appointment-decoration-mark svg { width:18px; height:18px; }
.appointment-decoration-availability { min-height:52px; display:flex; align-items:center; gap:9px; padding:8px 12px; border-bottom:1px solid var(--line); }
.appointment-decoration-availability > svg { width:18px; height:18px; flex:0 0 auto; }
.appointment-decoration-availability.ready { color:#315f55; background:#f1f8f6; }
.appointment-decoration-availability.missing { color:#7b5720; background:#fff9ed; }
.appointment-decoration-availability strong,.appointment-decoration-availability small { display:block; }
.appointment-decoration-availability strong { font-size:12px; }
.appointment-decoration-availability small { margin-top:2px; color:inherit; font-size:11px; opacity:.82; }
.appointment-decoration-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px 14px; padding:12px; }
.appointment-decoration-fields.disabled { opacity:.62; background:#fafafa; }
.appointment-decoration-fields > .full { grid-column:1 / -1; }
.appointment-decoration-event-summary { min-height:58px; display:grid; align-content:center; gap:5px; padding:8px 10px; border:1px solid #ddd2df; border-radius:4px; background:#faf7fa; }
.appointment-decoration-event-summary.combined { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.appointment-decoration-event-summary > span { min-width:0; }
.appointment-decoration-event-summary.combined > span + span { padding-left:9px; border-left:1px solid #dfd3e1; }
.appointment-decoration-event-summary strong,.appointment-decoration-event-summary small { display:block; }
.appointment-decoration-event-summary strong { color:var(--primary); font-size:11px; }
.appointment-decoration-event-summary small { margin-top:3px; color:#536166; font-size:11px; line-height:1.35; }
.appointment-gardener-preview { min-width:0; min-height:56px; display:flex; align-items:center; gap:9px; padding:8px 10px; border:1px solid #ddd2df; border-radius:4px; background:#faf7fa; }
.appointment-gardener-preview.hidden { visibility:hidden; }
.appointment-gardener-preview > span:last-child { min-width:0; }
.appointment-gardener-preview strong,.appointment-gardener-preview small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.appointment-gardener-preview strong { color:#443047; font-size:12px; }
.appointment-gardener-preview small { margin-top:3px; color:var(--muted); font-size:11px; }
.appointment-decoration-status { min-height:54px; display:flex; align-items:center; gap:10px; padding:9px 10px; border-top:1px solid #e3d8e5; background:#faf7fa; }
.appointment-decoration-status > div { min-width:0; }
.appointment-decoration-status strong,.appointment-decoration-status small { display:block; }
.appointment-decoration-status strong { font-size:12px; }
.appointment-decoration-status small { margin-top:3px; color:var(--muted); font-size:11px; }
.cemetery-fee-editor { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.cemetery-fee-editor-labels, .cemetery-fee-editor-row { display: grid; grid-template-columns: 125px minmax(160px,1fr) 105px 150px 102px 32px; align-items: center; gap: 7px; }
.cemetery-fee-editor-labels { padding: 0 5px 5px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.cemetery-fee-editor-row { min-height: 52px; padding: 7px 5px; border-top: 1px solid var(--line); }
.cemetery-fee-editor-row select, .cemetery-fee-editor-row input { width: 100%; min-width: 0; min-height: 35px; padding: 6px 8px; border: 1px solid #cbd4d7; border-radius: 4px; background: #fff; color: #26363b; }
.cemetery-fee-editor-row select:focus, .cemetery-fee-editor-row input:focus { border-color: var(--accent-2); outline: none; box-shadow: 0 0 0 2px rgba(54,123,127,.1); }
.money-input { position: relative; }
.money-input input { padding-right: 25px; }
.money-input > span { position: absolute; top: 50%; right: 9px; color: var(--muted); font-size: 12px; transform: translateY(-50%); }
.cemetery-optional { min-height: 35px; display: flex; align-items: center; gap: 6px; color: #4b5b60; font-size: 11px; }
.cemetery-optional input { width: 14px; min-height: 14px; accent-color: var(--accent); }
.cemetery-fee-total { min-height: 46px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 8px 44px 8px 10px; border-top: 1px solid var(--line); background: #faf7fa; }
.cemetery-fee-total span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.cemetery-fee-total strong { min-width: 90px; color: var(--accent); font-size: 15px; text-align: right; }
.form-section { margin: 22px 0 11px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.form-section.full { grid-column: 1 / -1; }
.master-conditional-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 15px; padding: 2px 0 2px 16px; border-left: 3px solid rgba(128,52,137,.24); }
.master-conditional-fields.full { grid-column: 1 / -1; width: 100%; }
.master-conditional-fields.inactive { opacity: .58; }
.death-administrative-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 15px; align-items: start; width: 100%; padding: 12px 14px; border: 1px solid #d7dfe1; border-left: 4px solid rgba(128,52,137,.55); border-radius: 4px; background: #faf8fa; }
.death-administrative-fields > .field { min-width: 0; }
.crematorium-case-fields { grid-column: 1 / -1; width: 100%; display: grid; grid-template-columns:minmax(280px,1fr) minmax(280px,1fr); gap:12px 15px; padding:12px 14px 14px; border:1px solid #d7dfe1; border-left:3px solid var(--primary); background:#faf7fa; }
.crematorium-case-fields > header { display:grid; grid-template-columns:32px minmax(0,1fr); align-items:center; gap:9px; }
.crematorium-case-fields > header > span { width:32px; height:32px; display:grid; place-items:center; border-radius:4px; background:#efe3f0; color:var(--primary); }
.crematorium-case-fields > header svg { width:16px; height:16px; }
.crematorium-case-fields > header strong,.crematorium-case-fields > header small { display:block; }
.crematorium-case-fields > header strong { color:#3f4140; font-size:13px; }
.crematorium-case-fields > header small { margin-top:2px; color:var(--muted); font-size:11px; line-height:1.35; }
.explicit-unknown-field { display: grid; grid-template-columns: minmax(0,1fr); align-content: start; gap: 6px; }
.explicit-unknown-field > label:first-child,.explicit-unknown-field > input:first-of-type { grid-column: 1; }
.explicit-unknown-field > input[readonly],.explicit-unknown-field > input:disabled { background: #f5f1f5; color: #66306c; opacity: 1; }
.field .explicit-unknown-option { grid-column: 1; min-height: 24px; width: max-content; display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 2px 4px 2px 1px; border: 0; background: transparent; color: #65306c; font-size: 12px; font-weight: 700; line-height: 1.2; text-transform: none; cursor: pointer; white-space: nowrap; }
.field .explicit-unknown-option input { width: 16px; min-height: 16px; margin: 0; padding: 0; accent-color: var(--primary); }
.civil-register-evidence-panel { border: 1px solid #d5dddf; background: #fff; }
.civil-register-evidence-panel > header { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-bottom: 1px solid #dfe4e5; background: #f8f9f9; }
.civil-register-evidence-panel > header > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; color: #fff; background: var(--primary); }
.civil-register-evidence-panel > header svg,.civil-register-evidence-icon svg { width: 17px; height: 17px; }
.civil-register-evidence-panel > header strong,.civil-register-evidence-panel > header small { display: block; }
.civil-register-evidence-panel > header strong { color: #2c3b40; font-size: 14px; }
.civil-register-evidence-panel > header small { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.civil-register-evidence-list { display: grid; }
.civil-register-evidence-row { min-width: 0; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 11px 13px; border-bottom: 1px solid #e3e7e8; }
.civil-register-evidence-row:last-child { border-bottom: 0; }
.civil-register-evidence-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--primary); background: #f3eaf4; }
.civil-register-evidence-row strong,.civil-register-evidence-row span,.civil-register-evidence-row small { display: block; }
.civil-register-evidence-row strong { color: #2e3d42; font-size: 13px; }
.civil-register-evidence-row span { margin-top: 2px; color: #526268; font-size: 12px; }
.civil-register-evidence-row small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.civil-register-mail-preview { border: 1px solid #d6dddf; background: #fff; }
.civil-register-mail-preview > header { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(280px,1.2fr); border-bottom: 1px solid #dce2e3; background: #f8f9f9; }
.civil-register-mail-preview > header > div { min-width: 0; padding: 12px 14px; border-right: 1px solid #dce2e3; }
.civil-register-mail-preview > header > div:last-child { border-right: 0; }
.civil-register-mail-preview span,.civil-register-mail-preview strong,.civil-register-mail-preview small { display: block; }
.civil-register-mail-preview span { color: #6a777b; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.civil-register-mail-preview strong { margin-top: 4px; color: #2c3b40; font-size: 14px; line-height: 1.4; }
.civil-register-mail-preview small { margin-top: 2px; color: #647176; font-size: 12px; }
.civil-register-mail-preview > section { padding: 15px 17px 18px; }
.civil-register-mail-preview > section > div { margin-top: 9px; color: #314146; font-size: 14px; line-height: 1.6; }
.civil-register-mail-preview > footer { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-top: 1px solid #e1e5e6; background: #faf7fa; color: #67466c; font-size: 12px; line-height: 1.4; }
.civil-register-mail-preview > footer svg { width: 17px; height: 17px; flex: 0 0 17px; }
.death-time-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px 15px; padding: 12px; border: 1px solid #d7dfe1; border-radius: 4px; background: #f8faf9; }
.death-time-fields.full { grid-column: 1 / -1; width: 100%; }
.death-time-fields.exact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.death-time-fields > div[data-death-range-end] > .field { height: 100%; }
.master-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 10px; border: 1px solid #c3ced1; border-radius: 4px; background: #fff; }
.master-choice-grid label { display: flex; align-items: center; gap: 8px; min-height: 33px; margin: 0; padding: 5px 7px; border-radius: 3px; color: #34444a; font-size: 14px; font-weight: 600; line-height: 1.3; text-transform: none; cursor: pointer; }
.master-choice-grid label:hover { background: #f5eef6; }
.master-choice-grid input { width: 17px; min-height: 17px; margin: 0; padding: 0; flex: 0 0 17px; accent-color: var(--accent); }
.registry-data-sheet-panel { margin-bottom: 24px; border: 1px solid #d7dddf; border-left: 4px solid var(--accent); background: #fff; box-shadow: 0 8px 24px rgba(49,37,51,.06); }
.registry-data-sheet-panel > header { display: grid; grid-template-columns: 42px minmax(260px,1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; border-bottom: 1px solid #ded4df; background: linear-gradient(100deg,#fbf7fb 0,#fff 72%); }
.registry-data-sheet-icon { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--accent); }
.registry-data-sheet-icon svg { width: 20px; height: 20px; }
.registry-data-sheet-panel > header small,.registry-data-sheet-panel > header strong,.registry-data-sheet-panel > header p { display: block; }
.registry-data-sheet-panel > header small { margin-bottom: 3px; color: #8a658e; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.registry-data-sheet-panel > header strong { color: #2c383d; font-size: 17px; }
.registry-data-sheet-panel > header p { max-width: 800px; margin: 4px 0 0; color: #617075; font-size: 13px; line-height: 1.45; }
.registry-data-sheet-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-bottom: 1px solid #dfe4e5; }
.registry-data-sheet-facts > div { min-width: 0; padding: 14px 16px; border-right: 1px solid #e2e6e7; }
.registry-data-sheet-facts > div:last-child { border-right: 0; }
.registry-data-sheet-facts span,.registry-data-sheet-facts strong,.registry-data-sheet-facts small { display: block; overflow-wrap: anywhere; }
.registry-data-sheet-facts span { color: #748084; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.registry-data-sheet-facts strong { margin-top: 5px; color: #2d3b40; font-size: 14px; line-height: 1.35; }
.registry-data-sheet-facts small { margin-top: 3px; color: #69767a; font-size: 12px; line-height: 1.4; }
.registry-data-sheet-panel > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; background: #fafbfb; }
.registry-data-sheet-panel > footer > div { display: flex; flex-wrap: wrap; gap: 8px; }
.registry-data-sheet-history { padding: 0 16px 12px; border-top: 1px solid #e1e5e6; }
.registry-data-sheet-history > strong { display: block; padding: 11px 0 7px; color: #526167; font-size: 12px; text-transform: uppercase; }
.registry-data-sheet-history > div { display: grid; grid-template-columns: 28px minmax(0,1fr) auto auto; gap: 9px; align-items: center; padding: 8px 0; border-top: 1px solid #e6e9ea; }
.registry-data-sheet-history > div > span { color: var(--accent); }
.registry-data-sheet-history > div > span svg { width: 18px; height: 18px; }
.registry-data-sheet-history > div strong,.registry-data-sheet-history > div small { display: block; }
.registry-data-sheet-history > div strong { color: #344349; font-size: 13px; }
.registry-data-sheet-history > div small { margin-top: 2px; color: #6d797d; font-size: 12px; }
.registry-data-sheet-preview .death-notice-preview-grid > div { min-height: 64px; }
.death-notice-toolbar { align-items: flex-start; }
.death-notice-progress { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; margin: 14px 0 18px; padding: 13px 15px; border: 1px solid #d9dfe1; border-left: 4px solid var(--accent); background: #fafbfb; }
.death-notice-progress > div { display: flex; align-items: center; justify-content: space-between; }
.death-notice-progress span,.death-notice-progress small { color: var(--muted); font-size: 13px; }
.death-notice-progress strong { color: var(--accent); font-size: 17px; }
.death-notice-progress i { width: 170px; height: 7px; align-self: center; border-radius: 4px; background: #e3e7e8; overflow: hidden; }
.death-notice-progress i b { display: block; height: 100%; background: var(--accent); }
.death-notice-progress small { grid-column: 1 / -1; }
.death-notice-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.death-notice-columns > section { padding: 0; border: 1px solid var(--line); background: #fff; }
.death-notice-columns > section > header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f8f9f9; }
.death-notice-columns > section > header strong { color: #27373c; font-size: 15px; }
.death-notice-columns > section > header span { color: var(--muted); font-size: 12px; text-align: right; }
.death-notice-columns > section > .button { margin: 4px 12px 12px; }
.death-notice-checks { padding: 4px 12px; }
.death-notice-checks > div { display: grid; grid-template-columns: 27px 1fr; gap: 9px; align-items: center; min-height: 52px; border-bottom: 1px solid #e5e9ea; }
.death-notice-checks > div:last-child { border-bottom: 0; }
.death-notice-checks > div > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #a65b55; font-size: 12px; font-weight: 800; }
.death-notice-checks > div > span svg { width: 14px; height: 14px; }
.death-notice-checks > div.complete > span { background: #3c8065; }
.death-notice-checks > div.pending > span { color: #7d671c; background: #f0e8bf; }
.death-notice-checks strong,.death-notice-checks small { display: block; }
.death-notice-checks strong { color: #2f3f44; font-size: 13px; }
.death-notice-checks small { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.death-notice-history-head { margin-top: 22px; }
.death-notice-legal { margin-top: 14px; padding: 10px 12px; border-left: 3px solid #c6a15b; background: #faf8f4; color: #5f6668; font-size: 12px; line-height: 1.5; }
.international-evidence-panel { margin-top: 18px; border: 1px solid #d6dcde; background: #fff; }
.international-evidence-panel > header { display: grid; grid-template-columns: 36px minmax(260px,1fr) auto auto; gap: 12px; align-items: center; padding: 13px 15px; border-bottom: 1px solid #dfe4e5; background: #f8f9f9; }
.international-evidence-panel.enabled > header { border-left: 4px solid var(--accent); padding-left: 11px; background: #faf7fa; }
.international-evidence-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--accent); }
.international-evidence-icon svg { width: 18px; height: 18px; }
.international-evidence-panel > header strong,.international-evidence-panel > header small { display: block; }
.international-evidence-panel > header strong { color: #2b3a3f; font-size: 15px; }
.international-evidence-panel > header small { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.international-evidence-switch { display: flex; align-items: center; gap: 8px; margin: 0; color: #4a595e; font-size: 13px; font-weight: 700; text-transform: none; cursor: pointer; }
.international-evidence-switch input { width: 18px; min-height: 18px; margin: 0; accent-color: var(--accent); }
.international-evidence-suggestion { display: flex; gap: 9px; align-items: center; padding: 10px 15px; border-bottom: 1px solid #e5d7b9; color: #72541d; background: #fffaf0; font-size: 13px; line-height: 1.45; }
.international-evidence-suggestion svg { width: 18px; height: 18px; flex: 0 0 18px; }
.international-evidence-panel fieldset { margin: 0; padding: 0; border: 0; }
.international-evidence-body { padding: 15px; transition: opacity .18s ease; }
.international-evidence-body.inactive { opacity: .52; }
.international-evidence-body.inactive #international-evidence-list,.international-evidence-body.inactive .international-evidence-summary,.international-evidence-body.inactive .international-evidence-actions { pointer-events: none; }
.international-evidence-summary { display: flex; justify-content: space-between; gap: 16px; margin: 13px 0 9px; padding: 9px 11px; border-left: 3px solid #c6a15b; background: #faf8f4; }
.international-evidence-summary strong { color: #54401d; font-size: 13px; }
.international-evidence-summary span { color: #6d716f; font-size: 12px; text-align: right; }
#international-evidence-list { display: grid; gap: 10px; }
.international-evidence-row { border: 1px solid #dce1e2; border-radius: 4px; background: #fff; }
.international-evidence-row > header { display: grid; grid-template-columns: auto minmax(180px,1fr) auto auto; gap: 12px; align-items: center; padding: 9px 11px; border-bottom: 1px solid #e2e6e7; background: #f8f9f9; }
.international-evidence-row > header > label { display: flex; align-items: center; gap: 7px; margin: 0; color: #5a4360; font-size: 12px; font-weight: 800; text-transform: none; }
.international-evidence-row > header input[type="checkbox"] { width: 17px; min-height: 17px; margin: 0; accent-color: var(--accent); }
.international-evidence-row [data-international-title] { min-height: 32px; padding: 5px 7px; border: 1px solid transparent; background: transparent; color: #29393e; font-size: 14px; font-weight: 750; }
.international-evidence-row [data-international-title]:not([readonly]) { border-color: #cfd7d9; background: #fff; }
.international-evidence-grid { display: grid; grid-template-columns: 170px minmax(210px,1fr) 170px minmax(210px,1fr); gap: 10px 12px; align-items: end; padding: 11px; }
.international-evidence-grid .field { margin: 0; }
.international-document-link > div { display: grid; grid-template-columns: minmax(0,1fr) 36px; gap: 6px; }
.international-document-link .icon-button { width: 36px; height: 36px; border: 1px solid #cfd7d9; color: var(--accent); background: #fff; }
.international-translation-toggle { display: flex; align-items: center; gap: 8px; align-self: center; margin: 0; color: #48585d; font-size: 12px; font-weight: 700; text-transform: none; }
.international-translation-toggle input { width: 17px; min-height: 17px; margin: 0; accent-color: var(--accent); }
.international-evidence-grid [data-international-translation-field].inactive { opacity: .48; pointer-events: none; }
.international-evidence-grid .full { grid-column: 1 / -1; }
.international-evidence-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.death-notice-preview { color: #29383d; background: #fff; }
.death-notice-preview > header { display: grid; grid-template-columns: 190px 1fr auto; gap: 18px; align-items: center; padding: 0 0 16px; border-bottom: 2px solid #c6a15b; }
.death-notice-preview > header img { width: 182px; height: 48px; object-fit: contain; object-position:left center; }
.death-notice-preview > header small { display: block; color: #6b777b; font-size: 12px; }
.death-notice-preview > header strong { display: block; margin: 2px 0; color: var(--accent); font-size: 23px; }
.death-notice-preview > header em { color: #59676b; font-size: 12px; font-style: normal; font-weight: 700; }
.death-notice-recipient { margin: 16px 0 18px; padding: 10px 12px; border-left: 4px solid var(--accent); background: #f8f4f8; }
.death-notice-recipient span,.death-notice-recipient strong,.death-notice-recipient small { display: block; }
.death-notice-recipient span { color: #6d777a; font-size: 11px; text-transform: uppercase; }
.death-notice-recipient strong { margin: 3px 0; font-size: 14px; }
.death-notice-recipient small { color: #657176; font-size: 12px; }
.death-notice-preview h3 { margin: 18px 0 7px; padding-bottom: 5px; border-bottom: 1px solid #dce1e2; color: var(--accent); font-size: 14px; }
.death-notice-preview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid #dce1e2; border-right: 0; border-bottom: 0; }
.death-notice-preview-grid > div { min-height: 58px; padding: 8px 10px; border-right: 1px solid #dce1e2; border-bottom: 1px solid #dce1e2; }
.death-notice-preview-grid span,.death-notice-preview-grid strong { display: block; }
.death-notice-preview-grid span { color: #6b777b; font-size: 10px; text-transform: uppercase; }
.death-notice-preview-grid strong { margin-top: 4px; font-size: 13px; line-height: 1.35; }
.death-notice-preview footer { margin-top: 16px; padding: 10px 12px; background: #f6f7f7; color: #657176; font-size: 12px; }
.death-notice-letter-preview { padding:20px; }
.death-notice-letter-preview > header { grid-template-columns:minmax(0,1fr) auto; border-bottom:1px solid #643182; }
.death-notice-letter-address { margin:12px 0 34px; min-height:125px; }
.death-notice-letter-address small { font-size:10px; color:#68777b; }
.death-notice-letter-address address { margin-top:30px; font-style:normal; line-height:1.5; }
.death-notice-letter-preview h2 { font-size:21px; color:#643182; }
.death-notice-letter-preview p { font-size:13px; line-height:1.6; }
.death-notice-letter-preview .death-notice-preview-grid { border:0; gap:8px 16px; }
.death-notice-letter-preview .death-notice-preview-grid > div { border:0; padding:5px 0; }
.death-notice-letter-signature { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.6fr); gap:28px; padding-top:100px; font-size:11px; }
.death-notice-letter-signature > span { border-top:1px solid #68777b; padding-top:7px; }
.death-notice-letter-signature small { display:block; margin-top:5px; }
.case-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px; background: #f4f7f7; border-left: 3px solid var(--accent-2); }
.case-summary .avatar { width: 42px; height: 42px; background: #eddfee; color: #6d2b74; }
.case-summary h3 { margin: 0; font-size: 16px; }
.case-summary p { margin: 4px 0 0; color: #5f6f74; font-size: 13px; line-height: 1.4; }
.case-closed-notice { min-height: 54px; display: flex; align-items: center; gap: 11px; margin-bottom: 12px; padding: 10px 13px; border-left: 3px solid var(--accent); background: #f6eff7; color: #66306c; }
.case-closed-notice > svg { width: 19px; height: 19px; flex: 0 0 auto; }
.case-closed-notice strong, .case-closed-notice span { display: block; }
.case-closed-notice strong { font-size: 13px; }
.case-closed-notice span { margin-top: 3px; color: #7d6480; font-size: 11px; }
.case-access-notice { min-height: 54px; display: flex; align-items: center; gap: 11px; margin-bottom: 12px; padding: 10px 13px; border-left: 3px solid #385f76; background: #eef5f8; color: #31566b; }
.case-access-notice > svg { width: 19px; height: 19px; flex: 0 0 auto; }
.case-access-notice strong, .case-access-notice span { display: block; }
.case-access-notice strong { font-size: 13px; }
.case-access-notice span { margin-top: 3px; color: #607d8d; font-size: 11px; }
.case-readonly-notice { min-height: 58px; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px 13px; border: 1px solid #e7d4aa; border-left: 3px solid #a87925; background: #fff9ed; color: #684b1d; }
.case-readonly-notice.compact { min-height: 50px; margin-bottom: 10px; padding: 8px 11px; }
.case-readonly-notice > svg { width: 20px; height: 20px; flex: 0 0 auto; }
.case-readonly-notice > div { min-width: 0; }
.case-readonly-notice strong,.case-readonly-notice span { display: block; }
.case-readonly-notice strong { font-size: 13px; }
.case-readonly-notice span { margin-top: 3px; color: #816733; font-size: 12px; line-height: 1.4; }
.readonly-case-row { background: #fcfaf5; }
.readonly-case-row .person-cell > span { color: #816733; }
.readonly-kanban-card,.readonly-transfer-ticket,.readonly-calendar-item { background: #fcfaf5; }
.readonly-kanban-card { border-left-color: #b89a63; cursor: default; }
.readonly-kanban-card:active { cursor: default; }
.readonly-transfer-ticket { border-left: 3px solid #b89a63; }
.readonly-calendar-event { filter: saturate(.65); }
.case-edit-fieldset { margin: 0; padding: 0; border: 0; }
.case-edit-fieldset:disabled { opacity: .72; }
.case-export-notice { min-height: 66px; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 11px 13px; border-left: 3px solid #b8862d; background: #fff8eb; color: #76531c; }
.case-export-notice > svg { width: 23px; height: 23px; flex: 0 0 auto; }
.case-export-notice strong, .case-export-notice span { display: block; }
.case-export-notice strong { font-size: 13px; }
.case-export-notice span { margin-top: 4px; font-size: 11px; line-height: 1.5; }
.case-export-summary { margin: 12px 0; border: 1px solid var(--line); background: #fff; }
.case-export-person { min-height: 62px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.case-export-person .avatar { width: 34px; height: 34px; background: #eddfee; color: #6d2b74; }
.case-export-person strong, .case-export-person span { display: block; }
.case-export-person strong { font-size: 14px; }
.case-export-person span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.case-export-facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.case-export-facts > div { min-width: 0; padding: 10px 9px; border-right: 1px solid var(--line); text-align: center; }
.case-export-facts > div:last-child { border-right: 0; }
.case-export-facts strong, .case-export-facts span { display: block; }
.case-export-facts strong { color: var(--accent); font-size: 17px; }
.case-export-facts span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.case-export-content { padding: 10px 12px; border: 1px solid #cdd9de; background: #f5f8fa; }
.case-export-content strong, .case-export-content span { display: block; }
.case-export-content strong { color: #385968; font-size: 12px; }
.case-export-content span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.preneed-summary { border-left-color: var(--accent); background: #f8f4f8; }
.preneed-amount { min-width: 140px; margin-left: auto; text-align: right; }
.preneed-amount span, .preneed-amount strong { display: block; }
.preneed-amount span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.preneed-amount strong { margin-top: 4px; color: var(--accent); font-size: 17px; }
.preneed-overview { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 15px; border: 1px solid var(--line); background: #fafbfb; }
.preneed-overview > div { min-height: 64px; padding: 11px 13px; border-right: 1px solid var(--line); }
.preneed-overview > div:last-child { border-right: 0; }
.preneed-overview span, .preneed-overview strong { display: block; }
.preneed-overview span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.preneed-overview strong { margin-top: 7px; font-size: 14px; }
.preneed-calculation-note { min-height: 66px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #d7c5d9; border-left: 4px solid var(--primary); background: #faf7fa; }
.preneed-calculation-note > svg { width: 21px; height: 21px; flex: 0 0 21px; color: var(--primary); }
.preneed-calculation-note strong, .preneed-calculation-note small { display: block; }
.preneed-calculation-note strong { color: #3f3541; font-size: 13px; }
.preneed-calculation-note small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.preneed-calculated-amount { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; border: 1px solid #d4dcde; background: #f7f9f9; }
.preneed-calculated-amount strong { color: var(--primary); font-size: 16px; }
.preneed-calculated-amount small { color: var(--muted); font-size: 11px; text-align: right; }
.preneed-services-overview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 15px; border: 1px solid var(--line); background: #fafbfb; }
.preneed-services-overview > div { min-height: 78px; padding: 12px 14px; border-right: 1px solid var(--line); }
.preneed-services-overview > div:last-child { border-right: 0; }
.preneed-services-overview > div.total { border-top: 3px solid var(--primary); background: #faf7fa; }
.preneed-services-overview span, .preneed-services-overview strong, .preneed-services-overview small { display: block; }
.preneed-services-overview span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.preneed-services-overview strong { margin-top: 7px; color: #334348; font-size: 18px; }
.preneed-services-overview .total strong { color: var(--primary); }
.preneed-services-overview small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.preneed-service-groups { margin-top: 2px; }
.preneed-services-empty { min-height: 250px; }
.price-review-status { display:grid; grid-template-columns:repeat(5,1fr); margin-bottom:14px; border:1px solid var(--line); background:#fafbfb; }
.price-review-status > div { min-height:78px; padding:11px 13px; border-right:1px solid var(--line); }
.price-review-status > div:last-child { border-right:0; }
.price-review-status span,.price-review-status strong,.price-review-status small { display:block; }
.price-review-status span { color:var(--muted); font-size:10px; font-weight:700; text-transform:uppercase; }
.price-review-status strong { margin-top:7px; font-size:15px; }
.price-review-status small { margin-top:4px; color:var(--muted); font-size:11px; }
.price-review-recommendation { display:flex; align-items:flex-start; gap:12px; margin-bottom:14px; padding:12px 14px; border-left:4px solid #3f7d57; background:#f3f8f5; }
.price-review-recommendation.attention { border-left-color:#b8862d; background:#fbf7ee; }
.price-review-recommendation > svg { width:20px; height:20px; flex:0 0 20px; color:#3f7d57; }
.price-review-recommendation.attention > svg { color:#9a6e20; }
.price-review-recommendation strong { color:#2f4145; font-size:13px; }
.price-review-recommendation p { margin:4px 0 0; color:#5f6f74; font-size:12px; line-height:1.55; }
.price-review-history-head { margin-top:4px; }
.price-review-history { border:1px solid var(--line); }
.price-review-history > button { width:100%; min-height:68px; display:grid; grid-template-columns:38px minmax(0,1fr) minmax(150px,.35fr) 18px; align-items:center; gap:11px; padding:9px 12px; border:0; border-bottom:1px solid var(--line); background:#fff; color:inherit; text-align:left; cursor:pointer; }
.price-review-history > button:last-child { border-bottom:0; }
.price-review-history > button:hover { background:#faf7fa; }
.price-review-history-icon { width:34px; height:34px; display:grid; place-items:center; background:#f1e7f2; color:var(--primary); }
.price-review-history-icon svg,.price-review-history > button > svg { width:16px; height:16px; }
.price-review-history > button span strong,.price-review-history > button span small { display:block; }
.price-review-history > button span small { margin-top:3px; color:var(--muted); font-size:11px; }
.price-review-history > button > span:nth-child(3) { text-align:right; }
.finance-overview { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: #fafbfb; }
.finance-overview > div { min-height: 72px; padding: 12px 14px; border-right: 1px solid var(--line); }
.finance-overview > div:last-child { border-right: 0; }
.finance-overview span, .finance-overview strong { display: block; }
.finance-overview span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.finance-overview strong { margin-top: 8px; font-size: 17px; }
.preneed-finance-overview { grid-template-columns: repeat(5, 1fr); }
.outgoing-text { color: #9a5a1c; }
.funding-progress { margin: 12px 0 17px; }
.funding-progress > div { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.funding-progress > div strong { color: var(--accent); font-size: 13px; }
.funding-progress i { height: 7px; display: block; overflow: hidden; border-radius: 3px; background: #e1e5e6; }
.funding-progress b { height: 100%; display: block; border-radius: inherit; background: var(--accent); }
.conversion-banner { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; padding: 9px 11px; border: 1px solid #bcd9c6; border-left: 3px solid var(--success); background: #f0f8f3; }
.conversion-banner > div { display: flex; align-items: center; gap: 9px; color: var(--success); }
.conversion-banner svg { width: 18px; }
.conversion-banner strong, .conversion-banner small { display: block; }
.conversion-banner strong { color: #315d42; font-size: 13px; }
.conversion-banner small { margin-top: 3px; color: #62806d; font-size: 11px; }
.convert-button { margin-right: auto; border-color: #a766ae; color: var(--accent); font-weight: 700; }
.conversion-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 13px; border: 1px solid var(--line); }
.conversion-summary.four { grid-template-columns: repeat(4, 1fr); }
.conversion-summary > div { min-height: 66px; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-right: 1px solid var(--line); color: var(--accent); }
.conversion-summary > div:last-child { border-right: 0; }
.conversion-summary svg { width: 19px; }
.conversion-summary span { color: var(--muted); font-size: 11px; }
.conversion-summary strong { display: block; margin-bottom: 2px; color: #293a3f; font-size: 16px; }
.record-mail-list { border: 1px solid var(--line); }
.record-mail-list > button { width: 100%; min-height: 68px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: inherit; text-align: left; }
.record-mail-list > button:last-child { border-bottom: 0; }
.record-mail-list > button:hover { background: #faf7fa; }
.record-mail-list > button > div strong, .record-mail-list > button > div span, .record-mail-list > button > div small { display: block; }
.record-mail-list > button > div strong { font-size: 13px; }
.record-mail-list > button > div span { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.record-mail-list > button > div small { margin-top: 3px; color: #7a878b; font-size: 11px; }
.record-mail-list > button > svg { width: 15px; color: #879398; }
.record-mail-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 4px; background: #f1e6f2; color: var(--accent); }
.record-mail-icon svg { width: 15px; }
.conversion-note { margin-bottom: 15px; padding: 11px 13px; border-left: 3px solid var(--accent-2); background: #f5f8fb; }
.conversion-note strong { font-size: 13px; }
.conversion-note p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.case-health { width: 132px; margin-left: auto; }
.case-health span, .case-health strong { display: inline-block; font-size: 12px; }
.case-health strong { float: right; color: var(--accent); font-size: 14px; }
.case-health i { height: 5px; display: block; margin-top: 5px; overflow: hidden; border-radius: 3px; background: #dedfe1; }
.case-health b { height: 100%; display: block; border-radius: inherit; background: var(--accent); }
.tabs { display: flex; gap: 2px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tab { min-height: 39px; padding: 0 11px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #5d6c71; font-size: 14px; }
.tab.active { border-bottom-color: var(--accent); color: var(--accent); font-weight: 700; }
.tab:focus-visible { outline: 2px solid rgba(128,52,137,.28); outline-offset: -2px; }
.case-tabs { overflow-x: auto; }
.case-tabs .tab { flex: 0 0 auto; }
.case-tabs .tab span { min-width: 18px; display: inline-grid; place-items: center; margin-left: 4px; padding: 1px 5px; border-radius: 9px; background: #edf0f2; color: #59686d; font-size: 12px; }
.case-music-workspace { display: grid; gap: 14px; }
.music-plan-notes { padding: 14px; border: 1px solid #d8c5da; border-left: 4px solid var(--accent); border-radius: 5px; background: #fbf8fb; }
.music-plan-notes-head { display: flex; align-items: center; gap: 10px; }
.music-plan-notes-head > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 4px; background: var(--accent); color: #fff; }
.music-plan-notes-head svg { width: 18px; height: 18px; }
.music-plan-notes-head strong,.music-plan-notes-head small { display: block; }
.music-plan-notes-head strong { font-size: 15px; }
.music-plan-notes-head small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.music-plan-notes textarea { width: 100%; min-height: 92px; margin-top: 12px; resize: vertical; }
.music-plan-notes > div:last-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; color: var(--muted); font-size: 12px; }
.music-section-toolbar { margin-bottom: 0; }
.music-track-list { display: grid; gap: 8px; }
.music-track { min-width: 0; display: grid; grid-template-columns: 38px 38px minmax(180px,.9fr) minmax(260px,1.2fr) minmax(180px,.8fr) auto; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.music-track-order { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 4px; background: #f0e4f1; color: var(--accent); font-size: 15px; font-weight: 800; }
.music-track-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #d9c6dc; border-radius: 50%; color: var(--accent); }
.music-track-icon svg { width: 17px; height: 17px; }
.music-track-heading,.music-track-notes { min-width: 0; }
.music-track-heading strong,.music-track-heading span,.music-track-notes small,.music-track-notes span { display: block; }
.music-track-heading strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.music-track-heading span,.music-track-notes small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.music-track audio { width: 100%; height: 36px; }
.music-track-notes span { margin-top: 3px; overflow: hidden; color: #4f5e63; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.music-track-actions { display: flex; gap: 5px; }
.music-empty { border: 1px dashed #cfd7da; border-radius: 5px; }
.music-empty strong,.music-empty p { display: block; }
.music-empty p { margin: 5px 0 0; }
.music-editor-preview { display: grid; grid-template-columns: 42px minmax(180px,.7fr) minmax(280px,1fr); align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: #f7f9f9; }
.music-editor-preview > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 4px; background: var(--accent); color: #fff; }
.music-editor-preview strong,.music-editor-preview small { display: block; }
.music-editor-preview small { margin-top: 3px; color: var(--muted); }
.music-editor-preview audio,.music-library-preview audio { width: 100%; }
.music-library-preview { display: grid; grid-template-columns: 34px minmax(160px,.7fr) minmax(240px,1fr); align-items: center; gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: #f7f9f9; }
.music-library-preview > svg { color: var(--accent); }
.music-library-preview strong,.music-library-preview small { display: block; }
.music-library-preview small { margin-top: 3px; color: var(--muted); }
.music-upload-category { min-height: 64px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #d8c5da; border-radius: 4px; background: #faf5fa; }
.music-upload-category > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 4px; background: var(--accent); color: #fff; }
.music-upload-category small,.music-upload-category strong { display: block; }
.music-upload-category small { color: var(--muted); font-size: 11px; }
.case-review-overview { display: grid; grid-template-columns: 110px repeat(3, 1fr); min-height: 96px; margin-bottom: 15px; border: 1px solid var(--line); border-radius: 5px; }
.case-review-overview > div { display: flex; flex-direction: column; justify-content: center; padding: 13px 15px; border-right: 1px solid var(--line); }
.case-review-overview > div:last-child { border-right: 0; }
.case-review-overview > div:not(.case-progress) span { color: var(--muted); font-size: 11px; }
.case-review-overview > div:not(.case-progress) strong { margin-top: 8px; font-size: 22px; }
.case-progress { width: 82px; height: 82px; position: relative; align-self: center; justify-self: center; align-items: center; margin: 6px 14px; padding: 0 !important; border: 0 !important; border-radius: 50%; background: conic-gradient(var(--accent) var(--progress), #e6e8e9 0); text-align: center; }
.case-progress::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.case-progress strong, .case-progress span { position: relative; z-index: 1; }
.case-progress strong { font-size: 18px; line-height: 1; }
.case-progress span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.danger-text { color: var(--danger); }
.success-text { color: var(--success); }
.case-check-group { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.case-check-group h3 { margin: 0; padding: 8px 11px; border-bottom: 1px solid var(--line); background: #f5f7f8; color: #6d7b80; font-size: 11px; text-transform: uppercase; }
.case-check { width: 100%; min-height: 52px; display: grid; grid-template-columns: 26px minmax(0,1fr) 70px; align-items: center; gap: 8px; padding: 7px 11px; border: 0; border-bottom: 1px solid #e8edef; background: #fff; color: #34444a; text-align: left; }
.case-check:last-child { border-bottom: 0; }
.case-check:hover { background: #faf8fa; }
.check-mark { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #edf0f2; color: #68757a; font-size: 13px; font-weight: 800; }
.case-check.complete .check-mark { background: #e5f3ea; color: #21683f; }
.case-check.required .check-mark { background: #fbe9e7; color: #9a2c22; }
.case-check.recommended .check-mark { background: #fff1db; color: #8c520b; }
.case-check strong, .case-check small { display: block; }
.case-check strong { font-size: 13px; }
.case-check small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.check-state { justify-self: end; color: var(--muted); font-size: 11px; font-weight: 700; }
.case-check.required .check-state { color: var(--danger); }
.case-check.complete .check-state { color: var(--success); }
.case-closure-overview { display: grid; grid-template-columns: minmax(180px,1.5fr) repeat(2,minmax(100px,.5fr)); margin-bottom: 13px; border: 1px solid var(--line); background: #fafbfb; }
.case-closure-overview > div { min-height: 70px; padding: 12px 14px; border-right: 1px solid var(--line); }
.case-closure-overview > div:last-child { border-right: 0; }
.case-closure-overview span, .case-closure-overview strong { display: block; }
.case-closure-overview span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.case-closure-overview strong { margin-top: 8px; font-size: 17px; }
.closure-check-list { border: 1px solid var(--line); }
.closure-check { min-height: 57px; display: grid; grid-template-columns: 28px minmax(0,1fr) 72px; align-items: center; gap: 9px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.closure-check:last-child { border-bottom: 0; }
.closure-check strong, .closure-check small { display: block; }
.closure-check strong { font-size: 13px; }
.closure-check small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.closure-check > span:last-child { justify-self: end; color: var(--muted); font-size: 11px; font-weight: 700; }
.closure-check.complete .check-mark { background: #e5f3ea; color: #21683f; }
.closure-check.blocker .check-mark { background: #fbe9e7; color: #9a2c22; }
.closure-check.warning .check-mark { background: #fff1db; color: #8c520b; }
.closure-check.blocker > span:last-child { color: var(--danger); }
.closure-check.warning > span:last-child { color: #8c520b; }
.case-closure-action { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 13px; padding: 11px 13px; border: 1px solid #cbd8dc; border-left: 3px solid var(--accent-2); background: #f7fafb; }
.case-closure-action strong, .case-closure-action span { display: block; }
.case-closure-action strong { font-size: 13px; }
.case-closure-action span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.case-closure-record { min-height: 66px; display: flex; align-items: center; gap: 12px; margin-bottom: 13px; padding: 11px 13px; border-left: 3px solid var(--success); background: #edf7f1; color: #315d42; }
.case-closure-record.reopened { border-left-color: #b8862d; background: #fff8eb; color: #76531c; }
.case-closure-record > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #fff; }
.case-closure-record svg { width: 15px; }
.case-closure-record strong { font-size: 13px; }
.case-closure-record p { margin: 4px 0 0; font-size: 11px; line-height: 1.45; }
.case-closure-record small { color: inherit; opacity: .8; }
.case-closure-confirm { margin-bottom: 14px; padding: 11px 13px; border-left: 3px solid var(--accent); background: #f6eff7; }
.case-closure-confirm.warning { border-left-color: #b8862d; background: #fff8eb; }
.case-closure-confirm strong { font-size: 13px; }
.case-closure-confirm p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.external-invoice-review { margin-top:14px; border:1px solid var(--line); background:#fff; }
.external-invoice-review > header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; border-bottom:1px solid var(--line); background:#f8f5f8; }
.external-invoice-review > header span { color:var(--primary); font-size:11px; font-weight:800; text-transform:uppercase; }
.external-invoice-review > header h3 { margin:3px 0 0; font-size:16px; }
.external-invoice-review > header p { margin:4px 0 0; color:var(--muted); font-size:12px; }
.external-invoice-summary { display:grid; grid-template-columns:repeat(3,1fr); border-bottom:1px solid var(--line); }
.external-invoice-summary > div { padding:11px 16px; border-right:1px solid var(--line); }
.external-invoice-summary > div:last-child { border-right:0; }
.external-invoice-summary span,.external-invoice-summary strong { display:block; }
.external-invoice-summary span { color:var(--muted); font-size:11px; text-transform:uppercase; }
.external-invoice-summary strong { margin-top:4px; font-size:18px; }
.external-invoice-list { display:grid; }
.external-invoice-row { display:grid; grid-template-columns:36px minmax(0,1fr) auto auto; align-items:center; gap:12px; min-height:78px; padding:11px 14px; border-bottom:1px solid var(--line); }
.external-invoice-row:last-child { border-bottom:0; }
.external-invoice-row.expected { box-shadow:inset 3px 0 #c7802f; }
.external-invoice-row.received { box-shadow:inset 3px 0 #4c956c; }
.external-invoice-row.waived { box-shadow:inset 3px 0 #879296; }
.external-invoice-icon { display:grid; place-items:center; width:34px; height:34px; background:#f0e7f1; color:var(--primary); }
.external-invoice-icon svg { width:17px; height:17px; }
.external-invoice-row > div { min-width:0; }
.external-invoice-row > div > span { color:var(--primary); font-size:10px; font-weight:800; text-transform:uppercase; }
.external-invoice-row strong,.external-invoice-row p,.external-invoice-row small { display:block; }
.external-invoice-row strong { margin-top:2px; font-size:13px; }
.external-invoice-row p { margin:3px 0 0; color:#46545a; font-size:12px; }
.external-invoice-row small { margin-top:4px; color:var(--muted); font-size:11px; }
.external-invoice-source { display:flex; align-items:flex-start; gap:13px; margin-bottom:16px; padding:14px; border-left:3px solid var(--primary); background:#f7f1f7; }
.external-invoice-source > span { display:grid; place-items:center; flex:0 0 34px; width:34px; height:34px; background:#fff; color:var(--primary); }
.external-invoice-source svg { width:18px; height:18px; }
.external-invoice-source p { margin:4px 0; color:#46545a; line-height:1.45; }
.external-invoice-source small { color:var(--muted); }
/* 1.0.92: entfernte Prüfpunkte (eingeklappt, Wiederaufnahme) und Hinweis „Quelle geändert“ */
.external-invoice-row.removed { box-shadow:inset 3px 0 var(--line); }
.external-invoice-row.removed strong,.external-invoice-row.removed p { color:var(--muted); }
.external-invoice-removed { border-top:1px solid var(--line); }
.external-invoice-removed > summary { display:flex; align-items:center; gap:8px; padding:11px 16px; font-size:12px; font-weight:700; color:var(--muted); cursor:pointer; list-style:none; }
.external-invoice-removed > summary::-webkit-details-marker { display:none; }
.external-invoice-removed > summary::before { content:'›'; display:inline-block; width:10px; transition:transform .15s ease; }
.external-invoice-removed[open] > summary::before { transform:rotate(90deg); }
.external-invoice-flag { color:#9a5a12; font-weight:700; }
.external-invoice-source .external-invoice-flag { color:#9a5a12; }
.external-invoice-source .external-invoice-hint { display:block; margin-top:6px; }
html[data-workspace-theme="dark"] .external-invoice-flag { color:#f0b36a; }
@media (max-width:760px) { .external-invoice-review > header { align-items:flex-start; flex-direction:column; } .external-invoice-summary { grid-template-columns:1fr; } .external-invoice-summary > div { border-right:0; border-bottom:1px solid var(--line); } .external-invoice-row { grid-template-columns:34px minmax(0,1fr); } .external-invoice-row > .status,.external-invoice-row > .button { grid-column:2; justify-self:start; } }
.case-access-overview { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 11px; padding: 9px 13px; border: 1px solid var(--line); border-left: 3px solid #385f76; background: #f7fafb; }
.case-access-overview span, .case-access-overview strong, .case-access-overview small { display: block; }
.case-access-overview span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.case-access-overview strong { margin-top: 5px; font-size: 15px; }
.case-access-overview small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.case-access-toggle { display: flex; align-items: center; gap: 10px; color: #385f76; font-size: 12px; font-weight: 700; white-space: nowrap; }
#case-access-reason-field { margin-bottom: 10px; }
#case-access-reason { min-height: 58px; }
#case-access-reason-field.inactive { opacity: .55; }
.case-access-section { border-top: 1px solid var(--line); }
.case-access-section > div:first-child { padding: 9px 2px 7px; }
.case-access-section > div:first-child strong, .case-access-section > div:first-child span { display: block; }
.case-access-section > div:first-child strong { font-size: 13px; }
.case-access-section > div:first-child span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.case-access-users { border: 1px solid var(--line); }
.case-access-users label { min-height: 43px; display: flex; align-items: center; gap: 10px; padding: 6px 11px; border-bottom: 1px solid var(--line); background: #fff; }
.case-access-users label:last-child { border-bottom: 0; }
.case-access-users input { accent-color: var(--accent); }
.case-access-users strong, .case-access-users small { display: block; }
.case-access-users strong { font-size: 12px; }
.case-access-users small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.case-access-action { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 10px; padding: 7px 11px; border-top: 1px solid var(--line); background: #fafbfb; }
.case-access-action strong, .case-access-action span { display: block; }
.case-access-action strong { font-size: 12px; }
.case-access-action span { max-width: 590px; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.case-timeline-list { position: relative; padding: 0 0 4px; }
.case-timeline-list::before { content: ""; position: absolute; top: 18px; bottom: 18px; left: 142px; width: 1px; background: #d8dfe1; }
.case-timeline-list article { min-height: 72px; display: grid; grid-template-columns: 120px 34px minmax(0,1fr); align-items: start; gap: 8px; padding: 9px 0; }
.case-timeline-list time { padding-top: 8px; color: var(--muted); font-size: 11px; text-align: right; }
.timeline-icon { z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #eee5ef; color: var(--accent); }
.timeline-icon svg { width: 13px; }
.case-timeline-list article > div { min-width: 0; padding: 4px 10px 10px; border-bottom: 1px solid #e8edef; }
.case-timeline-list article > div > div { display: flex; align-items: center; gap: 8px; }
.case-timeline-list article strong { font-size: 13px; }
.case-timeline-list article p { margin: 5px 0; color: #526167; font-size: 12px; line-height: 1.45; }
.case-timeline-list article small { color: var(--muted); font-size: 11px; }
.section-toolbar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 2px 10px; }
.section-toolbar strong, .section-toolbar span { display: block; }
.section-toolbar strong { font-size: 14px; }
.section-toolbar span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.section-toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.case-contact-list { border: 1px solid var(--line); }
.case-contact-row { min-height: 68px; display: grid; grid-template-columns: 38px minmax(220px,1fr) minmax(150px,.7fr) auto; align-items: center; gap: 11px; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.case-contact-row:last-child { border-bottom: 0; }
.case-contact-row > div > strong, .case-contact-row > div > span, .case-contact-row > div > small { display: block; }
.case-contact-row > div > strong { font-size: 14px; }
.case-contact-row > div > span, .case-contact-row > div > small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.contact-flags { display: flex; flex-wrap: wrap; gap: 4px; }
.contact-flags span { margin: 0 !important; padding: 3px 6px; border-radius: 3px; background: #f2e8f3; color: #6a2b72 !important; font-size: 11px !important; font-weight: 700; }
.case-contact-actions,.contact-picker-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; }
.case-contact-actions .button svg,.contact-picker-actions .button svg { width:14px; height:14px; }
.case-document-list { border: 1px solid var(--line); }
.case-document-list > div { min-height: 58px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 8px 11px; border-bottom: 1px solid var(--line); }
.case-document-list > div:last-child { border-bottom: 0; }
.case-document-list strong, .case-document-list small { display: block; }
.case-document-list small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.case-document-groups { display:grid; gap:16px; }
.case-document-group > header { min-height:42px; display:flex; align-items:center; gap:9px; padding:0 2px 7px; }
.case-document-group > header strong,.case-document-group > header small { display:block; }
.case-document-group > header strong { font-size:13px; }
.case-document-group > header small { margin-top:2px; color:var(--muted); font-size:11px; }
.case-document-group-icon { width:32px; height:32px; display:grid; place-items:center; border-radius:4px; background:#eee4ef; color:var(--accent); }
.case-document-group-icon svg { width:16px; height:16px; }
.case-document-empty { border:1px solid var(--line); }
.document-mark { color: var(--accent); }
.case-document-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.case-template-picker { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; }
.case-template-group > header { min-height:38px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:7px 12px; border-bottom:1px solid var(--line); background:#f4f6f6; }
.case-template-group > header strong { font-size:12px; }
.case-template-group > header span { color:var(--muted); font-size:11px; }
.case-template-group:not(:first-child) > header { border-top:1px solid var(--line); }
.case-template-compatibility { min-height:54px; display:flex; align-items:center; gap:10px; margin-bottom:12px; padding:9px 11px; border-left:3px solid #3f7d57; background:#eef7f1; color:#315f45; }
.case-template-compatibility > svg { width:18px; height:18px; flex:0 0 auto; }
.case-template-compatibility strong,.case-template-compatibility small { display:block; }
.case-template-compatibility strong { font-size:12px; }
.case-template-compatibility small { margin-top:3px; color:#52705d; font-size:11px; }
.case-template-option { min-height: 72px; display: grid; grid-template-columns: 18px 38px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fff; cursor: pointer; }
.case-template-group:last-child .case-template-option:last-child { border-bottom: 0; }
.case-template-option:hover, .case-template-option.selected { background: #faf5fb; }
.case-template-option.selected { box-shadow: inset 3px 0 var(--accent); }
.case-template-option > input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.case-template-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 4px; background: #eee2f0; color: var(--accent); }
.case-template-icon svg { width: 18px; height: 18px; }
.case-template-main { min-width: 0; }
.case-template-main strong, .case-template-main small { display: block; }
.case-template-main strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.case-template-main small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.case-template-empty strong, .case-template-empty span { display: block; }
.case-template-empty strong { color: var(--text); font-size: 14px; }
.case-template-empty span { max-width: 520px; margin: 5px auto 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.case-handover-list { border: 1px solid var(--line); }
.case-handover-list > button { width: 100%; min-height: 56px; display: grid; grid-template-columns: 70px minmax(0,1fr) 90px; align-items: center; gap: 10px; padding: 8px 11px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: inherit; text-align: left; }
.case-handover-list > button:last-child { border-bottom: 0; }
.case-handover-list > button:hover { background: #faf8fa; }
.case-handover-list strong, .case-handover-list small { display: block; }
.case-handover-list strong { font-size: 12px; }
.case-handover-list small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.case-handover-list > button > .status:last-child { justify-self: end; }
.handover-table tbody tr { cursor: pointer; }
.handover-table td:nth-child(2) { max-width: 290px; }
.handover-table .person-cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checklist-table tbody tr { cursor: pointer; }
.checklist-table td:nth-child(2) { max-width: 310px; }
.checklist-table .person-cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-checklist-list { border: 1px solid var(--line); }
.case-checklist-list > button { width: 100%; min-height: 56px; display: grid; grid-template-columns: 28px minmax(0,1fr) 78px; align-items: center; gap: 10px; padding: 8px 11px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: inherit; text-align: left; }
.case-checklist-list > button:last-child { border-bottom: 0; }
.case-checklist-list > button:hover { background: #faf8fa; }
.case-checklist-list strong, .case-checklist-list small { display: block; }
.case-checklist-list strong { font-size: 12px; }
.case-checklist-list small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.case-checklist-list > button > .status { justify-self: end; }
.checklist-state-icon { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #cfc8d1; color: var(--muted); font-weight: 700; }
.checklist-state-icon.done { border-color: #7aa88b; background: #edf7f0; color: #2f7147; }
.checklist-state-icon.overdue { border-color: #c9665f; background: #fff0ef; color: #a33d36; }
.checklist-detail-head { display: flex; gap: 12px; padding: 14px; border-left: 3px solid var(--primary); background: #f8f6f8; }
.checklist-detail-head .checklist-mark { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; background: #643182; color: #fff; }
.checklist-detail-head .checklist-mark svg { width: 17px; height: 17px; }
.checklist-detail-head > div:last-child { min-width: 0; }
.checklist-detail-head h3 { margin: 8px 0 3px; font-size: 16px; }
.checklist-detail-head p { margin: 0; color: var(--muted); }
.checklist-detail-head .status + .status { margin-left: 5px; }
.checklist-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 12px; border: 1px solid var(--line); }
.checklist-facts > div { min-width: 0; padding: 11px; border-right: 1px solid var(--line); }
.checklist-facts > div:last-child { border-right: 0; }
.checklist-facts span, .checklist-facts strong { display: block; }
.checklist-facts span { margin-bottom: 5px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.checklist-facts strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.checklist-required-field .checkbox-line { min-height: 34px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 0 10px; font-size: 12px; text-transform: none; }
.handover-detail-head { min-height: 84px; display: grid; grid-template-columns: 72px minmax(0,1fr) 90px; align-items: start; gap: 12px; padding: 13px; border-left: 3px solid var(--accent); background: #f7f4f8; }
.handover-detail-head > .status { justify-self: start; margin-top: 2px; }
.handover-detail-head > .status:last-child { justify-self: end; }
.handover-detail-head h3 { margin: 0; font-size: 15px; }
.handover-detail-head p { margin: 6px 0 0; color: #526167; font-size: 12px; line-height: 1.5; }
.handover-route { display: grid; grid-template-columns: 1fr 30px 1fr 1fr; align-items: center; margin-top: 14px; border: 1px solid var(--line); }
.handover-route > div { min-height: 76px; padding: 12px; border-right: 1px solid var(--line); }
.handover-route > div:last-child { border-right: 0; }
.handover-route > span { display: grid; place-items: center; color: var(--accent); }
.handover-route svg { width: 15px; }
.handover-route span, .handover-route strong, .handover-route small { display: block; }
.handover-route div > span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.handover-route strong { margin-top: 7px; font-size: 13px; }
.handover-route small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.handover-comment { margin-top: 12px; padding: 10px 12px; border-left: 3px solid #b8862d; background: #fff8eb; }
.handover-comment strong { font-size: 11px; text-transform: uppercase; }
.handover-comment p { margin: 5px 0 0; color: #665335; font-size: 12px; }
.media-detail-layout { min-height: 480px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 16px; }
.media-detail-preview { min-height: 480px; display: grid; place-items: center; overflow: hidden; border: 1px solid #d5dcde; background: #e8ecee; }
.media-detail-preview > img, .media-detail-preview > video { width: 100%; height: 100%; max-height: 620px; display: block; object-fit: contain; }
.media-detail-preview .media-placeholder { min-height: 478px; }
.audio-preview { width: min(420px, calc(100% - 40px)); display: grid; justify-items: center; gap: 14px; padding: 24px; color: #58676c; text-align: center; }
.audio-preview > svg { width: 46px; height: 46px; color: var(--accent); }
.audio-preview audio { width: 100%; }
.media-detail-layout form { min-width: 0; }
.media-file-facts { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 14px; border: 1px solid var(--line); }
.media-file-facts > div { min-width: 0; padding: 9px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.media-file-facts > div:nth-child(2n) { border-right: 0; }
.media-file-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.media-file-facts span, .media-file-facts strong, .media-file-facts code { display: block; }
.media-file-facts span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.media-file-facts strong, .media-file-facts code { margin-top: 5px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.document-approval-panel { margin-bottom: 14px; padding: 11px 12px; border: 1px solid var(--line); border-left: 3px solid #7f8b8f; background: #fafbfb; }
.document-approval-panel.warning { border-left-color: #b8862d; background: #fffaf1; }
.document-approval-panel.success { border-left-color: #3f7d57; background: #f4faf6; }
.document-approval-panel.danger { border-left-color: var(--danger); background: #fdf5f4; }
.document-approval-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.document-approval-head > div { min-width: 0; }
.document-approval-head > div > span, .document-approval-head > div > strong { display: block; }
.document-approval-head > div > span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.document-approval-head > div > strong { margin-top: 4px; color: #35464b; font-size: 12px; line-height: 1.45; }
.document-approval-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.document-approval-meta > div { padding: 7px 8px; border: 1px solid rgba(84,101,106,.15); background: rgba(255,255,255,.7); }
.document-approval-meta span, .document-approval-meta strong, .document-approval-meta small { display: block; }
.document-approval-meta span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.document-approval-meta strong { margin-top: 3px; font-size: 11px; }
.document-approval-meta small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.document-approval-comments { margin-top: 9px; padding-top: 7px; border-top: 1px solid rgba(84,101,106,.15); }
.document-approval-comments p { margin: 3px 0; color: #536268; font-size: 11px; line-height: 1.45; }
.document-approval-actions { min-height: 28px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.approval-four-eyes { color: #76531c; font-size: 11px; font-weight: 700; }
.document-compliance-panel { margin-bottom: 14px; padding: 11px 12px; border: 1px solid var(--line); border-left: 3px solid #7f8b8f; background: #fafbfb; }
.document-compliance-panel.warning { border-left-color: #b8862d; background: #fffaf1; }
.document-compliance-panel.danger { border-left-color: #9a3e39; background: #fdf4f3; }
.document-compliance-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.document-compliance-head > div > span, .document-compliance-head > div > strong { display: block; }
.document-compliance-head > div > span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.document-compliance-head > div > strong { margin-top: 4px; color: #35464b; font-size: 13px; }
.document-compliance-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.document-compliance-facts > div { padding: 7px 8px; border: 1px solid rgba(84,101,106,.15); background: rgba(255,255,255,.7); }
.document-compliance-facts span, .document-compliance-facts strong { display: block; }
.document-compliance-facts span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.document-compliance-facts strong { margin-top: 3px; font-size: 11px; }
.document-hold-reason { margin-top: 9px; padding: 8px 9px; border-left: 2px solid #9a3e39; background: rgba(255,255,255,.75); }
.document-hold-reason strong, .document-hold-reason span { display: block; }
.document-hold-reason strong { color: #743632; font-size: 11px; }
.document-hold-reason span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.document-compliance-actions { display: flex; justify-content: flex-end; margin-top: 9px; }
.document-hold-option { margin: 12px 0; }
.media-detail-layout .field { margin-bottom: 11px; }
.document-deletion-notice { min-height: 56px; display: flex; align-items: center; gap: 11px; margin-bottom: 14px; padding: 10px 13px; border: 1px solid #dec8a1; background: #fff8eb; color: #76531c; }
.document-deletion-notice > svg { width: 21px; height: 21px; flex: 0 0 auto; }
.document-deletion-notice strong, .document-deletion-notice span { display: block; }
.document-deletion-notice strong { font-size: 13px; }
.document-deletion-notice span { margin-top: 4px; font-size: 11px; line-height: 1.45; }
.document-version-notice { min-height: 56px; display: flex; align-items: center; gap: 11px; margin-bottom: 14px; padding: 10px 13px; border: 1px solid #b9ccd9; background: #f0f6fa; color: #365c75; }
.document-version-notice > svg { width: 21px; height: 21px; flex: 0 0 auto; }
.document-version-notice strong, .document-version-notice span { display: block; }
.document-version-notice strong { font-size: 13px; }
.document-version-notice span { margin-top: 4px; font-size: 11px; line-height: 1.45; }
.document-lifecycle-warning { margin-bottom: 14px; padding: 12px 14px; border-left: 3px solid #b8862d; background: #fff8eb; }
.document-lifecycle-warning.danger { border-left-color: var(--danger); background: #fdf1f0; }
.document-lifecycle-warning strong { font-size: 14px; }
.document-lifecycle-warning p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.version-timeline { border: 1px solid var(--line); }
.version-timeline article { min-height: 78px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.version-timeline article:last-child { border-bottom: 0; }
.version-timeline article.current { background: #f7fbf8; }
.version-number { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #edf0f2; color: #59676c; font-size: 12px; font-weight: 800; }
.version-timeline article.current .version-number { background: #e5f3ea; color: #21683f; }
.version-timeline article > div:nth-child(2) { min-width: 0; }
.version-timeline article strong, .version-timeline article p, .version-timeline article small { display: block; }
.version-timeline article strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.version-timeline article p { margin: 4px 0; color: #526167; font-size: 12px; }
.version-timeline article small { color: var(--muted); font-size: 11px; }
.version-actions { display: flex; gap: 5px; }
.preneed-appointment-list { border: 1px solid var(--line); }
.preneed-appointment-list article { min-height: 66px; display: grid; grid-template-columns: 125px minmax(0, 1fr); align-items: center; gap: 13px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.preneed-appointment-list article:last-child { border-bottom: 0; }
.preneed-appointment-list time { padding-right: 12px; border-right: 1px solid var(--line); }
.preneed-appointment-list time strong, .preneed-appointment-list time span, .preneed-appointment-list article > div > strong, .preneed-appointment-list article > div > span, .preneed-appointment-list article > div > small { display: block; }
.preneed-appointment-list time strong { color: var(--accent); font-size: 12px; }
.preneed-appointment-list time span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.preneed-appointment-list article > div > strong { font-size: 13px; }
.preneed-appointment-list article > div > span, .preneed-appointment-list article > div > small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.preneed-payment-list { border: 1px solid var(--line); }
.preneed-payment-list article { min-height: 82px; display: grid; grid-template-columns: 38px 125px minmax(0, 1fr) 130px; align-items: center; gap: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line); border-left: 3px solid #4d8a62; }
.preneed-payment-list article.outgoing { border-left-color: #b8862d; }
.preneed-payment-list article:last-child { border-bottom: 0; }
.preneed-payment-list article.reversed { background: #faf7f7; color: #788388; }
.preneed-payment-direction { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 4px; background: #e9f3ed; color: #37734e; }
.preneed-payment-list article.outgoing .preneed-payment-direction { background: #fbf3e4; color: #94651d; }
.preneed-payment-list article.reversed .preneed-payment-direction { background: #eceff0; color: #788388; }
.preneed-payment-direction svg { width: 17px; height: 17px; }
.preneed-payment-list time { padding-right: 12px; border-right: 1px solid var(--line); }
.preneed-payment-list time strong, .preneed-payment-list time span, .preneed-payment-list article > div > strong, .preneed-payment-list article > div > span, .preneed-payment-list article > div > small, .preneed-payment-list article > div > em { display: block; }
.preneed-payment-list time strong { color: var(--accent); font-size: 12px; }
.preneed-payment-list time span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.preneed-payment-list article > div > strong { font-size: 15px; }
.preneed-payment-list article > div > span, .preneed-payment-list article > div > small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.preneed-payment-list article > div > em { margin-top: 4px; color: var(--danger); font-size: 11px; font-style: normal; }
.preneed-payment-list article > div:last-child { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.preneed-payment-amount { color: #37734e; white-space: nowrap; }
.preneed-payment-list article.outgoing .preneed-payment-amount { color: #94651d; }
.preneed-payment-list article.reversed .preneed-payment-amount { color: #788388; text-decoration: line-through; }
.payment-booking-note, .reversal-warning { margin-top: 14px; padding: 11px 13px; border-left: 3px solid var(--accent-2); background: #f5f8fb; color: var(--muted); font-size: 12px; line-height: 1.5; }
.reversal-warning { margin: 0 0 14px; border-left-color: var(--danger); background: #fcf4f3; }
.reversal-warning strong { color: #7f332e; font-size: 13px; }
.reversal-warning p { margin: 4px 0 0; }
.link-options { min-height: 76px; display: grid; gap: 6px; padding: 8px 9px; border: 1px solid var(--line); background: #fafbfb; }
.link-options label { display: flex; align-items: center; gap: 7px; margin: 0; color: #34444a; font-size: 12px; text-transform: none; }
.link-options input { width: 15px; min-height: 15px; padding: 0; accent-color: var(--accent); }
.contact-picker-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.contact-picker-row select { min-width: 0; }
.contact-picker-row .button { min-height: 36px; white-space: nowrap; }
.contact-duplicate-hint { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 14px; border:1px solid #d7bddb; border-left:4px solid var(--accent); border-radius:4px; background:#fbf7fb; }
.contact-duplicate-hint > div { min-width:0; display:grid; grid-template-columns:32px minmax(0,1fr); align-items:center; gap:10px; }
.contact-duplicate-hint .duplicate-mark { width:32px; height:32px; display:grid; place-items:center; border-radius:50%; background:#eee0f0; color:var(--accent); }
.contact-duplicate-hint .duplicate-mark svg { width:17px; height:17px; }
.contact-duplicate-hint strong,.contact-duplicate-hint span,.contact-duplicate-hint small { display:block; }
.contact-duplicate-hint strong { color:#45204a; font-size:13px; }
.contact-duplicate-hint div div > span { margin-top:2px; color:#37474c; font-size:12px; }
.contact-duplicate-hint small { margin-top:2px; color:var(--muted); font-size:11px; }

.toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 8px; }
.toast { min-width: 280px; padding: 11px 14px; border-left: 4px solid var(--success); border-radius: 4px; background: #203034; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: toast-in .18s ease-out; }
.toast.error { border-color: #e06459; }
.loading { padding: 80px; text-align: center; color: var(--muted); }
.login-screen { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #e8edef; }
.login-screen::before { content: ""; position: absolute; inset: 0 0 auto; height: 7px; background: var(--accent); }
.login-panel { width: 390px; padding: 30px 32px 26px; border: 1px solid #d2dbde; border-radius: 6px; background: #fff; box-shadow: 0 18px 50px rgba(24,42,47,.14); }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 30px; }
.login-brand img { width: 42px; height: 42px; }
.login-brand strong, .login-brand span { display: block; }
.login-brand strong { color: #1d3034; font-size: 17px; }
.login-brand span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.login-panel h1 { margin: 0; font-size: 22px; }
.login-panel > p { margin: 6px 0 22px; color: var(--muted); font-size: 14px; }
.login-panel .field { margin-bottom: 13px; }
.login-panel .button { width: 100%; min-height: 39px; margin-top: 4px; }
.login-panel small { display: block; margin-top: 17px; color: #7a888d; text-align: center; }
.login-error { min-height: 19px; color: var(--danger); font-size: 13px; }
.designer-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) 90px minmax(280px, 1.2fr); gap: 12px; margin-bottom: 12px; }
.designer-toolbar .field label { margin-bottom: 4px; }
.designer-template-context { min-height: 54px; align-self: end; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-left: 3px solid var(--accent); background: #f7f0f8; color: #49324d; }
.designer-template-context > svg { width: 19px; height: 19px; color: var(--primary); }
.designer-template-context span,.designer-template-context small,.designer-template-context strong { display: block; min-width: 0; }
.designer-template-context small { color: #76667a; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.designer-template-context strong { margin-top: 2px; font-size: 13px; }
.designer-statusbar { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -3px 0 10px; padding: 7px 10px; border: 1px solid #d8d3d9; background: #f9f8f9; color: #5f5861; font-size: 12px; }
.designer-statusbar > span { display: flex; align-items: center; gap: 7px; }
.designer-statusbar svg { width: 15px; height: 15px; color: var(--primary); }
.designer-statusbar strong { white-space: nowrap; }
.designer-statusbar strong.saved { color: #2f7650; }
.designer-statusbar strong.pending,.designer-statusbar strong.saving { color: #8b641d; }
.designer-statusbar strong.error { color: var(--danger); }
.pdf-designer-layout { min-height: 0; display: grid; grid-template-columns: minmax(540px, 1fr) 300px; gap: 12px; }
.pdf-workbench { min-height: 610px; position: relative; display: grid; place-items: start center; padding: 16px; overflow: auto; border: 1px solid #d4cdd5; background: #ded9df; }
.designer-loading { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(237,233,238,.92); color: #706675; }
.pdf-stage { position: relative; display: none; max-width: 100%; line-height: 0; box-shadow: 0 5px 18px rgba(40,27,43,.18); }
.pdf-stage.ready { display: inline-block; }
.pdf-stage > img { width: 100%; height: 100%; display: block; user-select: none; }
.pdf-field-layer { position: absolute; inset: 0; overflow: hidden; line-height: normal; }
.pdf-field-layer.with-grid { background-image: linear-gradient(to right, rgba(128,52,137,.2) 1px, transparent 1px), linear-gradient(to bottom, rgba(128,52,137,.2) 1px, transparent 1px); background-size: var(--pdf-grid-x) var(--pdf-grid-y); }
.pdf-grid-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 8px 0; margin-bottom: 8px; }
.pdf-grid-tools label { display: flex; align-items: center; gap: 8px; margin: 0; }
.pdf-grid-tools input[type=checkbox] { width: 16px; height: 16px; margin: 0; }
.pdf-grid-tools select { width: auto; min-height: 34px; }
.pdf-grid-tools select, .pdf-alignment-tools select { font: inherit; color: inherit; background: var(--surface, #fff); border: 1px solid var(--border, #c7c1cf); border-radius: 4px; padding: 6px 10px; }
.pdf-grid-tools input[type=checkbox] { accent-color: #643182; }
.pdf-alignment-tools { display: grid; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border, #ddd); }
.pdf-alignment-tools label { display: grid; gap: 4px; min-width: 0; }
.pdf-alignment-tools select { width: 100%; min-width: 0; }
@media print { .pdf-field-layer.with-grid { background-image: none; } }
.pdf-field { position: absolute; min-width: 0; min-height: 0; display: flex; align-items: center; padding: 0; overflow: visible; border: 1px solid #643182; border-radius: 2px; background: rgba(128,52,137,.14); color: #4e1d55; cursor: move; touch-action: none; }
.pdf-field:hover, .pdf-field.selected { border-width: 2px; background: rgba(128,52,137,.25); box-shadow: 0 0 0 1px #fff; }
.pdf-field span { min-width: 0; max-height: 100%; flex: 1; overflow: hidden; font-size: inherit; font-weight: 600; line-height: 1.18; white-space: normal; }
.pdf-field.image-field { justify-content: center; border-style: dashed; background: rgba(255,255,255,.72); }
.pdf-field.cross-field { justify-content: center; color: #111; }
.document-library-sections { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border, #ddd); margin: 14px 0; }
.document-library-sections .tab { display: flex; align-items: center; gap: 8px; }
.document-library-sections .tab span { font-size: 12px; opacity: .75; }
.document-library-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.document-library-filters label { display: grid; gap: 5px; font-size: 12px; }
.document-library-filters select { min-width: 170px; }
.document-library-pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0; font-size: 13px; }
.document-library-pager > div { display: flex; align-items: center; gap: 12px; }
.document-library-pager [data-document-page]:first-child svg { transform: rotate(180deg); }
.document-scanner-details { padding: 10px 0; border-bottom: 1px solid var(--border, #ddd); }
.document-scanner-details summary { cursor: pointer; font-size: 14px; }
.document-scanner-details summary span { margin-left: 12px; color: var(--muted, #666); font-size: 12px; }
@media(max-width: 600px) { .document-library-filters label { flex: 1; min-width: 140px; } .document-library-filters select { width: 100%; min-width: 0; } .document-scanner-details summary span { display: block; margin: 6px 0 0; } }
.pdf-field.cross-field span { font-family: Arial, sans-serif; font-weight: 400; line-height: 1; text-align: center; }
.pdf-field.image-field img { width: 100%; height: 100%; display: block; padding: 2px; object-fit: contain; pointer-events: none; }
.pdf-resize-handle { position: absolute; right: -5px; bottom: -5px; z-index: 2; width: 11px; height: 11px; display: none; border: 2px solid #fff; border-radius: 50%; background: #643182; cursor: nwse-resize; }
.pdf-field.selected .pdf-resize-handle { display: block; }
.pdf-field.resizing { cursor: nwse-resize; }
.designer-sidebar { min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; }
.designer-sidebar-head { min-height: 104px; display: flex; flex-direction: column; justify-content: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.designer-sidebar-head strong, .designer-sidebar-head span { display: block; }
.designer-sidebar-head span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.placeholder-search { min-height: 34px; display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: center; gap: 5px; margin-top: 9px; padding: 0 8px; border: 1px solid #d2c9d4; border-radius: 4px; background: #fff; color: #776a79; }
.placeholder-search svg { width: 15px; height: 15px; }
.placeholder-search input { min-width: 0; height: 32px; padding: 0; border: 0; outline: 0; font-size: 12px; }
.placeholder-list { max-height: 360px; padding: 7px; overflow-y: auto; border-bottom: 1px solid var(--line); }
.placeholder-group { margin: 0 0 9px; }
.placeholder-group:last-child { margin-bottom: 0; }
.placeholder-group h4 { margin: 0; padding: 7px 8px 5px; color: var(--primary); font-size: 10px; text-transform: uppercase; }
.placeholder-list button { width: 100%; min-height: 42px; display: block; padding: 7px 8px; border: 0; border-bottom: 1px solid #ece7ed; background: #fff; color: #3e3441; text-align: left; }
.placeholder-list button:hover { background: #f7f0f8; }
.placeholder-list strong, .placeholder-list code { display: block; }
.placeholder-list strong { font-size: 13px; }
.placeholder-list code { margin-top: 3px; overflow: hidden; color: #7a6e7d; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.field-inspector { padding: 12px; }
.field-inspector > strong { display: block; margin-bottom: 11px; font-size: 13px; }
.field-inspector > p { margin: 0; color: var(--muted); font-size: 12px; }
.field-inspector .field { margin-bottom: 9px; }
.field-inspector .field-geometry-apply { width: 100%; justify-content: center; margin: 0 0 10px; }
.field-inspector .field-inspector-hint { margin: 2px 0 11px; line-height: 1.4; }
.signature-field-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 11px; padding: 9px; border-left: 3px solid var(--accent); background: #f8f2f8; color: #5d5060; font-size: 11px; line-height: 1.45; }
.signature-field-note svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; color: var(--primary); }
.account-profile-summary { min-height: 76px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 13px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--line); background: #fafbfb; }
.account-profile-summary .avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #eadcec; color: var(--primary); font-weight: 800; }
.account-profile-summary strong,.account-profile-summary span,.account-profile-summary small { display: block; }
.account-profile-summary > div > strong { color: #2d3d42; font-size: 15px; }
.account-profile-summary > div > span { margin-top: 3px; color: #506066; font-size: 12px; }
.account-profile-summary > div > small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.signature-editor { border: 1px solid var(--line); background: #fff; }
.signature-editor > header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-bottom: 1px solid var(--line); background: #faf7fa; }
.signature-editor > header strong,.signature-editor > header span { display: block; }
.signature-editor > header strong { color: #3b2940; font-size: 14px; }
.signature-editor > header span,.signature-editor > header small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.signature-editor-grid { display: grid; grid-template-columns: 245px minmax(0,1fr); gap: 14px; padding: 14px; }
.signature-editor-grid > div > label { display: block; margin-bottom: 6px; color: #59686d; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.signature-preview { height: 118px; display: grid; place-items: center; overflow: hidden; border: 1px solid #d3dade; background: #fff; }
.signature-preview.empty { background: repeating-linear-gradient(45deg,#f8f9f9,#f8f9f9 8px,#f1f3f3 8px,#f1f3f3 16px); }
.signature-preview img { width: 100%; height: 100%; display: block; padding: 8px; object-fit: contain; }
.signature-preview > span { display: grid; justify-items: center; gap: 7px; color: #7a8589; }
.signature-preview svg { width: 22px; height: 22px; }
.signature-preview small { font-size: 11px; }
.signature-upload-button { width: 100%; justify-content: center; margin-top: 8px; cursor: pointer; }
#signature-canvas { width: 100%; height: 156px; display: block; border: 1px solid #bbc7ca; background-color: #fff; background-image: linear-gradient(to bottom,transparent 74%,#e4d6e6 74%,#e4d6e6 calc(74% + 1px),transparent calc(74% + 1px)); cursor: crosshair; touch-action: none; }
.signature-canvas-actions { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.signature-canvas-actions > span { color: var(--muted); font-size: 11px; }
.signature-security-note { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); background: #f4f8f7; color: #39534e; }
.signature-security-note > svg { width: 18px; height: 18px; flex: 0 0 auto; color: #39745d; }
.signature-security-note strong,.signature-security-note small { display: block; }
.signature-security-note strong { font-size: 12px; }
.signature-security-note small { max-width: 780px; margin-top: 3px; color: #60716d; font-size: 11px; line-height: 1.45; }
.user-security-states { display: flex; flex-wrap: wrap; gap: 4px; }

@media (max-width: 820px) {
  .signature-editor-grid { grid-template-columns: 1fr; }
  .signature-preview { height: 105px; }
  #signature-canvas { height: 145px; }
  .account-profile-summary { grid-template-columns: 42px minmax(0,1fr); }
  .account-profile-summary > .status { grid-column: 1 / -1; justify-self: start; }
}
.designer-footer-note { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #397557; font-size: 12px; font-weight: 700; }
.designer-footer-note svg { width: 15px; height: 15px; }
.inspector-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; }
.button:disabled { cursor: wait; opacity: .65; }
.schedule-list { display: grid; }
.schedule-row { min-height: 72px; display: grid; grid-template-columns: 90px minmax(260px,1.6fr) minmax(170px,.8fr) 140px; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.schedule-row:last-child { border-bottom: 0; }
.schedule-row time, .schedule-row time strong, .schedule-row time span, .schedule-row > div > strong, .schedule-row > div > span, .schedule-row > div > small { display: block; }
.schedule-row time strong { color: var(--accent); font-size: 13px; text-transform: uppercase; }
.schedule-row time span { margin-top: 3px; font-size: 16px; font-weight: 700; }
.schedule-row > div > strong { font-size: 14px; }
.schedule-row > div > span, .schedule-row > div > small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.calendar-layout { display: grid; grid-template-columns: minmax(280px, 330px) minmax(0, 1fr); align-items: start; gap: 12px; }
.calendar-agenda-panel, .calendar-week-panel { min-width: 0; overflow: hidden; }
.calendar-agenda { max-height: 790px; overflow-y: auto; }
.calendar-agenda-item { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.calendar-agenda-item:last-child { border-bottom: 0; }
.calendar-agenda-item.cancelled { opacity: .5; }
.calendar-agenda-main { width: 100%; display: grid; grid-template-columns: 66px minmax(0,1fr); align-items: start; gap: 9px; padding: 0; border: 0; background: transparent; color: #34444a; text-align: left; }
.calendar-agenda-main:hover strong { color: var(--accent); }
.calendar-agenda-main time { padding-right: 8px; border-right: 2px solid #d8c1dc; }
.calendar-agenda-main time strong, .calendar-agenda-main time span, .calendar-agenda-main > span > strong, .calendar-agenda-main small { display: block; }
.calendar-agenda-main time strong { color: var(--accent); font-size: 12px; text-transform: uppercase; }
.calendar-agenda-main time span { margin-top: 4px; font-size: 17px; font-weight: 700; }
.calendar-agenda-main > span > strong { overflow: hidden; font-size: 14px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.calendar-agenda-main small { margin-top: 3px; overflow: hidden; color: #5f6f74; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-agenda-main .calendar-officiant { display: flex; align-items: center; gap: 5px; color: #713077; font-weight: 650; }
.calendar-agenda-main .calendar-officiant svg { width: 13px; height: 13px; flex: 0 0 auto; }
.calendar-agenda-item > .appointment-status { width: calc(100% - 75px); min-height: 30px; margin: 7px 0 0 75px; padding: 4px 7px; border: 1px solid #c9d3d6; border-radius: 3px; background: #fff; color: #46565c; font-size: 12px; }
.calendar-week-toolbar { min-height: 58px; display: grid; grid-template-columns: auto auto minmax(150px,1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.calendar-week-toolbar > div { display: flex; align-items: center; gap: 4px; }
.calendar-week-toolbar > strong { font-size: 14px; text-align: center; }
.calendar-week-toolbar > span { color: var(--muted); font-size: 12px; }
.calendar-week-toolbar .icon-button { border: 1px solid #d5dcde; }
.calendar-week-toolbar .calendar-prev svg { transform: rotate(180deg); }
.calendar-date-search { display: flex; align-items: center; gap: 7px; color: #56666c; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.calendar-date-search-field { min-height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 7px; border: 1px solid #c9d3d6; border-radius: 4px; background: #fff; color: var(--accent); }
.calendar-date-search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(128,52,137,.12); }
.calendar-date-search-field svg { width: 15px; height: 15px; flex: 0 0 auto; }
.calendar-date-search-field input { width: 126px; min-height: 30px; padding: 0; border: 0; outline: 0; background: transparent; color: #2f3c41; font: inherit; font-size: 12px; font-weight: 650; }
.calendar-week-scroll { width: 100%; overflow-x: auto; }
.calendar-week { min-width: 650px; background: #fff; }
.calendar-week-head { height: 49px; display: grid; grid-template-columns: 52px repeat(7, minmax(82px, 1fr)); border-bottom: 1px solid #dbe1e3; }
.calendar-day-head { display: flex; align-items: center; justify-content: center; gap: 6px; border-left: 1px solid #e0e5e7; }
.calendar-day-head span { color: #5f6f74; font-size: 12px; text-transform: uppercase; }
.calendar-day-head strong { font-size: 14px; }
.calendar-day-head.today { background: #f5ebf6; color: var(--accent); }
.calendar-day-head.selected-date { position: relative; background: #f1e6f3; color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.calendar-week-body { display: grid; grid-template-columns: 52px minmax(0,1fr); }
.calendar-time-axis { position: relative; height: 100%; background: #fafbfb; }
.calendar-time-axis span { position: absolute; right: 7px; color: #68777c; font-size: 12px; transform: translateY(-50%); }
.calendar-days { min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(82px,1fr)); }
.calendar-day-column { position: relative; min-width: 0; border-left: 1px solid #dfe5e7; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--calendar-hour-height) / 2 - 1px), #edf0f1 calc(var(--calendar-hour-height) / 2 - 1px), #edf0f1 calc(var(--calendar-hour-height) / 2)); }
.calendar-day-column.today { background-color: #fcf8fc; }
.calendar-day-column.selected-date { background-color: #faf3fb; box-shadow: inset 1px 0 rgba(128,52,137,.18), inset -1px 0 rgba(128,52,137,.18); }
.calendar-slot { position: absolute; z-index: 1; left: 0; width: 100%; height: calc(var(--calendar-hour-height) / 2); padding: 0; border: 0; background: transparent; }
.calendar-slot:hover { background: rgba(128, 52, 137, .055); }
.calendar-slot:focus-visible { z-index: 3; outline: 2px solid var(--accent); outline-offset: -2px; }
.calendar-event { position: absolute; z-index: 4; min-height: 24px; overflow: hidden; padding: 5px 6px; border: 0; border-left: 3px solid rgba(0,0,0,.18); border-radius: 3px; background: #6c82a7; color: #fff; text-align: left; box-shadow: 0 1px 2px rgba(35,46,52,.16); }
.calendar-event:hover { z-index: 5; filter: brightness(.94); box-shadow: 0 3px 8px rgba(35,46,52,.2); }
.calendar-event strong, .calendar-event span { display: block; overflow: hidden; text-overflow: ellipsis; }
.calendar-event strong { font-size: 12px; line-height: 1.3; }
.calendar-event .calendar-entry-heading, .calendar-agenda-main .calendar-entry-heading { display: flex; align-items: center; gap: 5px; min-width: 0; }
.calendar-entry-heading > span:not(.calendar-room-icon) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.calendar-event .calendar-room-icon, .calendar-agenda-main .calendar-room-icon { display: inline-flex; flex: 0 0 15px; width: 15px; height: 15px; align-items: center; color: inherit; }
.calendar-room-icon svg { display: block; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.calendar-event span { margin-top: 3px; font-size: 11px; line-height: 1.3; white-space: nowrap; }
.calendar-event.type-consultation { background: #55769f; }
.calendar-event.type-ceremony { background: #643182; }
.calendar-event.type-interment { background: #3f7d66; }
.calendar-event.type-pickup { background: #b8862d; }
.calendar-event.type-internal { background: #b34c63; }
.calendar-event.status-abgeschlossen { opacity: .58; }
.calendar-now { position: absolute; z-index: 6; left: 0; right: 0; height: 2px; background: #c33f55; pointer-events: none; }
.calendar-now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #c33f55; }
.text-danger { color: var(--danger) !important; }
.status.danger { background: #f8e7e5; color: #a64640; }
.status.workflow-toggle { border: 0; cursor: pointer; }
.billing-lines-field { margin-top: 5px; border: 1px solid var(--line); }
.billing-lines-title { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.billing-lines-title label { margin: 0; }
.billing-lines-title > small { color: var(--muted); font-size: 11px; font-weight: 400; }
.billing-tariff-import { margin-top: 5px; padding: 12px; border: 1px solid #d8dfe1; background: #faf7fa; }
.billing-tariff-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.billing-tariff-grid > article { min-width: 0; overflow: hidden; border: 1px solid #d6dde0; border-radius: 4px; background: #fff; }
.billing-tariff-grid > article > header { min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-bottom: 1px solid var(--line); background: #fafbfb; }
.tariff-package-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 4px; background: #eee2ef; color: var(--primary); }
.tariff-package-icon svg { width: 17px; height: 17px; }
.billing-tariff-grid header strong, .billing-tariff-grid header small { display: block; }
.billing-tariff-grid header strong { color: #344449; font-size: 13px; }
.billing-tariff-grid header small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.billing-tariff-source { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.billing-tariff-source label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.billing-tariff-source select { width: 100%; min-height: 34px; padding: 6px 8px; border: 1px solid #cbd4d7; border-radius: 4px; background: #fff; }
.billing-tariff-fees { max-height: 224px; overflow-y: auto; }
.billing-tariff-fees > label { min-height: 50px; display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid #e6eaeb; cursor: pointer; }
.billing-tariff-fees > label:last-child { border-bottom: 0; }
.billing-tariff-fees > label:hover { background: #faf7fa; }
.billing-tariff-fees input { width: 15px; height: 15px; accent-color: var(--primary); }
.billing-tariff-fees span, .billing-tariff-fees strong, .billing-tariff-fees small { min-width: 0; display: block; }
.billing-tariff-fees strong { overflow: hidden; color: #35454a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.billing-tariff-fees small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.billing-tariff-fees b { color: #56305b; font-size: 12px; white-space: nowrap; }
.billing-tariff-grid > article > footer { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 8px 10px; border-top: 1px solid var(--line); background: #fafbfb; }
.billing-tariff-grid footer span, .billing-tariff-grid footer strong, .billing-tariff-grid footer small { display: block; }
.billing-tariff-grid footer strong { color: var(--primary); font-size: 14px; }
.billing-tariff-grid footer small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.billing-line-labels, .billing-line-row { display: grid; grid-template-columns: minmax(170px,.9fr) minmax(190px,1.25fr) 72px 112px 72px 32px; gap: 7px; }
.billing-line-labels { padding: 0 1px 5px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.line-editor { display: grid; gap: 8px; }
.billing-line-row { padding: 9px; border: 1px solid #dce3e5; border-radius: 4px; background: #fafbfb; }
.billing-line-row.package-line { border-left: 3px solid var(--primary); background: #fbf8fb; }
.billing-line-row input, .billing-line-row select { width: 100%; min-width: 0; min-height: 35px; padding: 6px 8px; border: 1px solid #cbd4d7; border-radius: 4px; background: #fff; }
.billing-line-row > .icon-button { align-self: center; border: 1px solid #d9dfe1; color: #8a4a54; }
.billing-line-row > small { grid-column: 1 / -1; overflow: hidden; color: #68787d; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.billing-line-row .service-line-assignment { margin: -9px -9px 2px; }
.billing-line-row.third-party-line { background: #fcf9fc; }
.billing-editor-summary { display: grid; grid-template-columns: repeat(3,minmax(120px,1fr)); margin-top: 10px; border: 1px solid #d8dfe1; background: #f7f3f7; }
.billing-editor-summary > div { padding: 10px 12px; border-right: 1px solid #d8dfe1; text-align: right; }
.billing-editor-summary > div:last-child { border-right: 0; }
.billing-editor-summary span, .billing-editor-summary strong { display: block; }
.billing-editor-summary span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.billing-editor-summary strong { margin-top: 4px; color: #46324a; font-size: 16px; }
.inventory-actions { display: flex; justify-content: flex-end; gap: 3px; }
.inventory-actions .icon-button { border: 1px solid #d8dfe1; }
.data-table tr.inactive-row { opacity: .62; }
.billing-detail-lines { min-width: 620px; }
.billing-package-detail-line td:first-child { border-left: 3px solid #9e61a2; }
.case-billing-lines .case-billing-group th { padding: 9px 10px; border-top: 2px solid #d8dfe1; background: #f4f7f7; color: #35454a; font-size: 12px; text-align: left; }
.case-billing-lines .case-billing-group:nth-of-type(n+2) th { background: #f8f3f8; }
.preneed-billing-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.billing-summary { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); background: #f8faf9; }
.billing-summary > div { padding: 13px; border-right: 1px solid var(--line); }
.billing-summary > div:last-child { border-right: 0; }
.billing-summary span, .billing-summary strong { display: block; }
.billing-summary span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.billing-summary strong { margin-top: 5px; font-size: 17px; }
.data-table.compact th, .data-table.compact td { padding: 8px 10px; }
.payment-row { display: flex; align-items: center; gap: 18px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.payment-row span { color: var(--muted); font-size: 12px; }
.case-billing-toolbar > button { flex: 0 0 auto; }
.case-billing-overview { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 14px; border: 1px solid var(--line); background: #fff; }
.case-billing-overview > div { min-height: 76px; padding: 12px 14px; border-right: 1px solid var(--line); }
.case-billing-overview > div:last-child { border-right: 0; }
.case-billing-overview span, .case-billing-overview strong { display: block; }
.case-billing-overview span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.case-billing-overview strong { margin-top: 7px; color: #35454a; font-size: 17px; }
.case-billing-overview .open strong { color: #a64640; }
.case-billing-list { display: grid; gap: 12px; }
.case-article-selection { margin-bottom: 14px; border: 1px solid #d9cfdb; border-left: 4px solid var(--accent); background: #fff; }
.case-article-selection > header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 14px; border-bottom: 1px solid #e7e0e8; background: #fbf8fb; }
.case-article-selection > header div { display: grid; gap: 3px; }
.case-article-selection > header span { color: var(--muted); font-size: 12px; }
.case-article-selection > header > b { color: var(--accent); font-size: 17px; white-space: nowrap; }
.case-article-selection > div { display: grid; }
.case-article-selection article { min-height: 70px; display: grid; grid-template-columns: 52px minmax(0,1fr) auto auto 34px; align-items: center; gap: 13px; padding: 9px 12px; border-bottom: 1px solid #ece7ed; }
.case-article-selection article:last-child { border-bottom: 0; }
.case-article-selection article > div { min-width: 0; display: grid; gap: 2px; }
.case-article-selection article small, .case-article-selection article em { overflow: hidden; color: var(--muted); font-size: 11px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.case-article-selection article > span:not(.case-article-image), .case-article-selection article > strong { white-space: nowrap; }
.case-article-image { width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e3dce5; background: #f5f3f5; }
.case-article-image img { width: 100%; height: 100%; object-fit: contain; }
.case-article-image svg { color: var(--accent); }
.case-billing-document { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.case-billing-document > header { min-height: 68px; display: grid; grid-template-columns: minmax(0,1fr) auto auto auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfb; }
.case-billing-document > header > div { min-width: 0; }
.case-billing-document > header div > span, .case-billing-document > header div > strong, .case-billing-document > header div > small { display: block; }
.case-billing-document > header div > span { color: var(--primary); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.case-billing-document > header div > strong { margin-top: 3px; color: #303f44; font-size: 15px; }
.case-billing-document > header div > small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.case-billing-table-wrap { overflow-x: auto; }
.case-billing-lines { width: 100%; min-width: 680px; border-collapse: collapse; }
.case-billing-lines th, .case-billing-lines td { padding: 9px 11px; border-bottom: 1px solid #e4e9ea; color: #45555a; font-size: 11px; text-align: left; }
.case-billing-lines th { background: #f5f2f6; color: #6d5471; font-size: 11px; text-transform: uppercase; }
.case-billing-lines td strong { color: #303f44; font-size: 12px; }
.case-billing-lines td small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.memorial-admin-section { margin-top: 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.memorial-admin-section > header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #faf9fa; }
.memorial-admin-section > header > div:first-child > span,.memorial-admin-section > header > div:first-child > strong,.memorial-admin-section > header > div:first-child > small { display: block; }
.memorial-admin-section > header > div:first-child > span { color: var(--primary); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.memorial-admin-section > header > div:first-child > strong { margin-top: 3px; color: #364549; font-size: 14px; }
.memorial-admin-section > header > div:first-child > small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.memorial-admin-section > header > div:last-child { display: flex; flex-wrap: wrap; gap: 7px; }
.memorial-admin-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 14px; }
.memorial-admin-settings > .field { margin: 0; }
.memorial-admin-settings .field > small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.memorial-portrait-field { grid-column: 1 / -1; }
.memorial-portrait-source { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:stretch; gap:8px; }
.memorial-portrait-source select { min-width:0; }
.memorial-portrait-upload { min-height:38px; white-space:nowrap; cursor:pointer; }
.memorial-portrait-upload input { width:1px !important; height:1px !important; position:absolute !important; opacity:0 !important; pointer-events:none; }
.memorial-portrait-upload.uploading { opacity:.6; pointer-events:none; }
.memorial-portrait-field > small { display:block; margin-top:7px; color:var(--muted); font-size:12px; line-height:1.45; }
.memorial-portrait-editor { min-height: 230px; display: grid; grid-template-columns: 210px minmax(0,1fr); align-items: center; gap: 24px; margin-top: 12px; padding: 18px; border: 1px solid #ddd5df; border-radius: 4px; background: #faf8fa; }
.memorial-portrait-editor.empty { opacity: .65; }
.memorial-portrait-preview { position: relative; width: 168px; height: 224px; display: grid; place-items: center; overflow: hidden; border: 5px solid #fff; border-radius: 12px; outline: 1px solid rgba(198,161,91,.7); outline-offset: -9px; background: #ede8ee; box-shadow: 0 10px 28px rgba(57,39,59,.16); color: var(--muted); font-size: 12px; cursor: grab; touch-action: none; user-select: none; }
.memorial-portrait-preview:focus-visible { outline:3px solid rgba(128,52,137,.28); outline-offset:4px; }
.memorial-portrait-preview.dragging { cursor: grabbing; }
.memorial-portrait-preview img { width: 100%; height: 100%; display: block; object-fit: cover; transform-origin: center; will-change:transform,object-position; pointer-events: none; }
.memorial-portrait-controls { display: grid; gap: 13px; }
.memorial-portrait-controls > label { display: grid; grid-template-columns: 90px minmax(0,1fr) 55px; align-items: center; gap: 10px; color: #405055; font-size: 12px; }
.memorial-portrait-controls output { grid-column: 3; grid-row: 1; color: var(--primary); font-size: 11px; font-weight: 700; text-align: right; }
.memorial-portrait-controls input[type="range"] { grid-column: 2; grid-row: 1; width: 100%; accent-color: var(--primary); }
.memorial-portrait-controls > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.memorial-portrait-controls > div small { color: var(--muted); font-size: 11px; }
.memorial-public-toggle { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: #f7faf9; }
.memorial-public-toggle strong,.memorial-public-toggle small { display: block; }
.memorial-public-toggle strong { font-size: 12px; }
.memorial-public-toggle small { max-width: 300px; margin-top: 3px; color: var(--muted); font-size: 11px; }
.memorial-admin-facts { display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid var(--line); }
.memorial-admin-facts > div { min-height: 62px; padding: 10px 12px; border-right: 1px solid var(--line); }
.memorial-admin-facts > div:last-child { border-right: 0; }
.memorial-admin-facts span,.memorial-admin-facts strong { display: block; }
.memorial-admin-facts span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.memorial-admin-facts strong { margin-top: 6px; color: #3d4d51; font-size: 16px; }
.memorial-print-publication-list { padding: 0 14px; }
.memorial-print-publication-row { min-height: 70px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto 38px; align-items: center; gap: 12px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); color: #35454a; cursor: pointer; }
.memorial-print-publication-row:last-child { border-bottom: 0; }
.memorial-print-publication-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 4px; background: #f3edf4; color: var(--primary); }
.memorial-print-publication-icon svg { width: 18px; height: 18px; }
.memorial-print-publication-row > span:nth-child(2) { min-width: 0; }
.memorial-print-publication-row > span:nth-child(2) strong,.memorial-print-publication-row > span:nth-child(2) small { display: block; }
.memorial-print-publication-row > span:nth-child(2) strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.memorial-print-publication-row > span:nth-child(2) small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.memorial-moderation-list { padding: 0 14px; }
.memorial-moderation-row { min-height: 92px; display: grid; grid-template-columns: 60px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.memorial-moderation-row:last-child { border-bottom: 0; }
.memorial-moderation-row > img { width: 52px; height: 66px; object-fit: contain; }
.memorial-moderation-row > div:nth-child(2) > strong,.memorial-moderation-row > div:nth-child(2) > span { display: block; }
.memorial-moderation-row > div:nth-child(2) > strong { font-size: 12px; }
.memorial-moderation-row > div:nth-child(2) > span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.memorial-moderation-row p { margin: 6px 0 0; color: #4a585c; font-family: Georgia,serif; font-size: 13px; line-height: 1.45; }
.memorial-moderation-row > div:last-child { display: flex; gap: 6px; }
.memorial-memory-moderation-row { min-height: 126px; display: grid; grid-template-columns: 120px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.memorial-memory-moderation-row:last-child { border-bottom: 0; }
.memorial-memory-moderation-row > img { width: 112px; height: 96px; display: block; border-radius: 3px; object-fit: cover; background: #eee; }
.memorial-memory-moderation-row > div:nth-child(2) > strong,.memorial-memory-moderation-row > div:nth-child(2) > span { display: block; }
.memorial-memory-moderation-row > div:nth-child(2) > strong { font-size: 14px; }
.memorial-memory-moderation-row > div:nth-child(2) > span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.memorial-memory-moderation-row p { max-width: 760px; margin: 7px 0 0; color: #4a585c; font-family: Georgia,serif; font-size: 13px; line-height: 1.5; }
.memorial-memory-moderation-row > div:last-child { display: flex; gap: 6px; }
.case-billing-lines .number { text-align: right; white-space: nowrap; }
.case-billing-notes { margin: 0; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #fffdf8; color: #665f51; font-size: 11px; }
.case-billing-document > footer { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); background: #fafbfb; }
.case-billing-document > footer > div { min-height: 60px; padding: 10px 12px; border-right: 1px solid var(--line); text-align: right; }
.case-billing-document > footer > div:last-child { border-right: 0; }
.case-billing-document > footer span, .case-billing-document > footer strong { display: block; }
.case-billing-document > footer span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.case-billing-document > footer strong { margin-top: 5px; color: #35454a; font-size: 14px; }
.case-billing-document > footer .open strong { color: #a64640; }
.case-billing-toolbar-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.billing-existing-invoice { min-height:58px; display:flex; align-items:center; gap:10px; padding:10px 12px; border-left:3px solid var(--accent); background:#f8f1f8; color:#4e3550; }
.billing-existing-invoice > svg { width:20px; height:20px; flex:0 0 auto; color:var(--accent); }
.billing-existing-invoice span,.billing-existing-invoice strong,.billing-existing-invoice small { display:block; }
.billing-existing-invoice strong { font-size:13px; }
.billing-existing-invoice small { margin-top:3px; color:#6e5a70; font-size:11px; line-height:1.4; }
.payment-direction-switch { display:grid; grid-template-columns:1fr 1fr; gap:0; margin-bottom:16px; padding:3px; border:1px solid #cbd4d7; border-radius:4px; background:#eef1f2; }
.payment-direction-switch button { min-height:42px; display:flex; align-items:center; justify-content:center; gap:8px; border:0; border-radius:3px; background:transparent; color:#526268; font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.payment-direction-switch button svg { width:17px; height:17px; }
.payment-direction-switch button.active { background:#fff; color:var(--accent); box-shadow:0 1px 4px rgba(38,52,57,.13); }
.payment-journal { margin-top:14px; border:1px solid var(--line); background:#fff; }
.payment-journal > header { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 13px; border-bottom:1px solid var(--line); background:#fafbfb; }
.payment-journal > header div strong,.payment-journal > header div span { display:block; }
.payment-journal > header div strong { color:#304146; font-size:14px; }
.payment-journal > header div span { margin-top:3px; color:var(--muted); font-size:11px; }
.payment-journal > header > span { color:var(--muted); font-size:12px; font-weight:700; }
.payment-journal-list { display:grid; }
.payment-journal-row { min-height:72px; display:grid; grid-template-columns:38px 112px minmax(0,1fr) 130px; align-items:center; gap:12px; padding:10px 13px; border-bottom:1px solid var(--line); }
.payment-journal-row:last-child { border-bottom:0; }
.payment-journal-direction { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:#e8f4ed; color:#2d7751; }
.payment-journal-row.outgoing .payment-journal-direction { background:#f9eae8; color:#a3463f; }
.payment-journal-direction svg { width:16px; height:16px; }
.payment-journal-row time { padding-right:11px; border-right:1px solid var(--line); }
.payment-journal-row time strong,.payment-journal-row time span,.payment-journal-row > div strong,.payment-journal-row > div span,.payment-journal-row > div small { display:block; }
.payment-journal-row time strong { color:#38494e; font-size:12px; }
.payment-journal-row time span { margin-top:3px; color:var(--muted); font-size:11px; }
.payment-journal-row > div { min-width:0; }
.payment-journal-row > div strong { overflow:hidden; color:#2f3f44; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.payment-journal-row > div span { margin-top:3px; color:#536369; font-size:11px; }
.payment-journal-row > div small { margin-top:3px; overflow:hidden; color:var(--muted); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.payment-journal-row > b { justify-self:end; color:#27704b; font-size:14px; }
.payment-journal-row.outgoing > b { color:#a23f38; }
@media (max-width:800px) {
  .case-billing-toolbar-actions { width:100%; justify-content:flex-start; }
  .payment-journal-row { grid-template-columns:34px minmax(0,1fr) auto; gap:9px; }
  .payment-journal-row time { grid-column:2; padding-right:0; border-right:0; }
  .payment-journal-row > div { grid-column:2 / -1; }
  .payment-journal-row > b { grid-column:3; grid-row:1; }
  .payment-journal-row > div small { white-space:normal; }
}
.case-billing-payments { display: grid; grid-template-columns: 100px repeat(auto-fit,minmax(180px,1fr)); align-items: stretch; border-top: 1px solid var(--line); background: #f4f8f7; }
.case-billing-payments > span { display: flex; align-items: center; padding: 9px 12px; color: #477064; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.case-billing-payments > div { padding: 9px 12px; border-left: 1px solid #dce6e2; }
.case-billing-payments strong, .case-billing-payments small { display: block; }
.case-billing-payments strong { color: #376552; font-size: 13px; }
.case-billing-payments small { margin-top: 3px; color: #61746c; font-size: 11px; }
.operation-note { padding: 12px 15px; border-top: 1px solid var(--line); background: #f7f8f9; color: var(--muted); font-size: 12px; line-height: 1.5; }
.audit-overview { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); margin-bottom: 14px; border: 1px solid var(--line); background: #fff; }
.audit-overview > div { min-height: 88px; padding: 13px 15px; border-right: 1px solid var(--line); }
.audit-overview > div:last-child { border-right: 0; }
.audit-overview span, .audit-overview strong, .audit-overview small { display: block; }
.audit-overview span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.audit-overview strong { margin-top: 7px; color: #27363b; font-size: 22px; }
.audit-overview small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.audit-overview .critical strong { color: #a64640; }
.audit-overview .attention strong { color: #9b6c1d; }
.audit-panel { overflow: hidden; }
.audit-toolbar { min-height: 58px; display: grid; grid-template-columns: minmax(250px, 1.4fr) repeat(4, minmax(130px, .75fr)) auto; align-items: center; gap: 8px; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.audit-toolbar select { width: 100%; min-height: 34px; padding: 6px 28px 6px 9px; border: 1px solid #cbd4d7; border-radius: 4px; background: #fff; color: #34444a; font-size: 12px; }
.audit-toolbar > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.audit-table { min-width: 1120px; }
.audit-table th:last-child, .audit-table td:last-child { width: 42px; text-align: right; }
.audit-time strong, .audit-time small, .audit-action strong, .audit-action small { display: block; }
.audit-time strong { font-size: 12px; white-space: nowrap; }
.audit-time small, .audit-action small { max-width: 190px; margin-top: 4px; overflow: hidden; color: var(--muted); font-family: Consolas, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.audit-action strong { max-width: 310px; font-size: 12px; line-height: 1.4; }
.audit-reference { max-width: 250px; overflow-wrap: anywhere; color: #536268; font-size: 11px; line-height: 1.4; }
.audit-open-target { margin-left: auto; }
.backup-actions { display: flex; justify-content: flex-end; gap: 5px; }
.backup-table td:first-child strong { overflow-wrap: anywhere; }
.backup-file strong,.backup-file small { display:block; }
.backup-file small { margin-top:4px; color:var(--muted); font-size:10px; }
.backup-control-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr); gap:14px; margin-bottom:14px; }
.backup-settings-panel,.backup-inbox-panel { min-width:0; }
.backup-settings-body { padding:14px; }
.backup-enable { min-height:58px; margin-bottom:13px; padding:8px 11px; }
.backup-enable > span { display:grid; gap:3px; }
.backup-enable small { color:var(--muted); font-size:10px; font-weight:500; }
.backup-schedule-fields { gap:10px; }
.backup-scope { margin-top:14px; border:1px solid var(--line); background:#fff; }
.backup-scope > header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 12px; border-bottom:1px solid var(--line); background:#f8f6f9; }
.backup-scope > header strong,.backup-scope > header span { display:block; }
.backup-scope > header > div > span { margin-top:2px; color:var(--muted); font-size:10px; }
.backup-section-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:10px; }
.backup-section-choice { position:relative; display:grid; grid-template-columns:18px 32px minmax(0,1fr); align-items:center; gap:8px; min-height:70px; padding:9px; border:1px solid #dfe3e4; border-radius:5px; background:#fbfcfc; cursor:pointer; transition:border-color .15s ease,background .15s ease,box-shadow .15s ease; }
.backup-section-choice:hover { border-color:#cdb6d0; background:#fcf9fc; }
.backup-section-choice:has(input:checked) { border-color:#b987be; background:#faf4fa; box-shadow:inset 3px 0 0 var(--primary); }
.backup-section-choice input { width:16px; height:16px; margin:0; accent-color:var(--primary); }
.backup-section-icon { width:30px; height:30px; display:grid; place-items:center; border-radius:5px; background:#edf3f2; color:#467277; }
.backup-section-choice:has(input:checked) .backup-section-icon { background:#eadbec; color:var(--primary); }
.backup-section-icon svg { width:15px; height:15px; }
.backup-section-choice strong,.backup-section-choice small { display:block; }
.backup-section-choice strong { color:#334349; font-size:11px; line-height:1.3; }
.backup-section-choice small { margin-top:3px; color:var(--muted); font-size:9px; line-height:1.35; }
.backup-scope > p { display:flex; align-items:flex-start; gap:7px; margin:0; padding:9px 12px; border-top:1px solid var(--line); background:#f6faf9; color:#52666a; font-size:10px; line-height:1.45; }
.backup-scope > p svg { width:14px; height:14px; flex:0 0 auto; margin-top:1px; color:#47797d; }
.backup-destinations { margin-top:14px; border:1px solid var(--line); background:#fff; }
.backup-destinations > header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 12px; border-bottom:1px solid var(--line); background:#f8f6f9; }
.backup-destinations > header strong,.backup-destinations > header span { display:block; }
.backup-destinations > header > div > span { margin-top:2px; color:var(--muted); font-size:10px; }
.backup-destination-grid { display:grid; }
.backup-destination { display:grid; grid-template-columns:minmax(210px,.75fr) minmax(0,1.25fr); gap:14px; padding:12px; border-bottom:1px solid var(--line); }
.backup-destination > .toggle-row { align-self:start; min-height:48px; padding:7px 9px; }
.backup-destination > .toggle-row strong { display:flex; align-items:center; gap:7px; }
.backup-destination > .toggle-row strong svg { width:15px; height:15px; color:var(--primary); }
.backup-destination-fields { display:grid; gap:8px; }
.backup-destination-fields > small { color:var(--muted); font-size:10px; line-height:1.45; }
.backup-destination-fields .destination-warning { color:#8a6424; }
.backup-recipient-list { display:flex; flex-wrap:wrap; gap:6px; min-height:36px; padding:6px; border:1px solid var(--line); background:#fbfafc; }
.backup-recipient-chip { display:inline-flex; align-items:center; min-width:0; min-height:26px; border:1px solid #d8c5da; border-radius:4px; background:#faf5fa; color:#5f2868; }
.backup-recipient-chip > span { display:flex; align-items:center; gap:5px; min-width:0; padding:4px 7px; font-size:11px; font-weight:700; overflow-wrap:anywhere; }
.backup-recipient-chip > span svg { width:13px; height:13px; flex:0 0 auto; }
.backup-recipient-chip > button { display:grid; place-items:center; width:26px; height:26px; padding:0; border:0; border-left:1px solid #d8c5da; background:transparent; color:#74437b; cursor:pointer; }
.backup-recipient-chip > button:hover { background:#f0e4f1; color:var(--primary); }
.backup-recipient-chip > button:disabled { cursor:not-allowed; opacity:.45; }
.backup-recipient-chip > button svg { width:13px; height:13px; }
.backup-recipient-empty { align-self:center; padding:2px 3px; color:var(--muted); font-size:10px; }
.ftp-destination-fields { grid-template-columns:minmax(170px,1fr) 100px; gap:8px; }
.ftp-destination-fields .field:nth-child(3),.ftp-destination-fields .field:nth-child(4) { grid-column:auto; }
.backup-delivery-status { display:grid; grid-template-columns:auto 1fr; gap:3px 12px; padding:10px 12px; background:#f7faf9; }
.backup-delivery-status span { color:var(--muted); font-size:10px; text-transform:uppercase; }
.backup-delivery-status strong { color:#34444a; font-size:11px; text-align:right; }
.backup-delivery-status p { grid-column:1 / -1; margin:2px 0 0; color:var(--muted); font-size:10px; line-height:1.45; }
.backup-runtime { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:13px; border:1px solid var(--line); background:#fafbfb; }
.backup-runtime > div { padding:10px 12px; border-right:1px solid var(--line); }
.backup-runtime span,.backup-runtime strong { display:block; }
.backup-runtime span { color:var(--muted); font-size:10px; text-transform:uppercase; }
.backup-runtime strong { margin-top:4px; color:#34444a; font-size:12px; }
.backup-runtime p { grid-column:1 / -1; margin:0; padding:8px 12px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; }
.backup-settings-body > footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:13px; }
.backup-settings-body > footer > span { color:var(--muted); font-size:11px; }
.backup-inbox-body { display:grid; grid-template-columns:42px minmax(0,1fr); gap:12px; padding:16px; }
.backup-inbox-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:5px; background:#f2e8f3; color:var(--primary); }
.backup-inbox-icon svg { width:20px; height:20px; }
.backup-inbox-body strong,.backup-inbox-body code { display:block; }
.backup-inbox-body code { margin-top:7px; padding:8px 9px; overflow-wrap:anywhere; border:1px solid #d8ccda; background:#faf7fa; color:#5f3964; font-size:11px; }
.backup-inbox-body p { margin:9px 0 0; color:var(--muted); font-size:11px; line-height:1.5; }
.backup-inbox-status { margin:0 16px 12px; padding:10px 12px; border-left:3px solid var(--accent-2); background:#f4f8f8; }
.backup-inbox-status span,.backup-inbox-status strong { display:block; }
.backup-inbox-status span { color:var(--muted); font-size:10px; }
.backup-inbox-status strong { margin-top:3px; color:#3c5559; font-size:11px; }
.backup-inbox-panel .panel-actions { padding:0 16px 14px; }
.backup-archive-info { display:flex; align-items:center; gap:10px; margin-top:12px; padding:10px 12px; border:1px solid #d8ccda; background:#faf7fa; color:var(--primary); }
.backup-archive-info > svg { width:20px; height:20px; }
.backup-archive-info strong,.backup-archive-info small { display:block; }
.backup-archive-info small { margin-top:3px; color:var(--muted); font-size:11px; }
.backup-manual-intro { display:flex; align-items:center; gap:11px; margin-bottom:12px; padding:11px 12px; border-left:3px solid var(--accent-2); background:#f3f8f7; }
.backup-manual-intro > svg { width:22px; height:22px; flex:0 0 auto; color:#46767a; }
.backup-manual-intro strong { font-size:13px; }
.backup-manual-intro p { margin:3px 0 0; color:var(--muted); font-size:11px; }
.backup-section-grid-modal { grid-template-columns:repeat(3,minmax(0,1fr)); padding:0; }
.backup-scope-note { margin-top:12px; padding:9px 11px; border:1px solid #e2d7c1; background:#fcf9f2; color:#75603a; font-size:11px; line-height:1.45; }
.backup-scope-review { margin-top:10px; padding:11px 12px; border:1px solid var(--line); background:#fff; }
.backup-scope-review > strong { display:block; margin-bottom:8px; color:#415057; font-size:11px; text-transform:uppercase; }
.backup-scope-review > div { display:flex; flex-wrap:wrap; gap:5px; }
.backup-scope-review span { padding:4px 7px; border:1px solid #d9c4dc; border-radius:4px; background:#f7eff8; color:#713179; font-size:10px; font-weight:700; }
.backup-warning.legacy { border-left-color:var(--gold); background:#fbf8ef; }
@media (max-width:1050px) {
  .backup-control-grid { grid-template-columns:1fr; }
}
@media (max-width:700px) {
  .backup-section-grid,.backup-section-grid-modal { grid-template-columns:1fr; }
  .backup-destination { grid-template-columns:1fr; }
  .ftp-destination-fields { grid-template-columns:1fr; }
  .ftp-destination-fields .field { grid-column:1 !important; }
  .backup-runtime { grid-template-columns:1fr; }
  .backup-runtime > div { border-right:0; border-bottom:1px solid var(--line); }
  .backup-settings-body > footer { align-items:flex-start; flex-direction:column; }
}
.backup-validation { min-height: 68px; display: flex; align-items: center; gap: 13px; padding: 13px 15px; border-left: 3px solid var(--accent-2); background: #f4f8f8; }
.backup-validation.invalid { border-left-color: var(--danger); background: #fdf4f3; }
.backup-validation-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #dcebea; color: #366f73; }
.backup-validation.invalid .backup-validation-icon { background: #f4dedc; color: var(--danger); }
.backup-validation-icon svg { width: 17px; height: 17px; }
.backup-validation strong, .backup-validation p { display: block; }
.backup-validation strong { font-size: 15px; }
.backup-validation p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.backup-summary { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 14px; border: 1px solid var(--line); }
.backup-summary > div { min-height: 76px; padding: 12px; border-right: 1px solid var(--line); }
.backup-summary > div:last-child { border-right: 0; }
.backup-summary span, .backup-summary strong, .backup-summary small { display: block; }
.backup-summary span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.backup-summary strong { margin-top: 6px; color: var(--accent); font-size: 17px; }
.backup-summary small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.backup-warning { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--danger); background: #fdf4f3; }
.backup-warning strong { color: #883934; font-size: 13px; }
.backup-warning p { margin: 5px 0 0; color: #775653; font-size: 12px; }
.restore-confirmation { margin-top: 14px; padding: 14px; border: 1px solid var(--line); background: #fafbfb; }
.restore-confirmation.focused { border-color: #d4b3d7; box-shadow: inset 3px 0 0 var(--accent); }
.restore-confirmation > div { margin-bottom: 12px; }
.restore-confirmation > div strong { font-size: 14px; }
.restore-confirmation > div p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.backup-hash { margin-top: 13px; padding: 9px 11px; background: #f5f6f7; }
.backup-hash span, .backup-hash code { display: block; }
.backup-hash span { margin-bottom: 4px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.backup-hash code { overflow-wrap: anywhere; color: #514356; font-size: 11px; }
.mail-account-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.mail-account-table td:nth-child(2) strong { font-size: 12px; }
.data-table code { color: #625566; font-size: 11px; }
.hidden { display: none !important; }
.operations-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; margin-bottom: 14px; }
.deregistration-template-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; align-items: start; }
.deregistration-template-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 12px; border: 1px solid var(--line); background: #fff; }
.deregistration-template-summary > div { min-height: 72px; padding: 12px 14px; border-right: 1px solid var(--line); }
.deregistration-template-summary > div:last-child { border-right: 0; }
.deregistration-template-summary span, .deregistration-template-summary strong { display: block; }
.deregistration-template-summary span { color: var(--muted); font-size: 12px; }
.deregistration-template-summary strong { margin-top: 6px; color: #35454a; font-size: 18px; }
.deregistration-template-nav { display: grid; gap: 2px; padding: 6px; border: 1px solid var(--line); background: #fff; }
.deregistration-template-nav-item { min-width: 0; padding: 11px 12px; border: 0; border-left: 3px solid transparent; border-radius: 2px; background: transparent; color: #1f2933; text-align: left; cursor: pointer; }
.deregistration-template-nav-item:hover { background: #f6f2f7; }
.deregistration-template-nav-item.active { border-left-color: var(--accent); background: #f5edf6; color: var(--accent); }
.deregistration-template-nav-item.inactive:not(.active) { opacity: .62; }
.deregistration-template-nav-item strong, .deregistration-template-nav-item span { display: block; }
.deregistration-template-nav-item strong { font-size: 14px; }
.deregistration-template-nav-item span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.deregistration-template-editor form { display: grid; gap: 16px; }
.deregistration-template-meta .toggle-row > span { min-width: 0; display: grid; gap: 3px; }
.deregistration-template-meta .toggle-row small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.4; }
.deregistration-template-editor textarea { min-height: 310px; line-height: 1.55; }
.deregistration-placeholder-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
.deregistration-placeholder-toolbar .button { font-family: Consolas, monospace; font-size: 12px; }
.deregistration-template-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 2px; color: var(--muted); font-size: 13px; }
.deregistration-template-footer > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.mourning-operation-tabs { margin-bottom: 12px; }
.mourning-operation-motifs { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 12px; }
.mourning-operation-motifs article { min-width: 0; display: grid; grid-template-columns: 76px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px; border: 1px solid var(--line); background: #fff; }
.mourning-operation-motif-image { width: 76px; height: 66px; overflow: hidden; border: 1px solid #d9dfe0; background: #f5f6f6; }
.mourning-operation-motifs article > div:nth-child(2) strong, .mourning-operation-motifs article > div:nth-child(2) span { display: block; }
.mourning-operation-motifs article > div:nth-child(2) strong { font-size: 14px; }
.mourning-operation-motifs article > div:nth-child(2) span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.mourning-operation-verses { display: grid; }
.mourning-operation-verses article { min-height: 62px; display: grid; grid-template-columns: 92px minmax(0,1fr) 72px 36px; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.mourning-operation-verses article:last-child { border-bottom: 0; }
.mourning-operation-verses p { margin: 0; color: #354449; font-family: Georgia, serif; font-size: 14px; line-height: 1.45; }
.mourning-fold-notice { min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-left: 3px solid var(--accent); background: #f6f1f7; }
.mourning-fold-notice svg { color: var(--accent); }
.mourning-fold-notice strong, .mourning-fold-notice span { display: block; }
.mourning-fold-notice span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.security-setting { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px; }
.security-setting strong { font-size: 16px; }
.security-setting p { max-width: 540px; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.panel-actions { display: flex; justify-content: flex-end; padding: 10px 16px; border-top: 1px solid var(--line); background: #fafbfb; }
.security-checks { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.security-checks > div { min-width: 0; min-height: 96px; padding: 16px 12px; border-right: 1px solid var(--line); overflow-wrap: anywhere; }
.security-checks > div:last-child { border-right: 0; }
.security-checks strong, .security-checks span { display: block; }
.security-checks strong { color: var(--accent); font-size: 16px; }
.security-checks span { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.approval-operations { margin-bottom: 14px; }
.approval-operation-body { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 16px; padding: 18px; }
.approval-operation-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--accent); }
.approval-operation-icon svg { width: 24px; height: 24px; }
.approval-operation-body strong { font-size: 16px; }
.approval-operation-body p { max-width: 760px; margin: 6px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.approval-operation-body small { color: #6b4870; font-size: 12px; }
.approval-safeguards { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); background: #faf8fa; }
.approval-safeguards span { padding: 13px 16px; border-right: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.approval-safeguards span:last-child { border-right: 0; }
.approval-safeguards strong { display: block; margin-bottom: 3px; color: var(--accent); font-size: 13px; }
.approval-manager-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid #ddcee0; border-radius: 6px; background: #faf6fa; }
.approval-manager-status p { margin: 0; color: var(--muted); font-size: 12px; }
.approval-device-list { display: grid; gap: 8px; }
.approval-device-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.approval-device-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; color: var(--accent); background: #f3eaf4; }
.approval-device-mark svg { width: 20px; height: 20px; }
.approval-device-row strong,.approval-device-row small { display: block; }
.approval-device-row small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.approval-pairing { display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 24px; }
.approval-pairing img { width: 210px; height: 210px; border: 1px solid var(--line); }
.approval-pairing span { color: var(--muted); font-size: 12px; font-weight: 700; }
.approval-pairing strong { display: block; margin: 6px 0 10px; color: var(--accent); font-size: 38px; letter-spacing: 5px; }
.approval-pairing p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.approval-pairing a { color: var(--accent); font-weight: 700; }
.approval-login-wait { padding: 18px 0 2px; text-align: center; }
.approval-login-lock { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 8px; color: #fff; background: var(--accent); }
.approval-login-lock svg { width: 26px; height: 26px; }
.approval-login-wait h1 { margin-bottom: 8px; }
.approval-login-wait p { max-width: 380px; margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.55; }
.approval-login-progress { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; margin: 18px 0; border: 1px solid #ddcee0; border-radius: 6px; color: var(--accent); background: #faf6fa; font-size: 12px; font-weight: 750; }
.approval-login-progress i { width: 9px; height: 9px; border-radius: 50%; background: #4c966f; animation: approval-pulse 1.4s ease-in-out infinite; }
@keyframes approval-pulse { 50% { opacity: .35; transform: scale(.75); } }
.mfa-setup { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); background: #f8faf9; }
.mfa-setup span, .mfa-setup code { display: block; }
.mfa-setup span { margin-bottom: 5px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.mfa-setup code { color: #4f2b54; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.recovery-codes { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.recovery-codes code { padding: 10px 12px; border: 1px solid var(--line); background: #f7f8f9; color: #392c3c; font-size: 15px; text-align: center; }
.mail-writing-layout { display: grid; grid-template-columns: minmax(300px,.85fr) minmax(420px,1.15fr); gap: 14px; }
.mail-writing-layout > section { min-width: 0; border: 1px solid var(--line); background: #fff; }
.mail-writing-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.mail-writing-head strong, .mail-writing-head span { display: block; }
.mail-writing-head strong { font-size: 14px; }
.mail-writing-head span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.mail-writing-body { padding: 14px; }
.mail-writing-body textarea { min-height: 150px; }
.mail-writing-check { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 13px; color: #504654; font-size: 12px; line-height: 1.45; }
.mail-writing-check input { margin-top: 1px; accent-color: var(--primary); }
.mail-writing-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.mail-template-list { max-height: 430px; overflow-y: auto; }
.mail-template-row { min-height: 78px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.mail-template-row:last-child { border-bottom: 0; }
.mail-template-row > div:first-child { min-width: 0; }
.mail-template-row strong, .mail-template-row span, .mail-template-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-template-row strong { font-size: 13px; }
.mail-template-row span { margin-top: 3px; color: var(--primary); font-size: 11px; }
.mail-template-row small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.mail-template-row > div:last-child { display: flex; gap: 4px; }
.mail-template-empty { min-height: 180px; display: grid; place-items: center; }
.mail-template-editor { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 14px; }
.mail-template-editor aside { min-width: 0; border-left: 1px solid var(--line); }
.mail-template-editor aside > strong, .mail-template-editor aside > span { display: block; padding: 0 12px; }
.mail-template-editor aside > strong { margin-top: 2px; font-size: 13px; }
.mail-template-editor aside > span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.mail-placeholder-list { max-height: 390px; margin-top: 10px; overflow-y: auto; border-top: 1px solid var(--line); }
.mail-placeholder-list button { width: 100%; min-height: 44px; display: block; padding: 7px 12px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; }
.mail-placeholder-list button:hover { background: #f7f0f8; }
.mail-placeholder-list strong, .mail-placeholder-list code { display: block; }
.mail-placeholder-list strong { color: #423846; font-size: 12px; }
.mail-placeholder-list code { margin-top: 3px; color: #776c79; font-size: 11px; }
.mail-compose-template { min-height: 58px; display: grid; grid-template-columns: minmax(220px,1fr) auto 36px; align-items: end; gap: 7px; padding: 9px 10px; border: 1px solid #ddcfdf; background: #faf7fa; }
.mail-compose-template > div label { display: block; margin-bottom: 5px; color: #635866; font-size: 11px; font-weight: 700; }
.mail-compose-template select { width: 100%; min-height: 35px; padding: 6px 8px; border: 1px solid #cec4d0; border-radius: 3px; background: #fff; }
.mail-compose-template .button, .mail-compose-template .icon-button { min-height: 35px; }
.custody-toolbar > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.custody-overview { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 14px; border: 1px solid var(--line); background: #fff; }
.custody-overview > div { min-height: 70px; padding: 11px 13px; border-right: 1px solid var(--line); }
.custody-overview > div:last-child { border-right: 0; }
.custody-overview span, .custody-overview strong { display: block; }
.custody-overview span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.custody-overview strong { margin-top: 7px; color: var(--primary); font-size: 20px; }
.custody-list, .custody-release-history { border: 1px solid var(--line); background: #fff; }
.custody-row { min-height: 78px; display: grid; grid-template-columns: 105px minmax(190px,1.5fr) minmax(105px,.65fr) minmax(130px,.8fr) 120px 34px; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.custody-row:last-child { border-bottom: 0; }
.custody-category { justify-self: start; padding: 5px 8px; border: 1px solid #ddc9df; border-radius: 3px; background: #f8f2f8; color: #67306e; font-size: 11px; font-weight: 700; }
.custody-description, .custody-quantity, .custody-location { min-width: 0; }
.custody-description strong, .custody-description small, .custody-quantity span, .custody-quantity strong, .custody-quantity small, .custody-location span, .custody-location strong { display: block; }
.custody-description strong { overflow-wrap: anywhere; color: #303f44; font-size: 13px; }
.custody-description small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.custody-quantity span, .custody-location span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.custody-quantity strong, .custody-location strong { margin-top: 4px; color: #35454a; font-size: 12px; }
.custody-quantity small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.custody-history-head, .custody-selector-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 10px 1px; }
.custody-history-head strong, .custody-history-head span, .custody-selector-head strong, .custody-selector-head span { display: block; }
.custody-history-head strong, .custody-selector-head strong { font-size: 14px; }
.custody-history-head span, .custody-selector-head span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.custody-release-row { min-height: 72px; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.custody-release-row:last-child { border-bottom: 0; }
.custody-protocol-mark { width: 32px; height: 32px; display: grid; place-items: center; background: #f2e9f3; color: var(--primary); }
.custody-protocol-mark svg { width: 15px; height: 15px; }
.custody-release-row strong, .custody-release-row span, .custody-release-row small { display: block; }
.custody-release-row strong { font-size: 13px; }
.custody-release-row span { margin-top: 3px; color: #46575c; font-size: 11px; }
.custody-release-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.custody-release-notice { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 14px; padding: 12px 13px; border-left: 3px solid var(--primary); background: #faf6fa; }
.custody-release-notice > svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--primary); }
.custody-release-notice strong, .custody-release-notice span { display: block; }
.custody-release-notice strong { font-size: 13px; }
.custody-release-notice span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.custody-release-selector { max-height: 310px; overflow-y: auto; border: 1px solid var(--line); background: #fff; }
.custody-release-line { min-height: 62px; display: grid; grid-template-columns: 20px minmax(0,1fr) 100px 45px; align-items: center; gap: 9px; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.custody-release-line:last-child { border-bottom: 0; }
.custody-release-line > input[type="checkbox"] { accent-color: var(--primary); }
.custody-release-line > span:nth-child(2) { min-width: 0; }
.custody-release-line strong, .custody-release-line small { display: block; }
.custody-release-line strong { font-size: 12px; }
.custody-release-line small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.custody-release-line > input[type="number"] { width: 100%; min-height: 34px; padding: 6px 8px; border: 1px solid #cbd4d7; border-radius: 3px; text-align: right; }
.custody-release-line > input[type="number"]:disabled { background: #f2f4f4; color: #9ba4a7; }
.custody-release-line > span:last-child { color: #56666b; font-size: 11px; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

.inventory-item-cell { display: flex; align-items: center; gap: 10px; min-width: 230px; }
.inventory-item-cell > span:last-child { display: grid; gap: 3px; }
.inventory-item-cell small, .inventory-minimum { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 500; }
.inventory-thumb { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #f4f1f4; color: var(--accent); }
.inventory-thumb img { width: 100%; height: 100%; object-fit: cover; }
.inventory-thumb svg { width: 19px; height: 19px; }
.inventory-table th:first-child { min-width: 260px; }
.inventory-category-list { display: grid; }
.inventory-category-row { width: 100%; min-height: 68px; display: grid; grid-template-columns: 46px minmax(240px,1fr) 80px 85px 18px; gap: 13px; align-items: center; padding: 11px 15px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--text); text-align: left; cursor: pointer; }
.inventory-category-row:last-child { border-bottom: 0; }
.inventory-category-row:hover { background: #faf8fa; }
.inventory-category-row.subcategory { padding-left: 34px; background: #fcfafc; }
.inventory-category-row.subcategory .inventory-category-order { color: var(--primary); font-size: 20px; }
.inventory-category-row.subcategory:hover { background: #f7f1f7; }
.inventory-category-row > span:nth-child(2), .inventory-category-row > span:nth-child(3) { display: grid; gap: 3px; }
.inventory-category-row small { color: var(--muted); font-size: 12px; }

.operations-report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; padding: 16px 18px; border: 1px solid var(--line); background: #fff; }
.operations-report-toolbar > div { display: grid; gap: 3px; }
.operations-report-toolbar > div > strong { font-family: Georgia, serif; font-size: 21px; color: var(--text); }
.operations-report-toolbar > div > span { color: var(--muted); font-size: 13px; }
.operations-year-select { display: grid; grid-template-columns: auto 110px; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.operations-year-select select { min-width: 110px; }
.operations-kpis { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 12px; margin-bottom: 14px; }
.operations-kpis article { position: relative; min-height: 112px; display: grid; align-content: center; gap: 4px; padding: 16px 18px 16px 22px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.operations-kpis article::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: #81358b; }
.operations-kpis article.green::before { background: #278464; }
.operations-kpis article.amber::before { background: #c9912f; }
.operations-kpis article.red::before { background: #b94b50; }
.operations-kpis article.blue::before { background: #427aa1; }
.operations-kpis article > span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.operations-kpis article > strong { font-family: Georgia, serif; font-size: 27px; line-height: 1.12; color: var(--text); }
.operations-kpis article > small { color: var(--muted); font-size: 12px; }
.operations-statistics-layout { display: grid; grid-template-columns: minmax(300px,.72fr) minmax(580px,1.45fr); gap: 14px; align-items: start; }
.operations-statistics-layout .panel { margin: 0; }
.operations-city-list { display: grid; }
.operations-city-row { display: grid; grid-template-columns: minmax(145px,1fr) minmax(80px,1.2fr) 38px; align-items: center; gap: 13px; min-height: 58px; padding: 10px 16px; border-top: 1px solid var(--line); }
.operations-city-row:first-child { border-top: 0; }
.operations-city-row > span { display: grid; gap: 2px; min-width: 0; }
.operations-city-row > span strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operations-city-row small { color: var(--muted); }
.operations-city-row > b { text-align: right; font-size: 16px; }
.operations-progress, .operations-month-bar { height: 8px; display: flex; border-radius: 4px; background: #edf0f1; overflow: hidden; }
.operations-progress i { display: block; background: #81358b; border-radius: inherit; }
.operations-month-bar { min-width: 140px; }
.operations-month-bar i { display: block; height: 100%; }
.operations-month-bar i.accounted, .operations-chart-key i.accounted { background: #278464; }
.operations-month-bar i.unbilled, .operations-chart-key i.unbilled { background: #d2a14c; }
.operations-chart-key { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.operations-chart-key span { display: flex; align-items: center; gap: 5px; }
.operations-chart-key i { width: 9px; height: 9px; border-radius: 50%; }
.registry-forecast-panel { margin: 0; }
.registry-forecast-table td strong { display: block; }
.registry-forecast-table td small { display: block; margin-top: 3px; color: var(--muted); }
.registry-forecast-table tr.forecast-missing { background: #fffaf1; }

@media (max-width: 1180px) {
  .operations-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .operations-statistics-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .operations-report-toolbar { align-items: stretch; flex-direction: column; }
  .operations-year-select { grid-template-columns: 1fr; }
  .operations-kpis { grid-template-columns: 1fr; }
  .operations-city-row { grid-template-columns: minmax(0,1fr) 32px; }
  .operations-city-row .operations-progress { grid-column: 1 / -1; grid-row: 2; }
}
.inventory-category-order { width: 34px; height: 28px; display: grid; place-items: center; border-radius: 5px; background: #eee8ef; color: var(--accent); font-weight: 800; }
.order-error { display: block; max-width: 260px; margin-top: 5px; color: var(--danger); white-space: normal; }
.inventory-editor-layout { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 20px; align-items: start; }
.inventory-image-editor { display: grid; justify-items: stretch; gap: 9px; }
.inventory-image-editor > small { color: var(--muted); font-size: 11px; text-align: center; }
.inventory-image-stage { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #f4f1f4; color: var(--accent); }
.inventory-image-stage img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.inventory-image-stage svg { width: 42px; height: 42px; }
.inventory-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.inventory-detail-head strong { font-size: 12px; }
.inventory-detail-head span { color: var(--muted); font-size: 11px; }
.inventory-detail-gallery { min-height: 74px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.inventory-detail-image { position: relative; aspect-ratio: 1; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #f4f1f4; }
.inventory-detail-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.inventory-detail-image .icon-button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; min-height: 26px; border-color: rgba(128,52,137,.26); background: rgba(255,255,255,.94); color: var(--danger); }
.inventory-detail-image .icon-button svg { width: 13px; height: 13px; }
.inventory-detail-image.pending::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--accent); border-radius: 5px; pointer-events: none; }
.inventory-detail-image.pending > span { position: absolute; left: 5px; bottom: 5px; padding: 2px 5px; border-radius: 3px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.inventory-detail-empty { grid-column: 1 / -1; min-height: 72px; display: grid; place-items: center; padding: 10px; border: 1px dashed #d8ccda; border-radius: 6px; color: var(--muted); font-size: 11px; text-align: center; }
.inventory-product-details { grid-column: 1 / -1; padding-top: 5px; border-top: 1px solid var(--line); }
.inventory-product-details > header { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 13px; }
.inventory-product-details > header > div { display: grid; gap: 3px; }
.inventory-product-details > header strong { font-size: 14px; }
.inventory-product-details > header span { color: var(--muted); font-size: 11px; }
.inventory-product-details > .form-grid { gap: 12px; }
.inventory-product-details textarea { min-height: 82px; resize: vertical; }
.inventory-kind-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.inventory-automation-setting { display: grid; grid-template-columns: minmax(260px,1fr) 190px; gap: 12px 16px; align-items: end; padding: 12px; border: 1px solid #d8ccda; border-radius: 7px; background: #faf7fa; }
.inventory-automation-setting > .toggle-row { align-self: stretch; }
.inventory-automation-setting .toggle-row > span { display: grid; gap: 3px; }
.inventory-automation-setting .toggle-row small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.inventory-automation-setting > .field { margin: 0; }
.inventory-public { color: var(--success) !important; font-weight: 700; }
.inventory-website-setting { display: grid; gap: 10px; padding: 12px; border: 1px solid #d8ccda; border-radius: 7px; background: #faf7fa; }
.inventory-website-setting > .toggle-row { margin-bottom: 2px; }
.inventory-website-setting > .toggle-row > span { display: grid; gap: 3px; }
.inventory-website-setting > .toggle-row small, .inventory-website-setting > small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.inventory-website-setting > label:not(.toggle-row) { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.inventory-website-setting textarea { min-height: 82px; resize: vertical; }
.inventory-category-website-toggle > span { display: grid; gap: 3px; }
.inventory-category-website-toggle small { color: var(--muted); font-size: 11px; font-weight: 500; }
.inventory-automation-status { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.role-profiles-panel { margin-bottom: 14px; }
.role-profile-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: var(--line); }
.role-profile { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 15px; background: #fff; }
.role-profile > div { display: flex; align-items: center; gap: 9px; }
.role-profile > div:first-child > span:last-child { display: grid; gap: 4px; }
.role-profile small { color: var(--muted); font-size: 11px; }
.role-profile-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; background: #eee8ef; color: var(--accent); }
.role-profile-icon svg { width: 17px; height: 17px; }

.deregistration-overview { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 14px; border: 1px solid var(--line); background: #fff; }
.deregistration-overview > div { min-height: 72px; padding: 11px 13px; border-right: 1px solid var(--line); }
.deregistration-overview > div:last-child { border-right: 0; }
.deregistration-overview span, .deregistration-overview strong { display: block; }
.deregistration-overview span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.deregistration-overview strong { margin-top: 7px; color: var(--primary); font-size: 19px; }
.deregistration-overview .open strong { color: #a64640; }
.deregistration-list { border: 1px solid var(--line); background: #fff; }
.deregistration-row { min-height: 82px; display: grid; grid-template-columns: 118px minmax(240px,1.5fr) minmax(180px,.85fr) 132px 146px; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.deregistration-row:last-child { border-bottom: 0; }
.deregistration-kind { justify-self: start; padding: 5px 8px; border: 1px solid #ddc9df; border-radius: 3px; background: #f8f2f8; color: #67306e; font-size: 11px; font-weight: 700; }
.deregistration-main, .deregistration-document { min-width: 0; }
.deregistration-main strong, .deregistration-main span, .deregistration-main small, .deregistration-document span, .deregistration-document strong, .deregistration-document small { display: block; }
.deregistration-main strong { overflow-wrap: anywhere; color: #303f44; font-size: 13px; }
.deregistration-main span { margin-top: 4px; color: #47575c; font-size: 11px; }
.deregistration-main small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.deregistration-document span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.deregistration-document strong { margin-top: 4px; color: #355e54; font-size: 12px; }
.deregistration-document small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.deregistration-status { width: 100%; min-height: 34px; padding: 5px 7px; border: 1px solid #cbd4d7; border-radius: 3px; background: #fff; color: #3d4c50; font-size: 11px; }
.deregistration-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.deregistration-actions .icon-button { flex: 0 0 32px; }
.deregistration-letter-text { min-height: 180px; line-height: 1.5; }
.deregistration-contact-search .filter-wrap, .deregistration-contact-search .filter-input { width: 100%; }
.deregistration-contact-search .filter-input { height: 39px; padding-left: 34px; font-size: 15px; }
.deregistration-contact-search .filter-wrap svg { top: 11px; left: 10px; width: 17px; height: 17px; }
.field .deregistration-contact-picker { min-height: 162px; padding: 4px; }
.deregistration-contact-picker option { min-height: 29px; padding: 7px 9px; border-radius: 3px; }
.deregistration-contact-picker option:checked { background: #f1e6f2; color: #592861; }
#deregistration-contact-count { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.insurance-package { margin: 18px 0; border: 1px solid #d8c5dc; border-left: 4px solid var(--primary); background: #fbf8fb; }
.insurance-package > header { min-height: 68px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #e7dce9; }
.insurance-package > header > div { min-width: 0; display: grid; gap: 3px; }
.insurance-package > header strong { color: #35243a; font-size: 15px; }
.insurance-package > header small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.insurance-package-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; background: var(--primary); color: #fff; }
.insurance-package-icon svg { width: 19px; height: 19px; }
.insurance-package .toggle-row.compact { min-width: 180px; justify-content: flex-end; font-size: 12px; font-weight: 700; }
#insurance-package-fields { padding: 16px; }
.insurance-documents-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; }
.insurance-documents-head > div { display: grid; gap: 2px; }
.insurance-documents-head strong { font-size: 13px; }
.insurance-documents-head small { color: var(--muted); font-size: 11px; }
.insurance-document-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.insurance-document-option { min-width: 0; cursor: pointer; }
.insurance-document-option > input { position: absolute; opacity: 0; pointer-events: none; }
.insurance-document-option > span { min-height: 54px; display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid #d5dcde; border-radius: 4px; background: #fff; }
.insurance-document-option > span > svg { width: 18px; height: 18px; color: var(--primary); }
.insurance-document-option > span > span { min-width: 0; display: grid; gap: 3px; }
.insurance-document-option strong, .insurance-document-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insurance-document-option strong { color: #354247; font-size: 12px; }
.insurance-document-option small { color: var(--muted); font-size: 10px; }
.insurance-document-option input:checked + span { border-color: var(--primary); box-shadow: inset 3px 0 var(--primary); background: #f7f0f8; }
.insurance-document-empty { grid-column: 1 / -1; padding: 14px; border: 1px dashed #c9d2d4; color: var(--muted); font-size: 12px; text-align: center; }
.insurance-upload-queue { display: grid; gap: 5px; margin-top: 9px; }
.insurance-upload-queue > span { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 7px 9px; border-left: 3px solid #b28b55; background: #fff9ed; }
.insurance-upload-queue svg { width: 15px; height: 15px; color: #8a642f; }
.insurance-upload-queue strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.insurance-upload-queue small { color: #786346; font-size: 10px; }
.insurance-package-status { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #e5dce7; }
.insurance-package-status span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid #d4dcde; border-radius: 3px; background: #fff; color: #78868a; font-size: 11px; font-weight: 700; }
.insurance-package-status span.complete { border-color: #b9d4c9; background: #eef7f3; color: #326b59; }
.insurance-package-status svg { width: 13px; height: 13px; }
.deregistration-row.insurance { box-shadow: inset 3px 0 #b28b55; }

.record-workspace [data-case-section] small,
.record-workspace [data-preneed-section] small { color: #5f6f74; font-size: 12px; line-height: 1.45; }
.record-workspace :is(.custody-overview, .case-billing-overview, .memorial-admin-facts, .deregistration-overview, .case-closure-overview, .case-access-overview, .checklist-facts, .document-approval-meta, .document-compliance-facts, .media-file-facts, .billing-editor-summary, .billing-summary, .preneed-overview, .finance-overview) span { color: #5f6f74; font-size: 12px; line-height: 1.35; }
.record-workspace :is(.custody-quantity, .custody-location, .deregistration-document) > span { color: #5f6f74; font-size: 12px; line-height: 1.35; }
.record-workspace :is(.section-toolbar, .case-access-section, .case-timeline-list, .case-contact-row, .document-approval-head, .document-compliance-head) span { font-size: 12px; line-height: 1.4; }

.mourning-print-toolbar { margin-bottom: 2px; }
.mourning-print-overview { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 14px; border: 1px solid var(--line); background: #fff; }
.mourning-print-overview > div { min-height: 70px; padding: 11px 13px; border-right: 1px solid var(--line); }
.mourning-print-overview > div:last-child { border-right: 0; }
.mourning-print-overview span, .mourning-print-overview strong { display: block; }
.mourning-print-overview span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.mourning-print-overview strong { margin-top: 6px; color: var(--primary); font-size: 20px; }
.mourning-print-list { border: 1px solid var(--line); background: #fff; }
.mourning-print-empty { border: 0; }
.mourning-print-row { min-height: 108px; display: grid; grid-template-columns: 78px minmax(250px,1fr) 120px minmax(180px,auto); align-items: center; gap: 14px; padding: 12px; border-bottom: 1px solid var(--line); }
.mourning-print-row:last-child { border-bottom: 0; }
.mourning-print-row-preview { height: 82px; display: grid; place-items: center; overflow: hidden; border: 1px solid #d8cbd9; background: #f5f1f5; }
.mourning-print-row-preview .mourning-print-sheet { width: 54px; min-width: 54px; max-height: 74px; box-shadow: 0 2px 8px rgba(48,31,49,.14); }
.mourning-print-row-preview .mourning-print-content { display: none; }
.mourning-print-row-main { min-width: 0; }
.mourning-print-row-main > span, .mourning-print-row-main > strong, .mourning-print-row-main > small, .mourning-print-row-main > em { display: block; }
.mourning-print-row-main > span { color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.mourning-print-row-main > strong { margin-top: 4px; color: #26363a; font-size: 14px; }
.mourning-print-row-main > small { margin-top: 5px; }
.mourning-print-row-main > em { margin-top: 4px; color: var(--muted); font-size: 11px; font-style: normal; }
.mourning-print-row-main > .mourning-print-publication-state { width: max-content; display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; padding: 3px 7px; border-radius: 3px; background: #e8f2ec; color: #28704b; font-size: 10px; text-transform: none; }
.mourning-print-publication-state svg { width: 13px; height: 13px; }
.mourning-print-row-actions .mourning-print-published { border-color: #9fc8ae; color: #28704b; background: #f2f8f4; }
.mourning-print-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.modal.mourning-print-modal { width: min(1240px,calc(100vw - 34px)); height: min(850px,calc(100vh - 34px)); max-height: none; }
.mourning-print-modal .modal-body { min-height: 0; padding: 0; }
.mourning-print-designer { min-height: 100%; display: grid; grid-template-columns: minmax(420px,1fr) minmax(390px,.9fr); }
.mourning-print-controls { padding: 18px; }
.mourning-print-controls textarea { min-height: 72px; }
.mourning-print-motifs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; }
.mourning-motif-label { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mourning-local-motif { position: relative; overflow: hidden; }
.mourning-local-motif input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
/* Keep native radio focus inside the scrolled tile, not at a page-level absolute position. */
.mourning-print-motif-option { position:relative; min-width: 0; display: grid; grid-template-rows: 52px auto auto; gap: 4px; padding: 6px; border: 1px solid #d6dfe1; border-radius: 5px; background: #fff; cursor: pointer; }
.mourning-print-motif-option:hover, .mourning-print-motif-option.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.mourning-print-motif-option input { position:absolute; top:0; left:0; width:1px; height:1px; margin:0; opacity:0; pointer-events:none; }
.mourning-print-motif-option:has(input:focus-visible) { outline:2px solid var(--accent); outline-offset:2px; }
.mourning-print-motif-option > strong { overflow-wrap: anywhere; color: #425156; font-size: 10px; line-height: 1.2; text-align: center; }
.mourning-print-motif-option > small { color:#7b8588; font-size:9px; line-height:1.2; text-align:center; }
.mourning-motif-photo { width: 100%; height: 100%; display: block; background-color: #edf0ef; background-repeat: no-repeat; }
.mourning-motif-none { width: 100%; height: 100%; display: grid; place-items: center; color: #839095; background: #f4f5f5; }
.mourning-print-motif-option > .mourning-motif-photo, .mourning-print-motif-option > .mourning-motif-none { height: 52px; }
.mourning-verse-select > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.mourning-placeholder-picker { padding: 12px; border-left: 3px solid var(--accent); background: #faf7fb; }
.mourning-placeholder-picker > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.mourning-placeholder-picker select { min-width: 0; }
.mourning-placeholder-picker small { display: block; margin-top: 7px; color: var(--muted); }
.mourning-rich-toolbar { min-height: 36px; display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid #c3ced1; border-bottom: 0; background: #f4f6f6; }
.mourning-rich-toolbar button { min-width: 30px; height: 28px; padding: 0 8px; border: 0; border-right: 1px solid #d6dddf; background: transparent; color: #354449; }
.mourning-rich-toolbar button:hover { background: #e9edef; color: var(--accent); }
.mourning-rich-toolbar button:nth-last-child(3) { text-align: left; }
.mourning-rich-toolbar button:nth-last-child(2) { text-align: center; }
.mourning-rich-toolbar button:last-child { text-align: right; border-right: 0; }
.mourning-rich-editor { min-height: 112px; max-height: 240px; overflow: auto; padding: 10px; border: 1px solid #c3ced1; background: #fff; color: #26363b; font-size: 15px; line-height: 1.5; white-space:pre-wrap; white-space:break-spaces; outline: none; }
.mourning-rich-editor:focus { border-color: var(--accent-2); box-shadow: 0 0 0 2px rgba(54,123,127,.1); }
.mourning-rich-editor p, .mourning-rich-editor div { margin: 0 0 6px; }
.motif-sample { position: relative; display: block; overflow: hidden; background: #fbfafb; color: var(--print-accent); }
.mourning-print-color { min-height: 38px; display: flex; align-items: center; gap: 10px; padding: 4px 9px; border: 1px solid #cbd4d7; border-radius: 4px; }
.mourning-print-color input { width: 38px; height: 28px; padding: 0; border: 0; background: transparent; }
.mourning-print-color output { color: #4b5a5e; font-size: 12px; font-weight: 700; }
.mourning-print-preview-pane { min-width: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line); background: #eef1f0; }
.mourning-print-preview-pane > header { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #f8f9f9; }
.mourning-print-preview-pane > header span, .mourning-print-preview-pane > header strong { display: block; }
.mourning-print-preview-pane > header span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.mourning-print-preview-pane > header strong { color: #35464a; font-size: 12px; }
.mourning-print-preview-stage { min-height: 0; flex: 1; display: grid; place-items: center; overflow: auto; padding: 24px; }
.mourning-print-sheet { --print-accent:#643182; position: relative; width: min(330px,78%); aspect-ratio: 105 / 148; container-type:inline-size; flex: none; overflow: hidden; border: 1px solid #d8dcdd; background: #fff; box-shadow: 0 12px 34px rgba(34,44,47,.18); color: #283336; }
.mourning-print-sheet.folded { width: min(500px,94%); }
.mourning-print-sheet.landscape { width: min(430px,90%); aspect-ratio: 148 / 105; }
.mourning-print-sheet.long { width: min(280px,68%); aspect-ratio: 105 / 210; }
.mourning-print-sheet.a5 { width: min(350px,82%); aspect-ratio: 148 / 210; }
.mourning-print-sheet.square { width: min(360px,84%); aspect-ratio: 1; }
.mourning-print-sheet.newspaper-two { width: min(260px,64%); aspect-ratio: 90 / 120; }
.mourning-print-sheet.newspaper-three { width: min(350px,82%); aspect-ratio: 135 / 160; }
.mourning-print-sheet.newspaper-four { width: min(420px,90%); aspect-ratio: 180 / 200; }
.mourning-print-sheet.newspaper { --print-accent:#303b3e !important; border: 2px solid #303b3e; }
.mourning-print-sheet > .mourning-print-photo { position: absolute; z-index: 0; inset: 0; opacity: .23; filter: saturate(.72) contrast(.94); }
.mourning-print-sheet.folded > .mourning-print-photo { left: 50%; }
.mourning-print-fold { position: absolute; z-index: 3; top: 0; bottom: 0; left: 50%; border-left: 1px dashed rgba(52,65,69,.38); box-shadow: -2px 0 7px rgba(48,57,60,.06), 2px 0 7px rgba(48,57,60,.06); }
.mourning-print-content { position: absolute; z-index: 2; inset: 10% 9%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mourning-print-sheet.folded .mourning-print-content { left: 55%; right: 5%; }
.mourning-print-content .mourning-print-title { max-width: 82%; color: #3b4548; font-family: Georgia,serif; font-size: 15px; font-weight: 400; line-height: 1.25; }
.mourning-print-content h3 { max-width: 92%; margin: 9% 0 2%; overflow-wrap: anywhere; color: #222c2f; font-family: Georgia,serif; font-size: 25px; font-weight: 500; line-height: 1.15; letter-spacing: 0; }
.mourning-print-content time { color: #687478; font-size: 11px; }
.mourning-print-content blockquote { max-width: 82%; margin: 9% 0 0; color: #364145; font-family: Georgia,serif; font-size: 12px; font-style: italic; line-height: 1.45; }
.mourning-print-content p { max-width: 90%; margin: 7% 0 0; color: #3f4a4d; font-size: 11px; line-height: 1.4; }
.mourning-print-body { max-width: 90%; margin: 7% 0 0; color: #3f4a4d; font-size: 11px; line-height: 1.4; }
.mourning-print-body p, .mourning-print-body div { margin: 0 0 4px; }
.mourning-print-body ul, .mourning-print-body ol { margin: 3px 0; padding-left: 18px; text-align: left; }
.mourning-print-content .mourning-print-ceremony { margin-top: 6%; font-weight: 600; }
.mourning-print-content small { margin-top: auto; color: #697579; font-size: 9px; }
.mourning-print-art, .motif-sample { --art-color:var(--print-accent); }
.mourning-print-art { position: absolute; z-index: 1; inset: 0; color: var(--art-color); pointer-events: none; }
.motif-dandelion .mourning-print-art i, .motif-dandelion.motif-sample i { position: absolute; top: 9%; right: 8%; width: 20%; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; opacity: .55; }
.motif-dandelion .mourning-print-art i::before, .motif-dandelion.motif-sample i::before { content:""; position:absolute; left:49%; top:50%; width:1px; height:250%; background:currentColor; transform:rotate(17deg); transform-origin:top; }
.motif-dandelion .mourning-print-art b, .motif-dandelion.motif-sample b { position:absolute; top:12%; right:12%; width:12%; aspect-ratio:1; border:1px dotted currentColor; border-radius:50%; }
.motif-pusteblumen-im-morgenlicht .mourning-print-art i, .motif-pusteblumen-im-morgenlicht.motif-sample i { position:absolute; top:9%; right:8%; width:20%; aspect-ratio:1; border:1px solid currentColor; border-radius:50%; opacity:.55; }
.motif-pusteblumen-im-morgenlicht .mourning-print-art b, .motif-pusteblumen-im-morgenlicht.motif-sample b { position:absolute; top:12%; right:12%; width:12%; aspect-ratio:1; border:1px dotted currentColor; border-radius:50%; }
.motif-horizon .mourning-print-art i, .motif-horizon.motif-sample i { position:absolute; right:8%; bottom:18%; left:8%; height:1px; background:currentColor; opacity:.65; }
.motif-horizon .mourning-print-art b, .motif-horizon.motif-sample b { position:absolute; right:22%; bottom:18%; width:12%; aspect-ratio:1; border:1px solid currentColor; border-radius:50%; transform:translateY(-32%); background:#fff; }
.motif-line .mourning-print-art::before, .motif-line.motif-sample::before, .motif-line .mourning-print-art::after, .motif-line.motif-sample::after { content:""; position:absolute; right:7%; left:7%; height:1px; background:currentColor; opacity:.7; }
.motif-line .mourning-print-art::before, .motif-line.motif-sample::before { top:6%; }
.motif-line .mourning-print-art::after, .motif-line.motif-sample::after { bottom:6%; }
.motif-forest .mourning-print-art i, .motif-forest.motif-sample i, .motif-forest .mourning-print-art b, .motif-forest.motif-sample b, .motif-forest .mourning-print-art em, .motif-forest.motif-sample em { position:absolute; bottom:0; width:1px; background:currentColor; opacity:.3; transform-origin:bottom; }
.motif-forest .mourning-print-art i, .motif-forest.motif-sample i { right:12%; height:92%; transform:rotate(4deg); }
.motif-forest .mourning-print-art b, .motif-forest.motif-sample b { right:24%; height:76%; transform:rotate(-3deg); }
.motif-forest .mourning-print-art em, .motif-forest.motif-sample em { right:37%; height:84%; transform:rotate(2deg); }
.mourning-print-sheet.newspaper .mourning-print-content { inset: 8%; }
.mourning-print-sheet.newspaper .mourning-print-content h3 { margin-top: 6%; }
.mourning-print-document { width:100%; display:grid; gap:22px; justify-items:center; }
.mourning-print-document-page { width:100%; display:grid; justify-items:center; gap:7px; }
.mourning-print-page-label { width:min(760px,96%); min-height:36px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:4px 14px; padding:7px 10px; border-left:3px solid var(--primary); border-radius:3px; background:#f4edf5; color:#68777b; }
.mourning-print-page-label strong { color:var(--primary); font-size:12px; }
.mourning-print-page-label span { font-size:11px; font-weight:600; }
.mourning-print-panel { position:absolute; z-index:2; top:8%; bottom:8%; width:40%; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.mourning-print-back { left:5%; }
.mourning-print-back small { margin-top:auto; color:#697579; font-size:9px; }
.mourning-print-inside-left { left:5%; }
.mourning-print-inside-right { right:5%; }
.mourning-print-inside-left blockquote { max-width:86%; color:#364145; font-family:Georgia,serif; font-size:12px; font-style:italic; line-height:1.45; }
.mourning-print-inside-right .mourning-print-body { max-width:94%; }
.mourning-print-inside-right .mourning-print-ceremony { max-width:94%; margin-top:9%; }
.mourning-print-body ul,.mourning-print-body ol { margin:5px 0; padding-left:1.5em; text-align:left; }
.mourning-print-body li { margin:2px 0; }
.mourning-print-body u,.mourning-print-body s,.mourning-print-body strike { text-decoration-thickness:1px; }
.mourning-print-sheet.inside > .mourning-print-photo { right:50%; left:0; }
.mourning-print-sheet [contenteditable="true"] { min-width:34px; min-height:1.25em; border-radius:3px; outline:1px dashed transparent; cursor:text; }
.mourning-print-sheet [contenteditable="true"]:hover { outline-color:rgba(128,52,137,.38); background:rgba(255,255,255,.4); }
.mourning-print-sheet [contenteditable="true"]:focus { outline:2px solid var(--accent); outline-offset:3px; background:rgba(255,255,255,.74); }
.mourning-print-sheet [contenteditable="true"][data-print-slot="body"]:empty::before,.mourning-print-sheet [contenteditable="true"][data-print-slot="ceremonyText"]:empty::before,.mourning-print-sheet [contenteditable="true"][data-print-slot="quote"]:empty::before { content:"Text eingeben"; color:#889397; font-style:italic; }
.mourning-layout-element { position:absolute; z-index:5; min-width:3%; min-height:2%; display:flex; align-items:center; justify-content:center; overflow:hidden; color:#344044; font-size:2cqi; line-height:1.35; text-align:center; }
.mourning-layout-content { width:100%; max-height:100%; overflow:hidden; overflow-wrap:anywhere; white-space:pre-wrap; white-space:break-spaces; }
.mourning-layout-content > :first-child { margin-top:0; }
.mourning-layout-content > :last-child { margin-bottom:0; }
.mourning-layout-content ul,.mourning-layout-content ol { margin:3px 0; padding-left:1.5em; text-align:left; }
.mourning-layout-element.role-title,.mourning-layout-element.role-personname,.mourning-layout-element.role-quote,.mourning-layout-element.role-footertext { font-family:Georgia,serif; }
.mourning-layout-element.role-title { color:#3b4548; font-size:2.35cqi; }
.mourning-layout-element.role-personname { color:#222c2f; font-size:4.05cqi; line-height:1.15; }
.mourning-layout-element.role-lifedates { color:#687478; font-size:1.55cqi; }
.mourning-layout-element.role-quote { color:#364145; font-size:1.8cqi; font-style:italic; line-height:1.45; }
.mourning-layout-element.role-body,.mourning-layout-element.role-ceremonytext { font-size:1.72cqi; }
.mourning-layout-element.role-footertext { color:#687478; font-size:1.45cqi; }
.mourning-print-document.single .mourning-layout-element { font-size:3cqi; }
.mourning-print-document.single .mourning-layout-element.role-title { font-size:4.1cqi; }
.mourning-print-document.single .mourning-layout-element.role-personname { font-size:6.1cqi; }
.mourning-print-document.single .mourning-layout-element.role-lifedates { font-size:2.45cqi; }
.mourning-print-document.single .mourning-layout-element.role-quote { font-size:3.05cqi; }
.mourning-print-document.single .mourning-layout-element.role-body,.mourning-print-document.single .mourning-layout-element.role-ceremonytext { font-size:2.75cqi; }
.mourning-print-document.single .mourning-layout-element.role-footertext { font-size:2.35cqi; }
.mourning-layout-element [data-layout-content][contenteditable="true"] { min-width:100%; min-height:100%; padding:3px; outline:0; cursor:text; }
.mourning-layout-element:hover,.mourning-layout-element.selected { overflow:visible; outline:1px dashed rgba(128,52,137,.72); outline-offset:1px; background:rgba(255,255,255,.62); }
.mourning-layout-element.selected { outline:2px solid var(--primary); box-shadow:0 0 0 2px rgba(255,255,255,.72); }
.mourning-layout-element:not(.selected) .mourning-layout-drag,.mourning-layout-element:not(.selected) .mourning-layout-remove,.mourning-layout-element:not(.selected) .mourning-layout-resize { opacity:0; pointer-events:none; }
.mourning-layout-drag,.mourning-layout-remove { width:24px; height:24px; position:absolute; z-index:4; top:2px; display:grid; place-items:center; padding:0; border:1px solid #d2c2d5; border-radius:3px; background:#fff; color:var(--primary); box-shadow:0 2px 7px rgba(45,35,47,.16); }
.mourning-layout-drag { left:2px; cursor:move; touch-action:none; }
.mourning-layout-remove { right:2px; color:#9b3838; }
.mourning-layout-drag svg,.mourning-layout-remove svg { width:14px; height:14px; }
.mourning-layout-resize { width:13px; height:13px; position:absolute; z-index:4; right:0; bottom:0; border-right:3px solid var(--primary); border-bottom:3px solid var(--primary); cursor:nwse-resize; touch-action:none; }
.mourning-layout-content[contenteditable="true"]:empty::before { content:"Text eingeben"; color:#889397; font-style:italic; }
.mourning-snap-grid { position:absolute; z-index:4; inset:0; pointer-events:none; background-image:repeating-linear-gradient(to right,rgba(128,52,137,.13) 0,rgba(128,52,137,.13) 1px,transparent 1px,transparent var(--mourning-snap-size)),repeating-linear-gradient(to bottom,rgba(128,52,137,.13) 0,rgba(128,52,137,.13) 1px,transparent 1px,transparent var(--mourning-snap-size)); }
.mourning-snap-guide { position:absolute; z-index:8; display:block; pointer-events:none; background:#ba2b78; box-shadow:0 0 0 1px rgba(255,255,255,.82); }
.mourning-snap-guide.vertical { top:0; bottom:0; width:1px; transform:translateX(-.5px); }
.mourning-snap-guide.horizontal { right:0; left:0; height:1px; transform:translateY(-.5px); }
.mourning-print-row-preview .mourning-print-document { display:block; }
.mourning-print-row-preview .mourning-print-document-page:not(:first-child),.mourning-print-row-preview .mourning-print-page-label { display:none; }
.mourning-print-row-preview .mourning-print-document-page { display:block; }
.mourning-wysiwyg-editor { min-height:100%; display:flex; flex-direction:column; background:#e9edec; }
.mourning-wysiwyg-ribbon { display:grid; grid-template-columns:minmax(360px,.9fr) minmax(0,1.65fr); align-items:start; gap:14px 16px; padding:14px 16px 16px; border-bottom:1px solid var(--line); background:#fff; box-shadow:0 2px 8px rgba(39,48,51,.05); }
.mourning-ribbon-section { min-width:0; }
.mourning-ribbon-heading { min-height:22px; display:flex; align-items:center; gap:7px; margin-bottom:6px; color:#514858; font-size:11px; font-weight:800; letter-spacing:0; }
.mourning-ribbon-heading svg { width:15px; height:15px; padding:3px; box-sizing:content-box; border-radius:4px; background:#f1e7f2; color:var(--primary); }
.mourning-document-tools { display:grid; grid-template-columns:minmax(118px,.7fr) minmax(210px,1.45fr) 58px; align-items:end; gap:8px; }
.mourning-tool-field { min-width:0; display:grid; align-items:stretch; gap:5px; margin:0; color:#5e6a6e; font-size:10px; font-weight:800; }
.mourning-tool-field > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mourning-tool-field select { width:100%; min-width:0; height:38px; padding:0 30px 0 10px; border-color:#c7d1d4; background-color:#fff; color:#2f3e43; font-size:13px; }
.mourning-tool-field select:focus { border-color:var(--primary); box-shadow:0 0 0 2px rgba(128,52,137,.11); }
.mourning-accent-field input[type="color"] { width:100%; height:38px; padding:3px; border:1px solid #c7d1d4; border-radius:4px; background:#fff; cursor:pointer; }
.mourning-accent-field input[type="color"]:focus-visible { outline:2px solid rgba(128,52,137,.24); outline-offset:1px; }
.mourning-insert-section { grid-column:1 / -1; padding-top:12px; border-top:1px solid #ece7ed; }
.mourning-insert-tools { display:grid; grid-template-columns:minmax(260px,1fr) minmax(260px,1fr) max-content; align-items:center; gap:10px; }
.mourning-insert-control { min-width:0; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; }
.mourning-insert-control select { width:100%; min-width:0; height:38px; padding:0 30px 0 10px; border-color:#c7d1d4; background:#fff; color:#344348; font-size:13px; }
.mourning-insert-button,.mourning-motif-upload { min-height:38px; border-color:#d6c4da; background:#faf7fb; color:var(--primary); }
.mourning-insert-button:hover,.mourning-motif-upload:hover { border-color:var(--primary); background:#f3eaf4; }
.mourning-insert-button svg,.mourning-motif-upload svg { width:15px; height:15px; }
.mourning-motif-upload { margin:0; white-space:nowrap; text-transform:none; cursor:pointer; }
.mourning-wysiwyg-group { display:flex; align-items:center; gap:7px; }
.mourning-wysiwyg-group.grow { min-width:0; flex:1 0 100%; flex-wrap:wrap; justify-content:flex-start; }
.mourning-wysiwyg-group label { display:flex; align-items:center; gap:6px; color:#5f6d71; font-size:10px; font-weight:700; text-transform:uppercase; }
.mourning-wysiwyg-group select { min-height:34px; width:auto; max-width:210px; }
.mourning-wysiwyg-group.grow select { min-width:150px; flex:1; }
.mourning-wysiwyg-group input[type="color"] { width:34px; height:32px; padding:2px; border:1px solid #cbd4d7; border-radius:4px; background:#fff; }
.mourning-wysiwyg-ribbon .mourning-rich-toolbar { margin:0; }
.mourning-wysiwyg-ribbon .mourning-rich-toolbar button:disabled { opacity:.38; cursor:not-allowed; }
.mourning-format-toolbar { min-width:0; min-height:38px; display:flex; align-items:center; flex-wrap:wrap; gap:3px; padding:3px 5px; border:1px solid #c7d1d4; border-radius:4px; background:#f7f9f9; }
.mourning-tool-group { display:flex; align-items:center; flex-wrap:nowrap; gap:2px; padding-right:5px; border-right:1px solid #d7dddf; }
.mourning-tool-group:last-child { padding-right:0; border-right:0; }
.mourning-format-toolbar button { min-width:31px; height:31px; display:grid; place-items:center; padding:0 7px; border:1px solid transparent; border-radius:3px; background:transparent; color:#354449; font-size:13px; cursor:pointer; }
.mourning-format-toolbar button:hover,.mourning-format-toolbar button.active { border-color:#d6c1d9; background:#eee5ef; color:var(--primary); }
.mourning-format-toolbar button:focus-visible { outline:2px solid rgba(128,52,137,.3); outline-offset:-1px; }
.mourning-format-toolbar button:disabled,.mourning-format-toolbar select:disabled,.mourning-format-toolbar input:disabled { opacity:.35; cursor:not-allowed; }
.mourning-format-toolbar sup,.mourning-format-toolbar sub { font-size:8px; }
.mourning-tool-select { display:flex; align-items:center; gap:5px; color:#657277; font-size:10px; font-weight:700; text-transform:uppercase; }
.mourning-tool-select select { width:92px; min-height:31px; padding:3px 20px 3px 7px; border:1px solid #d2dadd; border-radius:3px; background:#fff; color:#38474b; font-size:12px; }
.mourning-point-size-control input { width:58px; height:31px; padding:3px 5px; border:1px solid #d2dadd; border-radius:3px; background:#fff; color:#38474b; font-size:12px; text-align:right; }
.mourning-point-size-control b { color:#657277; font-size:10px; font-weight:700; text-transform:none; }
.mourning-color-tools label { width:31px; height:30px; position:relative; display:grid; place-items:center; overflow:hidden; border:1px solid transparent; border-radius:3px; cursor:pointer; }
.mourning-color-tools label:hover { border-color:#d6c1d9; background:#eee5ef; }
.mourning-color-tools input { width:100%; height:7px; position:absolute; right:0; bottom:0; left:0; padding:0; border:0; }
.mourning-color-letter,.mourning-highlight-letter { font-size:13px; font-weight:800; }
.mourning-highlight-letter { padding:0 3px; background:#f2df9f; }
.mourning-alignment-tools button:nth-child(1) { justify-items:start; }
.mourning-alignment-tools button:nth-child(2) { justify-items:center; }
.mourning-alignment-tools button:nth-child(3) { justify-items:end; }
.mourning-alignment-tools button:nth-child(4) { letter-spacing:2px; }
.mourning-editor-context { min-height:42px; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:6px 14px; border-bottom:1px solid var(--line); background:#f5f1f5; }
.mourning-editor-context > div { min-width:0; display:flex; align-items:center; gap:9px; }
.mourning-editor-context strong { overflow:hidden; color:#46394a; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.mourning-editor-context span { color:var(--muted); font-size:10px; }
.mourning-editor-context label { display:flex; align-items:center; gap:8px; color:#5f6d71; font-size:10px; font-weight:700; text-transform:uppercase; }
.mourning-editor-context input[type="range"] { width:105px; accent-color:var(--primary); }
.mourning-editor-context output { min-width:42px; color:#453849; font-size:10px; text-align:right; }
.mourning-layout-actions { margin-left:auto; }
.mourning-layout-actions .button { min-height:31px; }
.mourning-layout-actions .button svg { width:14px; height:14px; }
.mourning-editor-context .mourning-snap-controls { min-width:max-content; align-items:center; gap:8px; padding-left:10px; border-left:1px solid #d8ceda; }
.mourning-editor-context .mourning-snap-toggle { min-height:30px; gap:6px; padding:0 8px; border:1px solid #d3c4d6; border-radius:3px; background:#fff; color:#514057; cursor:pointer; }
.mourning-editor-context .mourning-snap-toggle input { width:15px; height:15px; margin:0; accent-color:var(--primary); }
.mourning-editor-context .mourning-snap-toggle span { color:inherit; font-size:10px; }
.mourning-editor-context .mourning-snap-controls select { width:66px; min-height:30px; padding:3px 22px 3px 7px; border-color:#d3cbd5; background:#fff; color:#453849; font-size:11px; }
.mourning-wysiwyg-motif-strip { display:flex; gap:7px; overflow-x:auto; padding:9px 14px; border-bottom:1px solid var(--line); background:#f8f9f9; }
.mourning-wysiwyg-motif-strip .mourning-print-motif-option { width:116px; min-width:116px; grid-template-rows:48px auto auto; }
.mourning-wysiwyg-motif-strip .mourning-print-motif-option > .mourning-motif-photo,.mourning-wysiwyg-motif-strip .mourning-print-motif-option > .mourning-motif-none { height:42px; }
.mourning-wysiwyg-workspace { min-height:0; flex:1; overflow:auto; padding:24px; }
#mourning-wysiwyg-canvas { width:min(900px,100%); margin:auto; zoom:var(--wysiwyg-zoom,1); }
#mourning-wysiwyg-canvas .mourning-print-sheet { width:min(760px,96%); }
#mourning-wysiwyg-canvas .mourning-print-document.single .mourning-print-sheet { width:min(430px,92%); }
.modal-footer-note { margin-right:auto; color:var(--muted); font-size:11px; }
.branch-editor-form { display:grid; gap:14px; }
.branch-editor-section { padding:14px; border:1px solid var(--line); border-radius:5px; background:#fff; }
.branch-editor-section > header { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.branch-editor-section > header > span { width:34px; height:34px; display:grid; place-items:center; flex:0 0 auto; border-radius:4px; background:#f3edf4; color:var(--primary); }
.branch-editor-section > header > span svg { width:17px; height:17px; }
.branch-editor-section > header > div { min-width:0; margin-right:auto; }
.branch-editor-section > header strong,.branch-editor-section > header small { display:block; }
.branch-editor-section > header strong { font-size:13px; }
.branch-editor-section > header small { margin-top:2px; color:var(--muted); font-size:10px; }
.branch-editor-section textarea { min-height:74px; }
.branch-website-section { border-left:3px solid var(--primary); background:#fcfafc; }
.branch-website-master { width:min(330px,100%); }
.branch-website-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-top:10px; }
.branch-website-options label,.branch-person-public > label:not(.toggle-row) { min-height:34px; display:flex; align-items:center; gap:7px; padding:7px 9px; border:1px solid var(--line); border-radius:3px; background:#fff; color:#445157; font-size:10px; font-weight:700; }
.branch-website-options input,.branch-person-public > label:not(.toggle-row) input { accent-color:var(--primary); }
.branch-person-list { display:grid; gap:10px; }
.branch-person-editor { padding:12px; border:1px solid var(--line); border-radius:4px; background:#fafbfb; }
.branch-person-editor > header { display:grid; grid-template-columns:48px minmax(0,1fr) auto; gap:10px; align-items:center; margin-bottom:11px; }
.branch-person-editor > header > div:nth-child(2) strong,.branch-person-editor > header > div:nth-child(2) small { display:block; }
.branch-person-editor > header > div:nth-child(2) strong { font-size:12px; }
.branch-person-editor > header > div:nth-child(2) small { margin-top:2px; color:var(--muted); font-size:10px; }
.branch-person-photo { width:48px; height:48px; display:grid; place-items:center; overflow:hidden; border-radius:50%; background:#eee8ef; color:var(--primary); }
.branch-person-photo img { width:100%; height:100%; object-fit:cover; }
.branch-person-photo svg { width:20px; height:20px; }
.branch-person-photo-actions { display:flex; gap:4px; }
.branch-person-photo-actions label { margin:0; }
.branch-person-public { display:grid; grid-template-columns:minmax(230px,1.4fr) repeat(3,minmax(90px,.6fr)); gap:7px; margin-top:10px; padding-top:10px; border-top:1px solid var(--line); }
.branch-person-public .toggle-row { min-height:38px; }

@media (max-width: 1200px) {
  .death-administrative-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .death-administrative-fields > .field:last-child { grid-column: 1 / -1; }
  .mourning-wysiwyg-ribbon { grid-template-columns:1fr; }
  .mourning-insert-section { grid-column:auto; }
  .admin-metrics.transfer-metrics { grid-template-columns: repeat(2,1fr); }
  .admin-metrics.branch-supply-metrics { grid-template-columns: repeat(2,1fr); }
  .vehicle-live-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .transfer-grid { grid-template-columns: 1fr; }
  .transfer-metrics > div:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .transfer-metrics > div:last-child { grid-column: 1 / -1; }
  .price-information-fee-catalog { grid-template-columns: 1fr; }
  .price-information-line-head, .price-information-line { grid-template-columns: minmax(135px,1fr) minmax(180px,1.25fr) 62px 72px 88px 66px 94px 34px; gap: 5px; }
  .price-information-detail { grid-template-columns: 1fr; }
  .price-information-address, .price-information-facts, .price-information-intro, .price-information-detail-table, .price-information-detail-total, .price-information-detail > .analysis-message, .price-review-comparison { grid-column: 1; }
  .price-review-status,.price-review-comparison > div { grid-template-columns:repeat(2,1fr); }
  .price-review-status > div,.price-review-comparison > div > span { border-bottom:1px solid var(--line); }
  .price-review-history > button { grid-template-columns:34px minmax(0,1fr) 18px; }
  .price-review-history > button > span:nth-child(3) { grid-column:2; text-align:left; }
  .backup-summary { grid-template-columns: repeat(3, 1fr); }
  .backup-summary > div { border-bottom: 1px solid var(--line); }
  .document-metrics { grid-template-columns: repeat(2, 1fr); }
  .document-gallery { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
  .analysis-summary { grid-template-columns: repeat(2, 1fr); }
  .analysis-summary > div:nth-child(2) { border-right: 0; }
  .analysis-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mourning-print-row { grid-template-columns: 68px minmax(220px,1fr) 110px; }
  .mourning-print-row-actions { grid-column: 2 / -1; justify-content: flex-start; }
  .mourning-print-designer { grid-template-columns: minmax(380px,1fr) minmax(340px,.8fr); }
  .mourning-print-motifs { grid-template-columns: repeat(3,1fr); }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .portal-grid { grid-template-columns: 1fr; }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .admin-metrics > div:nth-child(2) { border-right: 0; }
  .admin-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .schedule-row { grid-template-columns: 80px minmax(220px,1fr) 140px; }
  .schedule-row > select { grid-column: 2 / -1; }
  .calendar-layout { grid-template-columns: minmax(260px, 290px) minmax(0, 1fr); }
  .operations-grid { grid-template-columns: 1fr; }
  .deregistration-template-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .mourning-operation-motifs { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .audit-overview { grid-template-columns: repeat(2, 1fr); }
  .audit-overview > div { border-bottom: 1px solid var(--line); }
  .audit-overview > div:nth-child(2n) { border-right: 0; }
  .audit-overview > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .audit-toolbar { grid-template-columns: repeat(2, 1fr); }
  .audit-toolbar .search-field { grid-column: 1 / -1; }
  .audit-toolbar > span { grid-column: 1 / -1; }
  .preneed-overview { grid-template-columns: repeat(2, 1fr); }
  .preneed-services-overview { grid-template-columns: repeat(2, 1fr); }
  .preneed-services-overview > div { border-bottom: 1px solid var(--line); }
  .preneed-services-overview > div:nth-child(even) { border-right: 0; }
  .preneed-services-overview > div:nth-last-child(-n+2) { border-bottom: 0; }
  .preneed-overview > div { border-bottom: 1px solid var(--line); }
  .preneed-overview > div:nth-child(even) { border-right: 0; }
  .preneed-overview > div:last-child { border-bottom: 0; }
  .finance-overview { grid-template-columns: repeat(2, 1fr); }
  .finance-overview > div:nth-child(2) { border-right: 0; }
  .finance-overview > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .preneed-finance-overview > div { border-bottom: 1px solid var(--line); }
  .preneed-finance-overview > div:nth-child(even) { border-right: 0; }
  .preneed-finance-overview > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .checklist-facts { grid-template-columns: repeat(2,1fr); }
  .checklist-facts > div:nth-child(2) { border-right: 0; }
  .checklist-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mail-writing-layout { grid-template-columns: 1fr; }
  .quality-overview { grid-template-columns: repeat(2,1fr); }
  .quality-overview > div { border-bottom: 1px solid var(--line); }
  .quality-overview > div:nth-child(2n) { border-right: 0; }
  .quality-overview .quality-score { grid-column: 1 / -1; border-right: 0; }
  .quality-toolbar { grid-template-columns: 1fr 1fr; }
  .quality-toolbar .search-field { grid-column: 1 / -1; }
  .work-queue-overview { grid-template-columns: repeat(3,1fr); }
  .work-queue-overview > div { border-bottom: 1px solid var(--line); }
  .work-queue-overview > div:nth-child(3) { border-right: 0; }
  .work-queue-overview > div:last-child { grid-column: 2 / -1; border-bottom: 0; }
  .work-queue-toolbar { grid-template-columns: 1fr 1fr; }
  .work-queue-toolbar .segmented-control, .work-queue-toolbar .search-field { grid-column: 1 / -1; }
  .work-queue-toolbar > span { grid-column: 1 / -1; }
  .work-queue-row { grid-template-columns: 36px minmax(220px,1.4fr) 125px 145px 22px; }
  .institution-toolbar { grid-template-columns: minmax(220px,1fr) auto; }
  .institution-toolbar .filter-select { width: 100%; }
  .custody-row { grid-template-columns: 100px minmax(180px,1.4fr) 105px minmax(120px,.8fr) 110px 34px; }
  .deregistration-row { grid-template-columns: 110px minmax(220px,1.4fr) minmax(160px,.8fr) 120px 142px; }
  .inventory-editor-layout { grid-template-columns: 150px minmax(0,1fr); }
  .role-profile-list { grid-template-columns: 1fr; }
  .music-track { grid-template-columns: 38px 38px minmax(0,1fr) auto; }
  .music-track audio,.music-track-notes { grid-column: 3 / -1; }
}

@media (max-width: 760px) {
  .preneed-services-overview { grid-template-columns: 1fr; }
  .preneed-services-overview > div, .preneed-services-overview > div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .preneed-services-overview > div:last-child { border-bottom: 0; }
  .preneed-calculated-amount { align-items: flex-start; flex-direction: column; }
  .preneed-calculated-amount small { text-align: left; }
  .preneed-finance-overview { grid-template-columns: 1fr; }
  .preneed-finance-overview > div, .preneed-finance-overview > div:last-child { grid-column: auto; border-right: 0; }
  .preneed-payment-list article { grid-template-columns: 36px minmax(0,1fr); align-items: start; gap: 8px 10px; }
  .preneed-payment-direction { grid-column: 1; grid-row: 1; }
  .preneed-payment-list time { grid-column: 2; grid-row: 1; padding-right: 0; border-right: 0; }
  .preneed-payment-list article > div:first-of-type { grid-column: 2; grid-row: 2; }
  .preneed-payment-list article > div:last-child { grid-column: 2; grid-row: 3; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .approval-safeguards { grid-template-columns: repeat(2,1fr); }
  .approval-safeguards span:nth-child(2) { border-right: 0; }
  .approval-operation-body { grid-template-columns: 1fr; }
  .approval-pairing { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .approval-manager-status { align-items: flex-start; flex-direction: column; }
  .branch-editor-section > header { align-items:flex-start; flex-wrap:wrap; }
  .branch-editor-section > header .button,.branch-website-master { width:100%; }
  .branch-website-options { grid-template-columns:1fr 1fr; }
  .branch-person-editor > header { grid-template-columns:48px minmax(0,1fr); }
  .branch-person-photo-actions { grid-column:2; }
  .branch-person-public { grid-template-columns:1fr 1fr; }
  .branch-person-public .toggle-row { grid-column:1 / -1; }
  .music-editor-preview,.music-library-preview { grid-template-columns: 42px minmax(0,1fr); }
  .music-editor-preview audio,.music-library-preview audio { grid-column: 1 / -1; }
  .music-plan-notes > div:last-child { align-items: stretch; flex-direction: column; }
  .mourning-placeholder-picker > div { grid-template-columns: 1fr; }
  .vehicle-image-editor { grid-template-columns: 1fr; }
  .vehicle-live-list { grid-template-columns: 1fr; }
  .vehicle-live-location { grid-template-columns: 34px minmax(0,1fr); }
  .vehicle-live-coordinates { grid-column: 2; text-align: left; }
  .fleet-card { grid-template-columns: 96px minmax(0,1fr); }
  .fleet-card-image { min-height: 155px; }
  .branch-supply-detail-head { grid-template-columns: 1fr; }
  .branch-supply-detail-head > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .branch-supply-detail-head > div:last-child { border-bottom: 0; }
  .branch-supply-editor-head { align-items: stretch; flex-direction: column; }
  .branch-supply-editor-line { grid-template-columns: minmax(0,1fr) 90px 34px; }
  .branch-supply-editor-line > .field:first-child { grid-column: 1 / -1; }
  .branch-supply-line-stock { grid-column: 1 / 3; }
  html, body { max-width: 100%; overflow-x: hidden; }
  body { min-width: 0; }
  .app-shell { width: 100%; max-width: 100vw; grid-template-columns: 64px minmax(0,1fr); overflow-x: hidden; }
  .sidebar .brand { height: 58px; justify-content: center; padding: 0; }
  .sidebar .brand img { width: 34px; height: 34px; }
  .sidebar .brand > div, .nav-label, .branch-switcher, .user-card > div, .user-card > button:last-child { display: none; }
  .sidebar nav { padding: 8px 6px; }
  .nav-button { position: relative; justify-content: center; padding: 0; }
  .nav-button > span:not(.badge) { display: none; }
  .nav-button .badge { position: absolute; top: 2px; right: 1px; min-width: 16px; padding: 1px 4px; font-size: 11px; }
  .user-card { min-height: 58px; display: grid; grid-template-columns: 34px; justify-content: center; padding: 10px 0; }
  .topbar { height: 52px; padding: 0 10px; }
  .global-search { width: min(100%, 430px); }
  .global-search kbd, .connection { display: none; }
  .top-actions { gap: 5px; }
  .content { padding: 14px 10px 26px; }
  .calendar-layout { grid-template-columns: 1fr; }
  .deregistration-template-layout { grid-template-columns: 1fr; }
  .deregistration-template-summary { grid-template-columns: 1fr; }
  .deregistration-template-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .deregistration-template-summary > div:last-child { border-bottom: 0; }
  .deregistration-template-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mourning-operation-motifs { grid-template-columns: 1fr; }
  .mourning-operation-verses article { grid-template-columns: 86px minmax(0,1fr) 36px; }
  .mourning-operation-verses article > .status:nth-last-of-type(1) { display: none; }
  .calendar-agenda { max-height: 360px; }
  .calendar-week-toolbar { grid-template-columns: auto minmax(0,1fr); }
  .calendar-week-toolbar > div:first-child { grid-column: 1; grid-row: 1; }
  .calendar-week-toolbar > strong { grid-column: 2; grid-row: 1; text-align: right; }
  .calendar-date-search { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .calendar-date-search-field { min-width: 0; flex: 1; }
  .calendar-date-search-field input { width: 100%; min-width: 0; }
  .calendar-week-toolbar > span { grid-column: 1 / -1; grid-row: 3; }
  .record-workspace { margin: -14px -10px -26px; }
  .record-workspace-head { min-height: 74px; grid-template-columns: 36px minmax(0,1fr); gap: 10px; padding: 10px 12px; }
  .record-workspace-head h1 { font-size: 18px; }
  .record-back { width: 36px; padding: 0; }
  .record-back span { display: none; }
  .record-workspace-body { padding: 12px 10px 126px; }
  .record-workspace-body .case-summary { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 8px 10px; }
  .record-workspace-body .case-summary > .avatar { grid-row: 1 / 3; }
  .record-workspace-body .case-summary > div:nth-child(2) { min-width: 0; }
  .record-workspace-body .case-summary > .status { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .record-workspace-body .case-health, .record-workspace-body .preneed-amount { width: auto; min-width: 0; grid-column: 2; grid-row: 2; margin-left: 0; text-align: left; }
  .record-workspace [data-case-section], .record-workspace [data-preneed-section] { min-height: 320px; padding: 14px 12px; overflow-x: auto; }
  .section-toolbar { align-items: flex-start; flex-direction: column; gap: 9px; }
  .section-toolbar-actions { width: 100%; justify-content: flex-start; }
  .case-template-option { grid-template-columns: 18px 34px minmax(0,1fr); gap: 9px; padding: 10px; }
  .case-template-option > .status { grid-column: 3; justify-self: start; }
  .case-template-main strong { white-space: normal; overflow-wrap: anywhere; }
  .record-workspace-foot { left: 64px; min-height: 62px; flex-wrap: wrap; padding: 8px 10px; }
  .record-workspace-foot .button { min-width: 0; flex: 1 1 auto; padding: 0 9px; }
  .page-head { align-items: stretch; flex-direction: column; gap: 10px; }
  .head-actions { justify-content: flex-start; flex-wrap: wrap; }
  .modal-backdrop { padding: 10px; }
  .modal, .modal.wide { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .modal-body { padding: 14px; }
  .modal.mourning-print-modal { width: calc(100vw - 20px); height: calc(100vh - 20px); }
  .modal.pdf-modal { width: calc(100vw - 20px); height: calc(100vh - 20px); }
  .designer-toolbar { grid-template-columns: 1fr 76px; }
  .designer-toolbar .designer-case-select,.designer-template-context { grid-column: 1 / -1; }
  .pdf-designer-layout { grid-template-columns: minmax(0,1fr); }
  .pdf-workbench { min-height: 430px; padding: 12px; }
  .designer-sidebar { max-height: 500px; }
  .placeholder-list { max-height: 245px; }
  .designer-statusbar { align-items: flex-start; flex-direction: column; gap: 3px; }
  .pdf-upload-template { grid-template-columns: 38px minmax(0,1fr); }
  .pdf-upload-template-switch { grid-column: 2; }
  .designer-footer-note { display: none; }
  .mourning-print-modal .modal-body { padding: 0; }
  .mourning-wysiwyg-ribbon { display:block; padding:12px; }
  .mourning-ribbon-section + .mourning-ribbon-section { margin-top:13px; }
  .mourning-document-tools { grid-template-columns:minmax(0,1fr) 52px; }
  .mourning-format-field { grid-column:1 / -1; grid-row:2; }
  .mourning-accent-field { grid-column:2; grid-row:1; }
  .mourning-format-toolbar { width:100%; flex-basis:100%; flex-wrap:nowrap; overflow-x:auto; }
  .mourning-tool-group { flex-wrap:nowrap; flex:0 0 auto; }
  .mourning-insert-tools { grid-template-columns:1fr; }
  .mourning-motif-upload { width:100%; }
  .mourning-editor-context { align-items:flex-start; flex-direction:column; }
  .mourning-layout-actions { margin-left:0; }
  .mourning-editor-context .mourning-snap-controls { width:100%; min-width:0; flex-wrap:wrap; padding-left:0; border-left:0; }
  .mourning-wysiwyg-workspace { padding:12px; }
  .mourning-print-designer { display: block; }
  .mourning-print-controls { padding: 14px; }
  .mourning-print-preview-pane { min-height: 520px; border-top: 1px solid var(--line); border-left: 0; }
  .mourning-print-preview-stage { min-height: 450px; padding: 18px; }
  .mourning-print-overview { grid-template-columns: repeat(2,1fr); }
  .mourning-print-overview > div:nth-child(2) { border-right: 0; }
  .mourning-print-overview > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mourning-print-row { grid-template-columns: 60px minmax(0,1fr) auto; gap: 9px; }
  .mourning-print-row-preview { height: 72px; }
  .mourning-print-row > .status { grid-column: 3; grid-row: 1; }
  .mourning-print-row-actions { grid-column: 1 / -1; }
  .mourning-print-row-actions .button { flex: 1 1 auto; }
  .inventory-editor-layout { grid-template-columns: 1fr; }
  .inventory-image-editor { grid-template-columns: 110px minmax(0,1fr); align-items: center; }
  .inventory-image-stage { grid-row: 1 / 4; }
  .inventory-detail-head,.inventory-detail-gallery { grid-column: 1 / -1; }
  .inventory-detail-gallery { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .inventory-kind-fields { grid-template-columns: 1fr; }
  .inventory-automation-setting { grid-template-columns: 1fr; }
  .inventory-automation-status { grid-column: 1; }
  .inventory-category-row { grid-template-columns: 38px minmax(0,1fr) auto 18px; }
  .inventory-category-row > span:nth-child(3) { display: none; }
  .inventory-category-row > .status { grid-column: 3; }
  .role-profile { align-items: flex-start; flex-direction: column; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .master-conditional-fields, .death-time-fields, .death-administrative-fields, .crematorium-case-fields, .grave-location-fields, .master-choice-grid, .death-notice-columns, .death-notice-preview-grid, .registry-data-sheet-facts { grid-template-columns: 1fr; }
  .registry-data-sheet-panel > header { grid-template-columns: 42px minmax(0,1fr); }
  .registry-data-sheet-panel > header > .status { grid-column: 2; justify-self: start; }
  .registry-data-sheet-facts > div { border-right: 0; border-bottom: 1px solid #e2e6e7; }
  .registry-data-sheet-facts > div:last-child { border-bottom: 0; }
  .registry-data-sheet-panel > footer { align-items: stretch; flex-direction: column; }
  .registry-data-sheet-panel > footer > div,.registry-data-sheet-panel > footer .button { width: 100%; }
  .registry-data-sheet-history > div { grid-template-columns: 24px minmax(0,1fr); }
  .registry-data-sheet-history > div .button { grid-column: 2; }
  .death-time-fields.exact { grid-template-columns: 1fr; }
  .international-evidence-panel > header { grid-template-columns: 36px minmax(0,1fr); }
  .international-evidence-panel > header > .status,.international-evidence-switch { grid-column: 2; justify-self: start; }
  .international-evidence-row > header { grid-template-columns: auto minmax(0,1fr); }
  .international-evidence-row > header .international-translation-toggle { grid-column: 2; }
  .international-evidence-grid { grid-template-columns: 1fr; }
  .international-evidence-grid .full { grid-column: 1; }
  .international-evidence-summary,.international-evidence-actions { align-items: flex-start; flex-direction: column; }
  .international-evidence-summary span { text-align: left; }
  .death-notice-progress { grid-template-columns: 1fr; }
  .death-notice-progress i,.death-notice-progress small { grid-column: 1; width: 100%; }
  .death-notice-preview > header { grid-template-columns: 1fr auto; }
  .death-notice-preview > header img { grid-column:1 / -1; width:180px; }
  .death-notice-preview > header em { grid-column: 2; }
  .billing-line-labels { display: none; }
  .contact-picker-row { grid-template-columns: 1fr; }
  .contact-picker-actions { justify-content:stretch; }
  .contact-picker-row .button { flex:1; justify-content: center; }
  .case-contact-row { grid-template-columns:38px minmax(0,1fr); }
  .case-contact-row > .avatar { grid-row:1 / 3; }
  .case-contact-row > .contact-flags,.case-contact-row > .case-contact-actions { grid-column:2; justify-content:flex-start; }
  .case-contact-actions { align-items:stretch; flex-wrap:wrap; }
  .case-contact-actions .button { flex:1 1 150px; }
  .contact-duplicate-hint { align-items:stretch; flex-direction:column; }
  .billing-lines-title { align-items: flex-start; flex-direction: column; }
  .billing-tariff-grid { grid-template-columns: 1fr; }
  .billing-tariff-grid > article > footer { align-items: flex-start; flex-direction: column; }
  .service-line-block > header { align-items: flex-start; flex-direction: column; }
  .service-line-assignment { grid-template-columns: 1fr; align-items: stretch; }
  .service-line-assignment > small { padding-left: 27px; }
  .billing-line-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 32px; }
  .billing-line-row [data-line-item], .billing-line-row [data-line-description] { grid-column: 1 / -1; }
  .billing-line-row [data-line-quantity] { grid-column: 1; }
  .billing-line-row [data-line-price] { grid-column: 2; }
  .billing-line-row [data-line-vat] { grid-column: 1 / 3; }
  .billing-line-row > .icon-button { grid-column: 3; grid-row: auto; }
  .billing-line-row > small { grid-column: 1 / -1; white-space: normal; }
  .billing-editor-summary { grid-template-columns: 1fr; }
  .billing-editor-summary > div { border-right: 0; border-bottom: 1px solid #d8dfe1; }
  .billing-editor-summary > div:last-child { border-bottom: 0; }
  .institution-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .institution-toolbar > .muted { text-align: left; }
  .contact-tabs .tab { flex-basis: 145px; }
  .death-place-controls { grid-template-columns: 1fr; }
  .institution-preview { align-items: flex-start; flex-direction: column; }
  .case-event-editor > header { grid-template-columns: 34px minmax(0,1fr); }
  .case-event-editor > header output { grid-column: 2; justify-self: start; }
  .case-event-grid { grid-template-columns: 1fr; }
  .case-event-grid .field.full { grid-column: auto; }
  .case-event-source > div { grid-template-columns: 1fr; }
  .case-event-decoration-bar { grid-template-columns:32px minmax(0,1fr); }
  .case-event-decoration-bar .button { grid-column:1 / -1; width:100%; }
  .case-event-guidance, .preneed-officiants > div { grid-template-columns: 1fr; }
  .bereavement-notification > header { grid-template-columns: 34px minmax(0,1fr); }
  .bereavement-notification > header .toggle-row { grid-column: 2; justify-self: start; }
  .bereavement-notification-body { grid-template-columns: 1fr; }
  .bereavement-notification-status { grid-template-columns: auto minmax(0,1fr); }
  .bereavement-notification-status .button { grid-column: 1 / -1; }
  .cemetery-fee-list { grid-template-columns: 1fr; }
  .cemetery-gardener-head { align-items:flex-start; flex-direction:column; }
  .cemetery-gardener-list,.cemetery-gardener-options { grid-template-columns:1fr; }
  .cemetery-gardener-editor > header { grid-template-columns:40px minmax(0,1fr); }
  .cemetery-gardener-editor > header .button { grid-column:1 / -1; justify-self:start; }
  .appointment-decoration > header { grid-template-columns:38px minmax(0,1fr); }
  .appointment-decoration > header .toggle-row { grid-column:1 / -1; min-width:0; }
  .appointment-decoration-fields { grid-template-columns:1fr; }
  .appointment-decoration-fields > .full { grid-column:auto; }
  .appointment-decoration-event-summary.combined { grid-template-columns:1fr; }
  .appointment-decoration-event-summary.combined > span + span { padding-top:7px; padding-left:0; border-top:1px solid #dfd3e1; border-left:0; }
  .cemetery-fee-list > div { border-right: 0; }
  .cemetery-grave-type > footer { grid-template-columns: 1fr auto; }
  .cemetery-grave-type > footer > small { grid-column: 1 / -1; text-align: left; white-space: normal; }
  .crematory-fee-master-row { grid-template-columns: minmax(0,1fr) auto 32px; gap: 8px; }
  .crematory-fee-master-row > .institution-kind { grid-column: 1; grid-row: 1; justify-self: start; }
  .crematory-fee-description { grid-column: 1 / -1; grid-row: 2; }
  .crematory-fee-price { grid-column: 2; grid-row: 1; }
  .crematory-fee-master-row > .status { grid-column: 1; grid-row: 3; justify-self: start; }
  .crematory-fee-master-row > .icon-button { grid-column: 3; grid-row: 1; }
  .registry-office-fee-row { grid-template-columns: 34px minmax(0,1fr) auto; }
  .registry-office-fee-row > strong { grid-column: 2; text-align: left; }
  .registry-office-fee-row > .status { grid-column: 3; grid-row: 1; }
  .registry-office-fee-editor-labels { display: none; }
  .registry-office-fee-editor-row { grid-template-columns: 34px minmax(0,1fr); align-items: center; }
  .registry-office-fee-name { grid-column: 2; }
  .registry-office-fee-editor-row > label { grid-column: 1 / -1; }
  .registry-office-fee-active { grid-template-columns: 1fr auto; align-items: center; }
  .cemetery-fee-editor-labels { display: none; }
  .cemetery-fee-editor-row { grid-template-columns: 1fr 1fr 32px; gap: 7px; }
  .cemetery-fee-editor-row [data-fee-description] { grid-column: 1 / -1; grid-row: 1; }
  .cemetery-fee-editor-row [data-fee-category] { grid-column: 1; grid-row: 2; }
  .cemetery-fee-editor-row .money-input { grid-column: 2; grid-row: 2; }
  .cemetery-fee-editor-row [data-fee-unit] { grid-column: 1; grid-row: 3; }
  .cemetery-fee-editor-row .cemetery-optional { grid-column: 2; grid-row: 3; }
  .cemetery-fee-editor-row [data-remove-cemetery-fee], .cemetery-fee-editor-row [data-remove-crematory-fee] { grid-column: 3; grid-row: 2; }
  .work-queue-overview { grid-template-columns: repeat(2,1fr); }
  .work-queue-overview > div:nth-child(2n) { border-right: 0; }
  .work-queue-overview > div:nth-child(3) { border-right: 1px solid var(--line); }
  .work-queue-overview > div:last-child { grid-column: 1 / -1; }
  .work-queue-toolbar { grid-template-columns: 1fr; }
  .work-queue-toolbar .segmented-control { display: grid; grid-template-columns: repeat(3,1fr); }
  .work-queue-row { grid-template-columns: 34px minmax(0,1fr) 20px; gap: 8px; }
  .work-queue-icon { grid-column: 1; grid-row: 1; }
  .work-queue-main { grid-column: 2; grid-row: 1; }
  .work-queue-open { grid-column: 3; grid-row: 1; }
  .work-queue-owner { grid-column: 2; grid-row: 2; }
  .work-queue-due { grid-column: 2; grid-row: 3; }
  .work-queue-main small, .work-queue-main em { white-space: normal; }
  .custody-toolbar { align-items: flex-start; flex-direction: column; }
  .case-billing-toolbar { align-items: flex-start; flex-direction: column; }
  .case-billing-overview { grid-template-columns: repeat(2,1fr); }
  .case-billing-overview > div:nth-child(2) { border-right: 0; }
  .case-billing-overview > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .case-article-selection article { grid-template-columns: 44px minmax(0,1fr) auto 34px; }
  .case-article-selection article > strong { display: none; }
  .case-billing-document > header { grid-template-columns: minmax(0,1fr) auto; }
  .case-billing-document > header .button { grid-column: 1 / -1; justify-self: start; }
  .case-billing-document > footer { grid-template-columns: repeat(2,1fr); }
  .case-billing-document > footer > div:nth-child(2) { border-right: 0; }
  .case-billing-document > footer > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .case-billing-payments { grid-template-columns: 1fr; }
  .case-billing-payments > div { border-top: 1px solid #dce6e2; border-left: 0; }
  .memorial-admin-section > header { align-items: flex-start; flex-direction: column; }
  .memorial-admin-settings { grid-template-columns: 1fr; }
  .memorial-portrait-source { width:100%; grid-template-columns:1fr; }
  .memorial-portrait-upload { width:100%; }
  .memorial-portrait-editor { grid-template-columns: 1fr; justify-items: center; }
  .memorial-portrait-controls { width: 100%; }
  .memorial-admin-facts { grid-template-columns: repeat(2,1fr); }
  .memorial-admin-facts > div:nth-child(2) { border-right: 0; }
  .memorial-admin-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .memorial-admin-facts > div:last-child { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--line); }
  .memorial-print-publication-row { grid-template-columns: 36px minmax(0,1fr) 36px; gap: 9px; }
  .memorial-print-publication-row > .status { grid-column: 2; justify-self: start; }
  .memorial-print-publication-row > .switch { grid-column: 3; grid-row: 1 / span 2; }
  .memorial-moderation-row { grid-template-columns: 48px minmax(0,1fr); }
  .memorial-moderation-row > img { width: 44px; height: 54px; }
  .memorial-moderation-row > div:last-child { grid-column: 2; }
  .memorial-memory-moderation-row { grid-template-columns: 88px minmax(0,1fr); }
  .memorial-memory-moderation-row > img { width: 82px; height: 72px; }
  .memorial-memory-moderation-row > div:last-child { grid-column: 2; }
  .custody-toolbar > div:last-child { width: 100%; justify-content: flex-start; }
  .custody-overview { grid-template-columns: repeat(2,1fr); }
  .custody-overview > div:nth-child(2) { border-right: 0; }
  .custody-overview > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .custody-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  .custody-category { grid-column: 1; grid-row: 1; }
  .custody-row > .status { grid-column: 2; grid-row: 1; }
  .custody-description { grid-column: 1 / -1; grid-row: 2; }
  .custody-description small { white-space: normal; }
  .custody-quantity { grid-column: 1; grid-row: 3; }
  .custody-location { grid-column: 2; grid-row: 3; text-align: right; }
  .custody-row > .icon-button { grid-column: 2; grid-row: 4; justify-self: end; }
  .custody-row-lock { display: none; }
  .custody-release-row { grid-template-columns: 34px minmax(0,1fr); }
  .custody-release-row .button { grid-column: 2; justify-self: start; }
  .custody-selector-head { align-items: flex-start; }
  .custody-release-line { grid-template-columns: 20px minmax(0,1fr) 78px; }
  .custody-release-line > span:last-child { grid-column: 3; text-align: right; }
  .deregistration-toolbar { align-items: flex-start; flex-direction: column; }
  .deregistration-overview { grid-template-columns: repeat(2,1fr); }
  .deregistration-overview > div:nth-child(2) { border-right: 0; }
  .deregistration-overview > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .deregistration-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px 10px; }
  .deregistration-kind { grid-column: 1; grid-row: 1; }
  .deregistration-actions { grid-column: 2; grid-row: 1; }
  .deregistration-main { grid-column: 1 / -1; grid-row: 2; }
  .deregistration-main small { white-space: normal; }
  .deregistration-document { grid-column: 1; grid-row: 3; }
  .deregistration-status { grid-column: 2; grid-row: 3; width: 126px; }
  .insurance-package > header { grid-template-columns: 40px minmax(0,1fr); }
  .insurance-package .toggle-row.compact { grid-column: 1 / -1; justify-content: flex-start; }
  .insurance-document-list { grid-template-columns: 1fr; }
}

@media (max-width:760px) {
  .mourning-wysiwyg-ribbon { align-items:stretch; }
  .mourning-wysiwyg-group,.mourning-wysiwyg-group.grow { width:100%; min-width:0; flex-wrap:wrap; justify-content:flex-start; }
  .mourning-wysiwyg-group label { flex:1 1 140px; align-items:stretch; flex-direction:column; }
  .mourning-wysiwyg-group select,.mourning-wysiwyg-group.grow select { min-width:0; width:100%; max-width:none; }
  .mourning-wysiwyg-workspace { padding:12px; }
  .mourning-print-page-label { width:100%; }
  .modal-footer-note { display:none; }
}

.authority-metrics { margin-bottom:14px; }
.authority-layout { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:14px; align-items:start; }
.authority-layout.single { grid-template-columns:minmax(0,1fr); }
.authority-cases-panel,.authority-access-panel { min-width:0; margin:0; }
.authority-panel-head { gap:16px; }
.authority-panel-head .filter-wrap { width:min(360px,42%); }
.authority-table { min-width:900px; }
.authority-table tr { cursor:pointer; }
.authority-order-badges { display:flex; flex-wrap:wrap; gap:4px; min-width:180px; }
.authority-order-badges > span { display:inline-flex; align-items:center; gap:3px; padding:3px 6px; border:1px solid #dfd2e1; border-radius:4px; background:#f8f3f8; color:#66306c; font-size:10px; font-weight:700; white-space:nowrap; }
.authority-order-badges > span.neutral { border-color:#dfe4e5; background:#f7f9f9; color:var(--muted); }
.authority-order-badges svg { width:11px; height:11px; }
.authority-case-link { display:block; margin-top:5px; color:var(--primary); font-size:10px; font-weight:700; }
.authority-account-list { display:grid; }
.authority-account-list article { display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:10px; padding:12px 14px; border-bottom:1px solid var(--line); }
.authority-account-list article:last-child { border-bottom:0; }
.authority-account-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:5px; background:#efe5f0; color:var(--primary); }
.authority-account-list strong,.authority-account-list span,.authority-account-list small { display:block; }
.authority-account-list strong { font-size:13px; line-height:1.35; }
.authority-account-list article div > span { margin-top:2px; color:#59686d; font-size:11px; }
.authority-account-list small { margin-top:3px; color:var(--muted); font-size:10px; }
.authority-account-actions { display:flex; gap:3px; }
.authority-access-panel .empty-state.compact { min-height:220px; }
.security-note { display:flex; align-items:flex-start; gap:10px; margin-top:15px; padding:12px 13px; border:1px solid #ddcbe0; border-left:4px solid var(--primary); border-radius:5px; background:#fbf7fb; }
.security-note > svg { flex:0 0 18px; color:var(--primary); }
.security-note strong,.security-note span { display:block; }
.security-note span { margin-top:3px; color:var(--muted); font-size:11px; line-height:1.45; }
.credential-once { display:grid; gap:7px; }
.credential-once > label { margin-top:7px; color:#58666b; font-size:11px; font-weight:700; text-transform:uppercase; }
.credential-warning { display:flex; gap:10px; padding:13px; border:1px solid #ead6b2; border-radius:5px; background:#fff8eb; color:#755018; }
.credential-warning > svg { flex:0 0 18px; }
.credential-warning strong,.credential-warning span { display:block; }
.credential-warning span { margin-top:3px; font-size:11px; }
.credential-value { display:grid; grid-template-columns:minmax(0,1fr) 38px; gap:5px; }
.credential-value input { min-width:0; font-family:Consolas,"Courier New",monospace; }
.credential-value .icon-button { width:38px; height:38px; border:1px solid #ccd5d8; background:#fff; }
.authority-detail { display:grid; gap:13px; }
.authority-detail-person { display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:12px; padding:14px; border:1px solid #d9cfdb; border-left:4px solid var(--primary); border-radius:6px; background:#faf7fa; }
.authority-detail-avatar { width:48px; height:48px; display:grid; place-items:center; border-radius:50%; background:var(--primary); color:#fff; font-size:14px; font-weight:800; }
.authority-detail-person small,.authority-detail-person h3,.authority-detail-person p { display:block; margin:0; }
.authority-detail-person small { color:var(--muted); font-size:10px; font-weight:700; text-transform:uppercase; }
.authority-detail-person h3 { margin-top:2px; font-size:18px; }
.authority-detail-person p { margin-top:3px; color:var(--muted); font-size:12px; }
.authority-detail-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--line); border-radius:5px; overflow:hidden; }
.authority-detail-grid > div { min-height:74px; padding:12px; border-right:1px solid var(--line); background:#fff; }
.authority-detail-grid > div:last-child { border-right:0; }
.authority-detail-grid span,.authority-detail-grid strong,.authority-detail-grid small { display:block; }
.authority-detail-grid span { color:var(--muted); font-size:10px; font-weight:700; text-transform:uppercase; }
.authority-detail-grid strong { margin-top:5px; font-size:12px; line-height:1.4; }
.authority-detail-grid small { margin-top:3px; color:var(--muted); font-size:10px; }
.authority-orders,.authority-original-note,.authority-linked-case,.authority-link-editor,.authority-status-editor,.authority-conversation { border:1px solid var(--line); border-radius:6px; background:#fff; }
.authority-orders { display:grid; grid-template-columns:180px minmax(0,1fr); align-items:center; padding:12px 14px; }
.authority-original-note { padding:13px 15px; border-left:4px solid var(--accent-gold); background:#fffaf1; }
.authority-original-note strong { font-size:12px; }
.authority-original-note p { margin:6px 0 0; color:#554b3c; font-size:12px; line-height:1.5; }
.authority-status-editor { display:grid; grid-template-columns:220px minmax(0,1fr) auto; align-items:end; gap:12px; padding:14px; background:#fafbfb; }
.authority-status-editor textarea { min-height:64px; }
.authority-linked-case { display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:10px; padding:12px 14px; border-color:#c9dfd1; background:#f5fbf7; color:#315e43; }
.authority-linked-case > svg { color:#3f7654; }
.authority-linked-case span,.authority-linked-case strong { display:block; }
.authority-linked-case span { font-size:10px; text-transform:uppercase; }
.authority-linked-case strong { margin-top:3px; color:#243f2e; font-size:12px; }
.authority-link-editor { padding:14px; }
.authority-link-editor > header { margin-bottom:12px; }
.authority-link-editor > header strong,.authority-link-editor > header span { display:block; }
.authority-link-editor > header span { margin-top:3px; color:var(--muted); font-size:11px; }
.authority-conversation > header { padding:12px 14px; border-bottom:1px solid var(--line); }
.authority-conversation > header strong,.authority-conversation > header span { display:block; }
.authority-conversation > header span { margin-top:2px; color:var(--muted); font-size:10px; }
.authority-message-list { max-height:280px; overflow:auto; padding:10px 14px; background:#fafbfb; }
.authority-message { display:grid; grid-template-columns:30px minmax(0,1fr); gap:9px; padding:9px 0; }
.authority-message > span { width:30px; height:30px; display:grid; place-items:center; border-radius:50%; background:#e7edf0; color:#52676f; }
.authority-message.staff > span { background:#eaddec; color:var(--primary); }
.authority-message svg { width:14px; height:14px; }
.authority-message header { display:flex; justify-content:space-between; gap:10px; }
.authority-message header strong { font-size:11px; }
.authority-message time { color:var(--muted); font-size:9px; }
.authority-message p { margin:4px 0 0; color:#465258; font-size:12px; line-height:1.5; }
.authority-message-compose { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:9px; padding:12px 14px; border-top:1px solid var(--line); }
.authority-message-compose textarea { min-height:64px; }

@media (max-width:1450px) {
  .authority-layout { grid-template-columns:1fr; }
  .authority-access-panel { order:-1; }
  .authority-account-list { grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); }
  .authority-account-list article:nth-child(odd) { border-right:1px solid var(--line); }
}
@media (max-width:1000px) {
  .authority-detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .authority-detail-grid > div { border-bottom:1px solid var(--line); }
  .authority-detail-grid > div:nth-child(2n) { border-right:0; }
  .authority-detail-grid > div:nth-last-child(-n+2) { border-bottom:0; }
  .authority-status-editor { grid-template-columns:1fr; }
}

.number-sequence-name { display:flex; align-items:center; gap:10px; min-width:170px; }
.number-sequence-name > span:last-child { display:flex; flex-direction:column; gap:3px; min-width:0; }
.number-sequence-name small,.number-preview,.number-origin { display:block; color:var(--muted); font-size:11px; margin-top:4px; }
.number-sequence-mark { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border:1px solid #dbc7df; border-radius:6px; background:#f8f2f9; color:var(--primary); }
.number-sequence-mark svg { width:17px; height:17px; }
.number-pattern { display:inline-block; padding:5px 7px; border:1px solid var(--line); border-radius:4px; background:#f7f8f8; color:#39484d; font-size:12px; }
.number-preview strong { color:var(--primary); font-size:12px; }
.number-sequence-table { min-width:880px; }
.number-sequence-table td { vertical-align:middle; }
.number-sequence-table td:nth-child(3),.number-sequence-table td:nth-child(4) { white-space:nowrap; }
.number-sequence-live-preview { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:68px; padding:13px 16px; border:1px solid #d8c2dc; border-left:4px solid var(--primary); border-radius:5px; background:#fbf7fb; }
.number-sequence-live-preview span { color:var(--muted); font-size:12px; }
.number-sequence-live-preview strong { color:var(--primary); font-size:20px; letter-spacing:0; overflow-wrap:anywhere; text-align:right; }

@media (max-width:760px) {
  .number-sequence-metrics { grid-template-columns:repeat(2,1fr); }
  .number-sequence-live-preview { align-items:flex-start; flex-direction:column; gap:7px; }
  .number-sequence-live-preview strong { text-align:left; }
  .civil-register-evidence-row { grid-template-columns:36px minmax(0,1fr); }
  .civil-register-evidence-row .button { grid-column:1 / -1; width:100%; }
  .civil-register-mail-preview > header { grid-template-columns:1fr; }
  .civil-register-mail-preview > header > div { border-right:0; border-bottom:1px solid #dce2e3; }
  .civil-register-mail-preview > header > div:last-child { border-bottom:0; }
  .vehicle-damage-head { align-items:stretch; flex-direction:column; }
  .vehicle-damage-head .button { justify-content:center; }
  .vehicle-damage-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .vehicle-damage-metrics > div:nth-child(2) { border-right:0; }
  .vehicle-damage-metrics > div:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .vehicle-damage-row { grid-template-columns:1fr; }
  .vehicle-damage-photos { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .vehicle-damage-existing-photos { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .vehicle-image-editor,.vehicle-image-editor.readonly { grid-template-columns:1fr; }
}

.transfer-qr-panel { display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:13px; margin-bottom:18px; padding:14px 16px; border:1px solid #d9c5dc; border-left:4px solid var(--primary); border-radius:6px; background:#fbf7fb; }
.transfer-qr-panel > span { width:44px; height:44px; display:grid; place-items:center; border-radius:5px; background:#643182; color:#fff; }
.transfer-qr-panel > span svg { width:23px; height:23px; }
.transfer-qr-panel strong,.transfer-qr-panel small { display:block; }
.transfer-qr-panel strong { color:#49334d; font-size:14px; }
.transfer-qr-panel small { margin-top:4px; color:var(--muted); font-size:11px; line-height:1.4; }
.transfer-authority-intake { display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:12px; margin-bottom:12px; padding:13px 15px; border:1px solid #e2c78f; border-left:4px solid #b9781c; border-radius:6px; background:#fff9ed; }
.transfer-authority-intake > span:first-child { width:38px; height:38px; display:grid; place-items:center; border-radius:5px; background:#f1dfbb; color:#875a18; }
.transfer-authority-intake svg { width:19px; height:19px; }
.transfer-authority-intake strong { display:block; color:#513a18; font-size:13px; }
.transfer-authority-intake p { margin:4px 0 0; color:#776139; font-size:11px; line-height:1.45; }
.transfer-documentation-overview { margin-top:20px; border:1px solid var(--line); border-radius:6px; background:#fff; }
.transfer-documentation-overview > header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; border-bottom:1px solid var(--line); background:#faf8fa; }
.transfer-documentation-overview > header > div { display:flex; align-items:center; gap:10px; min-width:0; }
.transfer-documentation-overview > header strong,.transfer-documentation-overview > header small { display:block; }
.transfer-documentation-overview > header strong { font-size:13px; }
.transfer-documentation-overview > header small { margin-top:3px; color:var(--muted); font-size:11px; }
.transfer-documentation-icon { width:34px; height:34px; display:grid; place-items:center; flex:0 0 34px; border-radius:5px; background:#f0e5f1; color:var(--primary); }
.transfer-documentation-icon svg { width:17px; height:17px; }
.transfer-documentation-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.transfer-documentation-facts > div { min-height:72px; padding:12px 15px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.transfer-documentation-facts > div:nth-child(2n) { border-right:0; }
.transfer-documentation-facts > div:nth-last-child(-n+2) { border-bottom:0; }
.transfer-documentation-facts span,.transfer-documentation-facts strong { display:block; }
.transfer-documentation-facts span { color:var(--muted); font-size:10px; font-weight:700; text-transform:uppercase; }
.transfer-documentation-facts strong { margin-top:6px; font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
.transfer-photo-strip { display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:9px; padding:14px; border-top:1px solid var(--line); }
.transfer-photo-strip button { height:96px; overflow:hidden; padding:0; border:1px solid #d8ceda; border-radius:5px; background:#f2eef3; }
.transfer-photo-strip img { width:100%; height:100%; display:block; object-fit:cover; }
.transfer-no-photos { margin:0; padding:13px 15px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; }
.transfer-history .history-entry small { display:block; margin-top:4px; color:#66596a; font-size:11px; line-height:1.4; }

@media (max-width:760px) {
  .transfer-intake-alert,.transfer-authority-intake { grid-template-columns:42px minmax(0,1fr); }
  .transfer-intake-alert > .status,.transfer-authority-intake > .status { grid-column:1 / -1; justify-self:start; }
  .transfer-intake-alert button { min-width:100%; }
  .vehicle-device-panel > header { grid-template-columns:42px minmax(0,1fr); }
  .vehicle-device-panel > header > .status { grid-column:1 / -1; justify-self:start; }
  .vehicle-device-row { grid-template-columns:70px minmax(0,1fr) 36px; padding-inline:11px; }
  .vehicle-device-assign { grid-template-columns:1fr; padding-inline:11px; }
  .vehicle-device-assign .button { justify-content:center; }
  .transfer-qr-panel { grid-template-columns:42px minmax(0,1fr); }
  .transfer-qr-panel .button { grid-column:1 / -1; justify-content:center; }
  .transfer-documentation-facts { grid-template-columns:1fr; }
  .transfer-documentation-facts > div { border-right:0; }
  .transfer-documentation-facts > div:nth-last-child(-n+2) { border-bottom:1px solid var(--line); }
  .transfer-documentation-facts > div:last-child { border-bottom:0; }
}

.case-transfer-toolbar { margin-bottom:0; }
.urn-arrival-panel { margin:14px 0; overflow:hidden; border:1px solid #d8cfd9; border-left:4px solid #a7b0b2; border-radius:6px; background:#fff; }
.urn-arrival-panel.arrived { border-left-color:#4f8b69; }
.urn-arrival-panel > header { min-height:76px; display:grid; grid-template-columns:42px minmax(0,1fr) auto auto; align-items:center; gap:12px; padding:13px 15px; border-bottom:1px solid var(--line); background:#faf8fa; }
.urn-arrival-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; background:#eee3ef; color:var(--primary); }
.urn-arrival-panel.arrived .urn-arrival-icon { background:#e5f1e9; color:#34704b; }
.urn-arrival-icon svg { width:20px; height:20px; }
.urn-arrival-panel > header > div > span,.urn-arrival-panel > header > div > strong,.urn-arrival-panel > header > div > small { display:block; }
.urn-arrival-panel > header > div > span { color:var(--primary); font-size:10px; font-weight:800; text-transform:uppercase; }
.urn-arrival-panel > header > div > strong { margin-top:2px; font-size:15px; }
.urn-arrival-panel > header > div > small { margin-top:3px; color:var(--muted); font-size:11px; }
.urn-arrival-history { display:grid; }
.urn-arrival-entry { display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:start; gap:11px; padding:13px 15px; border-bottom:1px solid #ece7ec; }
.urn-arrival-entry:last-child { border-bottom:0; }
.urn-arrival-entry-mark { width:34px; height:34px; display:grid; place-items:center; border-radius:5px; background:#f2ebf3; color:var(--primary); }
.urn-arrival-entry-mark svg { width:16px; height:16px; }
.urn-arrival-entry header { display:flex; align-items:center; gap:8px; }
.urn-arrival-entry header strong { font-size:13px; }
.urn-arrival-entry small { display:block; margin-top:4px; color:var(--muted); font-size:10px; }
.urn-arrival-entry p { margin:6px 0 0; color:#4e5a5e; font-size:11px; line-height:1.45; }
.urn-arrival-entry em { display:block; margin-top:7px; color:#a53f36; font-size:10px; font-style:normal; }
.urn-arrival-empty { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:15px; color:var(--muted); }
.urn-arrival-empty strong { color:var(--text); font-size:12px; }
.urn-arrival-empty span { font-size:11px; text-align:right; }
.urn-arrival-panel > footer { display:flex; align-items:center; gap:7px; padding:9px 15px; border-top:1px solid #dfe9e2; background:#f4faf6; color:#52705d; font-size:10px; }
.urn-arrival-panel > footer svg { width:13px; height:13px; flex:0 0 auto; }
.urn-arrival-lock-note { display:flex; align-items:flex-start; gap:10px; margin-bottom:16px; padding:12px 14px; border-left:3px solid #4f8b69; background:#f0f7f3; color:#365b43; }
.urn-arrival-lock-note > svg { width:18px; height:18px; flex:0 0 auto; margin-top:2px; }
.urn-arrival-lock-note span,.urn-arrival-lock-note strong,.urn-arrival-lock-note small { display:block; }
.urn-arrival-lock-note small { margin-top:3px; font-size:11px; }
.urn-notification-settings { display:grid; gap:12px; margin-top:18px; padding:16px; border:1px solid #d8cbd9; border-radius:6px; background:#fbf8fb; }
.urn-notification-settings > header { display:flex; align-items:center; gap:10px; color:var(--primary); }
.urn-notification-settings > header > svg { width:20px; height:20px; }
.urn-notification-settings > header span,.urn-notification-settings > header strong,.urn-notification-settings > header small { display:block; }
.urn-notification-settings > header small { margin-top:2px; color:var(--muted); font-size:11px; }
.urn-notification-settings > .toggle-row { min-height:56px; padding:9px 11px; }
.urn-notification-settings > .toggle-row > span { min-width:0; display:grid; gap:3px; }
.urn-notification-settings > .toggle-row strong { display:block; line-height:1.35; }
.urn-notification-settings > .toggle-row small { display:block; color:var(--muted); font-size:11px; font-weight:500; line-height:1.4; }
.urn-notification-settings > .toggle-row .switch { flex:0 0 34px; }

.envelope-dialog-layout { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(280px,.75fr); gap:18px; align-items:start; }
.envelope-preview-wrap { min-width:0; display:grid; gap:9px; padding:16px; border:1px solid var(--line); background:#eef1f0; }
.envelope-preview-wrap > header { display:flex; align-items:center; justify-content:space-between; gap:12px; color:#697579; font-size:12px; }
.envelope-preview-wrap > header span { font-weight:800; text-transform:uppercase; }
.envelope-preview-wrap > header strong { color:#303b3f; }
.envelope-sheet-preview { width:100%; position:relative; overflow:hidden; border:1px solid #d9d6d2; background:#fff; box-shadow:0 12px 28px rgba(37,44,46,.12); transition:aspect-ratio .2s ease; }
.envelope-sheet-preview[data-format="DL"] { aspect-ratio:2/1; }
.envelope-sheet-preview[data-format="C6"] { aspect-ratio:1.421/1; }
.envelope-sheet-preview[data-format="C5"] { aspect-ratio:1.414/1; }
.envelope-preview-sender { position:absolute; top:10%; left:6%; display:grid; gap:2px; padding-bottom:6px; border-bottom:2px solid #d8c5dc; color:#643182; }
.envelope-preview-sender strong { font-size:12px; }
.envelope-preview-sender span { color:#6d777a; font-size:9px; }
.envelope-preview-recipient { width:47%; position:absolute; top:45%; left:44%; display:grid; gap:5px; color:#263338; font-size:13px; line-height:1.25; }
.envelope-preview-recipient strong { font-size:14px; }
.envelope-sheet-preview[data-format="C6"] .envelope-preview-recipient { width:53%; left:38%; }
.envelope-sheet-preview[data-format="C5"] .envelope-preview-recipient { width:48%; top:47%; left:43%; }
.envelope-print-options { display:grid; gap:14px; }
.envelope-print-options .toggle-row > span { min-width:0; display:grid; gap:3px; }
.envelope-print-options .toggle-row strong,.envelope-print-options .toggle-row small { display:block; }
.envelope-print-options .toggle-row small { color:var(--muted); font-size:11px; font-weight:500; line-height:1.35; }
.envelope-source-badge { min-height:54px; display:flex; align-items:center; gap:10px; padding:10px; border:1px solid #dfd5e1; border-left:3px solid #643182; background:#faf7fa; }
.envelope-source-badge > svg { width:20px; height:20px; color:#643182; }
.envelope-source-badge > span { min-width:0; display:grid; gap:2px; }
.envelope-source-badge small { overflow:hidden; color:#6c787b; text-overflow:ellipsis; white-space:nowrap; }
.envelope-print-note { display:flex; align-items:flex-start; gap:9px; padding:11px; border:1px solid #d8dfe0; background:#f7f9f8; color:#5e6b6f; font-size:12px; line-height:1.45; }
.envelope-print-note svg { width:17px; height:17px; flex:none; color:#643182; }

@media (max-width: 760px) {
  .envelope-dialog-layout { grid-template-columns:1fr; }
}
.field-error { color:#a53f36 !important; }
.family-admin-appointment-preferences { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.family-admin-appointment-preferences span { display:inline-flex !important; align-items:center; gap:5px; padding:5px 7px; border:1px solid #dfd3e0; border-radius:4px; background:#faf7fa; color:#55485a; font-size:10px; }
.family-admin-appointment-preferences svg { width:12px; height:12px; color:var(--primary); }
.family-admin-appointment-preferences b { color:var(--primary); }
.case-transfer-overview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:14px; border:1px solid var(--line); border-top:0; background:#fff; }
.case-transfer-overview > div { min-height:72px; padding:13px 16px; border-right:1px solid var(--line); }
.case-transfer-overview > div:last-child { border-right:0; }
.case-transfer-overview span,.case-transfer-overview strong { display:block; }
.case-transfer-overview span { color:var(--muted); font-size:11px; }
.case-transfer-overview strong { margin-top:5px; font-size:22px; }
.case-transfer-list { display:grid; gap:14px; }
.case-transfer-card { overflow:hidden; border:1px solid #d8cfd9; border-left:4px solid var(--primary); border-radius:6px; background:#fff; }
.case-transfer-card.completed { border-left-color:#809093; }
.case-transfer-card > header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:15px 17px; border-bottom:1px solid var(--line); background:#faf8fa; }
.case-transfer-card > header h3 { margin:4px 0 2px; font-size:16px; }
.case-transfer-card > header small { color:var(--muted); font-size:11px; }
.case-transfer-card > header > div:last-child { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:7px; }
.case-transfer-number { color:var(--primary); font-size:11px; font-weight:800; }
.case-transfer-main { display:grid; grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr); border-bottom:1px solid var(--line); }
.case-transfer-route { display:grid; gap:15px; padding:17px; border-right:1px solid var(--line); }
.case-transfer-route > div { display:grid; grid-template-columns:15px minmax(0,1fr); align-items:flex-start; gap:9px; }
.case-transfer-route i { width:10px; height:10px; margin-top:3px; border:2px solid var(--primary); border-radius:50%; background:#fff; }
.case-transfer-route > div:first-child { position:relative; }
.case-transfer-route > div:first-child::after { content:""; position:absolute; top:14px; bottom:-15px; left:4px; width:1px; background:#cdbcd0; }
.case-transfer-route span,.case-transfer-route small,.case-transfer-route strong { display:block; }
.case-transfer-route small,.case-transfer-facts span,.case-transfer-office span { color:var(--muted); font-size:11px; font-weight:700; text-transform:uppercase; }
.case-transfer-route strong { margin-top:3px; font-size:13px; line-height:1.4; }
.case-transfer-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.case-transfer-facts > div { min-height:70px; padding:13px 15px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.case-transfer-facts > div:nth-child(2n) { border-right:0; }
.case-transfer-facts > div:nth-last-child(-n+2) { border-bottom:0; }
.case-transfer-facts span,.case-transfer-facts strong { display:block; }
.case-transfer-facts strong { margin-top:5px; font-size:13px; line-height:1.4; }
.case-transfer-safety { display:flex; align-items:flex-start; gap:14px; padding:11px 16px; border-bottom:1px solid #ead6b2; background:#fff8eb; color:#6f4c16; }
.case-transfer-safety strong { white-space:nowrap; }
.case-transfer-safety span { line-height:1.45; }
.case-transfer-office { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-bottom:1px solid var(--line); background:#fcfbfc; }
.case-transfer-office > div { min-height:64px; padding:12px 16px; border-right:1px solid var(--line); }
.case-transfer-office > div:last-child { border-right:0; }
.case-transfer-office span,.case-transfer-office strong { display:block; }
.case-transfer-office strong { margin-top:5px; font-size:13px; line-height:1.45; overflow-wrap:anywhere; }
.case-transfer-evidence { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); }
.case-transfer-evidence > section:first-child { border-right:1px solid var(--line); }
.case-transfer-evidence > section > header { display:flex; justify-content:space-between; gap:12px; padding:11px 14px; border-bottom:1px solid var(--line); }
.case-transfer-evidence > section > header strong { font-size:13px; }
.case-transfer-evidence > section > header span { color:var(--muted); font-size:11px; }
.case-transfer-photo-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:12px; }
.case-transfer-photo-strip button { min-width:0; overflow:hidden; padding:0; border:1px solid #d8ceda; border-radius:4px; background:#f2eef3; text-align:left; }
.case-transfer-photo-strip img { width:100%; aspect-ratio:4/3; display:block; object-fit:cover; }
.case-transfer-photo-strip span { display:block; overflow:hidden; padding:5px 6px; color:var(--muted); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.case-transfer-history { padding:12px 14px; }
.case-transfer-history article { position:relative; display:grid; grid-template-columns:14px minmax(0,1fr); gap:8px; min-height:65px; }
.case-transfer-history article::before { content:""; position:absolute; top:12px; bottom:-2px; left:4px; width:1px; background:#d8cbd9; }
.case-transfer-history article:last-of-type::before { display:none; }
.case-transfer-history article > i { width:10px; height:10px; position:relative; z-index:1; margin-top:2px; border:2px solid #eadfec; border-radius:50%; background:var(--primary); }
.case-transfer-history strong,.case-transfer-history span,.case-transfer-history p,.case-transfer-history small { display:block; }
.case-transfer-history strong { font-size:12px; }
.case-transfer-history span { margin-top:2px; color:var(--muted); font-size:10px; }
.case-transfer-history p { margin:4px 0 0; color:#504653; font-size:11px; line-height:1.4; }
.case-transfer-history small { margin-top:3px; color:#76551d; font-size:10px; }
.case-transfer-history-more { display:block; color:var(--muted); font-size:10px; text-align:center; }
.case-transfer-empty-note { padding:24px 14px; color:var(--muted); font-size:11px; text-align:center; }
.case-transfer-empty { display:grid; justify-items:center; gap:7px; padding:55px 20px; border:1px solid var(--line); background:#fff; text-align:center; }
.case-transfer-empty > span { width:48px; height:48px; display:grid; place-items:center; border-radius:50%; background:#eee5ef; color:var(--primary); }
.case-transfer-empty svg { width:23px; height:23px; }
.case-transfer-empty strong { font-size:15px; }
.case-transfer-empty p { margin:0 0 8px; color:var(--muted); font-size:11px; }

@media (max-width:900px) {
  .case-transfer-card > header { flex-direction:column; }
  .case-transfer-card > header > div:last-child { justify-content:flex-start; }
  .case-transfer-main,.case-transfer-evidence { grid-template-columns:1fr; }
  .case-transfer-route,.case-transfer-evidence > section:first-child { border-right:0; border-bottom:1px solid var(--line); }
}
@media (max-width:620px) {
  .urn-arrival-panel > header { grid-template-columns:36px minmax(0,1fr); align-items:start; }
  .urn-arrival-icon { width:36px; height:36px; }
  .urn-arrival-panel > header > .status,.urn-arrival-panel > header > .button { grid-column:2; justify-self:start; }
  .urn-arrival-entry { grid-template-columns:30px minmax(0,1fr); }
  .urn-arrival-entry-mark { width:30px; height:30px; }
  .urn-arrival-entry > .button { grid-column:2; justify-self:start; }
  .urn-arrival-entry header { align-items:flex-start; flex-direction:column; gap:4px; }
  .urn-arrival-empty { align-items:flex-start; flex-direction:column; }
  .urn-arrival-empty span { text-align:left; }
  .case-transfer-overview { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .case-transfer-overview > div:nth-child(2) { border-right:0; }
  .case-transfer-overview > div:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .case-transfer-facts,.case-transfer-office { grid-template-columns:1fr; }
  .case-transfer-facts > div,.case-transfer-office > div { border-right:0; border-bottom:1px solid var(--line); }
  .case-transfer-facts > div:nth-last-child(-n+2) { border-bottom:1px solid var(--line); }
  .case-transfer-facts > div:last-child,.case-transfer-office > div:last-child { border-bottom:0; }
  .case-transfer-card > header > div:last-child .button { flex:1 1 150px; justify-content:center; }
}

.contact-category-name { display:flex; align-items:center; gap:11px; min-width:220px; }
.contact-category-name > span:last-child { min-width:0; }
.contact-category-name strong,.contact-category-name small,.contact-category-default { display:block; }
.contact-category-name strong { font-size:13px; }
.contact-category-name small,.contact-category-default { margin-top:3px; color:var(--muted); font-size:11px; }
.contact-category-mark { width:36px; height:36px; display:grid; place-items:center; flex:0 0 36px; border-radius:6px; background:#f0e5f1; color:var(--primary); }
.contact-category-mark svg { width:18px; height:18px; }
.contact-category-table td { vertical-align:middle; }
.contact-category-table td:last-child { width:54px; text-align:right; }
.contact-category-system-note { display:flex; align-items:flex-start; gap:11px; padding:13px 14px; border:1px solid #ddcbe0; border-left:4px solid var(--primary); border-radius:6px; background:#fbf7fb; color:#553c59; }
.contact-category-system-note > svg { width:18px; height:18px; flex:0 0 18px; margin-top:1px; }
.contact-category-system-note strong,.contact-category-system-note span { display:block; }
.contact-category-system-note span { margin-top:3px; color:var(--muted); font-size:11px; line-height:1.45; }

.family-admin-section > header > div:last-child { display:flex; align-items:center; gap:7px; }
.family-admin-request-list { display:grid; gap:8px; padding:12px; }
.family-admin-request { display:grid; grid-template-columns:38px minmax(0,1fr) minmax(125px,155px); align-items:start; gap:11px; padding:11px; border:1px solid var(--line); border-radius:6px; background:#fff; }
.family-admin-request-mark { width:38px; height:38px; display:grid; place-items:center; border-radius:6px; background:#efe5f0; color:var(--primary); }
.family-admin-request-mark svg { width:18px; height:18px; }
.family-admin-request strong,.family-admin-request span,.family-admin-request small { display:block; }
.family-admin-request strong { font-size:13px; line-height:1.4; }
.family-admin-request span,.family-admin-request small { margin-top:3px; color:var(--muted); font-size:11px; }
.family-admin-request p { margin:6px 0 0; color:#514854; font-size:12px; line-height:1.45; }
.family-admin-request select { min-height:36px; font-size:12px; }
.portal-option .button { margin-top:10px; }
.portal-access-row { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-top:12px; padding-top:10px; border-top:1px solid var(--line); }
.portal-access-row > div { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.portal-access-row .button { margin-top:0; }
.portal-access-state { display:inline-flex; align-items:center; min-height:28px; color:var(--muted); font-size:12px; font-weight:700; }
.portal-access-state::before { content:""; width:7px; height:7px; margin-right:7px; border-radius:50%; background:#9aa4a7; }
.portal-access-state.active { color:#286b4a; }
.portal-access-state.active::before { background:#46a36f; box-shadow:0 0 0 3px #e4f3ea; }
.portal-access-state.closed { color:#7b5860; }
.portal-access-state.closed::before { background:#aa6672; }
.portal-access-lifecycle { display:flex; align-items:flex-start; gap:13px; margin-bottom:16px; padding:14px 16px; border-left:3px solid var(--primary); background:#f7f1f7; }
.portal-access-lifecycle > svg { flex:0 0 22px; width:22px; height:22px; color:var(--primary); }
.portal-access-lifecycle div { display:grid; gap:3px; }
.portal-access-lifecycle span { color:var(--muted); font-size:13px; line-height:1.5; }
.portal-access-current { display:grid; gap:9px; margin-top:16px; padding:16px; border:1px solid var(--line); background:#fafbfb; }
.portal-access-current header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.portal-access-current header div { display:grid; gap:3px; }
.portal-access-current header span:not(.status), .portal-access-current > small { color:var(--muted); font-size:12px; }
.portal-access-current > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.portal-access-current input { min-width:0; font-family:Consolas,monospace; font-size:12px; }
@media (max-width:760px) { .portal-access-row { align-items:stretch; flex-direction:column; } .portal-access-row > div { justify-content:flex-start; } .portal-access-current > div { grid-template-columns:1fr; } }

@media (max-width:760px) {
  .contact-category-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .family-admin-request { grid-template-columns:38px minmax(0,1fr); }
  .family-admin-request select { grid-column:2; }
}

/* Brand system 2026: calmer contrast, clearer hierarchy and roomier controls. */
:root {
  --sidebar:#29242b;
  --sidebar-muted:#c8bdca;
  --accent:#643182;
  --accent-2:#9a4ca2;
  --accent-teal:#43756d;
  --accent-gold:#b7904f;
  --line:#d9dfdd;
  --muted:#637176;
  --surface:#fff;
  --soft:#f2f5f4;
}
body { background:#edf1f0; color:#253237; }
.app-shell { grid-template-columns:252px minmax(0,1fr); }
.sidebar { border-right-color:#1e1a20; box-shadow:8px 0 28px rgba(31,25,33,.08); }
.brand { height:82px; gap:13px; padding:0 16px; border-bottom-color:rgba(255,255,255,.11); }
.brand img { width:50px; height:50px; object-fit:contain; }
.brand strong { font-family:Georgia,"Times New Roman",serif; font-size:16px; font-weight:400; }
.brand span { margin-top:3px; color:#d3c8d5; font-size:11px; }
nav { padding:15px 11px; }
.nav-label { padding:13px 11px 6px; color:#a69aa9; font-size:11px; }
.nav-button { height:43px; border-radius:6px; color:#ded7e0; font-size:14px; }
.nav-button:hover { background:rgba(255,255,255,.08); }
.nav-button.active { background:#68306f; box-shadow:inset 3px 0 #d9b36a; }
.nav-button .badge { background:#f0e8f1; color:#692c70; }
.branch-switcher > span { color:#a69aa9; }
.branch-switcher button { min-height:40px; background:rgba(255,255,255,.055); }
.user-card { min-height:72px; background:#211d23; }
.topbar { height:66px; padding:0 28px; box-shadow:0 2px 12px rgba(35,45,47,.04); }
.global-search { height:40px; }
.global-search input { height:40px; border-color:#cdd6d4; border-radius:6px; background:#f6f8f7; font-size:14px; }
.content { padding:27px 28px 42px; }
.page-head { margin-bottom:21px; }
.page-head h1 { color:#27222a; font-family:Georgia,"Times New Roman",serif; font-size:26px; font-weight:400; }
.page-head p { margin-top:6px; font-size:14px; }
.button { min-height:38px; border-color:#c6d0ce; border-radius:5px; font-size:14px; }
.button:hover { border-color:#aebbb8; background:#f4f7f6; }
.button.primary { box-shadow:0 5px 14px rgba(128,52,137,.15); }
.button.primary:hover { background:#67286e; }
.panel { border-color:#d7dddb; border-radius:7px; box-shadow:0 7px 22px rgba(37,45,47,.035); }
.panel-head { min-height:54px; padding-inline:18px; background:#fbfcfc; }
.panel-head h2 { color:#302933; font-size:17px; }
.panel-body { padding:17px 18px; }
.metric { min-height:101px; border-color:#d8dfdd; border-radius:7px; box-shadow:0 6px 18px rgba(37,45,47,.035); }
.metric span { font-size:13px; }
.field label { color:#526166; font-size:12px; }
.field input,.field select,.field textarea { min-height:42px; border-color:#becbc8; border-radius:5px; background:#fff; }
.field input:focus,.field select:focus,.field textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(128,52,137,.12); }
table th { background:#f2f5f4; color:#526166; }
table tbody tr:hover { background:#faf7fa; }
.login-screen { background:#edf1f0; }
.login-panel { border-top:4px solid var(--accent); border-radius:8px; box-shadow:0 24px 70px rgba(38,31,40,.16); }
.login-brand img { width:58px; height:58px; object-fit:contain; }

@media(max-width:1280px){
  .app-shell { grid-template-columns:232px minmax(0,1fr); }
  .content { padding-inline:22px; }
  .certificate-order-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .certificate-order-item:nth-child(3n) { border-right:1px solid #e2e7e8; }
  .certificate-order-item:nth-child(2n) { border-right:0; }
}
@media(max-width:700px){
  .certificate-order > header { grid-template-columns:38px minmax(0,1fr); }
  .certificate-order > header output { grid-column:2; }
  .certificate-order-grid { grid-template-columns:1fr; }
  .certificate-order-item,.certificate-order-item:nth-child(3n) { border-right:0; }
}

.website-operation-summary { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:16px; padding:18px 20px; border:1px solid #d7dddb; border-left:4px solid var(--accent); border-radius:7px; background:#fff; box-shadow:0 7px 22px rgba(37,45,47,.035); }
.website-operation-summary > div { display:flex; align-items:center; gap:14px; min-width:0; }
.website-operation-summary > div > span:last-child { display:grid; gap:2px; min-width:0; }
.website-operation-summary small { color:var(--muted); font-size:12px; }
.website-operation-summary strong { color:#302933; font-size:18px; }
.website-operation-summary em { overflow:hidden; color:#667579; font-size:13px; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
.website-operation-signal { display:grid; flex:0 0 44px; width:44px; height:44px; place-items:center; border-radius:50%; }
.website-operation-signal svg { width:20px; height:20px; }
.website-operation-signal.success { background:#e7f3ed; color:#32745f; }
.website-operation-signal.warning { background:#f8efdc; color:#936d29; }
.website-operation-signal.neutral { background:#eef1f1; color:#68767a; }
.website-settings-panel { overflow:hidden; }
.website-settings-body { display:grid; gap:23px; padding:20px; }
.website-settings-body > .field > label { margin-bottom:9px; }
.website-settings-body textarea { min-height:105px; resize:vertical; }
.website-settings-body .field > small { display:block; margin-top:6px; color:var(--muted); font-size:12px; }
.website-mode-selector { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.website-mode-option { display:grid; grid-template-columns:38px minmax(0,1fr); grid-template-rows:auto auto; gap:2px 11px; min-height:78px; padding:13px; border:1px solid #cbd5d2; border-radius:6px; background:#fff; color:#354347; text-align:left; cursor:pointer; }
.website-mode-option > span { display:grid; grid-row:1 / 3; width:38px; height:38px; place-items:center; align-self:center; border-radius:50%; background:#eff3f2; color:#607075; }
.website-mode-option svg { width:18px; height:18px; }
.website-mode-option strong { align-self:end; font-size:14px; }
.website-mode-option small { align-self:start; color:var(--muted); font-size:12px; line-height:1.35; }
.website-mode-option:hover { border-color:#aebbb8; background:#fafcfc; }
.website-mode-option.active { border-color:var(--accent); background:#faf6fa; box-shadow:0 0 0 2px rgba(128,52,137,.1); }
.website-mode-option.active > span { background:#643182; color:#fff; }
.website-status-impact { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid #d9dfdd; border-radius:6px; background:#f7f9f8; }
.website-status-impact > div { display:flex; align-items:center; gap:10px; min-width:0; padding:14px 15px; border-right:1px solid #d9dfdd; }
.website-status-impact > div:last-child { border-right:0; }
.website-status-impact svg { flex:0 0 20px; width:20px; height:20px; color:var(--accent); }
.website-status-impact span { display:grid; gap:3px; min-width:0; }
.website-status-impact strong { color:#354347; font-size:13px; }
.website-status-impact small { color:var(--muted); font-size:11px; line-height:1.4; }
.website-settings-body > footer { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:17px; border-top:1px solid #e0e5e3; }
.website-settings-body > footer > span { color:var(--muted); font-size:12px; }
.inline-contact-picker { display:grid; grid-template-columns:minmax(0,1fr) 42px; gap:6px; align-items:center; }
.inline-contact-picker > select { min-width:0; width:100%; }
.transfer-location-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.transfer-location-grid.full { grid-column:1 / -1; width:100%; }
.transfer-location-field { min-width:0; padding:13px; border:1px solid var(--line); border-top:3px solid #aeb9ba; border-radius:6px; background:#fafbfb; transition:border-color .15s ease,background .15s ease; }
.transfer-location-field.selected { border-top-color:var(--primary); background:#fbf8fb; }
.transfer-location-field > header { display:flex; align-items:center; gap:9px; margin-bottom:11px; }
.transfer-location-field > header > span { display:grid; flex:0 0 32px; width:32px; height:32px; place-items:center; border-radius:4px; background:#eee4ef; color:var(--primary); }
.transfer-location-field > header svg { width:16px; height:16px; }
.transfer-location-field > header div { display:grid; min-width:0; gap:2px; }
.transfer-location-field > header strong { color:#302933; font-size:14px; }
.transfer-location-field > header small { color:var(--muted); font-size:11px; line-height:1.35; }
.transfer-location-field .field { margin:0 0 10px; }
.transfer-location-field .field:last-child { margin-bottom:0; }
.transfer-location-field [data-transfer-location-summary] { display:block; min-height:16px; margin-top:5px; overflow-wrap:anywhere; color:var(--muted); font-size:11px; line-height:1.4; }
.quick-contact-button { width:42px; height:42px; border-color:#cdb8d0; background:#faf6fa; color:var(--accent); }
.quick-contact-button:hover { border-color:var(--accent); background:#f3e8f4; }
.quick-contact-layer { position:fixed; inset:0; z-index:95; display:grid; place-items:center; padding:22px; background:rgba(22,28,30,.64); }
.quick-contact-dialog { width:min(820px,100%); max-height:calc(100vh - 44px); overflow:auto; border:1px solid #cfd8d5; border-top:4px solid var(--accent); border-radius:8px; background:#fff; box-shadow:0 28px 80px rgba(21,27,29,.28); }
.quick-contact-dialog > header { position:sticky; top:0; z-index:1; display:flex; align-items:center; gap:12px; min-height:70px; padding:13px 18px; border-bottom:1px solid #dce3e1; background:#fbfcfc; }
.quick-contact-dialog > header > div { display:grid; flex:1; gap:2px; }
.quick-contact-dialog > header small { color:var(--muted); font-size:11px; font-weight:700; text-transform:uppercase; }
.quick-contact-dialog > header h2 { margin:0; color:#302933; font-family:Georgia,"Times New Roman",serif; font-size:20px; font-weight:400; }
.quick-contact-mark { display:grid; width:40px; height:40px; place-items:center; border-radius:50%; background:#f1e5f2; color:var(--accent); }
.quick-contact-mark svg { width:19px; height:19px; }
.quick-contact-dialog form { padding:19px; }
.quick-contact-dialog textarea { min-height:78px; resize:vertical; }
.quick-contact-dialog > footer { position:sticky; bottom:0; display:flex; justify-content:flex-end; gap:8px; padding:12px 18px; border-top:1px solid #dce3e1; background:rgba(255,255,255,.97); }
@media(max-width:900px){
  .website-mode-selector,.website-status-impact { grid-template-columns:1fr; }
  .website-status-impact > div { border-right:0; border-bottom:1px solid #d9dfdd; }
  .website-status-impact > div:last-child { border-bottom:0; }
}
@media(max-width:620px){
  .website-operation-summary,.website-settings-body > footer { align-items:stretch; flex-direction:column; }
  .website-operation-summary em { white-space:normal; }
  .website-settings-body > footer .button { width:100%; }
  .quick-contact-layer { padding:8px; }
  .quick-contact-dialog { max-height:calc(100vh - 16px); }
  .quick-contact-dialog > footer { flex-direction:column-reverse; }
  .quick-contact-dialog > footer .button { width:100%; }
  .transfer-location-grid { grid-template-columns:1fr; }
}
@media(max-width:700px){
  .vehicle-cleaning-head { align-items:stretch; flex-direction:column; }
  .vehicle-cleaning-head .button { justify-content:center; }
  .vehicle-cleaning-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .vehicle-cleaning-metrics > div:nth-child(2) { border-right:0; }
  .vehicle-cleaning-metrics > div:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .vehicle-cleaning-row { grid-template-columns:1fr; }
  .vehicle-cleaning-proof { width:100%; }
}

.record-notes { grid-column:1 / -1; min-width:0; margin-top:8px; border-top:1px solid #dce3e1; border-bottom:1px solid #dce3e1; background:#fbfcfc; }
.record-notes-head { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:66px; padding:12px 14px; }
.record-notes-head > div { display:flex; align-items:center; gap:11px; min-width:0; }
.record-notes-head > div > span:last-child { display:grid; gap:2px; }
.record-notes-head strong { color:#302933; font-size:15px; }
.record-notes-head small { color:var(--muted); font-size:12px; }
.record-notes-icon { display:grid; flex:0 0 38px; width:38px; height:38px; place-items:center; border-radius:5px; background:#643182; color:#fff; }
.record-notes-icon svg { width:18px; height:18px; }
.record-note-list { border-top:1px solid #e1e6e5; }
.record-note-entry { display:grid; grid-template-columns:34px minmax(0,1fr); gap:12px; padding:15px 14px; border-bottom:1px solid #e5e9e8; background:#fff; }
.record-note-entry:last-child { border-bottom:0; }
.record-note-mark { display:grid; width:32px; height:32px; place-items:center; border:1px solid #d8c2db; border-radius:50%; background:#f7eff8; color:var(--accent); }
.record-note-mark svg { width:15px; height:15px; }
.record-note-entry > div { min-width:0; }
.record-note-entry header { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-bottom:6px; color:#6b787b; font-size:12px; }
.record-note-entry header strong { color:#3a4548; font-size:12px; }
.record-note-entry header em { padding:2px 6px; border-radius:10px; background:#eef1f1; color:#6b777a; font-size:10px; font-style:normal; font-weight:700; }
.record-note-entry p { margin:0; color:#303b3e; font-size:14px; line-height:1.55; overflow-wrap:anywhere; }
.record-notes-empty { display:flex; align-items:center; justify-content:center; gap:10px; min-height:82px; padding:18px; color:#7a8588; text-align:left; }
.record-notes-empty > svg { width:20px; height:20px; }
.record-notes-empty > span { display:grid; gap:2px; }
.record-notes-empty strong { color:#566266; font-size:13px; }
.record-notes-empty small { font-size:12px; }
.record-note-input { min-height:210px !important; resize:vertical; line-height:1.55; }
.record-note-hint { display:block; margin-top:7px; color:var(--muted); font-size:12px; }
@media(max-width:620px){
  .record-notes-head { align-items:stretch; flex-direction:column; }
  .record-notes-head .button { width:100%; }
}
/* Bestattungsvorsorgevertrag */
.contract-complete-banner{display:flex;align-items:center;gap:14px;padding:16px 18px;margin-bottom:16px;border:1px solid #b8d5ca;border-left:4px solid #477168;background:#f5faf8;border-radius:6px}.contract-complete-banner>span:first-child{display:grid;place-items:center;width:38px;height:38px;color:#fff;background:#477168;border-radius:50%;flex:0 0 auto}.contract-complete-banner svg{width:20px;height:20px}.contract-complete-banner div{flex:1;min-width:0}.contract-complete-banner strong{display:block;font-size:15px;color:#293438}.contract-complete-banner p{margin:3px 0 0;color:#647176;font-size:13px}.contract-dashboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #ddd7de;border-radius:6px;overflow:hidden;margin-bottom:18px;background:#fff}.contract-dashboard>div{padding:14px 16px;border-right:1px solid #e7e2e8}.contract-dashboard>div:last-child{border-right:0}.contract-dashboard span,.contract-dashboard small{display:block;color:#68777b;font-size:12px}.contract-dashboard strong{display:block;margin:4px 0 2px;color:#522459;font-size:18px}.contract-editor{display:block}.contract-master-fields{max-width:820px;margin-bottom:16px}.contract-writing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.contract-writing-grid .field{min-width:0}.contract-writing-grid textarea{min-height:150px;resize:vertical;line-height:1.5}.contract-writing-grid .field>small{display:block;margin-top:5px;color:#748085;font-size:12px}.contract-contact-section{margin-top:18px;border:1px solid #dcd5de;border-radius:6px;overflow:hidden}.contract-contact-section>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;background:#f8f5f8;border-bottom:1px solid #e7e0e8}.contract-contact-section>header strong,.contract-contact-section>header span{display:block}.contract-contact-section>header strong{font-size:14px;color:#293438}.contract-contact-section>header span{margin-top:2px;font-size:12px;color:#68777b}.contract-contact-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.contract-contact-choice{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:10px;padding:13px 15px;border-right:1px solid #eee9ef;border-bottom:1px solid #eee9ef;cursor:pointer}.contract-contact-choice:nth-child(2n){border-right:0}.contract-contact-choice:hover{background:#fbf9fb}.contract-contact-choice input{width:17px;height:17px;accent-color:#643182}.contract-contact-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#eee3ef;color:#643182;font-size:11px;font-weight:700}.contract-contact-choice strong,.contract-contact-choice small{display:block}.contract-contact-choice strong{font-size:13px;color:#293438}.contract-contact-choice small{margin-top:2px;color:#68777b;font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contract-review-note,.contract-prerequisite{display:flex;align-items:center;gap:12px;margin-top:16px;padding:13px 15px;border:1px solid #d8c9db;background:#faf6fa;border-radius:6px;color:#522459}.contract-review-note svg,.contract-prerequisite>svg{width:21px;height:21px;flex:0 0 auto}.contract-review-note p,.contract-prerequisite p{margin:0;font-size:12.5px;line-height:1.45}.contract-prerequisite{border-color:#e6cf9f;background:#fffaf0}.contract-prerequisite>div{flex:1}.contract-prerequisite strong{display:block;font-size:13px}.contract-prerequisite p{margin-top:2px;color:#6c665a}.contract-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px}.contract-readonly-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.contract-readonly-grid section{padding:15px;border-left:3px solid #643182;background:#faf8fa}.contract-readonly-grid h3{margin:0 0 7px;font-size:13px;color:#522459}.contract-readonly-grid p{margin:0;white-space:pre-wrap;color:#465257;font-size:13px;line-height:1.55}.contract-history-head{margin-top:22px}.contract-history{border:1px solid #e1dce2;border-radius:6px;overflow:hidden}.contract-history article{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid #ebe7ec;background:#fff}.contract-history article:last-child{border-bottom:0}.contract-history-version{display:grid;place-items:center;width:32px;height:32px;border-radius:4px;background:#643182;color:#fff;font-weight:700}.contract-history strong,.contract-history small{display:block}.contract-history strong{font-size:13px;color:#293438}.contract-history small{margin-top:3px;font-size:11.5px;color:#68777b}
.contract-service-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.contract-line-group{border:1px solid #ded8e0;border-radius:6px;overflow:hidden;background:#fff}.contract-line-group>header{display:flex;justify-content:space-between;gap:12px;padding:11px 13px;background:#f7f3f7;color:#522459}.contract-line-group>header span{font-size:12px;color:#68777b}.contract-line-group>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:10px 13px;border-top:1px solid #eee9ef}.contract-line-group>div>span{font-size:13px;color:#293438}.contract-line-group>div>small{grid-column:1;color:#68777b}.contract-line-group>div>strong{grid-column:2;grid-row:1 / span 2;align-self:center;color:#522459;font-size:13px}.contract-confirmations{display:grid;gap:8px;margin-top:16px}.contract-confirmations label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:11px;padding:12px 14px;border:1px solid #ded8e0;border-radius:6px;background:#fff;cursor:pointer}.contract-confirmations input{width:18px;height:18px;margin-top:1px;accent-color:#643182}.contract-confirmations strong,.contract-confirmations small{display:block}.contract-confirmations strong{color:#293438;font-size:13px}.contract-confirmations small{margin-top:3px;color:#68777b;line-height:1.4}
@media(max-width:900px){.contract-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.contract-dashboard>div:nth-child(2){border-right:0}.contract-dashboard>div:nth-child(-n+2){border-bottom:1px solid #e7e2e8}.contract-writing-grid,.contract-readonly-grid,.contract-contact-choices,.contract-service-preview{grid-template-columns:1fr}.contract-contact-choice{border-right:0}.contract-contact-section>header{align-items:flex-start;flex-direction:column}.contract-actions{justify-content:stretch;flex-direction:column}.contract-actions .button{justify-content:center}}

/* Aktenarbeitsplatz: kompakter, klarer und visuell gefuehrt */
.record-workspace { background:#edf2f0; }
.record-workspace-head { min-height:78px; border-bottom-color:#d5dedb; background:#fbfcfc; box-shadow:0 5px 18px rgba(36,44,42,.045); }
.record-workspace-head h1 { color:#2c2830; font-family:Georgia,"Times New Roman",serif; font-size:24px; font-weight:400; }
.record-workspace-head p { color:#68767a; font-size:12px; }
.record-workspace-body { width:min(1460px,100%); padding-top:16px; }
.record-workspace-body .case-summary { min-height:92px; position:relative; display:grid; grid-template-columns:50px minmax(0,1fr) 150px auto; align-items:center; gap:15px; padding:15px 18px; overflow:hidden; border-color:#d5dedb; border-left:0; border-radius:8px 8px 0 0; background:linear-gradient(90deg,#fff 0%,#fcf8fc 58%,#f7faf9 100%); box-shadow:0 10px 28px rgba(39,46,44,.055); }
.record-workspace-body .case-summary::before { content:""; width:4px; position:absolute; top:0; bottom:0; left:0; background:linear-gradient(180deg,var(--accent),var(--accent-2)); }
.record-workspace-body .case-summary .avatar { width:50px; height:50px; display:grid; place-items:center; border:3px solid #fff; border-radius:50%; background:#eadcec; color:#672c6d; box-shadow:0 0 0 1px #dbc6de,0 6px 15px rgba(70,44,74,.12); font-size:13px; font-weight:800; }
.record-workspace-body .case-summary h3 { color:#28242b; font-family:Georgia,"Times New Roman",serif; font-size:19px; font-weight:400; }
.case-summary-meta { display:flex; align-items:center; flex-wrap:wrap; gap:7px 15px; margin-top:7px!important; }
.case-summary-meta > span { display:inline-flex; align-items:center; gap:5px; color:#607075; font-size:12px; line-height:1.35; }
.case-summary-meta svg { width:13px; height:13px; flex:0 0 auto; color:#7b4281; }
.record-workspace-body .case-health { width:150px; margin-left:auto; padding:8px 12px; border:1px solid #d9e1df; border-radius:6px; background:rgba(255,255,255,.78); }
.record-workspace-body .case-health span { color:#657478; font-size:10px; font-weight:700; text-transform:uppercase; }
.record-workspace-body .case-health strong { color:#713278; font-size:17px; }
.record-workspace-body .case-health i { height:6px; margin-top:7px; background:#dfe4e3; }
.record-workspace-body .case-health b { background:linear-gradient(90deg,#47756c,#643182); }
.record-workspace-body .case-summary > .status { min-height:27px; padding:4px 10px; border-radius:14px; box-shadow:0 2px 8px rgba(51,43,53,.06); }
.record-workspace-body .preneed-summary::before { background:linear-gradient(180deg,#47756c,#643182); }
.record-workspace-body .preneed-amount { min-width:180px; padding:8px 12px; border:1px solid #d9e1df; border-radius:6px; background:rgba(255,255,255,.78); }

.record-workspace .case-tabs { gap:4px; padding:7px 11px 6px; overflow-x:auto; border-color:#d5dedb; background:#f8faf9; scrollbar-color:#94609a #e7ecea; scrollbar-width:thin; }
.record-workspace .case-tabs::-webkit-scrollbar { height:6px; }
.record-workspace .case-tabs::-webkit-scrollbar-track { background:#e7ecea; }
.record-workspace .case-tabs::-webkit-scrollbar-thumb { border-radius:3px; background:#94609a; }
.record-workspace .case-tabs .tab { min-height:38px; padding:0 10px; border:1px solid transparent; border-radius:5px; color:#526267; font-size:13px; transition:background .14s ease,border-color .14s ease,color .14s ease; }
.record-workspace .case-tabs .tab:hover { border-color:#d8c7da; background:#faf5fa; color:#713278; }
.record-workspace .case-tabs .tab.active { border-color:#d2b9d5; border-bottom-color:#b78cbb; background:#f2e7f3; color:#682c70; box-shadow:inset 0 -2px #643182; }
.record-workspace .case-tabs .tab span { min-width:19px; min-height:19px; margin-left:5px; padding:1px 5px; border:1px solid #d9e0de; background:#fff; color:#5e6d71; }
.record-workspace .case-tabs .tab.active span { border-color:#d5bdd8; background:#fff; color:#6c3073; }
.record-workspace [data-case-section],.record-workspace [data-preneed-section] { padding:24px 20px 28px; border-color:#d5dedb; border-radius:0 0 8px 8px; background:#fff; box-shadow:0 14px 32px rgba(39,46,44,.045); }
.record-workspace [data-case-section="master"] .form-section:first-child,.record-workspace [data-preneed-section="master"] .form-section:first-child { margin-top:0; }
.record-workspace .form-section { display:flex; align-items:center; gap:10px; margin:26px 0 14px; padding:11px 0 9px; border-top:0; color:#342d36; font-family:Georgia,"Times New Roman",serif; font-size:16px; font-weight:400; }
.record-workspace .form-section::before { content:""; width:4px; height:19px; flex:0 0 auto; border-radius:2px; background:var(--accent); }
.record-workspace .form-section::after { content:""; height:1px; flex:1; background:#dfe5e3; }
.record-edit-form { margin:0; }
.record-edit-section { min-width:0; }
.record-section-lead { display:grid; grid-template-columns:46px minmax(260px,1fr) minmax(420px,1.3fr); align-items:center; gap:15px; margin:-4px 0 20px; padding:15px 17px; border:1px solid #d9e1df; border-left:4px solid #643182; border-radius:6px; background:linear-gradient(100deg,#fbf7fb 0,#fff 52%,#f7faf9 100%); }
.record-section-lead-icon { display:grid; width:42px; height:42px; place-items:center; border-radius:5px; background:#643182; color:#fff; box-shadow:0 5px 14px rgba(86,43,91,.17); }
.record-section-lead-icon svg { width:19px; height:19px; }
.record-section-lead-copy { min-width:0; }
.record-section-lead-copy > small { display:block; margin-bottom:3px; color:#643182!important; font-size:10px!important; font-weight:750; text-transform:uppercase; }
.record-section-lead-copy h3 { margin:0; color:#2f2931; font-family:Georgia,"Times New Roman",serif; font-size:19px; font-weight:400; }
.record-section-lead-copy p { margin:5px 0 0; color:#627176; font-size:12px; line-height:1.45; }
.record-section-lead-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-self:stretch; border-left:1px solid #dfe5e3; }
.record-section-lead-facts > div { min-width:0; display:flex; flex-direction:column; justify-content:center; padding:2px 13px; border-right:1px solid #e2e7e5; }
.record-section-lead-facts > div:last-child { border-right:0; }
.record-section-lead-facts span,.record-section-lead-facts strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.record-section-lead-facts span { color:#718085; font-size:10px; font-weight:700; text-transform:uppercase; }
.record-section-lead-facts strong { margin-top:5px; color:#3c4547; font-size:12px; }
.case-data-sheet-toolbar { display:grid; grid-template-columns:38px minmax(260px,1fr) auto auto; align-items:center; gap:12px; margin:0 0 14px; padding:12px 14px; border:1px solid #d9e1df; border-radius:6px; background:#f8faf9; }
.case-data-sheet-icon { display:grid; width:36px; height:36px; place-items:center; border-radius:5px; background:#efe4f0; color:#643182; }
.case-data-sheet-icon svg { width:18px; height:18px; }
.case-data-sheet-toolbar > div:nth-child(2) { min-width:0; }
.case-data-sheet-toolbar small,.case-data-sheet-toolbar strong,.case-data-sheet-toolbar p { display:block; }
.case-data-sheet-toolbar small { color:#643182; font-size:9px; font-weight:750; text-transform:uppercase; }
.case-data-sheet-toolbar strong { margin-top:2px; color:#303a3d; font-size:13px; }
.case-data-sheet-toolbar p { margin:3px 0 0; color:#68777b; font-size:11px; line-height:1.35; }
.case-data-sheet-actions { display:flex; align-items:center; justify-content:flex-end; gap:7px; }
.record-workspace .tab-burial { gap:6px; color:#48685c; }
.record-workspace .tab-burial svg { width:14px; height:14px; flex:0 0 auto; }
.record-workspace .tab-burial.active { border-color:#bfd3ca; border-bottom-color:#76a38f; background:#eaf3ef; color:#285f4a; box-shadow:inset 0 -2px #3f7d66; }
.record-edit-section[data-case-section="burial"] .record-section-lead,.record-edit-section[data-preneed-section="burial"] .record-section-lead { border-left-color:#3f7d66; background:linear-gradient(100deg,#f3f8f6 0,#fff 52%,#fbf8f1 100%); }
.record-edit-section[data-case-section="burial"] .record-section-lead-icon,.record-edit-section[data-preneed-section="burial"] .record-section-lead-icon { background:#3f7d66; box-shadow:0 5px 14px rgba(45,100,78,.17); }
.record-edit-section[data-case-section="burial"] .record-section-lead-copy > small,.record-edit-section[data-preneed-section="burial"] .record-section-lead-copy > small { color:#3f7d66!important; }
.burial-edit-grid > .form-section::before { background:#3f7d66; }
.burial-edit-grid > .form-section:nth-of-type(3n)::before { background:#b48b37; }
.burial-guidance > div { min-height:42px; display:flex; flex-direction:column; justify-content:center; padding:8px 10px; border-left:3px solid #b48b37; background:#fbf9f3; }
.burial-guidance strong,.burial-guidance small { display:block; }
.burial-guidance strong { color:#3f4241; font-size:13px; }
.burial-guidance small { margin-top:3px; color:#6a7476; font-size:11px; }
.record-workspace .field label { color:#56666b; }
.record-workspace .field input,.record-workspace .field select,.record-workspace .field textarea { border-color:#bdcac7; background:#fff; }
.record-workspace .field input:hover,.record-workspace .field select:hover,.record-workspace .field textarea:hover { border-color:#9eafab; }

@media(max-width:900px) {
  .record-section-lead { grid-template-columns:42px minmax(0,1fr); }
  .case-data-sheet-toolbar { grid-template-columns:38px minmax(0,1fr) auto; }
  .case-data-sheet-actions { grid-column:2 / -1; justify-content:flex-start; }
  .record-section-lead-icon { width:40px; height:40px; }
  .record-section-lead-facts { grid-column:1 / -1; border-top:1px solid #dfe5e3; border-left:0; padding-top:10px; }
  .record-workspace-body .case-summary { grid-template-columns:46px minmax(0,1fr) auto; gap:10px 12px; }
  .record-workspace-body .case-summary .avatar { width:46px; height:46px; grid-row:1 / 3; }
  .record-workspace-body .case-summary > div:nth-child(2) { min-width:0; }
  .record-workspace-body .case-health,.record-workspace-body .preneed-amount { width:auto; min-width:0; grid-column:2; grid-row:2; margin-left:0; padding:0; border:0; background:transparent; }
  .record-workspace-body .case-summary > .status { grid-column:3; grid-row:1 / 3; }
  .case-summary-meta { gap:5px 10px; }
}

/* Scanner-Eingang */
.scanner-inbox-panel { display:grid; grid-template-columns:48px minmax(280px,1fr) auto auto; align-items:center; gap:16px; margin:14px 0 18px; padding:15px 17px; border:1px solid #d9dfe1; border-left:4px solid #643182; border-radius:6px; background:linear-gradient(100deg,#fbf8fb 0,#fff 48%,#f7faf9 100%); box-shadow:0 5px 18px rgba(47,34,49,.05); }
.scanner-inbox-panel.disabled { border-left-color:#9aa4a8; filter:saturate(.55); }
.scanner-inbox-icon { width:46px; height:46px; display:grid; place-items:center; border-radius:6px; color:#fff; background:#643182; box-shadow:0 6px 14px rgba(128,52,137,.2); }
.scanner-inbox-icon svg { width:21px; height:21px; }
.scanner-inbox-main { min-width:0; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.scanner-inbox-main span,.scanner-inbox-main strong,.scanner-inbox-main small { display:block; }
.scanner-inbox-main span { color:#643182; font-size:10px; font-weight:800; text-transform:uppercase; }
.scanner-inbox-main strong { margin-top:2px; color:#302735; font:600 18px/1.2 Georgia,serif; }
.scanner-inbox-main small { margin-top:4px; color:#6d7a7e; font-size:11px; }
.scanner-inbox-main code { overflow:hidden; max-width:430px; padding:8px 10px; border:1px solid #e1d9e2; border-radius:4px; color:#5b3a60; background:#fff; font:600 11px/1.25 Consolas,monospace; text-overflow:ellipsis; white-space:nowrap; }
.scanner-inbox-stats { display:grid; grid-template-columns:repeat(3,minmax(82px,1fr)); border-left:1px solid #e4e7e8; }
.scanner-inbox-stats > span { min-width:82px; padding:3px 12px; text-align:center; }
.scanner-inbox-stats b,.scanner-inbox-stats small { display:block; }
.scanner-inbox-stats b { color:#39484d; font-size:18px; }
.scanner-inbox-stats small { margin-top:2px; color:#778488; font-size:10px; line-height:1.2; }
.scanner-inbox-stats .needs-review b { color:#a36c17; }
.scanner-inbox-action { display:grid; justify-items:end; gap:6px; }
.scanner-inbox-action > small { color:#7a8588; font-size:10px; }
@media (max-width:1200px) {
  .scanner-inbox-panel { grid-template-columns:48px minmax(260px,1fr) auto; }
  .scanner-inbox-main { display:block; }
  .scanner-inbox-main code { display:block; max-width:100%; margin-top:9px; }
  .scanner-inbox-action { grid-column:2 / -1; display:flex; align-items:center; justify-content:flex-end; }
}
@media (max-width:760px) {
  .scanner-inbox-panel { grid-template-columns:40px minmax(0,1fr); gap:12px; padding:13px; }
  .scanner-inbox-icon { width:40px; height:40px; }
  .scanner-inbox-stats,.scanner-inbox-action { grid-column:1 / -1; }
  .scanner-inbox-stats { border-top:1px solid #e4e7e8; border-left:0; padding-top:10px; }
  .scanner-inbox-action { justify-content:flex-start; }
}

@media(max-width:620px) {
  .record-section-lead { grid-template-columns:36px minmax(0,1fr); gap:10px; padding:12px; }
  .record-section-lead-icon { width:36px; height:36px; }
  .record-section-lead-copy h3 { font-size:17px; }
  .record-section-lead-facts { grid-template-columns:1fr; }
  .record-section-lead-facts > div { padding:7px 2px; border-right:0; border-bottom:1px solid #e2e7e5; }
  .record-section-lead-facts > div:last-child { border-bottom:0; }
  .case-data-sheet-toolbar { grid-template-columns:36px minmax(0,1fr); padding:11px; }
  .case-data-sheet-toolbar > .status { grid-column:2; justify-self:start; }
  .case-data-sheet-actions { grid-column:1 / -1; width:100%; }
  .record-workspace-head h1 { font-size:20px; }
  .record-workspace-body .case-summary { grid-template-columns:42px minmax(0,1fr); padding:13px 12px; }
  .record-workspace-body .case-summary .avatar { width:42px; height:42px; grid-row:1; }
  .record-workspace-body .case-summary > .status { grid-column:2; grid-row:auto; justify-self:start; }
  .record-workspace-body .case-health,.record-workspace-body .preneed-amount { grid-column:1 / -1; grid-row:auto; width:100%; padding:8px 0 0; }
  .case-summary-meta { align-items:flex-start; flex-direction:column; }
  .record-workspace .case-tabs { padding-inline:7px; }
  .record-workspace [data-case-section],.record-workspace [data-preneed-section] { padding:18px 12px 24px; }
}

.appointment-field-response { display:block; margin-top:6px; padding:6px 8px; border-left:3px solid #a27aa6; background:#faf6fa; color:#6d3672; font-size:10px; font-weight:700; text-transform:none; }
.appointment-field-response.bestätigt { border-left-color:#4b8762; background:#edf6f0; color:#35684a; }
.appointment-field-response.abgelehnt { border-left-color:#b64d43; background:#fff0ed; color:#8d3028; }

/* Fallbezogene Blumenbestellungen */
.case-flower-orders { margin-top:24px; padding-top:20px; border-top:1px solid #d9e0de; }
.flower-order-overview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:12px 0; border:1px solid #dfe4e3; border-radius:6px; overflow:hidden; background:#fff; }
.flower-order-overview > div { padding:11px 14px; border-right:1px solid #e5e9e8; }
.flower-order-overview > div:last-child { border-right:0; }
.flower-order-overview span,.flower-order-overview strong { display:block; }
.flower-order-overview span { color:#738085; font-size:10px; text-transform:uppercase; }
.flower-order-overview strong { margin-top:3px; color:#382d3b; font-size:18px; }
.flower-order-list { display:grid; gap:10px; }
.flower-order-card { overflow:hidden; border:1px solid #ddd6de; border-left:3px solid #643182; border-radius:6px; background:#fff; }
.flower-order-card > header { display:grid; grid-template-columns:38px minmax(0,1fr) auto minmax(0,auto); align-items:center; gap:11px; padding:11px 13px; border-bottom:1px solid #e8e2e8; background:#faf8fa; }
.flower-order-card > header > div { min-width:0; }
.flower-order-card > header small,.flower-order-card > header strong,.flower-order-card > header span { display:block; }
.flower-order-card > header small { color:#643182; font-size:10px; font-weight:800; }
.flower-order-card > header strong { margin-top:2px; color:#332b35; font-size:14px; }
.flower-order-card > header div > span { margin-top:2px; color:#6d797d; font-size:11px; }
.flower-order-mark { display:grid; width:36px; height:36px; place-items:center; border-radius:5px; background:#643182; color:#fff; }
.flower-order-mark svg { width:17px; height:17px; }
.flower-order-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; }
.flower-order-actions .button { white-space:nowrap; }
.flower-order-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-bottom:1px solid #ece8ec; }
.flower-order-facts > div { min-width:0; padding:10px 13px; border-right:1px solid #ece8ec; }
.flower-order-facts > div:last-child { border-right:0; }
.flower-order-facts span,.flower-order-facts strong { display:block; }
.flower-order-facts span { color:#7b8689; font-size:10px; text-transform:uppercase; }
.flower-order-facts strong { margin-top:3px; overflow-wrap:anywhere; color:#3d494c; font-size:12px; }
.flower-order-lines > div { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; padding:9px 13px; border-bottom:1px solid #f0edef; }
.flower-order-lines > div:last-child { border-bottom:0; }
.flower-order-lines strong,.flower-order-lines small { display:block; }
.flower-order-lines strong { color:#384448; font-size:12px; }
.flower-order-lines small { margin-top:2px; color:#788387; font-size:10px; }
.flower-order-lines b { color:#5f3164; font-size:12px; white-space:nowrap; }
.flower-line-ribbon { display:grid!important; grid-template-columns:auto minmax(0,1fr); gap:2px 9px; margin-top:6px; padding:6px 8px; border-left:3px solid #c6a15b; background:#fbf7ec; }
.flower-line-ribbon b { grid-row:1 / 3; align-self:center; color:#785e27; font-size:10px; text-transform:uppercase; }
.flower-line-ribbon em { display:block; overflow-wrap:anywhere; color:#615b50; font-size:10px; font-style:normal; }
.flower-order-notes { margin:0; padding:10px 13px; border-top:1px solid #eee9ee; background:#fcfbfc; color:#657176; font-size:11px; line-height:1.45; white-space:pre-wrap; }
.flower-order-document { display:flex; align-items:center; gap:9px; padding:9px 13px; border-top:1px solid #dce8e1; background:#f3f8f5; color:#3f7d66; }
.flower-order-document.stale { border-top-color:#eadfc4; background:#fbf7ec; color:#916b21; }
.flower-order-document > svg { width:17px; height:17px; flex:0 0 auto; }
.flower-order-document strong,.flower-order-document small { display:block; }
.flower-order-document strong { font-size:11px; }
.flower-order-document small { margin-top:2px; color:#6f7b77; font-size:10px; }
.flower-order-empty { min-height:88px; display:flex; align-items:center; justify-content:center; gap:11px; border:1px dashed #d6ccd8; border-radius:6px; color:#8a6b8e; background:#fcfafc; }
.flower-order-empty > svg { width:22px; height:22px; }
.flower-order-empty strong,.flower-order-empty small { display:block; }
.flower-order-empty strong { color:#4a3c4d; font-size:13px; }
.flower-order-empty small { margin-top:3px; color:#778286; font-size:11px; }
.flower-order-schedule { overflow:hidden; border:1px solid #d9e1df; border-radius:6px; background:#f8faf9; }
.flower-schedule-head { display:flex; align-items:center; gap:9px; padding:9px 11px; border-bottom:1px solid #dfe6e4; background:#f1f6f4; }
.flower-schedule-head > span { width:30px; height:30px; display:grid; place-items:center; flex:0 0 auto; border-radius:4px; background:#3f7d66; color:#fff; }
.flower-schedule-head svg { width:15px; height:15px; }
.flower-schedule-head strong,.flower-schedule-head small { display:block; }
.flower-schedule-head strong { color:#33433e; font-size:12px; }
.flower-schedule-head small { margin-top:2px; color:#72807c; font-size:10px; }
.flower-schedule-events { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.flower-schedule-events article { position:relative; min-width:0; padding:10px 12px; border-right:1px solid #e2e7e5; }
.flower-schedule-events article:last-child { border-right:0; }
.flower-schedule-events article > span,.flower-schedule-events article > strong,.flower-schedule-events article > small { display:block; }
.flower-schedule-events article > span { color:#643182; font-size:10px; font-weight:800; text-transform:uppercase; }
.flower-schedule-events article > strong { margin-top:4px; color:#364347; font-size:12px; }
.flower-schedule-events article > small { margin-top:4px; overflow-wrap:anywhere; color:#657277; font-size:11px; line-height:1.4; }
.flower-schedule-events article > em { display:flex; align-items:center; gap:5px; margin-top:7px; color:#3f7d66; font-size:9px; font-style:normal; font-weight:750; }
.flower-schedule-events article.incomplete { background:#fffaf0; }
.flower-schedule-events article.incomplete > em { color:#946a1b; }
.flower-schedule-events article > em svg { width:12px; height:12px; }
.flower-catalog { margin-top:18px; border:1px solid #ddd7de; border-radius:6px; overflow:hidden; background:#fff; }
.flower-catalog > header { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:11px 13px; border-bottom:1px solid #e5e0e5; background:#faf8fa; }
.flower-catalog > header strong,.flower-catalog > header span { display:block; }
.flower-catalog > header strong { color:#372d39; font-size:14px; }
.flower-catalog > header span { margin-top:2px; color:#738085; font-size:11px; }
.flower-catalog-tools { display:flex; gap:7px; }
.flower-catalog-tools input,.flower-catalog-tools select { width:190px; height:34px; padding:6px 8px; border:1px solid #cbd3d4; border-radius:4px; background:#fff; font-size:12px; }
#flower-catalog-list { max-height:390px; overflow:auto; }
.flower-catalog-item { display:grid; grid-template-columns:20px 52px minmax(0,1fr) 90px 86px; align-items:center; gap:10px; min-height:68px; padding:8px 12px; border-bottom:1px solid #ece8ec; }
.flower-catalog-item:last-child { border-bottom:0; }
.flower-catalog-item:hover { background:#fcfafc; }
.flower-catalog-item.selected { background:#fdfafd; box-shadow:inset 3px 0 #643182; }
.flower-catalog-item.unavailable { cursor:not-allowed; opacity:.58; background:#f5f6f6; }
.flower-catalog-item > input[type="checkbox"] { width:17px; height:17px; accent-color:#643182; }
.flower-catalog-item > input[type="number"] { width:100%; height:34px; padding:5px 7px; border:1px solid #c8d0d2; border-radius:4px; }
.flower-catalog-image { width:50px; height:50px; display:grid; place-items:center; overflow:hidden; border:1px solid #e1dce2; border-radius:5px; background:#f4f1f4; color:#643182; }
.flower-catalog-image img { width:100%; height:100%; object-fit:contain; }
.flower-catalog-image svg { width:20px; height:20px; }
.flower-catalog-copy { min-width:0; }
.flower-catalog-item strong,.flower-catalog-item small,.flower-catalog-item em { display:block; }
.flower-catalog-item strong { overflow:hidden; color:#354145; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.flower-catalog-item small { margin-top:2px; color:#75607a; font-size:10px; }
.flower-catalog-item em { margin-top:3px; overflow:hidden; color:#7c878a; font-size:10px; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
.flower-catalog-price { color:#3e494c; font-size:12px; font-weight:750; text-align:right; }
.flower-catalog-price small { color:#7c878a; font-size:9px; font-weight:500; }
.flower-ribbon-config { grid-column:3 / -1; min-width:0; margin-top:1px; padding:8px 10px; border:1px solid #eadfc4; border-radius:4px; background:#fffdf7; }
.flower-ribbon-config > label { display:flex; align-items:center; gap:7px; color:#675022; font-size:11px; font-weight:750; cursor:pointer; }
.flower-ribbon-config > label input { width:16px; height:16px; accent-color:#9a7428; }
.flower-ribbon-config > label svg { width:14px; height:14px; vertical-align:-2px; }
.flower-ribbon-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:9px; padding-top:9px; border-top:1px solid #ece2ca; }
.flower-ribbon-fields label { color:#6e6758; font-size:10px; font-weight:700; }
.flower-ribbon-fields input { width:100%; height:34px; margin-top:4px; padding:6px 8px; border:1px solid #cfc7b5; border-radius:4px; background:#fff; font-size:12px; }
.flower-catalog > footer { display:flex; align-items:center; justify-content:space-between; padding:10px 13px; border-top:1px solid #ddd7de; background:#f7f4f7; color:#5e4b62; font-size:12px; }
@media(max-width:760px) {
  .flower-order-overview,.flower-order-facts { grid-template-columns:1fr; }
  .flower-order-overview > div,.flower-order-facts > div { border-right:0; border-bottom:1px solid #e5e9e8; }
  .flower-order-overview > div:last-child,.flower-order-facts > div:last-child { border-bottom:0; }
  .flower-order-card > header { grid-template-columns:36px minmax(0,1fr) auto; }
  .flower-order-actions { grid-column:1 / -1; justify-content:flex-start; flex-wrap:wrap; padding-top:4px; }
  .flower-catalog > header { align-items:stretch; flex-direction:column; }
  .flower-catalog-tools { display:grid; grid-template-columns:1fr; }
  .flower-catalog-tools input,.flower-catalog-tools select { width:100%; }
  .flower-catalog-item { grid-template-columns:20px 44px minmax(0,1fr) 76px; }
  .flower-catalog-image { width:42px; height:42px; }
  .flower-catalog-price { display:none; }
  .flower-schedule-events { grid-template-columns:1fr; }
  .flower-schedule-events article { border-right:0; border-bottom:1px solid #e2e7e5; }
  .flower-schedule-events article:last-child { border-bottom:0; }
  .flower-ribbon-config { grid-column:2 / -1; }
  .flower-ribbon-fields { grid-template-columns:1fr; }
}

/* Betriebsmonitor und E-Rechnung */
.monitoring-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px;padding:22px 24px;border:1px solid #cddfd8;border-left:4px solid #3e806d;background:#f3f8f6}.monitoring-hero.warning{border-color:#ead7ad;border-left-color:#b37c26;background:#fffaf0}.monitoring-hero.error{border-color:#e7c2bd;border-left-color:#b7453d;background:#fff4f2}.monitoring-hero span,.monitoring-hero h2,.monitoring-hero p{display:block}.monitoring-hero>div>span{color:#60716c;font-size:10px;font-weight:800;text-transform:uppercase}.monitoring-hero h2{margin:4px 0;color:#29443c;font-size:24px}.monitoring-hero p{margin:0;color:#71807c;font-size:12px}.monitoring-pulse{width:15px;height:15px;flex:0 0 15px;border-radius:50%;background:#3e806d;box-shadow:0 0 0 7px #dcebe6}.monitoring-hero.warning .monitoring-pulse{background:#b37c26;box-shadow:0 0 0 7px #f3e6c9}.monitoring-hero.error .monitoring-pulse{background:#b7453d;box-shadow:0 0 0 7px #f0d8d4}.monitoring-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#dfe5e3}.monitoring-check{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:11px;align-items:center;padding:14px;background:#fff}.monitoring-check>span{width:34px;height:34px;display:grid;place-items:center;background:#e7f1ed;color:#387663}.monitoring-check.warning>span{background:#fbefd2;color:#966417}.monitoring-check.error>span{background:#f7dedb;color:#a43f37}.monitoring-check svg{width:17px;height:17px}.monitoring-check strong,.monitoring-check small{display:block}.monitoring-check small{margin-top:3px;color:#778285}.monitoring-check>b{color:#5b676a;font-size:11px;text-align:right}.operations-form{padding:20px}.operations-form .form-actions{display:flex;align-items:center;justify-content:space-between;gap:14px}.external-invoice-amounts{margin-top:5px!important;color:#684c70!important;font-weight:750}.family-admin-response{margin:9px 0;padding:9px 11px;border-left:3px solid #4e8a78;background:#eff7f4}.family-admin-response p{margin:3px 0}.family-admin-request-actions{display:flex;align-items:flex-end;flex-direction:column;gap:8px}
@media(max-width:760px){.monitoring-checks{grid-template-columns:1fr}.monitoring-metrics{grid-template-columns:repeat(2,1fr)}.operations-form .form-actions{align-items:stretch;flex-direction:column}.family-admin-request-actions{grid-column:1/-1;align-items:flex-start;flex-direction:row}}

/* Fallakte: Mahnwesen und Druckarchiv */
.record-notes-section{padding-top:0!important}.dunning-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:0 0 18px;border:1px solid #dce3e1;background:#dce3e1}.dunning-overview>div{display:grid;gap:4px;padding:14px 16px;background:#fff}.dunning-overview span{color:var(--muted);font-size:12px}.dunning-overview strong{color:#302933;font-size:20px}.dunning-overview .open{border-top:3px solid #b8862d}.dunning-list{display:grid;border:1px solid #dce3e1}.dunning-row{display:grid;grid-template-columns:40px minmax(230px,1fr) 150px auto auto;align-items:center;gap:14px;padding:14px;border-bottom:1px solid #e3e8e7;background:#fff}.dunning-row:last-child{border-bottom:0}.dunning-row>div:nth-child(2){display:grid;gap:3px}.dunning-row>div:nth-child(2)>span,.dunning-row small,.dunning-amount span{color:var(--muted);font-size:12px}.dunning-mark{display:grid;width:36px;height:36px;place-items:center;border-radius:50%;background:#eef5f1;color:#397054}.dunning-mark.warning{background:#faf2df;color:#8b651c}.dunning-mark.danger{background:#faeaea;color:#9d3f3f}.dunning-mark svg{width:17px;height:17px}.dunning-amount{display:grid;gap:3px;text-align:right}.dunning-actions,.archive-print-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.closed-print-archive{margin-top:26px;padding-top:20px;border-top:1px solid #d7dedd}.closed-print-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.archive-print-group{min-width:0;border:1px solid #dce3e1;background:#fff}.archive-print-group>header{display:grid;gap:3px;padding:13px 14px;border-bottom:1px solid #dce3e1;background:#f7f8f8}.archive-print-group>header span{color:var(--muted);font-size:12px}.archive-print-row{display:grid;width:100%;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 13px;border:0;border-bottom:1px solid #e7ebea;background:#fff;color:inherit;text-align:left}.archive-print-row:last-child{border-bottom:0}button.archive-print-row{cursor:pointer}button.archive-print-row:hover{background:#faf7fb}.archive-print-row>span:first-child{color:var(--accent)}.archive-print-row>span:nth-child(2){display:grid;gap:2px;min-width:0}.archive-print-row small{color:var(--muted);font-size:11px;overflow-wrap:anywhere}.archive-print-row>span:last-child{color:var(--accent);font-size:12px;font-weight:700}
@media(max-width:980px){.dunning-overview,.closed-print-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dunning-row{grid-template-columns:40px minmax(0,1fr) auto}.dunning-amount{text-align:left}.dunning-actions{grid-column:2/-1;justify-content:flex-start}}
@media(max-width:620px){.dunning-overview,.closed-print-grid{grid-template-columns:1fr}.dunning-row{grid-template-columns:34px minmax(0,1fr)}.dunning-row>.status,.dunning-amount,.dunning-actions{grid-column:2;justify-self:start}.archive-print-row{grid-template-columns:28px minmax(0,1fr)}.archive-print-row>span:last-child{grid-column:2}}

/* Hintergrundmotiv je Entwurf anpassen (Größe, Verschiebung) */
.mourning-print-sheet { container-type:inline-size; }
.mourning-print-sheet[style*="--motif-scale"] .mourning-print-photo { transform:translate(var(--motif-offset-x, 0px), var(--motif-offset-y, 0px)) scale(var(--motif-scale, 1)); transform-origin:var(--motif-origin, 50% 100%); }
.mourning-transform-control { margin:0 0 14px; border:1px solid var(--line, #e6dfeb); border-radius:10px; padding:8px 12px; background:#fff; }
.mourning-transform-control summary { cursor:pointer; font-size:12.5px; font-weight:600; color:#643182; padding:4px 0; }
.mourning-transform-row { display:grid; gap:4px; margin:8px 0; font-size:12px; }
.mourning-transform-row span { display:flex; justify-content:space-between; }
.mourning-transform-row input[type=range] { width:100%; accent-color:#643182; }
.mourning-transform-control .button { margin-top:4px; }

/* USt-Ausweis: Schalter und Anzeigeart (je Position / nur Gesamtsumme) in Beleg-Editoren und im Bestattungsauftrag */
.billing-vat-options { display:flex; flex-wrap:wrap; align-items:center; gap:8px 22px; }
.billing-vat-options > label { display:flex; align-items:center; gap:8px; margin:0; font-size:13px; white-space:nowrap; }
.billing-vat-options .billing-vat-mode select { min-width:190px; padding:6px 8px; border:1px solid var(--line, #ded8e0); border-radius:6px; background:#fff; font:inherit; }
.billing-vat-options .billing-vat-mode select:disabled { color:#8a8f93; background:#f4f1f6; }
.billing-vat-options .costing-notice { flex-basis:100%; }
.billing-summary small, .case-billing-document footer small { display:block; margin-top:4px; color:#68777b; font-size:11px; text-transform:none; }
.contract-print-options { display:grid; gap:8px; margin-top:16px; }
.contract-print-options label { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:11px; padding:12px 14px; border:1px solid #ded8e0; border-radius:6px; background:#fff; cursor:pointer; }
.contract-print-options label.contract-vat-mode { grid-template-columns:minmax(0,1fr) auto; align-items:center; cursor:default; }
.contract-print-options input[type=checkbox] { width:18px; height:18px; margin-top:1px; accent-color:#643182; }
.contract-print-options select { min-width:190px; padding:7px 9px; border:1px solid #ded8e0; border-radius:6px; background:#fff; font:inherit; }
.contract-print-options select:disabled { color:#8a8f93; background:#f4f1f6; }
.contract-print-options strong, .contract-print-options small { display:block; }
.contract-print-options strong { color:#293438; font-size:13px; }
.contract-print-options small { margin-top:3px; color:#68777b; line-height:1.4; }

/* Betrieb → Webseite: Download-Dokumente (download-documents-admin.js) */
.download-documents-panel .panel-body { display: grid; gap: 14px; }
.download-documents-contact { border: 1px solid var(--line); background: #fff; padding: 14px 16px; }
.download-documents-contact strong { display: block; margin-bottom: 8px; font-size: 13px; }
.download-documents-contact dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 0; font-size: 13px; }
.download-documents-contact dt { color: var(--muted); }
.download-documents-contact dd { margin: 0; overflow-wrap: anywhere; }
.download-documents-panel .panel-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.download-documents-panel .panel-actions span { font-size: 12px; color: var(--muted); }
.download-documents-table .download-documents-group th { background: #f2edf6; color: var(--brand, #61316e); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.download-documents-table td small { color: var(--muted); }

/* Fahrer-Sicht der Überführungszentrale (driver-case-view.js) */
.driver-view-notice { border-left-color: var(--accent); }
.driver-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.driver-grid .panel { padding: 16px 18px; }
.driver-grid .panel h2 { margin: 0 0 10px; font-size: 16px; }
.driver-kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 18px; }
.driver-kv { display: grid; gap: 2px; }
.driver-kv span { color: var(--muted); font-size: 12px; }
.driver-kv strong { color: var(--ink, #1f2933); font-weight: 600; }
.driver-specials { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 6px; }
.driver-specials li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; background: #fff7e6; border-left: 3px solid #b8862d; border-radius: 4px; }
.driver-specials li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.driver-transfer { margin-bottom: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent-2); }
.driver-transfer.is-done { opacity: .75; border-left-color: #8a949a; }
.driver-transfer header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.driver-transfer header div { display: grid; gap: 2px; }
.driver-transfer header span:not(.status) { color: var(--muted); font-size: 12px; }
.driver-special { display: flex; gap: 8px; margin: 10px 0 0; padding: 8px 10px; background: #fff7e6; border-left: 3px solid #b8862d; }
.driver-section { margin-top: 14px; }
.driver-tabs { flex-wrap: wrap; }
.record-note-driver { padding: 1px 6px; border-radius: 999px; background: #eddfee; color: #6d2b74; font-style: normal; font-size: 11px; }
.record-note-driver-toggle { margin-top: 10px; }
.todo-case { display: block; color: var(--accent); font-size: 12px; font-weight: 600; }

/* 1.0.90 Preisbasis der Artikel: Gegenwert neben der Preiseingabe, Prüfhinweis für Altbestand ohne Kennzeichen */
.inventory-price-hint { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.inventory-price-review { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.inventory-price-check { color: var(--warning, #b26a00) !important; font-weight: 700; }
