/* inter-100 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100;
  src: url('/fonts/inter-v20-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-100italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100;
  src: url('/fonts/inter-v20-latin-100italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-200 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 200;
  src: url('/fonts/inter-v20-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-200italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 200;
  src: url('/fonts/inter-v20-latin-200italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('/fonts/inter-v20-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 300;
  src: url('/fonts/inter-v20-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  src: url('/fonts/inter-v20-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/inter-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 500;
  src: url('/fonts/inter-v20-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('/fonts/inter-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 600;
  src: url('/fonts/inter-v20-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/inter-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 700;
  src: url('/fonts/inter-v20-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  src: url('/fonts/inter-v20-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-800italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 800;
  src: url('/fonts/inter-v20-latin-800italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  src: url('/fonts/inter-v20-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-900italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 900;
  src: url('/fonts/inter-v20-latin-900italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root{--bg:#f3f6fb;--surface:#fff;--ink:#172033;--muted:#64748b;--line:#dbe3ef;--primary:#1d4ed8;--primary-dark:#173ea6;--danger:#b42318;--warning:#b54708;--success:#067647;--shadow:0 12px 30px rgba(15,23,42,.08);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}.app-shell{min-height:100vh;display:grid;grid-template-columns:260px minmax(0,1fr)}.sidebar{background:#0f1d35;color:#fff;padding:22px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;z-index:20}.brand{ text-align: center; }.brand-logo{background: #ffffffdd; margin: 0.3rem; padding: 0.3rem; border-radius: 0.5rem; /*display:flex;gap:12px;align-items:center */}.brand-mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#60a5fa,#1d4ed8);display:grid;place-items:center;font-weight:900;color:#fff;box-shadow:0 8px 20px rgba(37,99,235,.35)}.brand strong,.brand small{display:block}.brand small{color:#aebbd0;margin-top:2px}.nav{display:grid;gap:6px;margin:30px 0}.nav a{color:#dbe5f5;padding:11px 13px;border-radius:10px;font-weight:650}.nav a:hover,.nav a.active{background:rgba(255,255,255,.1);text-decoration:none;color:#fff}.sidebar-footer{margin-top:auto; min-height:6rem;}.user-chip{padding:12px 10px}.user-chip strong,.user-chip small{display:block;overflow:hidden;text-overflow:ellipsis}.user-chip small{color:#aebbd0}.main{min-width:0}.topbar{height:82px;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:14px;padding:0 28px;position:sticky;top:0;z-index:10}.topbar h1{font-size:1.25rem;margin:0}.topbar-badge{margin-left:auto;color:var(--muted);font-size:.86rem}.menu-button{display:none;border:0;background:transparent;font-size:1.5rem}.content{padding:28px;max-width:1800px;margin:0 auto}.guest-body{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at top left,#dbeafe,transparent 35%),var(--bg)}.login-card{width:min(440px,100%);background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:34px;box-shadow:var(--shadow)}.login-brand{margin-bottom:28px;}.login-brand small{color:var(--muted)}.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 4px 18px rgba(15,23,42,.045);padding:20px}.card-header{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:16px}.card-header h2,.card-header h3{margin:0}.grid{display:grid;gap:18px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:18px;box-shadow:0 4px 18px rgba(15,23,42,.04)}.stat span{display:block;color:var(--muted);font-size:.84rem}.stat strong{display:block;font-size:1.7rem;margin-top:7px}.stat.danger strong{color:var(--danger)}.stat.warning strong{color:var(--warning)}.stat.success strong{color:var(--success)}.stack{display:grid;gap:16px}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.actions.end{justify-content:flex-end}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px}.section-title h2,.section-title h3{margin:0}label{display:block;font-weight:700;font-size:.9rem;margin-bottom:6px}input,select,textarea{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:10px 11px;background:#fff;color:var(--ink);font:inherit}textarea{min-height:105px;resize:vertical}input:focus,select:focus,textarea:focus{outline:3px solid rgba(37,99,235,.16);border-color:#2563eb}.checkbox{display:flex;gap:9px;align-items:flex-start}.checkbox input{width:auto;margin-top:4px}.form-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:15px}.col-2{grid-column:span 2}.col-3{grid-column:span 3}.col-4{grid-column:span 4}.col-6{grid-column:span 6}.col-8{grid-column:span 8}.col-12{grid-column:span 12}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:10px;padding:9px 14px;font-weight:750;font:inherit;cursor:pointer;text-decoration:none}.btn:hover{text-decoration:none}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-dark)}.btn-secondary{background:#eef2ff;color:#273b75;border-color:#d8e0ff}.btn-danger{background:#fff1f0;color:var(--danger);border-color:#fecaca}.btn-ghost{background:transparent;color:inherit;border-color:rgba(255,255,255,.18)}.btn-block{width:100%}.btn-sm{padding:6px 10px;font-size:.84rem}.alert{border-radius:12px;padding:12px 14px;margin-bottom:18px;border:1px solid}.alert-success{background:#ecfdf3;border-color:#a6f4c5;color:#05603a}.alert-error{background:#fff2f0;border-color:#fecdca;color:#912018}.muted{color:var(--muted)}.small{font-size:.85rem}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:13px;background:#fff}table.data{width:100%;border-collapse:collapse;min-width:720px}table.data th,table.data td{text-align:left;padding:11px 12px;border-bottom:1px solid var(--line);vertical-align:top}table.data th{background:#f8fafc;color:#475569;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em}table.data tr:last-child td{border-bottom:0}.badge{display:inline-flex;border-radius:999px;padding:4px 8px;font-size:.76rem;font-weight:800;white-space:nowrap}.badge-danger{background:#fee4e2;color:#b42318}.badge-warning{background:#fffaeb;color:#b54708}.badge-success{background:#ecfdf3;color:#067647}.badge-neutral{background:#f2f4f7;color:#475467}.customer-card{display:grid;gap:14px}.customer-card-header{display:flex;justify-content:space-between;gap:12px}.customer-card h3{margin:0}.tabs{display:flex;gap:5px;overflow:auto;border-bottom:1px solid var(--line);margin:22px 0 18px}.tab{border:0;background:transparent;padding:11px 13px;font-weight:750;color:var(--muted);cursor:pointer;white-space:nowrap;border-bottom:3px solid transparent}.tab.active{color:var(--primary);border-bottom-color:var(--primary)}.repeat-row{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:10px;align-items:end;margin-bottom:10px}.document-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}.document-card{border:1px solid var(--line);border-radius:12px;padding:10px;background:#fff}.document-card img{width:100%;height:120px;object-fit:cover;border-radius:8px;cursor:zoom-in}.empty-state{text-align:center;background:#fff;border:1px dashed #b9c6d8;border-radius:16px;padding:50px 20px}.detail-list{display:grid;grid-template-columns:180px 1fr;gap:8px 16px}.detail-list dt{font-weight:700;color:#475569}.detail-list dd{margin:0}.filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:16px}.filters>div{min-width:180px;flex:1}.filters .actions{flex:0}.print-only{display:none}dialog{border:0;border-radius:14px;padding:12px;max-width:min(92vw,1000px);box-shadow:var(--shadow)}dialog::backdrop{background:rgba(15,23,42,.72)}dialog img{max-width:100%;max-height:82vh}.timeline{display:grid;gap:10px}.timeline-item{border-left:4px solid #93c5fd;padding:10px 12px;background:#f8fafc;border-radius:0 10px 10px 0}.timeline-item.overdue{border-left-color:#ef4444}.timeline-item.urgent{border-left-color:#f59e0b}@media(max-width:1100px){.grid-4,.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.col-2,.col-3,.col-4{grid-column:span 6}}@media(max-width:780px){.app-shell{display:block}.sidebar{position:fixed;left:-280px;transition:left .2s;width:260px}.sidebar.open{left:0;overflow:auto;}.sidebar-footer{min-height: 10rem;}.menu-button{display:block}.topbar{padding:0 16px}.topbar-badge{display:none}.content{padding:16px}.grid-2,.grid-3,.grid-4,.stats{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.col-2,.col-3,.col-4,.col-6,.col-8,.col-12{grid-column:1}.repeat-row{grid-template-columns:1fr}.detail-list{grid-template-columns:1fr}.detail-list dd{margin-bottom:9px}}@media print{.sidebar,.topbar,.actions,.filters,.no-print,.tabs{display:none!important}.app-shell{display:block}.content{padding:0}.card{box-shadow:none;border:0}.print-only{display:block}body{background:#fff}}
