/* Einstellungen: company data, master data and letterheads of the business documents (business.js). */
#business-tabs [aria-pressed=true]{background:var(--brand-soft);color:var(--brand-text);border-color:var(--brand-line)}
#business-message.ok{border-color:var(--ok-line);background:var(--ok-bg);color:var(--ok-text)}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:25px;margin-bottom:20px}
.business-form fieldset{border:0;padding:0;margin:0;min-width:0}.business-form fieldset:disabled input,.business-form fieldset:disabled select,.business-form fieldset:disabled textarea{background:var(--surface-2)}
.business-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}
.business-grid>label,.business-footer>label,.business-head>label{display:grid;gap:7px;font-size:12px;font-weight:600;color:var(--ink-soft)}
.business-grid input:not([type=checkbox]),.business-grid select,.business-grid textarea,.business-footer textarea,.business-head select{width:100%;border:1px solid var(--line);border-radius:7px;background:var(--input-bg);padding:10px 12px;color:var(--ink);font:inherit;font-weight:400}
.business-grid input[type=color]{height:42px;padding:4px}.business-grid .checkbox-label{align-self:end;padding-bottom:10px}
/* A checkbox stands left of its label (the grid rule above would put it on a row of its own). */
.business-grid>.checkbox-label{display:flex;align-items:center;gap:9px}.business-grid>.checkbox-label input{flex:none}
.business-grid textarea{min-height:70px;resize:vertical}.business-grid .help{grid-column:1/-1;margin:0}
.business-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:16px;flex-wrap:wrap}.business-head .help{margin:0;max-width:720px;font-size:12px;color:var(--muted);line-height:1.7}
.business-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.danger{color:var(--err-text)}
.business-table{width:100%;border-collapse:collapse;font-size:12px}.business-table th{text-align:left;font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--faint);font-weight:650;padding:8px 10px;border-bottom:1px solid var(--line)}
.business-table td{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:top}.business-table small{display:block;color:var(--muted);margin-top:3px}
/* Tables of the master data (tax rates, units …) use the full width, so „Bearbeiten“ and „Löschen“ stay in view; on narrow
   screens every entry becomes a block with its values one below the other. */
.panel.business-catalog{max-width:none;container-type:inline-size}.business-table td{overflow-wrap:anywhere}.business-table td:last-child{width:1%;white-space:nowrap}.business-table td:last-child .business-actions{flex-wrap:nowrap}
/* The width of the panel decides, not the window: next to the sidebar a tablet leaves less room (container query). */
@container (max-width:640px){.business-catalog .business-table thead{display:none}.business-catalog .business-table tr{display:block;padding:10px 0;border-bottom:1px solid var(--line)}
  .business-catalog .business-table td{display:block;border:0;padding:3px 0;width:auto;white-space:normal}.business-catalog .business-table td:empty{display:none}
  .business-catalog .business-table td[data-label]:not(:first-child)::before{content:attr(data-label) ": ";color:var(--muted);font-size:11px}
  .business-catalog .business-actions{justify-content:flex-start;margin-top:6px}
  .business-catalog .business-table td:last-child .business-actions{flex-wrap:wrap}}
