:root { color-scheme: light; background: #f3f6f6; color: #182d35; font: 16px/1.5 system-ui, sans-serif; }
body { margin: 0; }
main { width: min(100% - 2rem, 64rem); margin: 2rem auto; }
header { border-bottom: 1px solid #bed3d7; margin-bottom: 1rem; }
h1, h2 { line-height: 1.2; }
[hidden] { display: none !important; }
section, form { min-width: 0; }
#session, .columns > section, #administration, #login { border: 1px solid #cbdadd; background: white; padding: 1rem; border-radius: .5rem; margin-block: 1rem; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; }
form { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
form h2 { flex-basis: 100%; margin-top: 0; }
label { display: grid; gap: .25rem; }
input, select, button { max-width: 100%; box-sizing: border-box; font: inherit; padding: .35rem .55rem; }
button { background: #16645b; color: white; border: 1px solid #16645b; border-radius: .25rem; cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
li { margin-bottom: .45rem; overflow-wrap: anywhere; }
#status { min-height: 1.5em; color: #753017; }
details { margin-block: .6rem; }

#conflict { background: #fff5dd; border: 1px solid #e1be70; padding: .75rem; margin: .75rem 0; }
#workboard { border-top: 1px solid #bed3d7; margin-top: 1rem; }
#workboard > details { padding: .65rem; border: 1px solid #cbdadd; background: white; }
#assignee-options > label { display: flex; align-items: center; }
.report-month { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .5rem; margin-block: .55rem; }
#report-export { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
@media print {
  .print-board-report #session, .print-board-report #status, .print-board-report #workspace > :not(#workboard),
  .print-board-report #workboard > :not(#board-report), .print-board-report #report-filters,
  .print-board-report #report-export, .print-board-report #board-report > summary { display: none !important; }
  .print-board-report main { width: 100%; margin: 0; }
}
#team { border-top: 1px solid #bed3d7; margin-top: 1rem; }
#team-profiles > li, #team-absences > li, #assignee-options > label {
  border-inline-start: .35rem solid transparent;
  padding-inline-start: .45rem;
}
#team-week-view { overflow-x: auto; margin-block: .5rem; }
#team-week-view table { border-collapse: collapse; min-width: 35rem; width: 100%; }
#team-week-view th, #team-week-view td { border: 1px solid #cbdadd; padding: .35rem; text-align: start; }
#team-week-view td { border-inline-start: .3rem solid #cbdadd; }
#planner { border-top: 1px solid #bed3d7; margin-top: 1rem; min-width: 0; }
#planner-grid { overflow: auto; max-height: 42rem; margin-block: .75rem; }
#planner-grid table { border-collapse: collapse; width: max-content; min-width: 100%; }
#planner-grid td, #planner-grid th { border: 1px solid #cbdadd; padding: .3rem; min-width: 5rem; }
#planner-grid th { position: sticky; top: 0; background: #f3f6f6; }
#planner-grid button { border-inline-start: .35rem solid #28706b; }
#planner-lanes { display: flex; gap: .5rem; flex-wrap: wrap; }
#planner-lanes label, #planner-event-people label, #planner-event-resources label { display: flex; gap: .25rem; align-items: center; }
.planner-period { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: .4rem; }
.planner-period section { min-width: 0; padding: .35rem; border: 1px solid #cbdadd; }
#planner-calendar-views { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: .6rem; }
.planner-year { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .65rem; }
.planner-year section, #planner-year-detail { padding: .55rem; border: 1px solid #cbdadd; border-radius: .4rem; }
.planner-year h3, #planner-year-detail h3 { margin: 0 0 .4rem; }
.planner-year-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .18rem; text-align: center; }
.planner-year-days span { font-size: .72rem; }
#planner-grid .planner-year-days button { padding: .1rem; border-inline-start-width: 1px; min-height: 2rem; min-width: 0; }
#planner-grid .planner-year-days .planner-has-events { background: #d8edff; color: #123f65; font-weight: 800; }
#planner-grid .planner-year-days [aria-pressed="true"] { outline: 2px solid #286ca0; outline-offset: -2px; }
#planner-grid .planner-year-days [aria-current="date"] { border: 2px solid #a72637; }
#planner-year-detail { margin-bottom: .6rem; }
#planner-year-detail button { margin: 0 .3rem .3rem 0; }
.planner-absence { background: #fff5dd; }
.planner-continuation { background: #e0f1ed; }
.planner-free { cursor: pointer; }
.planner-free:hover { background: #e9f4ff; }
#planner-grid .planner-today { background: #e7f1ff; border-color: #4780b4; }
#planner-grid .planner-now > td:first-child { background: #a72637; color: white; font-weight: 700; }
#planner-grid button[draggable="true"], #planner-unassigned button[draggable="true"] { cursor: grab; }
#finance { border-top: 1px solid #bed3d7; margin-block: 1rem; }
#finance-exports { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
@media print {
  .print-finance #session, .print-finance #status, .print-finance #workspace > :not(#finance),
  .print-finance #finance-filters, .print-finance #finance-edit, .print-finance #finance-output button, .print-finance #finance-exports { display: none !important; }
}
#documents { border-top: 1px solid #bed3d7; margin-block: 1rem; }
#documents details { padding: .6rem; border: 1px solid #cbdadd; background: white; }
#docs-blocks, .docs-actions, #docs-editor > fieldset, .docs-block, #docs-contact > div { display: flex; flex-wrap: wrap; gap: .5rem; min-width: 0; }
#docs-blocks { flex-basis: 100%; }
.docs-block { width: 100%; box-sizing: border-box; }
.docs-block textarea { width: min(19rem, 65vw); }
#docs-paper { margin-block: 1rem; padding: clamp(.6rem,3vw,2rem); background: white; border-top: .35rem solid #265c58; overflow-wrap: anywhere; }
#docs-paper p { white-space: pre-wrap; }
#docs-paper img { display: block; max-width: min(100%, 12rem); max-height: 5rem; }
.docs-font-serif { font-family: Georgia, serif; }
.docs-font-mono { font-family: monospace; }
.docs-highlight { background-color: #fff3b0; }
@page docs-landscape { size: A4 landscape; }
@page docs-portrait { size: A4 portrait; }
.docs-landscape { page: docs-landscape; }
.docs-portrait { page: docs-portrait; }
.docs-offer.docs-portrait { page: docs-offer-portrait; }
.docs-offer.docs-landscape { page: docs-offer-landscape; }
@page docs-offer-portrait {
  size: A4 portrait;
  margin: 14mm;
  @bottom-right { content: "Seite " counter(page) " / " counter(pages); font-size: 9pt; }
}
@page docs-offer-landscape {
  size: A4 landscape;
  margin: 14mm;
  @bottom-right { content: "Seite " counter(page) " / " counter(pages); font-size: 9pt; }
}
#docs-paper.docs-offer { line-height: 1.4; }
.offer-masthead, .offer-head { border-bottom: 1px solid #d9e2dc; padding-bottom: .65rem; margin-bottom: .85rem; }
.offer-masthead small { display: block; color: #53655a; letter-spacing: .035em; font-size: .75em; }
#docs-paper .offer-masthead p { margin: .35rem 0 0; }
#docs-paper .offer-masthead img { margin: .35rem 0; width: auto; }
.offer-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .7rem 1.1rem; }
.offer-head address { font-style: normal; }
.offer-head dl, .offer-totals { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem .75rem; margin: 0; }
.offer-head dt, .offer-totals dt { font-weight: 650; }
.offer-head dd, .offer-totals dd { margin: 0; }
.offer-positions { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .88em; }
.offer-positions th, .offer-positions td { padding: .45rem .34rem; text-align: start; vertical-align: top; border-bottom: 1px solid #d9e2dc; }
.offer-positions thead { background: #edf4ef; }
.offer-positions thead th:nth-child(1) { width: 10%; }
.offer-positions thead th:nth-child(2) { width: 13%; }
.offer-positions thead th:nth-child(4), .offer-positions thead th:nth-child(5) { width: 18%; }
.offer-positions :is(thead th:nth-last-child(-n+2), .offer-row-line td:nth-last-child(-n+2), .offer-row-subtotal td:last-child),
.offer-totals dd { text-align: end; font-variant-numeric: tabular-nums; }
.offer-positions :is(.offer-row-group, .offer-row-subtotal) { background: #f5f8f6; }
.offer-row-line strong { display: block; }
.offer-row-line small { display: block; color: #53655a; }
#docs-paper .offer-row-line img { max-width: min(100%, 9rem); max-height: 5rem; height: auto; margin-top: .35rem; }
.docs-line-image { display: flex; align-items: end; flex-wrap: wrap; gap: .4rem; width: 100%; }
.docs-line-image img { max-width: 6rem; max-height: 4rem; }
#docs-paper .offer-positions p { margin: .25rem 0 0; }
.offer-totals { margin: .8rem 0 1rem auto; width: min(100%, 24rem); }
.offer-totals :nth-last-child(-n+2) { border-top: 1px solid #748d7b; padding-top: .3rem; font-weight: 750; }
.docs-offer footer { margin-top: 1.5rem; padding-top: .55rem; border-top: 1px solid #d9e2dc; white-space: pre-wrap; font-size: .8em; }
@media screen and (max-width: 540px) {
  .offer-head { grid-template-columns: minmax(0, 1fr); }
  .offer-positions { font-size: .72em; }
  .offer-positions th, .offer-positions td { padding-inline: .17rem; }
}
@media print {
  #docs-paper.docs-offer { margin: 0; padding: 0; }
  .offer-positions thead { display: table-header-group; }
  .offer-positions .offer-row-group { break-after: avoid; }
  .offer-totals, .offer-masthead, .offer-head { break-inside: avoid; }
}
@media print {
  .print-document #session, .print-document #status, .print-document #workspace > :not(#documents),
  .print-document #documents > :not(#docs-preview-panel), .print-document #docs-print { display: none !important; }
  .print-document main { width: 100%; margin: 0; }
}
#project-map { border-top: 1px solid #bed3d7; margin-block: 1rem; }
#map-picture svg { display:block; width:min(100%,27rem); height:auto; background:#eff5f7; margin-block:.6rem; }
.map-outline { fill:#d8e4dc; stroke:#658574; }
#map-picture circle { stroke:white; stroke-width:2; cursor:pointer; }
#map-picture circle:focus { stroke:#172c23; stroke-width:3; }
#map-photo-view img { max-width:100%; max-height:22rem; object-fit:contain; }
#maintenance { border-top: 1px solid #bed3d7; margin-block: 1rem; }
#maintenance details { padding: .6rem; border: 1px solid #cbdadd; background: white; }
#claims { border-top: 1px solid #bed3d7; margin-block: 1rem; }
#catalog { border-top: 1px solid #bed3d7; margin-block: 1rem; }
#catalog-import textarea { max-width: 100%; width: min(32rem,72vw); }
#catalog-offer-image-preview { max-width: 8rem; max-height: 5rem; object-fit: contain; }

.office-grid { min-width: 0; margin-block: .8rem; }
.grid-toolbar, .grid-footer, .catalog-actions {
  display: flex; align-items: end; flex-wrap: wrap; gap: .45rem; margin-block: .5rem;
}
.grid-toolbar > label { flex: 1 1 11rem; max-width: 26rem; }
.grid-footer { align-items: center; }
.grid-footer > span { margin-inline-end: auto; color: #38535a; font-variant-numeric: tabular-nums; }
.grid-settings { margin: 0; }
.grid-settings summary { cursor: pointer; padding: .35rem .6rem; border: 1px solid #b7cbcb; border-radius: .25rem; }
.grid-setting-list { display: grid; gap: .35rem; padding: .4rem; }
.grid-column-setting { display: grid; grid-template-columns: minmax(7rem, 1fr) 5rem auto auto; align-items: center; gap: .3rem; }
.grid-column-setting label { display: flex; align-items: center; }
.grid-viewport { overflow: auto; max-height: min(60vh, 34rem); border: 1px solid #aec8ca; border-radius: .35rem; }
.grid-viewport table { table-layout: fixed; width: max-content; border-spacing: 0; font-size: .9rem; }
.grid-selection-column { width: 2.6rem; }
.grid-viewport thead { position: sticky; z-index: 1; top: 0; background: #e8f2f1; }
.grid-viewport th, .grid-viewport td {
  text-align: start; padding: .2rem .45rem; border-inline-end: 1px solid #d2e1e1;
  border-block-end: 1px solid #d2e1e1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.grid-viewport th { position: relative; }
.grid-viewport th button, .grid-viewport td button {
  color: #123d39; background: transparent; border: 0; padding: .2rem .25rem; text-align: start;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.grid-viewport th button { width: calc(100% - .4rem); font-weight: 650; }
.grid-viewport :focus-visible, .grid-toolbar :focus-visible { outline: 2px solid #16645b; outline-offset: -2px; }
.grid-viewport td input[type="search"] { width: 100%; min-width: 0; padding: .15rem .25rem; border: 1px solid #b7cbcb; border-radius: .2rem; }
.grid-viewport tbody tr:nth-child(even) { background: #f2f8f7; }
.grid-viewport tbody tr[data-selected="true"] { background: #d1eae5; }
.grid-resize { position: absolute; inset: 0 0 0 auto; width: .5rem; cursor: col-resize; touch-action: none; }
#catalog-picker { box-sizing: border-box; width: min(96vw, 79rem); max-height: 92vh; border: 1px solid #aec8ca; border-radius: .55rem; }
#catalog-picker::backdrop { background: #182d3580; }
#catalog-picker h2 { margin: 0; }
#catalog-record textarea { max-width: 100%; box-sizing: border-box; font: inherit; }
#catalog-format label { display: flex; align-items: center; }
#catalog-text-preview { flex-basis: 100%; overflow-wrap: anywhere; white-space: pre-wrap; }
#catalog-text-preview[data-bold="true"] { font-weight: bold; }
#catalog-text-preview[data-italic="true"] { font-style: italic; }
#catalog-text-preview[data-underline="true"] { text-decoration: underline; }
#catalog-attachments { flex-basis: 100%; }
@media (max-width: 48rem) {
  .grid-toolbar button, .grid-footer button, .grid-settings summary { min-height: 2.65rem; }
  .grid-viewport { max-height: 50vh; }
  .grid-viewport tbody :is(td, button) { min-height: 2.5rem; }
  .grid-viewport input[type="checkbox"] { min-width: 1.25rem; min-height: 1.25rem; }
  #catalog-picker { max-height: 90dvh; }
}
#board-projects tbody td:first-child { box-shadow: inset 4px 0 var(--grid-row-accent, transparent); }

body[data-workspace-layout="modern"] .planner-modern-timeline {
  display: grid;
  grid-template-columns: 4.4rem;
  grid-auto-columns: minmax(10rem, 1fr);
  grid-auto-flow: column;
  width: 100%;
}
body[data-workspace-layout="modern"] .planner-modern-week { grid-auto-columns: minmax(8rem, 1fr); }
.planner-modern-timeline :is(.planner-time-axis, .planner-time-column) { min-width: 0; }
.planner-modern-timeline :is(.planner-time-axis, .planner-time-column) > strong {
  position: sticky;
  top: 0;
  z-index: 2;
  display: block;
  height: 2.6rem;
  padding: .6rem .45rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: .82rem;
}
.planner-time-axis { position: sticky; left: 0; z-index: 3; background: var(--paper); }
.planner-time-labels, .planner-time-track { position: relative; height: var(--planner-track-height); }
.planner-time-labels time { position: absolute; inset-inline-end: .65rem; font-size: .75rem; color: var(--muted); }
.planner-time-track {
  border-inline-end: 1px solid var(--line);
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--planner-slot-height));
}
.planner-time-block {
  position: absolute;
  display: flex;
  overflow: hidden;
  border-radius: .4rem;
}
#planner-grid .planner-time-block > button, #planner-grid .planner-modern-card, #planner-unassigned .planner-modern-card {
  color: var(--ink);
  background: var(--paper);
  background: color-mix(in srgb, var(--planner-type-color) 15%, var(--paper));
  border: 1px solid var(--planner-type-color);
  border-inline-start-width: .35rem;
  text-align: start;
  overflow-wrap: anywhere;
}
#planner-grid .planner-time-block > button {
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: .2rem .42rem;
  font-size: .82rem;
}
#planner-grid .planner-time-block:has(.planner-time-edge) > button { padding-block: .45rem; }
.planner-time-edge {
  position: absolute;
  inset-inline: .35rem 0;
  height: 7px;
  cursor: ns-resize;
}
.planner-time-edge-top { top: 0; }
.planner-time-edge-bottom { bottom: 0; }
.planner-time-edge:hover { background: var(--planner-type-color); }
.planner-block-time, .planner-block-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.planner-block-time { font-size: .72rem; }
.planner-block-meta {
  display: block;
  margin-top: .15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .72rem;
  font-weight: 500;
  color: var(--muted);
}
.planner-time-labels { border-inline-end: 1px solid var(--line); }
.planner-time-labels time { background: var(--paper); font-variant-numeric: tabular-nums; }
.planner-time-column > strong time { font-weight: 500; color: var(--muted); }
.planner-drop-marker {
  position: absolute;
  inset-inline: 0;
  z-index: 2;
  pointer-events: none;
  border-top: 2px dashed var(--green);
  background: var(--paper);
  color: var(--green);
  font-size: .72rem;
}
.planner-time-now { position: absolute; inset-inline: 0; border-top: 2px solid #a72637; pointer-events: none; z-index: 1; }
body[data-workspace-layout="modern"] .planner-period ul { list-style: none; margin: .4rem 0 0; padding: 0; }
body[data-workspace-layout="modern"] .planner-period li + li { margin-top: .25rem; }
.planner-project-days { display: block; margin: .15rem 0 .35rem; color: var(--muted); }
body[data-workspace-layout="modern"] .planner-month-grid {
  grid-template-columns: repeat(7, minmax(5.8rem, 1fr));
  min-width: 43rem;
  gap: .3rem;
}
.planner-month-weekday { padding-inline: .35rem; color: var(--muted); font-size: .8rem; }
.planner-month-grid section { min-height: 5.5rem; background: var(--paper); }
#planner-grid .planner-month-grid :is(.planner-month-day, .planner-month-add) {
  padding: .23rem .35rem;
  min-height: 1.7rem;
  border-inline-start-width: 1px;
  font-size: .76rem;
}
.planner-month-add { float: inline-end; }
#planner-grid .planner-month-grid .planner-modern-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .32rem;
  width: 100%;
  min-height: 1.75rem;
  padding: .2rem .28rem;
  font-size: .76rem;
  border-inline-start-width: .2rem;
}
.planner-month-grid .planner-modern-card time { font-variant-numeric: tabular-nums; }
.planner-month-grid .planner-modern-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