.row-actions{display:flex;gap:7px;align-items:flex-start;flex-wrap:wrap}.row-actions form{margin:0}.row-editor>summary{list-style:none}.row-editor>summary::-webkit-details-marker{display:none}.row-editor[open]{min-width:min(360px,78vw)}.row-editor[open]>summary{margin-bottom:8px}.row-editor>form{min-width:320px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#f8fafc;box-shadow:0 10px 28px rgba(15,23,42,.12)}.file-tile{height:120px;display:grid;place-items:center;background:#f1f5f9;border-radius:8px;font-weight:800}.text-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:420px}code{padding:2px 6px;border-radius:6px;background:#f1f5f9;font-size:.84em}@media(max-width:780px){.row-editor[open]{min-width:min(280px,82vw)}.row-editor>form{min-width:250px}}@media print{.row-actions,.row-editor{display:none!important}}

/* 1.1.0 usability and image preview refinements */
[hidden]{display:none!important}
.badge{align-self:flex-start;height:fit-content;line-height:1.2;vertical-align:middle}
.customer-card-header{align-items:flex-start}
.page-actions{margin-bottom:18px;align-items:center}
.dashboard-actions{margin-bottom:18px}
.tab-panel{scroll-margin-top:112px}
.tab-panel-stack{display:grid;gap:18px}
.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.metric{display:grid;gap:4px;align-content:start}
.metric-label{display:block;color:var(--muted);font-size:.84rem}
.metric-value{display:block;font-size:1.25rem;line-height:1.2}.text-warning{color:var(--warning)}.text-danger{color:var(--danger)}
.filters .filter-buttons{flex:0 0 auto;min-width:auto;align-self:flex-end;margin-left:auto}
.form-grid > .recurrence-fieldset, .recurrence-fieldset{grid-column:span 12;border:1px solid var(--line);border-radius:12px;padding:14px;margin:0;background:#f8fafc}
.recurrence-fieldset legend{padding:0 6px;font-weight:800;font-size:.9rem}
.recurrence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.recurrence-help{margin-top:9px;color:var(--muted);font-size:.84rem}
.color-cell{display:flex;align-items:center;gap:9px}
.color-swatch{width:24px;height:24px;border-radius:7px;border:1px solid rgba(15,23,42,.18);background:var(--swatch);flex:0 0 auto}
.color-palette{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:9px;margin:12px 0 18px}
.color-option{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#fff}
.color-option code{margin-left:auto}
.color-select-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end}
.color-select-preview{width:42px;height:42px;border-radius:10px;border:1px solid rgba(15,23,42,.18);background:var(--swatch)}
.image-dialog{width:min(96vw,1200px);height:min(92vh,900px);max-width:min(96vw,1200px);max-height:min(92vh,900px);padding:0;overflow:hidden}
.image-dialog-layout{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr)}
.image-dialog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border-bottom:1px solid var(--line);background:#fff;position:relative;z-index:2}
.image-dialog-controls{display:flex;gap:8px;flex-wrap:wrap}
.image-stage{min-height:0;overflow:auto;display:grid;place-items:center;padding:18px;background:#e9eef6}
.image-stage img{display:block;max-width:100%;max-height:calc(92vh - 90px);width:auto;height:auto;transform:scale(var(--image-zoom,1));transform-origin:center center;transition:transform .12s ease;cursor:zoom-in}
.document-card img{background:#eef2f7}
@media(max-width:780px){.metric-grid,.recurrence-grid{grid-template-columns:1fr}.filters .filter-buttons{width:100%;margin-left:0}.filters .filter-buttons .btn{flex:1}.color-select-row{grid-template-columns:1fr}.color-select-preview{width:100%;height:34px}.image-dialog-toolbar{align-items:flex-start;flex-direction:column}.image-stage img{max-height:calc(92vh - 135px)}}


/* 1.2.0 mail, licence, document and safety refinements */
.stack > .recurrence-fieldset{grid-column:auto}
.editor-submit{width:auto!important;min-height:34px;align-self:start;justify-self:start}
.warning-card{border-color:#fed7aa;background:#fffaf5}
.archive-card{box-shadow:none}
.record-documents-card{margin-top:18px;grid-column:1/-1}
.record-document-group + .record-document-group{border-top:1px solid var(--line);margin-top:18px;padding-top:14px}
.record-document-group h3{margin:0 0 10px}
.compact-document-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.compact-document-card{display:grid;gap:9px}
.document-image-button{display:block;width:100%;border:0;background:transparent;padding:0;cursor:zoom-in}
.document-image-button img{display:block;width:100%;height:120px;object-fit:cover;border-radius:8px}
.document-file-tile{height:120px;display:grid;place-items:center;align-content:center;gap:8px;background:#f1f5f9;border-radius:8px;font-weight:800;color:var(--ink)}
.document-card-body{display:grid;gap:7px;align-content:start}
.document-card-body .btn{justify-self:start}
.file-icon{font-size:1.5rem}
.embedded-fieldset{border:1px solid var(--line);border-radius:12px;padding:12px;margin:4px 0;background:#fff}
.embedded-fieldset legend{font-weight:800;padding:0 6px}
.licence-class-quick-picks{display:flex;flex-wrap:wrap;gap:5px;margin:5px 0 8px}
.class-pick{border:1px solid #cbd5e1;background:#f8fafc;color:#273b75;border-radius:999px;padding:4px 8px;font-weight:800;font-size:.78rem;cursor:pointer}
.class-pick:hover,.class-pick:focus{background:#e0e7ff;border-color:#818cf8;outline:none}
.repeat-row.licence-class-entry{grid-template-columns:minmax(150px,1.25fr) repeat(3,minmax(130px,1fr)) auto;align-items:end}
.btn.is-loading{cursor:wait;opacity:.82}
.btn-spinner{width:1em;height:1em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;display:inline-block;animation:button-spin .75s linear infinite;flex:0 0 auto}
@keyframes button-spin{to{transform:rotate(360deg)}}
.code-block{display:block;white-space:pre-wrap;overflow:auto;max-width:760px;max-height:420px;margin:9px 0 0;padding:12px 14px;border:1px solid #d7dee9;border-radius:10px;background:#0f172a;color:#e2e8f0;font:normal .82rem/1.45 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace}
.code-block code{padding:0;background:transparent;color:inherit;font:inherit}
.message-body{max-width:650px;max-height:300px}
.outbox-filters .filter-buttons{align-self:flex-end}
.outbox-content-cell{min-width:310px}
.outbox-message-details{margin-top:7px}
.outbox-attachments{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.outbox-attachment-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin-top:7px}
.outbox-attachment{display:flex;align-items:center;gap:9px;padding:8px;border:1px solid var(--line);border-radius:10px;background:#f8fafc;color:var(--ink);min-width:0}
.outbox-attachment:hover{text-decoration:none;border-color:#93c5fd;background:#eff6ff}
.outbox-attachment img{width:58px;height:52px;border-radius:7px;object-fit:cover;flex:0 0 auto}
.outbox-attachment span:last-child{display:grid;gap:2px;min-width:0}
.outbox-attachment strong,.outbox-attachment small{overflow-wrap:anywhere}
.audit-code{min-width:360px}
@media(max-width:900px){.repeat-row.licence-class-entry{grid-template-columns:1fr 1fr}.repeat-row.licence-class-entry>button{justify-self:start}}
@media(max-width:780px){.repeat-row.licence-class-entry{grid-template-columns:1fr}.audit-code{min-width:250px}.outbox-content-cell{min-width:250px}}

.mail-timeout-notice{margin:6px 0 0;color:var(--warning);font-size:.78rem;line-height:1.3;max-width:260px}

/* 1.3.1 customer account and mobile navigation refinements */
.sidebar-backdrop,.sidebar-close{display:none}
.account-password-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:18px;align-items:start;max-width:980px}
.account-password-intro{margin:6px 0 0}
.account-details{padding:14px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}
.account-password-form{max-width:620px}
.account-password-form .form-help{margin:6px 0 0}
.account-security-note h2{margin-top:0}
@media(max-width:780px){
  body.sidebar-open{overflow:hidden}
  .sidebar{box-shadow:0 22px 55px rgba(15,23,42,.38)}
  .sidebar-close{position:absolute;top:10px;right:10px;width:38px;height:38px;border:1px solid rgba(255,255,255,.2);border-radius:10px;background:rgba(15,29,53,.94);color:#fff;font-size:1.6rem;line-height:1;place-items:center;cursor:pointer;z-index:2}
  .sidebar.open .sidebar-close{display:grid}
  .sidebar-backdrop{position:fixed;inset:0;border:0;padding:0;background:rgba(15,23,42,.48);z-index:15;cursor:pointer}
  .sidebar-backdrop.visible{display:block}
  .account-password-layout{grid-template-columns:1fr}
}

/* 1.4.0 public legal pages and responsible reminder recipients */
.guest-shell{width:min(920px,100%);display:grid;justify-items:center;gap:14px}
.guest-footer{width:min(440px,100%);text-align:center;color:var(--muted);font-size:.84rem;line-height:1.5}
.guest-footer p{margin:0 0 5px}
.guest-footer nav{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}
.legal-card{width:min(900px,100%)}
.legal-content{display:grid;gap:18px}
.legal-content h1,.legal-content h2,.legal-content p{margin-top:0}
.legal-content h1{margin-bottom:0}
.legal-content h2{font-size:1.05rem;margin-bottom:7px}
.legal-content section{padding-top:2px;border-top:1px solid var(--line)}
.legal-content section:first-of-type{border-top:0}
.legal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.eyebrow{margin-bottom:4px!important;color:var(--muted);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.form-help{margin:6px 0 0;color:var(--muted);font-size:.84rem;line-height:1.4}
.recipient-status{margin-top:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}
.btn:disabled{cursor:not-allowed;opacity:.58}
@media(max-width:780px){.legal-card{padding:24px 20px}.legal-heading{align-items:stretch;flex-direction:column}.legal-heading .btn{align-self:flex-start}}

/* 1.5.0 personalbezogener Postausgang */
.personnel-outbox-header{align-items:flex-start;flex-wrap:wrap}
.personnel-outbox-header>div{flex:1 1 420px}

/* 1.6.0 Fristenliste, Kundenkontext und CSV-Personalimport */
.topbar-title{display:grid;gap:3px;min-width:0}.customer-context{color:var(--muted);font-size:.78rem;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-context strong{color:#475569}.alert-warning{background:#fffaeb;border-color:#fedf89;color:#93370d}.timeline-item{display:flex;align-items:center;justify-content:space-between;gap:14px}.timeline-item-content{min-width:0}.timeline-direct-link{flex:0 0 auto;font-size:.78rem;font-weight:800;white-space:nowrap}.deadline-next-date{font-size:1rem!important}.deadline-list-header{align-items:flex-start}.deadline-list-header p,.import-preview-source{margin:5px 0 0}.deadline-filters>div{min-width:170px}.deadline-filters>div:first-child{min-width:260px;flex:1.5}.deadline-table{min-width:920px}.deadline-table td:first-child{white-space:nowrap}.deadline-filter-note{margin:12px 0 0}.deadline-print-heading{margin-bottom:18px}.deadline-print-heading h1,.deadline-print-heading p{margin:0 0 6px}.personnel-import-panel{align-items:start}.import-steps{display:grid;gap:10px}.import-steps>div{display:grid;gap:3px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.import-steps span{color:var(--muted);font-size:.84rem}.import-field-reference h3{margin-bottom:12px}.import-preview-summary{margin-bottom:18px}.import-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.import-warning{margin:0}.compact-list{margin:0;padding-left:19px}.compact-list li+li{margin-top:4px}.import-error-card{border-color:#fecaca}.duplicate-list{display:grid;gap:14px}.duplicate-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:18px;padding:16px;border:1px solid #fedf89;border-radius:13px;background:#fffcf5}.duplicate-item h3{margin:3px 0 7px}.duplicate-item p{margin:5px 0}.duplicate-reasons{color:#93370d}.duplicate-choice{border:1px solid var(--line);border-radius:11px;padding:12px;background:#fff}.duplicate-choice legend{font-size:.84rem;font-weight:800;padding:0 5px}.duplicate-choice .checkbox+.checkbox{margin-top:10px}.duplicate-choice .checkbox span{display:grid;gap:2px}.duplicate-choice small{color:var(--muted);font-weight:400}.import-final-actions{margin-top:2px}.import-cancel-form{margin-top:12px}.import-preview-table,.import-error-table{min-width:860px}
@media(max-width:1050px){.import-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.duplicate-item{grid-template-columns:1fr}}
@media(max-width:780px){.topbar{height:auto;min-height:82px;padding-top:12px;padding-bottom:12px}.customer-context{white-space:normal}.timeline-item{align-items:flex-start;flex-direction:column}.timeline-direct-link{white-space:normal}.deadline-filters>div,.deadline-filters>div:first-child{min-width:100%}.import-metrics{grid-template-columns:1fr}.duplicate-item{padding:13px}}
@media print{.deadline-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.deadline-stats .stat{padding:9px;border:1px solid #cbd5e1}.deadline-stats .stat strong{font-size:1rem}.deadline-list-card{padding:0}.deadline-list-header{margin:0 0 10px}.deadline-table-wrap{overflow:visible;border:0}.deadline-table{min-width:0;font-size:9pt}.deadline-table th,.deadline-table td{padding:6px 7px}.deadline-navigation{display:none!important}.deadline-filter-note{display:none}.deadline-print-heading{display:block}.deadline-list-card .card-header p{display:none}}
.deadline-personnel-number{display:block;margin-top:3px;color:var(--muted);font-size:.78rem;font-weight:600}

/* 1.7.0 Betreiber-Dashboard mit Kundenliste und Stammdatensuche */
.admin-dashboard-tabs{margin-top:0}
.admin-dashboard-search{margin-bottom:18px;padding:16px 18px}
.admin-dashboard-search-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:end}
.customer-search-summary{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}
.customer-search-count{display:grid;justify-items:end;line-height:1.2;color:var(--muted);font-size:.82rem;white-space:nowrap}
.customer-search-count strong{font-size:1.35rem;color:var(--ink)}
.admin-dashboard-panel{display:grid;gap:18px}
.admin-customer-card-grid{align-items:stretch}
.customer-card-address{margin-top:4px;line-height:1.35}
.customer-card-actions{align-self:end}
.customer-search-empty{margin-top:0}
.customer-list-card{min-width:0}
.customer-list-header{align-items:flex-start}
.customer-list-header p{margin:5px 0 0}
.customer-list-table{min-width:1320px}
.customer-list-table td{vertical-align:middle}
.customer-list-company,.customer-list-contact,.customer-list-metrics{display:grid;gap:4px}
.customer-list-company strong{font-size:.95rem}
.customer-list-contact a,.customer-list-contact span{overflow-wrap:anywhere}
.customer-list-metrics{min-width:112px;font-size:.82rem;line-height:1.35;white-space:nowrap}
.customer-list-actions{min-width:285px;gap:6px}
.customer-list-actions .btn{flex:0 0 auto}
@media(max-width:900px){.admin-dashboard-search-grid{grid-template-columns:1fr}.customer-search-summary{justify-content:space-between}.customer-search-count{justify-items:start}}
@media(max-width:780px){.admin-dashboard-search{padding:14px}.customer-search-summary{align-items:stretch;flex-direction:column}.customer-search-count{white-space:normal}.customer-search-summary .btn{width:100%}}


/* 1.8.0 customer portal notice */
.customer-portal-notice{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:start;margin-bottom:22px;border-color:#bfdbfe;background:#eff6ff;box-shadow:0 4px 18px rgba(29,78,216,.06)}
.customer-portal-notice-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#1d4ed8;color:#fff;font-weight:900;font-family:Georgia,serif;font-style:italic}
.customer-portal-notice h2{margin:0 0 7px;font-size:1.05rem;color:#1e3a8a}
.customer-portal-notice-text{white-space:normal;overflow-wrap:anywhere;line-height:1.55;color:#1e3a5f}
@media(max-width:780px){.customer-portal-notice{grid-template-columns:1fr}.customer-portal-notice-icon{width:30px;height:30px}}

/* 1.9.0 role-specific portal help */
.nav-external-link{display:flex;align-items:center;justify-content:space-between;gap:10px}
.nav-external-link span{font-size:.78rem;color:#93c5fd}
.help-body{min-height:100vh;background:#eef3f9;color:var(--ink)}
.help-topbar{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);box-shadow:0 4px 18px rgba(15,23,42,.05)}
.help-topbar-inner{width:min(1500px,100%);min-height:76px;margin:0 auto;padding:10px 24px;display:flex;align-items:center;gap:18px}
.help-brand{display:flex;align-items:center;flex:0 0 auto}
.help-brand img{width:155px;max-height:54px;object-fit:contain}
.help-topbar-title{display:grid;gap:2px;min-width:0}
.help-topbar-title strong{font-size:1.02rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.help-topbar-actions{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.help-role-chip{display:inline-flex;align-items:center;min-height:32px;padding:6px 11px;border-radius:999px;background:#e0e7ff;color:#3730a3;font-size:.8rem;font-weight:800}
.app-return-link span{font-size:1rem}
.help-page{width:min(1500px,100%);margin:0 auto;padding:28px 24px 46px}
.help-footer{width:min(1500px,100%);margin:0 auto;padding:18px 24px 30px;display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:.8rem}
.help-root{display:grid;gap:20px}
.help-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;padding:28px 30px;border:1px solid #c7d7f5;border-radius:20px;background:linear-gradient(135deg,#fff,#eef5ff);box-shadow:0 8px 28px rgba(30,64,175,.07)}
.help-hero h1{margin:2px 0 10px;font-size:clamp(1.55rem,3vw,2.25rem);line-height:1.15}
.help-hero p:last-child{margin:0;max-width:920px;color:#475569;line-height:1.6}
.help-hero-icon{display:grid;place-items:center;width:84px;height:84px;border-radius:22px;background:#1d4ed8;color:#fff;font-size:2.6rem;box-shadow:0 14px 30px rgba(29,78,216,.22)}
.help-search-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:end;padding:18px 20px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 4px 18px rgba(15,23,42,.04)}
.help-search-panel input{margin-top:7px;min-height:46px;font-size:1rem}
.help-search-meta{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:.84rem;white-space:nowrap}
.help-search-meta strong{color:var(--ink);font-size:1.15rem}
.help-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;align-items:start}
.help-toc-sticky{position:sticky;top:98px;padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 4px 18px rgba(15,23,42,.04)}
.help-toc h2{margin:0 0 12px;font-size:1rem}
.help-toc nav{display:grid;gap:3px}
.help-toc a{padding:7px 9px;border-radius:8px;color:#475569;font-size:.84rem;line-height:1.25}
.help-toc a:hover{background:#eef4ff;color:var(--primary);text-decoration:none}
.help-content{display:grid;gap:18px;min-width:0}
.help-no-results{margin:0}
.help-article,.help-index-card{scroll-margin-top:96px;padding:25px 27px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 5px 20px rgba(15,23,42,.045)}
.help-article>header{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px;padding-bottom:15px;border-bottom:1px solid var(--line)}
.help-article>header h2{margin:2px 0 0;font-size:1.32rem;line-height:1.2}
.help-section-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 auto;border-radius:12px;background:#eef4ff;font-size:1.35rem}
.help-article h3{margin:22px 0 7px;font-size:1.02rem;color:#27364f}
.help-article h3:first-of-type{margin-top:0}
.help-article p,.help-article li,.help-faq p{line-height:1.62}
.help-article p{margin:0 0 12px}
.help-article ul,.help-article ol{margin:8px 0 14px;padding-left:22px}
.help-article li+li{margin-top:6px}
.help-steps{counter-reset:help-step;list-style:none!important;padding-left:0!important;display:grid;gap:10px}
.help-steps li{position:relative;padding:12px 14px 12px 48px;border:1px solid #dbe5f4;border-radius:12px;background:#f8fafc}
.help-steps li::before{counter-increment:help-step;content:counter(help-step);position:absolute;left:12px;top:11px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#1d4ed8;color:#fff;font-size:.78rem;font-weight:900}
.help-definition-list{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);gap:8px 16px;margin:10px 0 16px}
.help-definition-list dt{font-weight:800;color:#334155}
.help-definition-list dd{margin:0;line-height:1.55}
.help-callout{margin-top:16px;padding:13px 15px;border-left:4px solid #3b82f6;border-radius:0 11px 11px 0;background:#eff6ff;color:#1e3a5f;line-height:1.55}
.help-callout-security{border-left-color:#7c3aed;background:#f5f3ff;color:#4c1d95}
.help-callout-danger{border-left-color:#dc2626;background:#fff1f2;color:#881337}
.help-app-links{display:flex;gap:10px;align-items:stretch;flex-wrap:wrap;margin-top:14px}
.app-link{display:inline-flex;align-items:center;gap:11px;min-width:220px;padding:10px 13px;border:1px solid #b9cdf5;border-radius:11px;background:#f3f7ff;color:#1e40af}
.app-link:hover{border-color:#3b82f6;background:#eaf2ff;text-decoration:none}
.app-link>span:first-child{font-size:1.18rem;font-weight:900}
.app-link>span:last-child{display:grid;gap:1px}
.app-link strong{font-size:.83rem;text-transform:uppercase;letter-spacing:.04em}
.app-link small{color:#475569;font-size:.77rem}
.help-code{overflow:auto;margin:10px 0 16px;padding:13px 15px;border:1px solid #1e293b;border-radius:11px;background:#0f172a;color:#e2e8f0;font-size:.84rem;line-height:1.5}
.help-faq{display:grid;gap:9px}
.help-faq details{border:1px solid var(--line);border-radius:12px;background:#f8fafc;overflow:hidden}
.help-faq summary{cursor:pointer;padding:13px 15px;font-weight:800;line-height:1.4}
.help-faq details[open] summary{border-bottom:1px solid var(--line);background:#eef4ff;color:#1e40af}
.help-faq p{margin:0;padding:13px 15px;background:#fff}
.help-troubleshooting-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.help-troubleshooting-grid section{padding:14px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}
.help-troubleshooting-grid h3{margin:0 0 6px}
.help-troubleshooting-grid p{margin:0}
.help-index-card{scroll-margin-top:96px}
.help-index-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,380px);gap:20px;align-items:end;margin-bottom:16px}
.help-index-header h2{margin:2px 0 0}
.help-index-search{display:grid;gap:5px}
.help-index-search label{margin:0;font-size:.82rem}
.help-index-search span{color:var(--muted);font-size:.78rem;text-align:right}
.help-index-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.help-index-list li{min-width:0}
.help-index-list a{display:block;height:100%;padding:10px 11px;border:1px solid var(--line);border-radius:10px;background:#f8fafc;color:#334155;font-size:.84rem;line-height:1.3}
.help-index-list a:hover{border-color:#93b4f3;background:#eef4ff;color:#1d4ed8;text-decoration:none}
.help-index-empty{margin:12px 0 0;color:var(--muted)}
.help-access-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.help-access-summary>div{display:grid;grid-template-columns:auto 1fr;column-gap:9px;align-items:center;padding:12px 14px;border:1px solid #bbebcf;border-radius:12px;background:#effcf5}
.help-access-summary>div>span{grid-row:1/3;display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#067647;color:#fff;font-weight:900}
.help-access-summary strong{font-size:.88rem}
.help-access-summary small{color:#476353;font-size:.75rem}
.help-access-summary .is-limited{border-color:#d8dee8;background:#f8fafc}
.help-access-summary .is-limited>span{background:#94a3b8}
.help-access-summary .is-limited small{color:var(--muted)}
.help-login-card{width:min(760px,100%)}
.help-login-content{gap:12px}
.help-login-lock{display:grid;place-items:center;width:54px;height:54px;border-radius:14px;background:#eef4ff;font-size:1.65rem}
@media(max-width:1100px){
  .help-layout{grid-template-columns:220px minmax(0,1fr)}
  .help-index-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .help-access-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:860px){
  .help-topbar-inner{align-items:flex-start;flex-wrap:wrap}
  .help-topbar-title{order:2;flex:1 1 100%}
  .help-topbar-actions{margin-left:auto}
  .help-layout{grid-template-columns:1fr}
  .help-toc-sticky{position:static}
  .help-toc nav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .help-search-panel{grid-template-columns:1fr}
  .help-search-meta{justify-content:space-between}
}
@media(max-width:640px){
  .help-topbar-inner,.help-page,.help-footer{padding-left:14px;padding-right:14px}
  .help-brand img{width:125px}
  .help-role-chip{display:none}
  .help-topbar-actions .btn-secondary{display:none}
  .help-hero{grid-template-columns:1fr;padding:22px 19px}
  .help-hero-icon{width:58px;height:58px;font-size:1.8rem;border-radius:16px}
  .help-article,.help-index-card{padding:19px 16px}
  .help-toc nav{grid-template-columns:1fr}
  .help-definition-list{grid-template-columns:1fr;gap:3px}
  .help-definition-list dd{margin-bottom:9px}
  .help-troubleshooting-grid,.help-index-header,.help-index-list,.help-access-summary{grid-template-columns:1fr}
  .help-search-meta{align-items:stretch;flex-direction:column;white-space:normal}
  .help-search-meta .btn{width:100%}
  .app-link{width:100%;min-width:0}
  .help-footer{flex-direction:column}
}
@media print{
  .help-body{background:#fff}
  .help-page{width:100%;padding:0}
  .help-layout{display:block}
  .help-content{gap:12px}
  .help-hero{box-shadow:none;border:1px solid #cbd5e1;padding:18px;margin-bottom:12px}
  .help-hero-icon,.help-access-summary,.help-footer{display:none!important}
  .help-article,.help-index-card{box-shadow:none;border:1px solid #cbd5e1;border-radius:0;padding:16px;break-inside:avoid-page}
  .help-article[hidden]{display:block!important}
  .help-faq details{break-inside:avoid}
  .help-faq details:not([open])>p{display:block}
  .app-link{display:none!important}
  .help-callout{border:1px solid #cbd5e1;border-left-width:4px;background:#fff;color:#111827}
}

/* 2.0.0 Multi-Server-Mandantenbetrieb und Kundenmigration */
.database-server-table{min-width:1180px}.database-server-table td{vertical-align:top}.path-code{display:inline-block;max-width:320px;white-space:normal;overflow-wrap:anywhere}.database-server-editor[open]{min-width:min(900px,82vw)}.database-server-editor form{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.stack-tight{gap:5px}.migration-history-table{min-width:1180px}.migration-history-table td{vertical-align:top}.migration-verification{max-width:620px;max-height:320px;margin-top:8px}.migration-history-table form{margin-top:8px}.database-server-editor .checkbox{align-self:end}.empty-state .empty-icon{font-size:2rem;margin-bottom:8px}
@media(max-width:900px){.database-server-editor[open]{min-width:760px}}

.login-logo {width:90%;}