.business-tag{display:inline-block;font-size:10px;font-weight:600;padding:2px 7px;border-radius:9px;margin-left:6px;background:var(--surface-3);color:var(--ink-soft)}.business-tag.ok{background:var(--ok-bg);color:var(--ok-text)}
.business-letterhead{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,1fr);gap:20px;align-items:start}
.business-footer{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:16px}.business-footer textarea{min-height:92px;font-size:11px}.business-footer textarea[readonly]{background:var(--surface-2);color:var(--ink-soft)}
.business-logo{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border:1px dashed var(--line);border-radius:8px;padding:12px;margin-bottom:18px}.business-logo img{max-height:70px;max-width:260px;object-fit:contain}.business-logo .help{flex-basis:100%;margin:0;font-size:11px;color:var(--muted)}
.business-logo .upload{display:inline-block;cursor:pointer}
/* The preview beside the form, as high as the visible window (dvh: on a phone the height under the browser bars, frontend/styles.css). */
.business-preview{position:sticky;top:12px;max-height:calc(100dvh - 24px);overflow:auto}.business-preview img{width:100%;border:1px solid var(--line);box-shadow:0 4px 18px #57061922;margin-bottom:14px;background:var(--surface)}
.business-dialog{width:min(900px,calc(100% - 32px))}#business-dialog-error{color:var(--err-text);margin:0}
@media(max-width:1100px){.business-letterhead{grid-template-columns:1fr}.business-preview{position:static;max-height:none}}
/* Letterhead: the options in sections that fold (business.js letterheadSection); logo, background, footer columns, own labels and hints span
   the whole width of a section. Own labels are a row of two fields and „Entfernen“; one below the other on narrow screens. */
.business-section{border:1px solid var(--line);border-radius:10px;margin-bottom:12px;min-width:0}
.business-section>summary{cursor:pointer;padding:13px 16px;font-size:13px;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.business-section>.business-grid{padding:4px 16px 16px;margin:0;grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr))}
/* Choices span the section, so no option is cut off in any language. */
.business-section .business-grid>label:has(select){grid-column:1/-1}
.business-section .business-logo,.business-section .business-footer,.business-section .letterhead-labels,.business-section .business-grid>.help,
.business-section [data-label-add],.business-wide{grid-column:1/-1}
.business-section .business-logo,.business-section .business-footer{margin-bottom:0}
.business-background img{max-height:120px;border:1px solid var(--line);background:var(--surface)}
.business-link{display:inline-block;text-decoration:none;line-height:1.2}.business-actions .upload{display:inline-block;cursor:pointer}
.letterhead-labels:empty{display:none}
.letterhead-label{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:end;margin-bottom:10px}
.letterhead-label>label{display:grid;gap:7px;font-size:12px;font-weight:600;color:var(--ink-soft);min-width:0}
[data-label-add]{justify-self:start}
/* Import of a design file: hints amber (not an error), the preview pages below each other. */
.import-hint{border:1px solid var(--warn-line);background:var(--warn-bg);color:var(--warn-text);border-radius:9px;padding:10px 12px;margin:0;line-height:1.5;font-size:13px}
.import-hints summary{cursor:pointer;font-size:12px;font-weight:600;color:var(--ink-soft)}.import-hints ul{margin:8px 0 0 18px;padding:0;font-size:12px;line-height:1.6;color:var(--ink-soft)}
.import-preview img{width:100%;max-width:440px;display:block;border:1px solid var(--line);margin-bottom:10px;background:var(--surface)}
@media(max-width:900px){.business-grid{grid-template-columns:1fr 1fr}.business-footer{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.business-grid,.business-footer{grid-template-columns:1fr}.letterhead-label{grid-template-columns:1fr}[data-label-remove]{justify-self:start}
  .business-section>.business-grid{padding:4px 12px 14px}
  /* Letterhead designer on phones: text fields have 16 px there (frontend/styles.css, against the zoom of Safari), so a choice needs the whole
     width of the page – a long option („Цветная полоса между двумя линиями“) is cut off inside two frames. Form and preview lose the frame of the
     panel, the sections become rows with a line above and below (no side borders), their fields use the full width. Wider screens unchanged. */
  .business-letterhead>.panel{padding:0;border:0;border-radius:0;background:none;box-shadow:none}
  .business-letterhead .business-section{border-width:1px 0;border-radius:0;margin:0 0 -1px}
  .business-letterhead .business-section>summary{padding:14px 0}
  .business-letterhead .business-section>.business-grid{padding:4px 0 18px}
  .business-letterhead .business-form fieldset>[type=submit]{margin-top:18px}
  .business-letterhead .business-preview{margin-top:8px}}
/* Einstellungen → Austauschordner: long server paths need the full width. */
.panel.exchange-areas{max-width:none;container-type:inline-size}.exchange-areas h3{margin:22px 0 6px}.area-location{overflow-wrap:anywhere;font-family:ui-monospace,Consolas,monospace;font-size:11px}
/* The tables of all apps share their columns, so names, kinds, folders and entries stand in line down the whole page
   (exchange-areas.js colgroup; user wish of 17.11.2026). Narrow: columns as wide as their content, as before. */
.exchange-areas .business-table{table-layout:fixed}.exchange-areas .area-col-name{width:22%}.exchange-areas .area-col-kind{width:13%}
.exchange-areas .area-col-entered{width:22%}.exchange-areas .area-col-action{width:130px}.exchange-areas .business-table td:last-child{width:auto}
@container (max-width:640px){.exchange-areas .business-table{table-layout:auto}.exchange-areas .business-table colgroup{display:none}}
/* Einstellungen → Postfächer: addresses and provider messages may be long. */
.panel.mailboxes{max-width:none}.mailboxes td{overflow-wrap:anywhere}.mailboxes small.mailbox-error{color:var(--err-text)}.mailboxes .business-tag{margin-left:0}
/* Einstellungen → Aufbewahrung: one table per app, legal holds above (retention.js). A hold is a notice, not an error: amber. */
.retention-periods h3{margin:22px 0 6px}.retention-periods .business-tag,.retention-holds .business-tag{margin-left:0;margin-right:6px}
.retention-holds h3{margin:0 0 8px}
/* The tables of all apps share their columns, so every period, its value and what happens after it stand in line down the whole page
   (retention.js colgroup; user wish of 17.11.2026). Narrow (rows as blocks, business-catalog above): no columns. */
.retention-periods .business-table{table-layout:fixed}.retention-periods .retention-col-period{width:23%}.retention-periods .retention-col-after{width:25%}
.retention-periods .retention-col-action{width:112px}.retention-periods .business-table td:last-child{width:auto}
@container (max-width:640px){.retention-periods .business-table{table-layout:auto}.retention-periods .business-table colgroup{display:none}}
.retention-hold-notice{border:1px solid var(--warn-line);background:var(--warn-bg);color:var(--warn-text);border-radius:9px;padding:12px 14px;margin:0 0 16px;line-height:1.6;font-size:13px}
.business-tag.hold{background:var(--warn-bg);color:var(--warn-text)}
.business-grid .hold-wide,.business-grid .hold-apps{grid-column:1/-1}
.hold-apps{border:1px solid var(--line);border-radius:7px;padding:10px 12px;margin:0;min-width:0;display:flex;flex-wrap:wrap;gap:8px 20px}
.hold-apps legend{font-size:12px;font-weight:600;color:var(--ink-soft);padding:0 4px}.hold-apps .field-message{flex-basis:100%}
/* „Verwendet von“ under a period (retention_references() of the apps, e.g. the document classes of the DMS); in the dialog full width.
   Long lists of names wrap. */
.retention-used{margin-top:6px;font-size:12px;line-height:1.5;color:var(--muted)}.retention-used>span{color:var(--ink-soft);font-weight:600}
.retention-used ul{list-style:none;margin:2px 0 0;padding:0;display:grid;gap:2px}.retention-used li{overflow-wrap:anywhere}
.business-grid>.retention-used{grid-column:1/-1;margin:0}.retention-used-failed{margin:0 0 12px}
/* Holds of single records: the records as links (AIMSLinks) in the list; in the dialog the search with its hits and the chosen
   records, each with „Entfernen“. Long names wrap instead of widening the dialog. */
.hold-records{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:3px;font-size:12px}.hold-records li{overflow-wrap:anywhere}
.hold-record-app{color:var(--muted)}
.retention-holds a.aims-link{color:var(--brand-text);text-decoration:underline;text-underline-offset:2px}.retention-holds a.aims-link:hover{color:var(--brand-strong)}
.business-grid .hold-records-box,.business-grid>.hold-records{grid-column:1/-1}
.hold-records-box{border:1px solid var(--line);border-radius:7px;padding:10px 12px;margin:0;min-width:0;display:grid;gap:10px}
.hold-records-box legend{font-size:12px;font-weight:600;color:var(--ink-soft);padding:0 4px}
.hold-records-box>label{display:grid;gap:7px;font-size:12px;font-weight:600;color:var(--ink-soft)}
.hold-records-box .help{margin:0}.hold-search-status:empty{display:none}
.hold-hits{display:grid;gap:10px}.hold-hits:empty{display:none}
.hold-hit-group{display:grid;gap:5px}.hold-hit-app{margin:0;font-size:11px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.secondary.hold-hit{display:grid;gap:2px;justify-items:start;text-align:left;white-space:normal;overflow-wrap:anywhere;padding:9px 12px;font-size:12px;font-weight:600}
.hold-hit small{font-weight:400;color:var(--muted)}
.hold-chosen{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.hold-chosen li{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:6px}
.hold-chosen li.help{display:block;border:0;padding:0}
.hold-record-text{display:grid;gap:2px;min-width:0;font-size:12px;overflow-wrap:anywhere}.hold-record-text small{color:var(--muted)}
.hold-chosen .secondary{flex:none;padding:8px 12px}
/* Dialog of the settings (business.js, retention.js): head with „Schließen“ and footer with message and „Speichern“ stay in place,
   only the fields scroll – also on small screens. */
#business-dialog[open]{display:flex;flex-direction:column;padding:0;overflow:hidden}
#business-dialog-form{display:flex;flex-direction:column;gap:0;min-height:0;flex:1 1 auto}
#business-dialog-form>.dialog-heading{flex:none;padding:22px 26px 14px;border-bottom:1px solid var(--line)}
#business-dialog-form>.dialog-heading h2{overflow-wrap:anywhere}
#business-dialog-fields{flex:1 1 auto;min-height:0;overflow:auto;padding:18px 26px 6px;margin:0;align-content:start}
#business-dialog-error{flex:none;padding:10px 26px 0;line-height:1.5}#business-dialog-error:empty{display:none}
#business-dialog-save{flex:none;align-self:flex-start;margin:12px 26px 22px}
@media(max-width:600px){#business-dialog-form>.dialog-heading{padding:16px 16px 12px}#business-dialog-fields{padding:14px 16px 6px}#business-dialog-error{padding:10px 16px 0}#business-dialog-save{margin:12px 16px 16px}}
/* Einstellungen → Standorte & Kalender: year view of the company calendar. Public holidays green, closure days amber, half
   closure days half amber; weekends lighter. The list below names every day (the months are only an overview). */
.calendar-year h3{margin:0 0 14px}
.calendar-toolbar{align-items:flex-end}.calendar-toolbar>label{flex:1 1 220px;max-width:360px}
.calendar-nav{display:flex;align-items:center;gap:10px}.calendar-nav strong{font-size:16px;min-width:3em;text-align:center}
.calendar-summary{font-size:12px;color:var(--muted);line-height:1.7}
.calendar-months{display:grid;grid-template-columns:repeat(auto-fill,minmax(136px,1fr));gap:16px 14px;margin:4px 0 14px}
.calendar-month>strong{display:block;font-size:12px;font-weight:600;margin-bottom:6px;color:var(--ink)}.calendar-month>strong::first-letter{text-transform:uppercase}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;font-size:11px;text-align:center}
.calendar-grid b{font-size:9px;font-weight:600;color:var(--faint);padding-bottom:2px}
.calendar-grid span{padding:3px 0;border-radius:4px;line-height:1.3;color:var(--ink)}
.calendar-grid .weekend{color:var(--faint)}
.calendar-grid .holiday{background:var(--ok-bg);color:var(--ok-text);font-weight:650}
.calendar-grid .closure{background:var(--warn-bg);color:var(--warn-text);font-weight:650}
.calendar-grid .half{background:linear-gradient(135deg,var(--warn-bg) 50%,var(--surface) 50%);color:var(--warn-text);font-weight:650;box-shadow:inset 0 0 0 1px var(--warn-line)}
.calendar-grid .today{box-shadow:inset 0 0 0 2px var(--brand)}
.calendar-legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:11px;color:var(--ink-soft);margin:0 0 18px}
.calendar-legend span::before{content:"";display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px;vertical-align:-2px;background:var(--surface-3)}
.calendar-legend .holiday::before{background:var(--ok-bg)}.calendar-legend .closure::before{background:var(--warn-bg)}
.calendar-legend .half::before{background:linear-gradient(135deg,var(--warn-bg) 50%,var(--surface) 50%);box-shadow:inset 0 0 0 1px var(--warn-line)}
.business-tag.holiday{background:var(--ok-bg);color:var(--ok-text)}.business-tag.closure{background:var(--warn-bg);color:var(--warn-text)}
.calendar-year .business-tag{margin-left:0}
@media(max-width:600px){.panel.calendar-year{padding:18px 16px}.calendar-months{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}}
/* Einstellungen → Export & Import (frontend/settings-transfer.js): the export and import panels and the sections of the preview. */
.transfer-panel h3{margin-top:0}.transfer-panel .import-hint{margin:0 0 14px;max-width:720px}.transfer-panel .business-actions{flex-wrap:wrap}
.transfer-sections{display:grid;gap:10px}
.transfer-section{border:1px solid var(--line);border-radius:10px;padding:10px 14px;margin:0;min-width:0;display:grid;gap:6px}
.transfer-section>.checkbox-label{display:flex;align-items:center;gap:9px;overflow-wrap:anywhere}.transfer-section>.checkbox-label input{flex:none}
.transfer-section .help{margin:0;overflow-wrap:anywhere}.transfer-section li{overflow-wrap:anywhere}
.transfer-errors{margin:0;padding-left:18px;color:var(--err-text);font-size:12px;line-height:1.6}
ul.import-hint{padding-left:30px}.transfer-setup{border:1px solid var(--line);border-radius:10px;padding:10px 14px;min-width:0}
.transfer-setup .business-grid{margin:8px 0 0}.transfer-setup:disabled{opacity:.55}
.transfer-include{border:1px solid var(--line);border-radius:10px;padding:8px 14px 10px;margin:0 0 14px;display:flex;flex-wrap:wrap;gap:6px 18px;min-width:0}
.transfer-include legend{padding:0 4px}.transfer-include .checkbox-label{display:flex;align-items:center;gap:8px;margin:0}
/* Einstellungen → Verkaufskalkulation (frontend/pricing.js): the live example of the form, the chain as steps that wrap on small screens */
.pricing-example{padding:12px 14px;border-left:3px solid var(--info-line);border-radius:7px;background:var(--surface-2);font-size:12px;color:var(--ink-soft);min-width:0}
.pricing-example:empty{display:none}.pricing-example .help{margin:6px 0 0;overflow-wrap:anywhere}
.pricing-chain{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:8px 0 0;padding:0}
.pricing-chain li{display:grid;gap:2px;padding:6px 10px;border:1px solid var(--line);border-radius:7px;background:var(--surface);min-width:0}
.pricing-chain li span{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.pricing-chain li b{color:var(--ink);white-space:nowrap}
/* Einstellungen → Allgemein (settings.js): the group „Anmeldung und Passwörter“ and the hint about short passwords (amber, never red). */
#general-form .general-heading{margin:26px 0 14px}#general-form .general-hint{margin:12px 0;max-width:720px}#general-form .general-hint[hidden]{display:none}
