:root {
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  color:#172c40;
  background:#f4f7fa;
  font-size:16px;
  line-height:1.5;
  --blue:#165dfb;
  --ink:#142a40;
  --muted:#627488;
  --line:#e5ebf1;
  --green:#168068;
}
.ocr-result { grid-column: 1 / -1; }
.ocr-result pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 22rem; overflow: auto; font-size: .875rem; }
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
a {
  color:#175cd3;
  text-decoration:none;
}
a:hover {
  text-decoration:underline;
}
button,input,select,textarea {
  font:inherit;
}
button,a,input,select,textarea {
  touch-action:manipulation;
}
button {
  cursor:pointer;
}
:focus-visible {
  outline:3px solid #ffb545;
  outline-offset:3px;
}
h1,h2,h3,p {
  margin-top:0;
}
h1 {
  font-size:2rem;
  line-height:1.2;
  letter-spacing:-.055rem;
  margin-bottom:.6rem;
}
h2 {
  font-size:1.05rem;
  margin-bottom:1rem;
}
h3 {
  font-size:1rem;
}
small,.small {
  font-size:.875rem;
}
small {
  display:block;
  color:var(--muted);
}
.muted {
  color:var(--muted);
}
.positive {
  color:var(--green);
}
.sidebar {
  width:250px;
  position:fixed;
  inset:0 auto 0 0;
  background:#10283e;
  color:#fff;
  display:flex;
  flex-direction:column;
  padding:30px 20px 20px;
  overflow-y:auto;
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:1.9rem;
  font-weight:750;
  letter-spacing:-1.5px;
  color:inherit;
  margin:0 10px 44px;
  text-decoration:none!important;
}
.brand-mark {
  display:inline-grid;
  place-items:center;
  background:#4ce3ba;
  color:#10283e;
  width:36px;
  height:36px;
  font-size:1.9rem;
  border-radius:10px;
  line-height:1;
}
.brand-dot {
  color:#4ce3ba;
  margin-left:-9px;
}
.business-label {
  font-size:.75rem;
  letter-spacing:.1em;
  color:#9cb0c2;
  padding:0 12px;
  margin-bottom:10px;
}
.business-switch {
  border-bottom:1px solid #ffffff1a;
  padding-bottom:20px;
}
.business-switch a {
  display:flex;
  gap:10px;
  align-items:center;
  color:#d4e0ec;
  padding:10px;
  border-radius:8px;
  font-size:.875rem;
}
.business-switch a[aria-current] {
  background:#ffffff12;
  color:#fff;
}
.business-switch small {
  color:#a4b6c6;
  font-size:.75rem;
}
.business-initial {
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:30px;
  height:32px;
  border:1px solid #ffffff36;
  border-radius:7px;
  color:#76e5c7;
}
.business-switch .add-business {
  color:#a4b6c6;
  font-size:.875rem;
  padding-top:14px;
}
.main-nav {
  padding:24px 0;
  display:grid;
  gap:8px;
}
.main-nav a {
  flex-shrink: 0;
  white-space: nowrap;
  padding:12px 14px;
  border-radius:8px;
  color:#afc0d0;
  font-size:.95rem;
  display:flex;
  gap:13px;
  align-items:center;
}
.main-nav a span {
  font-size:1.35rem;
  width:22px;
  line-height:1;
}
.main-nav a[aria-current] {
  background:#23425c;
  color:#fff;
  box-shadow:inset 3px 0 #55dbb9;
}
.main-nav a:hover,.business-switch a:hover {
  background:#ffffff12;
  text-decoration:none;
}
.sidebar-note {
  color:#708da5;
  font-size:.875rem;
  padding:24px 14px;
  margin-top:auto;
}
.user-menu {
  border-top:1px solid #ffffff1a;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding-top:20px;
  font-size:.875rem;
  align-items:center;
}
.user-menu small {
  color:#91a8bb;
  font-size:.75rem;
}
.avatar {
  background:#34536c;
  border-radius:50%;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
}
.user-menu form {
  margin-left:44px;
}
.logout {
  border:0;
  padding:0;
  background:transparent;
  color:#afc0d0;
  font-size:.875rem;
}
.workspace {
  margin-left:250px;
  min-height:100vh;
}
.topbar {
  background:#fff;
  min-height:74px;
  padding:20px 40px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  font-size:.875rem;
}
.tax-badge {
  border:1px solid #d5eade;
  background:#f2faf6;
  padding:6px 12px;
  color:#31775a;
  border-radius:20px;
  font-size:.75rem;
}
main {
  padding:2.375rem 2.5rem;
  max-width:1600px;
  margin:auto;
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1.25rem;
  margin-bottom:1.75rem;
}
.page-heading p {
  margin-bottom:0;
}
.eyebrow {
  color:#6a8298;
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.13em;
  margin-bottom:10px!important;
}
.actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:var(--blue);
  color:#fff;
  border:1px solid var(--blue);
  border-radius:7px;
  padding:0.6875rem 1.0625rem;
  font-size:.875rem;
  font-weight:650;
  text-align:center;
  min-height:2.75rem;
  white-space:nowrap;
}
.button:hover {
  background:#124cd0;
  text-decoration:none;
}
.button.secondary {
  background:#fff;
  color:#29435b;
  border-color:#d4dee8;
}
.button.secondary:hover {
  background:#f1f5f9;
}
.button.subtle {
  background:#eef4ff;
  color:#175cd3;
  border-color:transparent;
}
.button.danger {
  background:#fff;
  color:#b42e3b;
  border-color:#edc8ce;
}
.button.compact {
  padding:0.5rem 0.75rem;
}
.card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:1.5rem;
  margin-bottom:1.5rem;
  box-shadow:0 3px 8px #17354f03;
}
.card-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}
.card-heading h2 {
  margin:0;
}
.card-heading p {
  margin:5px 0 0;
}
.card-heading>a {
  font-size:.875rem;
}
.stats-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.stat {
  padding:22px 26px;
}
.stat>span {
  font-size:.875rem;
  color:var(--muted);
}
.stat>strong {
  display:block;
  font-size:2rem;
  font-weight:650;
  letter-spacing:-.05rem;
  margin:8px 0;
}
.stat strong small {
  display:inline;
  font-size:1.3rem;
  color:inherit;
  font-weight:400;
}
.stat p {
  font-size:.75rem;
  color:#72869a;
  margin:0;
}
.dashboard-grid {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:0 24px;
}
.task-card,.bank-card {
  min-height:290px;
}
.task {
  display:flex;
  align-items:center;
  gap:12px;
  color:inherit;
  padding:14px 0;
  border-bottom:1px solid #f0f3f6;
}
.task:last-child {
  border:0;
  padding-bottom:0;
}
.task:hover {
  text-decoration:none;
}
.task strong {
  font-size:.875rem;
}
.task small {
  font-size:.75rem;
  margin-top:3px;
}
.task-icon {
  width:40px;
  height:40px;
  border-radius:10px;
  display:grid;
  place-items:center;
  font-size:1.2rem;
}
.blue {
  background:#edf3ff;
  color:#2464cd;
}
.green {
  background:#eaf7f2;
  color:#218364;
}
.violet {
  background:#f1effa;
  color:#7760b8;
}
.count {
  margin-left:auto;
  font-size:.875rem;
  background:#f0f4f8;
  border-radius:7px;
  min-width:30px;
  padding:3px 9px;
  text-align:center;
}
.pill {
  display:inline-block;
  white-space:nowrap;
  font-size:.75rem;
  color:#597084;
  background:#f0f4f8;
  border-radius:6px;
  padding:4px 9px;
}
.pill.success {
  background:#e9f7f0;
  color:#23764e;
}
.pill.warning {
  background:#fff3e3;
  color:#975c15;
}
.bank-logo {
  display:grid;
  place-items:center;
  background:#182a40;
  color:#fff;
  border-radius:8px;
  width:32px;
  height:32px;
  font-weight:700;
}
.bank-card>.muted {
  font-size:.875rem;
}
.account-number {
  font-size:.875rem;
  margin:4px 0 12px;
  color:#7c8c9c;
}
.bank-balance {
  font-size:2rem;
  letter-spacing:-.06rem;
}
.bank-card .actions {
  margin-top:20px;
}
.chart-card {
  min-width:0;
}
.year-switch {
  display:flex;
  gap:14px;
  align-items:center;
  font-size:.875rem;
}
.year-switch a {
  font-size:1.4rem;
  color:#7890a5;
  padding:3px;
}
.chart-legend {
  display:flex;
  gap:18px;
  font-size:.75rem;
  color:var(--muted);
  margin:22px 0;
}
.chart-legend span {
  display:flex;
  gap:6px;
  align-items:center;
}
.chart-legend i {
  width:9px;
  height:9px;
  border-radius:3px;
}
.income-key,.bar.income {
  background:#54bfa4;
}
.expense-key,.bar.expense {
  background:#adc5e9;
}
.chart {
  height:190px;
  display:flex;
  gap:9px;
  background:repeating-linear-gradient(to top,transparent 0,transparent 44px,#eef2f6 44px,#eef2f6 45px);
  padding-top:10px;
}
.chart-month {
  flex:1;
  display:flex;
  flex-direction:column;
  min-width:0;
  text-align:center;
}
.bars {
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:3px;
  height:160px;
}
.bar {
  width:12px;
  max-width:40%;
  border-radius:3px 3px 0 0;
}
.chart-month>span {
  font-size:.75rem;
  color:#7a8ea2;
  margin-top:10px;
}
.year-card {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  background:linear-gradient(135deg,#eff8f6,#f5f9fd);
}
.year-card>strong {
  font-size:3rem;
  font-weight:550;
  line-height:1.2;
  margin:8px 0;
}
.year-card h2 {
  margin:8px 0;
}
.year-card p.muted {
  font-size:.875rem;
  max-width:270px;
}
.year-card a {
  font-size:.875rem;
  margin-top:12px;
}
table {
  width:100%;
  border-collapse:collapse;
  font-size:.875rem;
  text-align:left;
}
th {
  font-weight:500;
  color:#72879a;
  font-size:.75rem;
  padding:0.875rem 0.75rem;
  background:#f8fafc;
  border-bottom:1px solid var(--line);
  white-space:nowrap;
}
td {
  padding:1.0625rem 0.75rem;
  border-bottom:1px solid #edf1f5;
  vertical-align:middle;
}
tr:last-child td {
  border-bottom:0;
}
td strong {
  font-weight:600;
}
td small {
  margin-top:4px;
  font-size:.75rem;
  max-width:350px;
}
td a {
  color:#23465e;
}
.text-right {
  text-align:right;
}
.amount {
  font-weight:600;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.table-scroll {
  overflow-x:auto;
}
.empty {
  text-align:center;
  color:var(--muted);
  padding:46px 20px;
  line-height:1.9;
}
.tabs {
  display:flex;
  gap:24px;
  overflow:auto;
  border-bottom:1px solid var(--line);
  margin:0 0 20px;
}
.tabs a {
  padding:0 0 15px;
  color:var(--muted);
  font-size:.875rem;
  white-space:nowrap;
}
.tabs a[aria-current] {
  color:var(--blue);
  border-bottom:2px solid var(--blue);
  font-weight:650;
}
.form-card {
  max-width:950px;
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.375rem;
}
.form-grid>div,.form-stack>div {
  display:flex;
  flex-direction:column;
  gap:7px;
}
.form-grid>div:has(textarea) {
  grid-column:1/-1;
}
label {
  font-size:.875rem;
  font-weight:600;
}
input,select,textarea {
  width:100%;
  border:1px solid #cbd6e0;
  background:#fff;
  border-radius:6px;
  padding:0.625rem 0.75rem;
  color:#172c40;
  min-height:2.75rem;
}
select {
  appearance:none;
  padding-right:36px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%23627488' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
}
textarea {
  resize:vertical;
  min-height:5.625rem;
  max-height:260px;
}
input[type=checkbox] {
  width:20px;
  min-height:20px;
  accent-color:var(--blue);
}
.form-grid>.form-actions {
  grid-column:1/-1;
  display:flex;
  flex-direction:row;
  margin-top:8px;
}
.form-actions {
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:24px;
}
.helptext {
  font-size:.875rem;
  color:var(--muted);
}
.errorlist {
  color:#b1263d;
  font-size:.875rem;
  padding-left:20px;
}
.errorlist.nonfield {
  grid-column:1/-1;
}
.notice {
  padding:14px 18px;
  background:#eef4ff;
  border-radius:8px;
  font-size:.875rem;
  color:#305a8d;
  margin-bottom:24px;
}
.messages {
  margin-bottom:22px;
}
.message {
  padding:14px 18px;
  border:1px solid #c7e8d8;
  border-radius:8px;
  background:#edf9f2;
  color:#286144;
  font-size:.875rem;
}
.message.error {
  border-color:#f0c9cf;
  background:#fff1f2;
  color:#a22f41;
}
.search-form {
  display:flex;
  gap:10px;
  max-width:550px;
  margin-bottom:24px;
}
.line-form {
  display:grid;
  grid-template-columns:3fr 1fr 1fr 1.5fr auto;
  gap:16px;
  align-items:start;
  padding:20px 0;
  border-top:1px solid var(--line);
}
.line-form h3 {
  grid-column:1/-1;
  margin:0;
  font-weight:550;
}
.line-form>div {
  display:flex;
  flex-direction:column;
  gap:8px;
}
.line-form .errorlist {
  margin:0;
}
.line-form input[type=hidden] {
  display:none;
}
.invoice-lines #add-line {
  margin-top:16px;
}
#invoice-form #id_notes { height:3.5rem; min-height:3.5rem; }
.detail-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
  margin:24px 0;
}
.detail-grid dt {
  font-size:.875rem;
  color:var(--muted);
  margin-bottom:8px;
}
.detail-grid dd {
  margin:0;
  font-weight:550;
}
.detail-amount {
  font-size:1.6rem;
}
.card.document-preview { padding:0; overflow:hidden; }
.document-preview>iframe { display:block; width:100%; height:75dvh; min-height:24rem; border:0; }
.document-preview>img { display:block; width:100%; max-height:75dvh; object-fit:contain; }
.hash {
  margin-top:24px;
  font-size:.875rem;
  color:var(--muted);
}
.hash code {
  display:block;
  overflow-wrap:anywhere;
  margin-top:10px;
}
.finance-account {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.finance-account h2 {
  margin:8px 0;
}
.finance-account p {
  margin:0;
}
.assign-form {
  display:flex;
  gap:8px;
}
.assign-form select {
  max-width:260px;
  min-width:160px;
  font-size:.875rem;
}
.text-button {
  border:0;
  background:none;
  color:#697d90;
  font-size:.75rem;
  padding:7px 0;
}
.delete-form {
  border-top:1px solid var(--line);
  margin-top:30px;
  padding-top:24px;
}
.delete-form p {
  margin:8px 0 0;
}
footer {
  display:flex;
  justify-content:space-between;
  color:#8a9baa;
  font-size:.75rem;
  padding:0 40px 24px;
  max-width:1600px;
  margin:auto;
}
.login-workspace {
  min-height:100vh;
  display:grid;
  place-items:center;
  background:radial-gradient(ellipse at top right,#dceae9,transparent 65%);
}
.login-workspace main {
  width:100%;
  max-width:530px;
  padding:24px;
}
.login-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:40px;
  box-shadow:0 20px 70px #16385212;
}
.login-card .brand {
  margin:0 0 36px;
}
.login-card h1 {
  font-size:1.8rem;
}
.form-stack {
  display:grid;
  gap:20px;
  margin:28px 0;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.skip-link {
  position:fixed;
  left:12px;
  top:-80px;
  z-index:10;
  background:#fff;
  padding:12px;
}
.skip-link:focus {
  top:12px;
}
@media(min-width:1450px) {
  .dashboard-grid {
    grid-template-columns:1fr 1fr 1.2fr;
  }
  .chart-card {
    grid-column:3;
    grid-row:1/3;
  }
  .year-card {
    grid-column:1/3;
    flex-direction:row;
    align-items:center;
    gap:22px;
    min-height:100px;
  }
  .year-card .eyebrow {
    margin:0!important;
  }
  .year-card>strong {
    font-size:2rem;
  }
  .year-card h2,.year-card p,.year-card a {
    margin:0;
  }
  .year-card p.muted {
    display:none;
  }
  .chart {
    height:300px;
  }
  .bars {
    height:270px;
  }
}
@media(max-width:1150px) {
  .sidebar {
    width:220px;
    padding:24px 14px;
  }
  .workspace {
    margin-left:220px;
  }
  main {
    padding:1.75rem 1.5rem;
  }
  .topbar {
    padding:18px 24px;
  }
  .page-heading {
    align-items:flex-start;
    flex-direction:column;
  }
  .stats-grid {
    gap:14px;
  }
  .stat {
    padding:20px;
  }
  .stat>strong {
    font-size:1.6rem;
  }
  .dashboard-grid {
    grid-template-columns:1fr 1fr;
  }
  .line-form {
    grid-template-columns:2fr 1fr 1fr;
  }
  .line-form>div:first-of-type {
    grid-column:1/-1;
  }
  .bank-card .actions {
    gap:8px;
  }
  .bank-card .button {
    padding:10px 12px;
  }
}
@media(max-width:760px) {
  .sidebar {
    position:relative;
    width:auto;
    padding:16px 20px;
    overflow:visible;
  }
  .brand {
    margin:0 0 18px;
    font-size:1.6rem;
  }
  .business-label,.sidebar-note,.user-menu small {
    display:none;
  }
  .business-switch {
    display:flex;
    overflow-x:auto;
    gap:8px;
    padding-bottom:12px;
  }
  .business-switch>a {
    flex-shrink:0;
  }
  .business-switch .add-business {
    font-size:.75rem;
  }
  .main-nav {
    display:flex;
    overflow-x:auto;
    padding:12px 0 0;
    gap:5px;
  }
  .main-nav a {
    font-size:.875rem;
    padding:10px;
  }
  .main-nav a span {
    display:none;
  }
  .user-menu {
    position:absolute;
    right:20px;
    top:22px;
    padding:0;
    border:0;
  }
  .user-menu .avatar,.user-menu>span {
    display:none;
  }
  .user-menu form {
    margin:0;
  }
  .workspace {
    margin-left:0;
  }
  .topbar {
    padding:14px 20px;
    min-height:56px;
  }
  .tax-badge {
    display:none;
  }
  main {
    padding:1.5rem 1rem;
  }
  .page-heading {
    gap:1.125rem;
  }
  h1 {
    font-size:1.8rem;
  }
  .stats-grid {
    grid-template-columns:1fr;
    gap:0;
  }
  .stat {
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    margin-bottom:12px;
    padding:18px 20px;
  }
  .stat>strong {
    margin:0;
    grid-column:2;
    grid-row:1/3;
  }
  .stat p {
    margin-top:5px;
  }
  .dashboard-grid {
    grid-template-columns:1fr;
  }
  .card {
    padding:1.25rem;
    margin-bottom:1.125rem;
  }
  .task-card,.bank-card {
    min-height:auto;
  }
  .chart {
    gap:5px;
  }
  .chart-month>span {
    font-size:.7rem;
  }
  .form-grid {
    grid-template-columns:1fr;
    gap:1.125rem;
  }
  .form-actions {
    flex-wrap:wrap;
  }
  .detail-grid {
    grid-template-columns:1fr 1fr;
  }
  .line-form {
    grid-template-columns:1fr 1fr;
  }
  .line-form>div:first-of-type {
    grid-column:1/-1;
  }
  .finance-account {
    align-items:flex-start;
    flex-direction:column;
  }
  .finance-account h2 {
    overflow-wrap:anywhere;
    font-size:1rem;
  }
  .login-card {
    padding:28px;
  }
  .login-card .brand {
    margin-bottom:28px;
  }
  footer {
    padding:8px 16px 24px;
    gap:16px;
  }
  .search-form {
    flex-wrap:wrap;
  }
  .tabs {
    gap:20px;
  }
}

/* Gemeinsame Navigation und Finanzarbeitsplatz. */
:root { --blue:#009f59; --green:#009f59; --ink:#252525; --muted:#777; --line:#ddd; color:#252525; background:#f5f5f5; }
[hidden] { display:none!important; }
.icon { width:1.4rem; height:1.4rem; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; vertical-align:middle; }
.icon-button { display:inline-flex; align-items:center; justify-content:center; width:2.75rem; height:2.75rem; border:0; background:transparent; color:inherit; padding:0.625rem; }
.icon-button:hover { background:#00000008; text-decoration:none; }
.button { border-radius:4px; text-transform:uppercase; letter-spacing:.03em; font-weight:650; }
.button:hover { background:#008b4e; }
.button.secondary { color:#009f59; border-color:#8bcba9; }
.button.secondary:hover { background:#f0faf4; }
.negative { color:#e53935; }
.workspace { margin-left:0; }
.app-header { height:4rem; background:#242424; color:#fff; display:flex; align-items:center; gap:2rem; padding:0 1.75rem; position:relative; z-index:20; }
.app-brand { color:white; font-size:1.65rem; font-weight:750; letter-spacing:-1px; }
.app-brand span { color:#00b56b; }
.app-brand:hover { text-decoration:none; }
.app-navigation { display:flex; align-self:stretch; gap:1.75rem; }
.app-navigation>a { color:#ddd; display:flex; align-items:center; border-bottom:3px solid transparent; padding-top:3px; font-size:1rem; }
.app-navigation>a:hover { color:white; text-decoration:none; }
.app-navigation>a[aria-current] { color:white; border-color:#00b56b; }
.app-utilities { margin-left:auto; display:flex; align-items:center; gap:1.375rem; font-size:.875rem; }
.app-utilities>a { color:#eee; white-space:nowrap; }
.business-menu { position:relative; }
.business-menu summary { display:flex; align-items:center; gap:8px; cursor:pointer; list-style:none; max-width:190px; }
.business-menu summary::-webkit-details-marker { display:none; }
.business-menu>div { position:absolute; right:0; top:38px; background:white; color:#333; box-shadow:0 4px 24px #0003; min-width:230px; border-radius:4px; padding:8px; }
.business-menu a,.business-menu button { display:block; color:#333; padding:10px 12px; width:100%; text-align:left; background:none; border:0; font-size:.875rem; }
.business-menu a:hover,.business-menu button:hover { background:#f3f3f3; text-decoration:none; }
.business-menu a[aria-current] { color:#009f59; font-weight:600; }
.app-footer { color:#888; }
.finance-page main { max-width:none; padding:2rem 1.75rem; }
.finance-heading { margin-bottom:2.5rem; }
.finance-heading h1 { font-size:2.5rem; font-weight:650; margin:0; }
.finance-navigation { display:flex; gap:1.75rem; margin-bottom:1.25rem; }
.finance-navigation a { text-transform:uppercase; font-weight:600; color:#777; padding:0.75rem 1.25rem 1rem; border-bottom:2px solid transparent; }
.finance-navigation a[aria-current] { color:#009f59; border-color:#009f59; }
.finance-list { background:white; border-radius:5px; box-shadow:0 2px 4px #0003; margin-bottom:24px; padding-top:20px; overflow:hidden; }
.assignment-filters { display:grid; grid-template-columns:1fr 1fr 1fr; margin:0 20px 20px; border:1px solid #ddd; border-radius:4px; overflow:hidden; }
.assignment-filters a { display:flex; align-items:center; justify-content:flex-start; gap:12px; padding:0.9375rem 1.125rem; color:#444; font-size:1.15rem; border-right:1px solid #ddd; }
.assignment-filters a:last-child { border-right:0; }
.assignment-filters a:hover { text-decoration:none; background:#fafafa; }
.assignment-filters .icon { color:#009f59; }
.assignment-filters strong { display:grid; place-items:center; background:#ef7600; color:white; min-width:34px; height:34px; border-radius:50%; padding:0 8px; font-size:.95rem; }
.assignment-filters .suggestion-filter strong { background:#2f8ac4; }
.assignment-filters .suggestion-filter .icon { color:#2f8ac4; }
.assignment-filters .unmatched-filter .icon { color:#ef7600; }
.assignment-filters a[aria-current] { background:#fff4ec; }
.assignment-filters .suggestion-filter[aria-current] { background:#edf6fc; }
.assignment-filters a:last-child[aria-current] { background:#edf8f1; }
.finance-search { display:grid; grid-template-columns:1.05fr .8fr 1fr 1.3fr; gap:1.25rem; margin:8px 20px 22px; }
.outlined-field { position:relative; display:flex; align-items:center; border:1px solid #bdbdbd; border-radius:4px; margin:10px 0 0; padding:0.4375rem 0.625rem; min-width:0; min-height:3.625rem; font-weight:400; background:#fff; }
.outlined-field>span:first-child { position:absolute; top:-12px; left:12px; background:#fff; padding:0 5px; color:#777; font-size:.875rem; white-space:nowrap; }
.outlined-field>input,.outlined-field>select,.outlined-field>textarea { border:0; border-radius:0; min-width:0; min-height:2.5rem; color:#333; background-color:transparent; padding-left:6px; box-shadow:none; font-size:1rem; }
.outlined-field>.icon { margin:0 8px 0 2px; color:#777; }
.outlined-field input::placeholder { color:#999; }
.outlined-field:focus-within { border-color:#009f59; outline:1px solid #009f59; }
.outlined-field>input:focus,.outlined-field>select:focus,.outlined-field>textarea:focus { outline:none; }
.outlined-field .icon-button { height:34px; width:34px; padding:6px; }
.transaction-table { font-size:1.2rem; }
.transaction-table th { color:#222; background:white; font-size:.95rem; padding:1.125rem 1.25rem; }
.transaction-table td { padding:1.25rem; border-bottom:1px solid #ddd; height:5.875rem; }
.transaction-table td strong { font-weight:550; }
.transaction-table td small { font-size:1rem; max-width:unset; color:#777; }
.transaction-table td small span { margin-left:12px; }
.transaction-table .account-column { width:90px; text-align:center; padding-right:0; }
.account-badge { display:inline-grid; place-items:center; background:#6032b3; color:#fff; font-size:1.45rem; font-weight:700; border-radius:50%; width:3rem; height:3rem; flex-shrink:0; }
.transaction-amount { font-size:1.25rem; font-weight:550; white-space:nowrap; font-variant-numeric:tabular-nums; }
.transaction-assignment { width:35%; }
.transaction-table td.transaction-assignment { padding:0; }
.needs-assignment { background:#fff7e9; }
.manual-assignment,.assigned-document { display:flex; align-items:center; gap:1.25rem; padding:1.125rem 1.25rem; min-height:5.875rem; color:#643900; font-weight:550; }
.manual-assignment:hover { background:#fff0d9; text-decoration:none; }
.assigned-document { color:#009f59; }
.assignment-plus { background:white; display:grid; place-items:center; width:3rem; height:3rem; color:#f59000; flex-shrink:0; }
.assignment-plus .icon { width:26px; height:26px; }
.finance-pagination { display:flex; align-items:center; justify-content:flex-end; gap:28px; padding:18px 20px; color:#444; font-size:.95rem; }
.finance-pagination label,.finance-pagination nav { display:flex; align-items:center; gap:12px; font-weight:400; }
.finance-pagination select { width:80px; border:0; min-height:36px; }
.current-page { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:#eee; }
.assignment-dialog { position:fixed; inset:0 0 0 auto; margin:0; width:36vw; min-width:31.25rem; max-width:47.5rem; height:100dvh; max-height:none; border:0; padding:0; background:white; color:#252525; box-shadow:-8px 0 30px #0003; }
.assignment-dialog::backdrop { background:#0008; }
body:has(.assignment-dialog[open]) { overflow:hidden; }
#assignment-content,.assignment-standalone { display:flex; flex-direction:column; height:100%; }
.assignment-standalone { max-width:760px; margin:auto; background:white; min-height:80vh; }
.assignment-header { display:flex; align-items:center; justify-content:space-between; padding:1.125rem 1.5rem; flex-shrink:0; min-height:4.6875rem; }
.assignment-header h2 { font-size:1.5rem; margin:0; font-weight:600; }
.assignment-header .icon-button { color:#777; }
.assignment-summary { background:#f5f5f5; padding:1.25rem; flex-shrink:0; }
.transaction-heading { display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.transaction-heading h3 { margin:0; font-size:1.4rem; font-weight:600; }
.transaction-heading .transaction-amount { margin-left:auto; }
.assignment-summary>p { margin:12px 0 20px; overflow-wrap:anywhere; font-size:1.1rem; }
.assignment-summary dl { display:grid; grid-template-columns:1fr auto; gap:12px; margin:12px 0; font-size:.95rem; }
.assignment-summary dd { margin:0; text-align:right; overflow-wrap:anywhere; }
.transaction-details summary { display:flex; align-items:center; justify-content:center; gap:10px; text-transform:uppercase; font-weight:600; padding:14px 0 0; cursor:pointer; font-size:.9rem; list-style:none; }
.assignment-tabs { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid #ddd; flex-shrink:0; }
.assignment-tabs button { display:flex; align-items:center; justify-content:center; gap:12px; padding:1.375rem 0.625rem 1.125rem; color:#777; text-transform:uppercase; background:white; border:0; border-bottom:2px solid #ddd; font-weight:600; font-size:.9rem; }
.assignment-tabs button[aria-selected=true] { color:#009f59; border-bottom-color:#009f59; }
.assignment-body { padding:1.5rem 1.25rem; flex:1; overflow-y:auto; min-height:0; }
.document-search { display:flex; gap:12px; align-items:center; margin-bottom:20px; }
.document-search .outlined-field { flex:1; margin:0; }
.document-search .button { min-height:50px; color:#444; border-color:#aaa; }
.assignment-document { display:grid; grid-template-columns:24px 1fr auto; gap:18px; align-items:center; border-bottom:1px solid #ddd; padding:1.25rem 0; font-size:1rem; font-weight:400; cursor:pointer; }
.assignment-document>strong { font-size:1.2rem; }
.assignment-document>span>strong { font-weight:450; }
.assignment-document input { appearance:none; border:2px solid #888; border-radius:2px; width:22px; height:22px; min-height:22px; padding:0; }
.assignment-document input:checked { background:#009f59; border-color:#009f59; box-shadow:inset 0 0 0 4px white; }
.document-reference { display:flex; gap:8px; align-items:center; color:#888; margin:4px 0; }
.document-reference .icon { color:#009f59; width:18px; height:18px; }
.document-mismatch { cursor:default; }
.document-mismatch input { border-color:#ccc; background:#f5f5f5; }
.document-mismatch small { color:#9c5011; }
.drawer-empty { color:#777; text-align:center; margin:32px 0; line-height:1.7; }
.assignment-footer { max-width:none; margin:0; padding:1.25rem 1.5rem; display:flex; justify-content:space-between; align-items:center; border-top:1px solid #ddd; min-height:5rem; font-size:.95rem; flex-shrink:0; }
.assignment-footer>a { color:#666; }
.receipt-page .app-header,.receipt-page .app-footer { display:none; }
.receipt-page main { padding:0; max-width:none; }
.receipt-editor { position:fixed; inset:0; background:#f5f5f5; z-index:30; }
.receipt-header { height:5rem; display:flex; align-items:center; padding:0.875rem 1.5rem; gap:22px; background:#424242; color:white; }
.receipt-header h1 { margin:0; font-size:1.25rem; font-weight:450; }
.receipt-header>a:last-child { margin-left:auto; }
.receipt-content { position:absolute; inset:5rem 0 4.875rem; display:grid; grid-template-columns:65% 35%; }
.receipt-upload { padding:1.5rem; display:flex; flex-direction:column; min-width:0; min-height:0; }
.upload-select { color:#009f59; display:flex; gap:10px; align-items:center; font-size:.95rem; text-transform:uppercase; font-weight:600; cursor:pointer; margin:0 0 22px; }
.upload-area { position:relative; border:1px dashed #555; flex:1; min-height:200px; display:flex; align-items:center; justify-content:center; border-radius:4px; }
.upload-prompt { display:flex; flex-direction:column; align-items:center; gap:16px; cursor:pointer; font-size:1.2rem; font-weight:400; text-align:center; padding:24px; }
.upload-prompt>.icon { width:100px; height:84px; margin-bottom:28px; stroke-width:2; color:#171638; }
.upload-prompt small { font-size:.9rem; color:#777; }
.upload-input { position:absolute; width:1px; height:1px; overflow:hidden; }
.upload-area:focus-within { outline:3px solid #009f59; }
.upload-area.drag-over { border:2px solid #009f59; background:#edf8f1; }
#receipt-preview { width:100%; height:100%; border:0; position:absolute; inset:0; }
#receipt-image-preview { max-width:100%; max-height:100%; object-fit:contain; position:absolute; inset:0; margin:auto; }
#receipt-xml-preview { position:absolute; inset:0; overflow:auto; padding:20px; margin:0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:.875rem; }
#without-original-hint { max-width:440px; text-align:center; padding:24px; }
#without-original-hint h2 { font-size:1.3rem; }
.receipt-ocr { font-size:.875rem; }
.receipt-ocr>p { margin:12px 0 0; }
.receipt-ocr pre { max-height:120px; overflow:auto; white-space:pre-wrap; }
.receipt-fields { overflow-y:auto; padding:1.5rem 1.5rem 1.5rem 0; min-height:0; }
.receipt-card { background:white; padding:1.5rem 1.25rem; margin-bottom:1.25rem; box-shadow:0 2px 2px #0002; border-radius:4px; }
.receipt-card h2 { font-size:1.5rem; font-weight:600; margin:0 0 26px; }
.receipt-card .outlined-field>input,.receipt-card .outlined-field>select,.receipt-card .outlined-field>textarea { font-size:1.2rem; }
.receipt-card .outlined-field { margin:24px 0 0; }
.receipt-field-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.25rem; }
.supplier-note { text-align:right; color:#888; font-size:.875rem; margin:8px 0 14px; }
.receipt-tax-amount { display:grid; grid-template-columns:1fr 1.4fr; gap:1.25rem; }
.amount-field input { text-align:right; padding-right:28px; }
.outlined-field>.amount-currency { position:absolute; right:14px; color:#777; font-size:1.2rem; }
.selected-transaction { padding:0; }
.selected-transaction h2 { padding:1.375rem 1.25rem; margin:0; display:flex; justify-content:space-between; gap:10px; }
.selected-transaction-body { padding:1.5rem 1.25rem; background:#eee; display:flex; gap:20px; align-items:flex-start; }
.selected-transaction-body>.account-badge { width:64px; height:64px; }
.selected-transaction-body>div { flex:1; min-width:0; }
.selected-transaction-body strong { font-size:1.3rem; font-weight:600; }
.selected-transaction-body p { font-size:1.1rem; overflow-wrap:anywhere; margin:4px 0 18px; }
.selected-transaction-date { display:flex; align-items:center; gap:10px; font-size:.95rem; flex-wrap:wrap; }
.selected-transaction-date strong { margin-left:auto; font-size:1.2rem; white-space:nowrap; }
.receipt-footer { position:absolute; bottom:0; left:0; right:0; max-width:none; margin:0; min-height:4.875rem; padding:1rem 1.5rem; background:#424242; color:white; display:flex; justify-content:space-between; align-items:center; gap:20px; font-size:1rem; }
.receipt-footer>div { display:flex; align-items:center; gap:28px; }
.receipt-footer a { color:white; font-weight:600; text-transform:uppercase; }
.receipt-switch { display:flex; align-items:center; gap:14px; font-weight:400; }
.receipt-switch input { appearance:none; width:44px; height:24px; min-height:24px; border:0; border-radius:20px; background:#282828; padding:0; position:relative; cursor:pointer; }
.receipt-switch input:before { content:''; position:absolute; width:24px; height:24px; border-radius:50%; background:white; left:0; top:0; box-shadow:0 1px 3px #0005; }
.receipt-switch input:checked { background:#009f59; }
.receipt-switch input:checked:before { left:20px; }
@media(max-width:1150px) {
  .app-header { padding:0 1.25rem; gap:1.375rem; }
  .app-navigation { gap:1.125rem; }
  .app-utilities { gap:1rem; }
  .settings-link { display:none; }
  .business-menu summary { max-width:150px; font-size:.8rem; }
  .finance-search { gap:0.75rem; grid-template-columns:1fr 1fr; }
  .assignment-filters a { gap:8px; font-size:1rem; padding:0.875rem 0.75rem; }
  .assignment-filters strong { min-width:28px; height:28px; }
  .receipt-content { grid-template-columns:57% 43%; }
  .receipt-upload { padding:1.25rem; }
  .receipt-fields { padding:1.25rem 1.25rem 1.25rem 0; }
  .receipt-tax-amount { grid-template-columns:1fr; gap:0; }
}
@media(max-width:760px) {
  .app-header { height:auto; min-height:64px; flex-wrap:wrap; padding:0.75rem 1rem 0; gap:0.75rem 1.25rem; }
  .app-brand { font-size:1.45rem; }
  .app-navigation { order:3; overflow:auto; width:100%; gap:1.5rem; }
  .app-navigation>a { padding:8px 0 12px; white-space:nowrap; font-size:.95rem; }
  .app-utilities { gap:0.75rem; }
  .business-menu summary { max-width:140px; }
  .finance-page main { padding:1.5rem 0.75rem; }
  .finance-heading { flex-direction:row; align-items:center; margin-bottom:1.375rem; }
  .finance-heading h1 { font-size:2rem; }
  .finance-heading .button { padding:10px; font-size:.75rem; }
  .finance-heading .actions { justify-content:flex-end; }
  .finance-navigation { gap:0.625rem; }
  .assignment-filters { margin:0 12px 16px; }
  .assignment-filters a { flex-direction:column; text-align:center; gap:6px; font-size:.875rem; }
  .assignment-filters a>.icon { display:none; }
  .finance-search { margin:8px 12px 12px; gap:0.75rem; }
  .outlined-field>span:first-child { font-size:.8rem; }
  .outlined-field>input,.outlined-field>select { font-size:.875rem; }
  .transaction-table { min-width:620px; }
  .transaction-table .account-column { width:62px; padding-left:12px; }
  .transaction-table td { padding:1rem 0.75rem; }
  .transaction-table td small span { display:block; margin-left:0; }
  .transaction-assignment { width:32%; }
  .manual-assignment { gap:0.625rem; padding:1rem 0.75rem; font-size:.875rem; }
  .assignment-plus { width:2.25rem; height:2.25rem; }
  .finance-pagination { padding:16px 12px; gap:12px; flex-wrap:wrap; font-size:.875rem; }
  .assignment-dialog { width:100vw; min-width:0; max-width:none; }
  .transaction-heading h3 { font-size:1rem; }
  .transaction-heading .transaction-amount { font-size:1.05rem; }
  .assignment-header { padding:0.875rem 1.125rem; }
  .assignment-tabs button { font-size:.8rem; gap:8px; }
  .receipt-header { height:4rem; padding:0.625rem 0.875rem; gap:10px; }
  .receipt-header h1 { font-size:1.1rem; }
  .receipt-content { inset:4rem 0 7.25rem; grid-template-columns:1fr; overflow:auto; display:block; }
  .receipt-upload { min-height:420px; }
  .receipt-fields { overflow:visible; padding:0 1rem 1.25rem; }
  .receipt-footer { padding:0.75rem 1rem; flex-wrap:wrap; gap:12px; min-height:7.25rem; font-size:.875rem; }
  .receipt-footer>div { margin-left:auto; gap:18px; }
  .receipt-footer .button { font-size:.8rem; }
  .receipt-tax-amount { grid-template-columns:1fr 1.4fr; gap:1rem; }
  .receipt-switch { font-size:.875rem; }
}

/* Kategorievorschlaege und erweiterte SKR-04-Auswahl. */
.category-picker { position:relative; }
.category-picker-row { display:flex; align-items:center; gap:14px; }
.category-combobox { flex:1; min-width:0; }
.category-card .category-search-field { margin:24px 0 0; }
.category-search-field>label { position:absolute; top:-12px; left:12px; padding:0 5px; background:white; font-size:.875rem; font-weight:400; color:#777; }
.category-search-field>input { text-overflow:ellipsis; }
.category-search-field>.category-toggle { width:30px; height:34px; flex-shrink:0; color:#777; }
.category-browser-open { flex-shrink:0; margin-top:24px; color:#777; width:42px; }
.category-browser-open .icon { width:26px; height:26px; }
.category-picker.is-open .category-toggle .icon { transform:rotate(180deg); }
.category-picker.is-open:not(.has-selection) .category-search-field,.category-search-field[data-invalid=true] { border-color:#ed3833; outline:1px solid #ed3833; }
.category-picker.is-open:not(.has-selection) .category-search-field>label,.category-search-field[data-invalid=true]>label { color:#ed3833; }
.category-dropdown { position:fixed; z-index:60; background:white; border-radius:0 0 4px 4px; box-shadow:0 3px 4px #0005; overflow:hidden; }
.category-suggestions-heading { background:#e8f3f9; padding:16px 18px; color:#777; font-size:1rem; }
#category-options { max-height:260px; overflow-y:auto; }
.category-suggestion { width:100%; display:flex; align-items:center; gap:16px; text-align:left; padding:1.25rem; background:white; color:#252525; border:0; font-size:1.15rem; min-height:5.625rem; }
.category-suggestion>.icon { color:#318ecc; width:24px; height:24px; }
.category-suggestion>span { display:flex; flex-direction:column; gap:3px; }
.category-suggestion strong { font-weight:400; }
.category-suggestion>span>span { color:#777; font-size:1rem; }
.category-suggestion:hover,.category-suggestion[aria-selected=true] { background:#f0f6f9; }
.category-no-results { padding:20px; color:#777; font-size:1rem; margin:0; }
.category-selection-error { color:#d4322f; font-size:.875rem; margin:8px 0 0; }
.category-dialog { position:fixed; inset:4px 4px 4px auto; margin:0; width:35vw; min-width:32.5rem; max-width:48.75rem; height:calc(100dvh - 8px); max-height:none; padding:0; border:1px solid #e1dfe5; border-radius:12px 12px 0 0; background:white; color:#252525; box-shadow:-5px 0 18px #0002; }
.category-dialog::backdrop { background:#0006; }
#category-browser-form { height:100%; display:flex; flex-direction:column; }
.category-dialog-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:1.75rem 1.375rem; flex-shrink:0; }
.category-dialog-header h2 { font-size:1.625rem; font-weight:600; margin:0; }
.category-dialog-header .icon-button { color:#777; flex-shrink:0; }
.category-dialog-search { padding:0.5rem 1.375rem 2rem; flex-shrink:0; }
.category-dialog-search .outlined-field { min-height:5rem; margin-top:1.5rem; }
.category-dialog-search .outlined-field>input { font-size:1.15rem; }
.category-dialog-search p { font-size:.95rem; color:#888; margin:8px 0 0; }
.category-groups { overflow-y:auto; flex:1; min-height:0; border-top:1px solid #ddd; background:#f5f5f5; scrollbar-color:#999 #f5f5f5; scrollbar-width:thin; }
.category-group { border-bottom:1px solid #d7d7d7; background:white; }
.category-group[open] { margin:16px 0; box-shadow:0 2px 4px #0002; }
.category-group[open]:first-child { margin-top:0; }
.category-group[open]:last-of-type { margin-bottom:0; }
.category-group>summary { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:1.0625rem 0.875rem; min-height:3.875rem; font-size:1.5rem; list-style:none; cursor:pointer; }
.category-group>summary::-webkit-details-marker { display:none; }
.category-group>summary>.icon { color:#777; width:22px; height:22px; }
.category-group[open]>summary { font-weight:600; }
.category-group[open]>summary>.icon { transform:rotate(180deg); }
.category-group-options { padding:0 14px 12px; }
.category-browser-option { display:flex; align-items:center; gap:16px; padding:1rem 0.25rem; font-size:1rem; font-weight:400; cursor:pointer; }
.category-browser-option>input { appearance:none; width:21px; height:21px; min-height:21px; border:2px solid #888; border-radius:50%; padding:0; flex-shrink:0; }
.category-browser-option>input:checked { border-color:#009f59; box-shadow:inset 0 0 0 4px white; background:#009f59; }
.category-browser-option>span { display:flex; flex-direction:column; gap:3px; min-width:0; overflow-wrap:anywhere; }
.category-browser-option strong { font-size:1.375rem; font-weight:650; }
.category-account { font-size:1.125rem; }
.category-description { color:#888; font-size:1.125rem; line-height:1.5; margin-top:2px; }
.category-dialog-footer { display:flex; justify-content:flex-end; align-items:center; flex-shrink:0; gap:18px; border-top:1px solid #ddd; padding:0.875rem 1.375rem; min-height:5.25rem; margin:0; max-width:none; background:white; }
.category-cancel { padding:10px 4px; border:0; background:transparent; text-transform:uppercase; color:#555; font-weight:600; font-size:1.1rem; }
.category-dialog-footer .button { font-size:1.1rem; min-height:3rem; }
.category-dialog-footer .button:disabled { background:#ddd; color:#aaa; border-color:#ddd; cursor:default; }
@media(max-width:760px) {
  .category-dialog { inset:0; width:100vw; min-width:0; max-width:none; height:100dvh; border-radius:0; }
  .category-dialog-header { padding:1rem; gap:8px; }
  .category-dialog-header h2 { font-size:1.1rem; }
  .category-dialog-search { padding:0 1rem 1.25rem; }
  .category-dialog-search .outlined-field>input { font-size:1rem; }
  .category-dialog-footer { padding:0.75rem 1rem; gap:12px; }
  .category-dialog-footer .button,.category-cancel { font-size:.8rem; }
  .category-group>summary { font-size:1.1rem; }
  .category-description,.category-account { font-size:.95rem; }
  .category-browser-open { width:34px; }
  .category-picker-row { gap:8px; }
}

/* Dashboard nach der Kartenansicht der Referenz. */
.dashboard-page main { max-width:none; padding:1.25rem 1rem 2rem; }
.dashboard-heading { display:flex; justify-content:space-between; align-items:center; gap:1.5rem; margin-bottom:1.375rem; }
.dashboard-heading>div:first-child { display:flex; align-items:baseline; flex-wrap:wrap; gap:14px; min-width:0; }
.dashboard-heading h1 { font-size:2rem; font-weight:600; margin:0; overflow-wrap:anywhere; }
.dashboard-heading>div>span { font-size:1rem; }
.dashboard-heading .actions { flex-shrink:0; }
.dashboard-heading .icon-button { color:#777; }
.reference-dashboard { display:grid; grid-template-columns:minmax(230px,1fr) minmax(230px,1fr) minmax(0,2fr); gap:1.25rem; align-items:start; }
.dashboard-panel { background:white; border:1px solid #e5e5e5; border-radius:4px; box-shadow:0 2px 3px #0003; min-width:0; overflow:hidden; }
.dashboard-panel-heading { display:flex; justify-content:space-between; align-items:center; padding:0.875rem 1.25rem; min-height:3.75rem; gap:10px; }
.dashboard-panel-heading h2 { font-size:1.2rem; font-weight:550; margin:0; }
.dashboard-panel-heading .icon-button { color:#777; width:32px; height:32px; padding:5px; }
.dashboard-task-section { padding:1.125rem 1.25rem; border-bottom:1px solid #ddd; min-height:5.5rem; }
.dashboard-task-section:last-child { border-bottom:0; }
.dashboard-task-section h3 { color:#777; font-size:1.1rem; font-weight:550; margin:0 0 12px; }
.dashboard-task-warning { color:#ed7600; font-size:.95rem; }
.dashboard-task-done { display:flex; align-items:center; gap:12px; font-size:.95rem; margin:0; }
.dashboard-task-done .icon { color:#00a45b; width:23px; height:23px; }
.dashboard-middle { display:grid; gap:1.25rem; min-width:0; }
.dashboard-bank-row { display:flex; align-items:center; gap:10px; color:#252525; padding:1.125rem 1.25rem; min-height:5.375rem; }
.dashboard-bank-row:hover { background:#fafafa; text-decoration:none; }
.dashboard-bank-row>.account-badge { width:34px; height:34px; font-size:1.1rem; }
.dashboard-bank-row>span { min-width:0; font-size:1rem; }
.dashboard-bank-row small { font-size:.8rem; color:#555; margin-top:1px; }
.dashboard-bank-row .bank-balance { font-size:1rem; letter-spacing:normal; font-weight:450; white-space:nowrap; margin-left:auto; }
.dashboard-bank-row>.icon { color:#777; width:18px; }
.dashboard-bank-footer { padding:1.125rem 1.25rem; border-top:1px solid #ddd; text-align:right; min-height:4rem; }
.dashboard-bank-footer>a { color:#009f59; text-transform:uppercase; font-size:.95rem; font-weight:550; }
.dashboard-bank-footer>p { margin:8px 0 0; color:#888; font-size:.8rem; }
.dashboard-bank-footer>p:empty { display:none; }
.kontist-status { text-align:left; }
.kontist-status-label { font-size:1.05rem; font-weight:650; color:#666; margin:0 0 8px; }
.kontist-status[data-state=connected] .kontist-status-label { color:#008c50; }
.kontist-status[data-state=reconnect] .kontist-status-label,.kontist-status[data-state=error] .kontist-status-label { color:#b45309; }
.kontist-status-message { margin:0 0 10px; line-height:1.5; }
.kontist-status-expiry { margin:0 0 14px; font-size:.875rem; color:#777; }
.kontist-status .button { font-size:.875rem; min-height:40px; }
.kontist-status-compact { margin-top:18px; padding-top:16px; border-top:1px solid #eee; }
.kontist-status-compact .kontist-status-label { font-size:.95rem; }
.kontist-status-compact .kontist-status-message { font-size:.875rem; color:#777; }
.dashboard-info-year { padding:0.25rem 1.25rem 0; }
.dashboard-info-year select { min-height:2.75rem; border-color:#ccc; border-radius:4px; }
.dashboard-document-counts { display:grid; gap:0.75rem; padding:1.125rem 1.25rem 1.5rem; }
.dashboard-document-counts p { color:#252525; font-size:1rem; margin:0; }
.dashboard-document-counts strong { display:inline-block; min-width:20px; margin-right:4px; font-weight:650; }
.dashboard-overview { min-height:33.75rem; padding-bottom:10px; }
.dashboard-totals { display:grid; grid-template-columns:1fr 1fr 1fr; padding:0.625rem 1.25rem 1.375rem; gap:14px; }
.dashboard-totals>div:nth-child(2) { text-align:center; }
.dashboard-totals>div:last-child { text-align:right; }
.dashboard-totals span { color:#666; font-size:1.05rem; white-space:nowrap; }
.dashboard-totals strong { display:block; color:#222; font-size:1.75rem; font-weight:600; margin-top:4px; white-space:nowrap; }
.dashboard-totals i { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:4px; vertical-align:middle; }
.income-dot { background:#009f59; }
.expense-dot { background:#ee3c35; }
.dashboard-chart { height:18.75rem; margin:0 14px 0 10px; position:relative; }
#dashboard-chart { display:block; width:100%; height:100%; overflow:visible; }
.dashboard-gridline { stroke:#ddd; stroke-width:1; }
.dashboard-chart-axis { stroke:#444; stroke-width:1; }
.dashboard-axis-label { fill:#333; font-family:inherit; font-size:12px; }
.dashboard-chart-line { stroke-width:2; fill:none; }
.dashboard-chart-line.income { stroke:#00a45b; }
.dashboard-chart-line.expense { stroke:#ee3935; }
.dashboard-chart-area.income { fill:#00a45b; opacity:.045; }
.dashboard-chart-area.expense { fill:#ee3935; opacity:.035; }
.dashboard-chart-status { position:absolute; top:100%; left:0; right:0; text-align:center; font-size:.8rem; color:#777; margin:8px 0 0; min-height:18px; }
.dashboard-chart-filters { display:flex; justify-content:center; align-items:center; gap:0.875rem; padding:2.5rem 1.25rem 0.875rem; }
.dashboard-chart-filters select { width:160px; min-height:2.75rem; border-color:#ccc; border-radius:4px; }
.dashboard-basis { border:1px solid #ccc; border-radius:4px; padding:0.625rem 1rem; color:#333; font-size:.9rem; white-space:nowrap; }
.dashboard-private .dashboard-sensitive { filter:blur(7px); user-select:none; pointer-events:none; }
@media(max-width:1200px) {
  .reference-dashboard { grid-template-columns:1fr 1fr; }
  .dashboard-overview { grid-column:1 / -1; }
  .dashboard-heading { align-items:flex-start; }
  .dashboard-heading .actions { justify-content:flex-end; }
  .dashboard-heading .button { font-size:.75rem; padding:10px 12px; }
  .dashboard-heading h1 { font-size:1.65rem; }
}
@media(max-width:760px) {
  .dashboard-heading { flex-direction:column; gap:1rem; }
  .dashboard-heading .actions { flex-wrap:wrap; justify-content:flex-start; gap:8px; }
  .reference-dashboard { grid-template-columns:1fr; gap:1.125rem; }
  .dashboard-overview { grid-column:auto; }
  .dashboard-totals { gap:8px; padding:0.625rem 0.875rem 1.25rem; }
  .dashboard-totals span { font-size:.875rem; }
  .dashboard-totals strong { font-size:clamp(.9rem,4.1vw,1.3rem); }
  .dashboard-chart { height:15.625rem; margin:0 10px 0 2px; }
  .dashboard-chart-filters { flex-wrap:wrap; gap:0.75rem; padding-top:38px; }
  .dashboard-basis { font-size:.8rem; }
  .dashboard-overview { min-height:28.75rem; }
}
.documents-page { background:#fff; }
.documents-page main { max-width:none; padding:0; }
.documents-page .app-footer { display:none; }
.documents-page .messages { margin:12px 24px; }
.documents-workspace { display:grid; grid-template-columns:14.75rem minmax(0,1fr); min-height:calc(100dvh - 4rem); }
.documents-sidebar { background:#f5f5f5; padding-top:5.25rem; }
.documents-new.button { border-radius:0 4px 4px 0; width:100%; min-height:2.875rem; display:flex; align-items:center; justify-content:center; gap:8px; font-weight:700; margin-bottom:12px; text-transform:none; }
.documents-nav-group>a { display:flex; align-items:center; gap:12px; padding:0.75rem 1.25rem; min-height:3.0625rem; color:#333; }
.documents-nav-group>a>.icon { color:#929292; flex:none; width:23px; height:25px; stroke-width:1.25; }
.documents-nav-group>a:hover,.documents-subnav>a:hover { background:#ebebeb; text-decoration:none; }
.documents-nav-group.active { background:#fff; }
.documents-nav-group.active>a>.icon { color:#333; }
.documents-nav-group:last-child { border-top:1px dashed #d4d4d4; }
.documents-subnav { padding:0 12px 14px 66px; }
.documents-subnav>a { color:#888; display:block; padding:6px 0; font-size:.875rem; }
.documents-subnav>a[aria-current] { color:#009f59; font-weight:600; }
.documents-main { min-width:0; }
.documents-heading { padding:1.5rem 1.25rem 0.75rem; }
.documents-heading h1 { margin:0 0 18px; font-size:2rem; font-weight:650; }
.documents-search-field { width:min(31.875rem,100%); height:2.9375rem; display:flex; align-items:center; border:1px solid #ccc; border-radius:4px; padding:0 12px; gap:10px; }
.documents-search-field>.icon { color:#bbb; width:20px; height:20px; stroke-width:1; flex:none; }
.documents-search-field input { border:0; padding:0; box-shadow:none; min-width:0; width:100%; min-height:2.625rem; font-size:1rem; background:transparent; }
.documents-search-field input:focus { outline:none; }
.documents-search-field:focus-within { outline:2px solid #009f59; outline-offset:1px; }
.documents-search-field input::placeholder { color:#bbb; }
.documents-columns { display:grid; grid-template-columns:minmax(0,1fr) 320px; }
.documents-list-column { min-width:0; padding-left:20px; }
.documents-toolbar { min-height:3.25rem; display:flex; align-items:center; gap:24px; border-block:1px solid #d4d4d4; padding:0.375rem 1.25rem; }
.documents-toolbar>label { display:flex; align-items:center; gap:8px; margin:0; color:#555; font-weight:400; white-space:nowrap; }
.documents-page input[type=checkbox] { appearance:none; width:25px; height:25px; min-height:25px; border:1px solid #555; border-radius:4px; margin:0; padding:0; flex:none; cursor:pointer; position:relative; }
.documents-page input[type=checkbox]:checked::after { content:''; position:absolute; width:13px; height:7px; border:solid #555; border-width:0 0 1.5px 1.5px; transform:rotate(-45deg); top:6px; left:5px; }
.documents-page input[type=checkbox]:indeterminate::after { content:''; position:absolute; height:2px; width:13px; background:#555; top:11px; left:5px; }
.documents-page input[type=checkbox]:focus-visible { outline:2px solid #009f59; outline-offset:3px; }
.documents-toolbar .documents-sort { margin-left:auto; gap:5px; color:#888; font-size:.9rem; }
.documents-sort select { min-height:36px; width:auto; border:0; padding:4px 22px 4px 0; color:#888; font-size:.9rem; font-weight:650; }
.documents-upload { display:flex; align-items:center; gap:16px; margin:12px 12px 12px 0; padding:0.75rem 1rem; border:1px dashed #00b467; border-radius:4px; color:#00a65a; min-height:4.25rem; }
.documents-upload:hover { background:#f5fcf8; text-decoration:none; }
.documents-upload>.icon { flex:none; width:22px; height:22px; stroke-width:1.3; }
.documents-upload strong { display:block; font-size:1rem; }
.documents-upload small { display:block; color:#888; font-size:.82rem; margin-top:2px; }
.documents-rows { max-height:calc(100dvh - 21.25rem); min-height:230px; overflow-y:auto; padding-right:12px; scrollbar-color:#999 #fff; scrollbar-width:thin; }
.document-row { display:flex; align-items:center; gap:1.125rem; min-height:4.9375rem; padding:0.75rem 1.125rem; border-bottom:1px solid #ccc; }
.document-row:hover { background:#fafafa; }
.document-row.selected { background:#f4f4f4; border:1px solid #ccc; border-radius:4px; padding:0.6875rem 1.0625rem 0.75rem; }
.document-row>input[type=checkbox] { width:31px; height:31px; }
.document-row>input[type=checkbox]:checked::after { width:16px; height:9px; top:7px; left:6px; }
.document-row-link { display:flex; justify-content:space-between; align-items:center; gap:20px; min-width:0; width:100%; color:#333; }
.document-row-link:hover { text-decoration:none; }
.document-row-copy { min-width:0; }
.document-row-copy>strong { display:block; font-size:1.25rem; font-weight:650; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.document-row-copy>span,.document-extra { display:block; color:#888; font-size:.95rem; margin-top:2px; }
.document-extra { font-size:.8rem; }
.document-row-amount { color:#888; text-align:right; white-space:nowrap; }
.document-row-amount strong { display:block; font-size:1.25rem; font-weight:700; }
.document-row-amount>span { display:block; font-size:.95rem; margin-top:3px; }
.documents-panel { background:#f5f5f5; min-width:0; border-top:1px solid #d4d4d4; max-height:calc(100dvh - 12.875rem); overflow-y:auto; scrollbar-width:thin; }
.document-panel-tools { display:flex; align-items:center; gap:1.25rem; min-height:4rem; padding:0.75rem 1.25rem; color:#999; }
.document-panel-tools a,.document-panel-tools button { color:#333; display:grid; place-items:center; width:32px; height:32px; min-height:32px; padding:2px; background:none; border:0; border-radius:3px; }
.document-panel-tools .icon { stroke-width:1.1; }
.document-panel-tools a:hover,.document-panel-tools button:hover { background:#e5e5e5; }
.document-panel-tools .document-panel-close { margin-left:auto; }
.document-panel-placeholder>p { color:#999; text-align:center; margin:140px 15px 30px; font-size:1.15rem; line-height:1.5; }
.document-panel-content { padding:0 18px 30px; font-size:.85rem; }
.document-thumbnail { position:relative; border:1px solid #ccc; border-radius:4px; background:white; overflow:hidden; margin:20px 0 38px; }
.document-thumbnail iframe,.document-thumbnail img { display:block; width:100%; height:225px; border:0; object-fit:contain; }
.document-thumbnail>a { position:absolute; right:8px; bottom:8px; background:#fff; color:#888; padding:2px; }
.document-thumbnail .icon { width:18px; height:18px; }
.document-panel-content dl { margin:0; }
.document-panel-content dl>div { display:flex; justify-content:space-between; align-items:baseline; gap:10px; margin:10px 0; }
.document-panel-content dt { font-weight:400; flex-shrink:0; }
.document-panel-content dd { margin:0; font-weight:650; text-align:right; overflow-wrap:anywhere; min-width:0; }
.document-panel-content dd a { color:#888; text-decoration:underline; display:block; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.document-panel-content .document-panel-dates>div:first-child { justify-content:flex-end; font-weight:650; }
.document-panel-dates>div:first-child dt { font-weight:650; }
.document-panel-divider { display:flex; gap:10px; align-items:center; font-size:.85rem; font-weight:400; margin:26px 0 14px; }
.document-panel-divider::before,.document-panel-divider::after { content:''; height:1px; background:#aaa; flex:1; }
.document-payment-reference { font-style:italic; font-weight:600; overflow-wrap:anywhere; }
.document-open-link { display:block; text-align:right; margin-top:30px; text-decoration:underline; }
.documents-empty,.documents-multiple { color:#888; padding:30px 20px; }
.documents-pagination { display:flex; justify-content:flex-end; gap:20px; padding:16px 20px; color:#777; font-size:.9rem; }
.documents-status { margin:0; padding:0 20px; }
.documents-upload.drag-over { background:#e9f7ef; outline:2px solid #009f59; }
.documents-upload-dialog { position:fixed; inset:0; margin:0; padding:0; width:100%; max-width:none; height:100dvh; max-height:none; border:0; background:#f5f5f5; }
.documents-upload-dialog::backdrop { background:#0006; }
.documents-upload-dialog iframe { display:block; width:100%; height:100%; border:0; }
.documents-search-field { font-weight:400; }
.documents-heading { position:relative; }
.documents-export { position:absolute; right:28px; bottom:22px; border:0; background:transparent; color:#888; text-decoration:underline; padding:4px; min-height:32px; font-size:.95rem; }
.documents-export:hover { color:#009f59; background:transparent; }
.documents-export:disabled { color:#aaa; opacity:.6; cursor:default; }
@media(max-width:1100px) { .documents-export { position:static; display:block; margin:8px 0 0 auto; } }
@media(min-width:2000px) { .documents-columns { grid-template-columns:minmax(0,1fr) 360px; } }
@media(max-width:1200px) { .documents-workspace { grid-template-columns:12.5rem minmax(0,1fr); } .documents-columns { grid-template-columns:minmax(0,1fr) 275px; } .documents-toolbar { gap:14px; padding-inline:10px; flex-wrap:wrap; } .document-row { gap:0.75rem; padding-inline:10px; } .document-row-copy>strong,.document-row-amount strong { font-size:1.05rem; } .document-panel-tools { gap:0.75rem; } }
@media(max-width:960px) { .documents-columns { grid-template-columns:1fr; } .documents-panel { display:none; } .documents-panel.has-selection { display:block; position:fixed; top:0; right:0; bottom:0; z-index:25; width:min(360px,100%); max-height:100dvh; box-shadow:-6px 0 30px #0003; } .documents-toolbar .documents-sort { margin-left:auto; } }
@media(max-width:600px) { .documents-workspace { display:block; } .documents-sidebar { padding-top:0.75rem; } .documents-new.button { width:calc(100% - 24px); margin:0 12px 8px; border-radius:4px; } .documents-sidebar nav { display:flex; overflow-x:auto; padding:0 8px; } .documents-nav-group { flex:none; } .documents-nav-group>a { padding:0.625rem; font-size:.875rem; } .documents-nav-group>a>.icon { display:none; } .documents-nav-group:last-child { border:0; } .documents-subnav { padding:0 10px 10px; } .documents-subnav>a { font-size:.75rem; padding:4px 0; } .documents-heading { padding:1.25rem 0.75rem 0.75rem; } .documents-heading h1 { font-size:1.65rem; margin-bottom:0.75rem; } .documents-list-column { padding-left:12px; } .documents-toolbar { margin-right:12px; } .documents-toolbar .documents-sort { width:100%; justify-content:flex-end; } .documents-upload { gap:10px; padding:0.625rem; } .documents-upload strong { font-size:.875rem; } .documents-upload small { font-size:.7rem; } .documents-rows { max-height:none; } .document-row { gap:0.625rem; padding:0.875rem 0.25rem; } .document-row.selected { padding:0.8125rem 0.1875rem 0.875rem; } .document-row-link { gap:10px; } .document-row-copy>span { font-size:.75rem; } .document-row-copy>strong { white-space:normal; font-size:.95rem; } .document-row>input[type=checkbox] { width:25px; height:25px; } .document-row>input[type=checkbox]:checked::after { width:13px; height:7px; top:6px; left:5px; } .document-row-amount strong { font-size:.95rem; } .document-row-amount>span { font-size:.75rem; } }

.accounting-navigation { position:relative; display:flex; align-self:stretch; border-bottom:3px solid transparent; }
.accounting-navigation[data-current] { border-color:#00b56b; }
.accounting-navigation summary { list-style:none; display:flex; align-items:center; gap:8px; color:#ddd; cursor:pointer; height:100%; padding-top:3px; }
.accounting-navigation summary::-webkit-details-marker { display:none; }
.accounting-navigation summary .icon { width:16px; height:16px; }
.accounting-navigation[open] { background:#111; }
.accounting-navigation>div { position:absolute; top:100%; left:-16px; background:#fff; min-width:255px; padding:6px 0; box-shadow:0 4px 12px #0003; border-radius:0 0 3px 3px; z-index:25; }
.accounting-navigation a { display:block; color:#888; padding:7px 22px; font-size:1rem; white-space:nowrap; }
.accounting-navigation a:hover { background:#f5f5f5; color:#333; text-decoration:none; }
.accounting-navigation a[aria-current] { color:#333; }
.accounting-page { background:#fff; }
.accounting-page main { max-width:none; padding:0; }
.accounting-page .app-footer { display:none; }
.open-items-workspace { padding:30px 28px; }
.open-items-workspace>h1 { font-size:2rem; font-weight:400; margin:0 0 18px; }
.open-items-filters { display:flex; gap:12px; align-items:center; margin-bottom:10px; }
.open-items-filters select,.open-items-filters input { width:290px; max-width:100%; min-height:40px; padding:7px 12px; border:1px solid #d5d5d5; border-radius:3px; background-color:#f5f5f5; color:#777; font-weight:400; }
.open-items-filters input::placeholder { color:#888; }
.accounting-print { margin-left:auto; padding:8px 24px; min-height:40px; text-transform:none; font-weight:400; font-size:1rem; }
.open-items-table { width:100%; border-collapse:separate; border-spacing:0 4px; }
.open-items-table>thead th { padding:4px 10px; background:#f0f0f0; border-block:1px solid #d7d7d7; text-transform:none; letter-spacing:0; color:#444; font-size:1rem; }
.open-items-table>thead th:last-child { font-weight:400; text-align:right; padding-right:20px; }
.open-items-table>thead a { color:inherit; }
.open-items-table>tbody>tr>td { padding:0; border:0; }
.open-items-table>tbody>tr>.open-items-empty { height:139px; text-align:center; color:#777; background:#f6f6f6; font-size:1rem; }
.open-items-group { background:#f6f6f6; }
.open-items-group>summary { display:flex; align-items:center; justify-content:space-between; padding:14px 20px 14px 12px; cursor:pointer; list-style:none; }
.open-items-group>summary::-webkit-details-marker { display:none; }
.open-items-group>summary>span::before { content:'›'; display:inline-block; margin-right:12px; color:#888; }
.open-items-group[open]>summary>span::before { transform:rotate(90deg); }
.open-items-group table { background:#fff; font-size:.9rem; }
.open-items-group table th { text-transform:none; letter-spacing:0; background:#fafafa; font-size:.85rem; }
.open-items-group table td:last-child,.open-items-group table th:last-child { text-align:right; }
.open-items-table tfoot th,.open-items-table tfoot td { padding:12px 20px; background:#f0f0f0; font-weight:650; }
.open-items-table tfoot td { text-align:right; }
.accounting-workspace { display:grid; grid-template-columns:14.75rem minmax(0,1fr); min-height:calc(100dvh - 4rem); }
.accounting-sidebar { background:#f5f5f5; padding-top:5.25rem; }
.accounting-sidebar nav>a { display:flex; align-items:center; gap:12px; min-height:3.0625rem; padding:0.75rem 1.125rem; color:#333; }
.accounting-sidebar nav>a .icon { color:#999; width:23px; height:25px; stroke-width:1.2; }
.accounting-sidebar nav>a[aria-current] { background:#fff; }
.accounting-sidebar nav>a[aria-current] .icon { color:#333; }
.accounting-sidebar nav>a:hover { text-decoration:none; background:#ebebeb; }
.accounting-new.button { display:flex; align-items:center; justify-content:center; gap:3px; border-radius:0 4px 4px 0; min-height:2.875rem; text-transform:none; font-size:1rem; margin-bottom:34px; }
.accounting-new .icon { width:18px; height:18px; stroke-width:3; }
.accounting-main { min-width:0; }
.accounting-heading { padding:1.5rem 1.25rem 1.125rem; border-bottom:1px solid #ccc; min-height:9.9375rem; }
.accounting-heading h1 { font-size:2rem; margin:0 0 20px; font-weight:650; }
.accounting-header-controls { display:flex; align-items:flex-start; gap:20px; }
.accounting-header-controls>form { min-width:0; width:490px; max-width:100%; }
.accounting-header-controls input[type=search] { min-height:2.9375rem; border:1px solid #ccc; border-radius:4px; padding:10px 12px; width:100%; min-width:0; font-size:1rem; font-weight:400; }
.accounting-header-controls input::placeholder { color:#bbb; }
.accounting-header-links { display:flex; flex-direction:column; align-items:flex-end; margin-left:40px; min-width:185px; gap:2px; }
.accounting-header-links>a,.accounting-header-links>button { padding:0; color:#999; text-decoration:underline; background:transparent; border:0; min-height:21px; font-size:.9rem; font-weight:400; line-height:1.4; }
.accounting-header-links>a:hover,.accounting-header-links>button:hover { color:#333; }
.accounting-period { position:relative; margin-left:auto; z-index:10; flex-shrink:0; }
.accounting-period>summary { display:flex; align-items:center; gap:3px; cursor:pointer; min-height:2.9375rem; padding:10px 12px; border:1px solid #999; border-radius:4px; color:#888; font-weight:650; font-size:.95rem; list-style:none; }
.accounting-period>summary::-webkit-details-marker { display:none; }
.accounting-period>summary .icon { width:14px; height:14px; }
.accounting-period-popover { position:absolute; right:0; top:calc(100% + 3px); width:280px; background:#fff; border:1px solid #ddd; border-radius:4px; box-shadow:0 4px 12px #0003; padding:18px; font-size:1rem; }
.accounting-period-popover a { color:#999; display:block; text-align:center; border-radius:4px; padding:5px 2px; }
.accounting-period-popover a:hover { background:#f0f0f0; text-decoration:none; }
.accounting-period-popover a[aria-current] { color:#fff; background:#999; }
.accounting-period-year { display:grid; grid-template-columns:30px 1fr 30px; align-items:center; text-align:center; border:1px solid #aaa; border-radius:3px; color:#999; }
.accounting-period-year .icon { width:14px; height:14px; }
.accounting-period-popover>.accounting-period-whole { margin:22px 0 12px; padding:3px; }
.accounting-period-quarters,.accounting-period-months { display:grid; grid-template-columns:repeat(4,1fr); gap:5px 4px; }
.accounting-period-quarters { border-block:1px solid #aaa; padding:10px 0; margin-bottom:10px; }
.accounting-columns { display:grid; grid-template-columns:minmax(0,1fr) 320px; }
.accounting-list { min-width:0; padding-left:20px; }
.accounting-table-scroll { overflow:auto; max-height:calc(100dvh - 16.875rem); min-height:220px; scrollbar-color:#999 #fff; scrollbar-width:thin; padding-right:12px; }
.accounting-table { width:100%; border-collapse:collapse; font-size:.9rem; color:#999; }
.accounting-table th { position:sticky; top:0; z-index:1; background:#fff; padding:0.625rem 0.75rem; border-bottom:1px solid #ccc; font-size:.9rem; color:#999; text-transform:none; letter-spacing:0; white-space:nowrap; }
.accounting-table td { padding:0.625rem 0.75rem; border-bottom:1px solid #ccc; white-space:nowrap; }
.accounting-table .accounting-table-empty { white-space:normal; text-align:center; height:140px; background:#f6f6f6; }
.bookings-table { table-layout:fixed; min-width:1000px; }
.bookings-table th:nth-child(1) { width:110px; }
.bookings-table th:nth-child(2) { width:22%; }
.bookings-table th:nth-child(3) { width:auto; }
.bookings-table th:nth-child(4) { width:105px; }
.bookings-table th:nth-child(5) { width:95px; }
.bookings-table th:nth-child(6) { width:100px; }
.bookings-table th:nth-child(7),.bookings-table th:nth-child(8) { width:70px; }
.bookings-table td { overflow:hidden; text-overflow:ellipsis; }
.bookings-table td:nth-child(4),.bookings-table td:nth-child(6),.bookings-table td:nth-child(7),.bookings-table td:nth-child(8),.bookings-table th:nth-child(4),.bookings-table th:nth-child(6),.bookings-table th:nth-child(7),.bookings-table th:nth-child(8) { text-align:right; }
.bookings-table a { color:inherit; }
.bookings-table tbody tr[data-booking-key] { cursor:pointer; }
.bookings-table tbody tr[data-booking-key]:hover { background:#fafafa; }
.bookings-table tbody tr.selected { background:#eaeaea; outline:1px solid #ccc; outline-offset:-1px; }
.accounting-detail { background:#f5f5f5; padding:1.125rem; min-width:0; max-height:calc(100dvh - 13.9375rem); overflow:auto; scrollbar-width:thin; font-size:.85rem; }
.accounting-placeholder { color:#999; text-align:center; margin:95px 0 30px; font-size:1.15rem; line-height:1.5; }
.accounting-detail-tools { display:flex; justify-content:flex-end; }
.accounting-detail-tools button { border:0; background:transparent; color:#888; padding:4px; min-height:32px; width:32px; }
.accounting-detail-tools .icon { width:21px; height:21px; }
.accounting-detail-content .document-thumbnail { margin:0 0 18px; }
.accounting-detail-content dl { margin:0; }
.accounting-detail-content dl>div { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin:12px 0; }
.accounting-detail-content dt { font-weight:400; flex-shrink:0; }
.accounting-detail-content dd { margin:0; font-weight:650; text-align:right; overflow-wrap:anywhere; min-width:0; }
.accounting-detail-description { font-style:italic; overflow-wrap:anywhere; }
.accounting-detail-link { display:block; text-decoration:underline; margin-top:16px; color:#888; }
.accounting-basis { font-size:.8rem; color:#888; padding:12px; margin:0; }
.accounts-page .accounting-sidebar { padding-top:159px; }
.accounts-page .accounting-header-controls>form { width:auto; flex:1; display:flex; flex-wrap:wrap; align-items:center; gap:0 20px; }
.accounts-search-field { display:flex; align-items:center; gap:8px; width:430px; max-width:100%; border:1px solid #ccc; border-radius:4px; padding:0 12px; margin:0; font-weight:400; }
.accounts-search-field>.icon { width:18px; height:18px; stroke-width:1; color:#bbb; }
.accounting-header-controls .accounts-search-field input[type=search] { border:0; padding-inline:0; min-height:45px; }
.accounts-search-field:focus-within { outline:2px solid #009f59; }
.accounts-search-field input:focus { outline:none; }
.accounting-check { display:flex; align-items:center; gap:8px; color:#666; font-weight:400; margin:0; white-space:nowrap; min-height:2.9375rem; }
.accounting-check input[type=checkbox] { appearance:none; width:25px; height:25px; min-height:25px; border:1px solid #555; border-radius:4px; margin:0; padding:0; cursor:pointer; position:relative; }
.accounting-check input[type=checkbox]:checked::after { content:''; position:absolute; width:13px; height:7px; border:solid #555; border-width:0 0 1.5px 1.5px; transform:rotate(-45deg); top:6px; left:5px; }
.accounting-header-controls>form>p { flex-basis:100%; margin:4px 0 0; font-size:.8rem; color:#999; }
.accounting-header-links>span { color:#999; font-size:.9rem; min-height:21px; }
.accounts-table th:first-child,.accounts-table td:first-child { width:110px; text-align:right; }
.accounts-table th:nth-last-child(-n+3),.accounts-table td:nth-last-child(-n+3) { width:140px; text-align:right; }
.accounts-table td:nth-child(2) { min-width:240px; white-space:normal; }
.accounts-table td:nth-child(3):not(:nth-last-child(3)) { white-space:normal; }
.accounts-table a { color:inherit; }
.accounts-table tr.selected { background:#eaeaea; }
.accounts-table tr[data-account-number]:hover { background:#fafafa; }
.accounting-account-name { font-size:1.1rem; margin:12px 0 20px; }
.accounting-account-name>span { display:block; font-size:1rem; font-weight:400; margin-top:4px; }
.account-balance { margin:0; }
.account-balance>div { display:flex; justify-content:space-between; gap:10px; margin:8px 0; }
.account-balance dt { font-weight:400; }
.account-balance dd { font-weight:650; margin:0; white-space:nowrap; }
.account-movement { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid #ddd; color:#777; }
.account-movement>span { min-width:0; }
.account-movement strong { white-space:nowrap; font-weight:600; }
.account-movement small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:5px; font-size:.8rem; }
.accounting-detail-tools>a { color:#888; padding:4px; }
.contact-editor-page main { padding:28px 16px; }
.contact-editor-standalone { width:min(43.125rem,100%); margin:0 auto; background:#fff; border-radius:4px; box-shadow:0 5px 24px #0002; overflow:hidden; }
.contact-editor-header { display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #ddd; padding:1.125rem 1.75rem; }
.contact-editor-header h2 { font-size:1.35rem; margin:0; font-weight:600; }
.contact-editor-header>a { color:#888; padding:3px; display:grid; place-items:center; }
.contact-editor-header .icon { width:25px; height:25px; stroke-width:1.4; }
.contact-editor-body { padding:1.625rem 1.75rem 1.75rem; }
.contact-editor-body h3 { margin:0 0 24px; font-size:1.5rem; font-weight:600; }
.contact-entity-options { display:flex; align-items:center; gap:20px; margin-bottom:30px; }
.contact-entity-options>label { display:flex; align-items:center; gap:12px; margin:0; font-weight:400; font-size:1.2rem; }
.contact-entity-options input { appearance:none; width:23px; height:23px; min-height:23px; border:2px solid #888; border-radius:50%; padding:0; margin:0; }
.contact-entity-options input:checked { border-color:#00a360; box-shadow:inset 0 0 0 4px #fff; background:#00a360; }
.contact-editor-body input[type=text],.contact-editor-body input[type=email],.contact-editor-body input[type=url],.contact-editor-body input[type=number] { font-size:1.1rem; font-weight:400; min-width:0; width:100%; }
.contact-editor-body [data-company-name]>input,.contact-person-names input { min-height:4rem; padding:0.9375rem; border:1px solid #ccc; border-radius:4px; }
.contact-editor-body input::placeholder { color:#999; }
.contact-kind.outlined-field,.contact-number.outlined-field { min-height:4rem; margin-top:1.75rem; padding:8px 12px; }
.contact-kind select { font-size:1.1rem; min-height:2.8125rem; }
.contact-number input { min-height:2.8125rem; color:#888; }
.contact-collective { display:flex; align-items:center; gap:12px; font-weight:400; font-size:1.1rem; margin:1.375rem 0 2.25rem; }
.contact-collective input[type=checkbox] { width:22px; height:22px; min-height:22px; margin:0; accent-color:#00a360; }
.contact-person-names { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.contact-person-names label { min-width:0; margin:0; }
.contact-addons { display:flex; flex-wrap:wrap; gap:18px 22px; margin-top:40px; }
.contact-addon { min-width:0; }
.contact-addon>summary { color:#555; text-transform:uppercase; font-size:.9rem; font-weight:600; cursor:pointer; list-style:none; padding:4px 8px; letter-spacing:.02em; }
.contact-addon>summary::-webkit-details-marker { display:none; }
.contact-addon>summary::before { content:'+ '; }
.contact-addon[open] { width:100%; }
.contact-addon[open]>summary::before { content:'− '; }
.contact-addon>div { padding:8px 0 12px; }
.contact-addon .outlined-field { margin:16px 0 6px; }
.contact-addon textarea { min-height:90px; font-size:1rem; }
.contact-editor-footer { display:flex; align-items:center; justify-content:flex-end; gap:10px; padding:1.125rem; border-top:1px solid #ddd; background:#fff; width:100%; max-width:none; margin:0; }
.contact-editor input:focus-visible { outline:2px solid #00a35b; outline-offset:1px; }
.contact-editor-footer>a { text-transform:uppercase; font-weight:650; font-size:.9rem; padding:10px; color:#555; margin-right:2px; }
.contact-editor-footer .button { font-size:.9rem; padding:0.625rem 0.9375rem; min-height:2.625rem; }
.contact-editor-status { color:#b42318; margin:8px 0 0; font-size:.875rem; }
.contact-delete-form { padding:10px 28px; display:flex; align-items:center; gap:12px; border-top:1px solid #eee; }
.contact-delete-form button { border:0; background:transparent; color:#a52922; padding:4px 0; font-size:.875rem; }
.contact-delete-form span { color:#888; font-size:.8rem; }
.contacts-page { background:#f5f5f5; }
.contacts-page main { max-width:1720px; padding:1.5rem 1.75rem 2.5rem; margin:0 auto; }
.contacts-page .app-footer { display:none; }
.contacts-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:20px; }
.contacts-heading h1 { font-size:2rem; font-weight:500; margin:0; }
.contacts-heading>div { display:flex; align-items:center; gap:16px; }
.contacts-heading .button { display:flex; align-items:center; gap:8px; min-height:2.625rem; box-shadow:0 2px 4px #0003; font-size:.9rem; padding:0.625rem 1.125rem; }
.contacts-heading .button .icon { width:21px; height:21px; }
.contacts-tabs { display:flex; gap:0; margin-bottom:8px; }
.contacts-tabs>a { display:block; text-transform:uppercase; color:#777; padding:1rem 1.125rem 1.0625rem; font-weight:600; font-size:.95rem; border-bottom:2px solid transparent; }
.contacts-tabs>a[aria-current] { color:#00a35b; border-color:#00a35b; }
.contacts-tabs>a:hover { text-decoration:none; background:#f0f0f0; }
.contacts-columns { display:grid; grid-template-columns:minmax(0,2.08fr) minmax(300px,1fr); gap:34px; align-items:start; }
.contacts-card { background:#fff; border-radius:4px; box-shadow:0 1px 3px #0004; min-width:0; }
.contacts-search { padding:1.75rem 1.125rem 1.5rem; display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.contacts-search>.outlined-field { width:460px; max-width:65%; min-height:4rem; margin-top:8px; padding:0.625rem 0.75rem; }
.contacts-search>.outlined-field>input { font-size:1.1rem; font-weight:400; }
.contacts-search .outlined-field>.icon { width:24px; height:24px; stroke-width:1.5; }
.contacts-filter { position:relative; flex-shrink:0; margin-top:20px; }
.contacts-filter>summary { display:flex; align-items:center; gap:10px; text-transform:uppercase; font-weight:650; color:#555; padding:5px 12px; font-size:.9rem; cursor:pointer; list-style:none; }
.contacts-filter>summary::-webkit-details-marker { display:none; }
.contacts-filter>summary>.icon { width:20px; height:20px; }
.contacts-filter>div { position:absolute; top:100%; right:0; min-width:260px; padding:16px; box-shadow:0 4px 14px #0003; background:#fff; border:1px solid #ddd; border-radius:4px; z-index:12; }
.contacts-filter>div>label { font-size:.875rem; font-weight:400; color:#666; margin-bottom:12px; }
.contacts-filter select { font-size:.9rem; margin-top:4px; }
.contacts-filter>div>.contacts-filter-check { display:flex; align-items:center; gap:8px; margin:0; }
.contacts-filter-check input { width:20px; height:20px; min-height:20px; }
.contacts-table-scroll { position:relative; overflow-x:auto; padding-bottom:4px; }
.contacts-table { table-layout:fixed; width:100%; min-width:1000px; border-collapse:collapse; color:#333; font-size:.95rem; }
.contacts-table th { background:#fff; text-transform:none; letter-spacing:0; color:#222; font-size:.95rem; font-weight:600; padding:1.25rem 0.5rem 1.75rem; border-bottom:1px solid #ddd; }
.contacts-table td { height:4.875rem; padding:1.125rem 0.5rem; border-bottom:1px solid #ddd; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.contacts-table th:first-child,.contacts-table td:first-child { width:50px; text-align:center; padding-left:16px; }
.contacts-table th:nth-child(2) { width:8%; }
.contacts-table th:nth-child(3) { width:17%; }
.contacts-table th:nth-child(4) { width:12%; }
.contacts-table th:nth-child(5) { width:14%; }
.contacts-table th:nth-child(6),.contacts-table th:nth-child(7) { width:13%; }
.contacts-table th:nth-child(8) { width:12%; }
.contacts-table th:last-child,.contacts-table td:last-child { width:38px; overflow:visible; padding-right:14px; }
.contacts-table th:nth-child(6),.contacts-table th:nth-child(7),.contacts-table td:nth-child(6),.contacts-table td:nth-child(7) { text-align:right; }
.contacts-table a { color:inherit; }
.contacts-table th .icon { width:18px; height:18px; color:#777; stroke-width:1.4; }
.contacts-table input[type=checkbox] { width:21px; height:21px; min-height:21px; padding:0; margin:0; accent-color:#00a360; }
.contacts-table tbody tr:hover { background:#fafafa; }
.contacts-table tbody tr.selected { background:#f2f8f4; }
.contacts-table .contacts-empty { height:150px; text-align:center; white-space:normal; color:#888; }
.contact-menu { position:relative; }
.contact-menu>summary { list-style:none; display:grid; place-items:center; cursor:pointer; width:28px; min-height:32px; color:#888; }
.contact-menu>summary::-webkit-details-marker { display:none; }
.contact-menu>summary>.icon { width:21px; height:21px; }
.contact-menu>div { position:absolute; right:0; top:100%; background:#fff; border:1px solid #ddd; border-radius:4px; padding:6px 0; box-shadow:0 4px 12px #0002; min-width:160px; z-index:14; }
.contact-menu a,.contact-menu button { display:block; padding:8px 16px; font-size:.875rem; color:#555; background:none; border:0; text-align:left; min-height:36px; width:100%; white-space:nowrap; }
.contact-menu a:hover,.contact-menu button:hover { text-decoration:none; background:#f5f5f5; }
.contacts-tools>div { min-width:195px; }
.contact-tag { display:inline-block; max-width:100%; padding:3px 6px; background:#f3f3f3; color:#777; border-radius:3px; margin:1px 2px 1px 0; font-size:.75rem; overflow:hidden; text-overflow:ellipsis; vertical-align:middle; }
.contacts-selection { display:flex; flex-wrap:wrap; align-items:center; gap:12px; background:#eff8f2; padding:12px 20px; color:#555; font-size:.875rem; }
.contacts-selection>button { background:transparent; border:0; color:#009f59; min-height:30px; font-size:.875rem; padding:0; text-decoration:underline; }
.contact-tasks { padding:20px 18px; min-height:250px; }
.contact-tasks>h2 { font-size:1.35rem; font-weight:600; margin:0 0 28px; }
.contact-task-create>summary { display:flex; align-items:center; justify-content:center; gap:10px; min-height:42px; border:1px solid #8bcba9; border-radius:4px; color:#00a35b; font-size:.95rem; font-weight:600; text-transform:uppercase; cursor:pointer; list-style:none; }
.contact-task-create>summary::-webkit-details-marker { display:none; }
.contact-task-create>summary .icon { width:20px; height:20px; }
.contact-task-create>form { padding-top:12px; }
.contact-task-create .outlined-field { margin-top:20px; }
.contact-task-create .button { display:block; width:100%; margin-top:14px; font-size:.875rem; }
.contact-task-list { margin-top:20px; }
.contact-task { display:flex; gap:12px; padding:16px 0; border-bottom:1px solid #eee; }
.contact-task button { border:0; background:none; color:#999; padding:0; min-height:28px; display:grid; place-items:center; }
.contact-task button:hover { color:#009f59; }
.contact-task strong { display:block; font-weight:500; font-size:1rem; overflow-wrap:anywhere; }
.contact-task>div { min-width:0; }
.contact-task a,.contact-task span { display:block; margin-top:4px; font-size:.875rem; color:#888; }
.contact-task .task-overdue { color:#b44e28; }
.contact-tasks-empty { text-align:center; color:#999; padding:42px 12px 55px; }
.contact-tasks-empty>.icon { width:42px; height:42px; color:#a3cbb5; stroke-width:1; margin-bottom:12px; }
.contact-tasks-empty p { margin:0; font-size:1rem; }
.contact-dialog { width:min(43.125rem,calc(100% - 2rem)); max-width:none; padding:0; border:0; border-radius:4px; background:#fff; box-shadow:0 16px 50px #0005; max-height:calc(100dvh - 32px); }
.contact-dialog::backdrop { background:#0007; }
.contact-dialog .contact-editor { display:flex; flex-direction:column; max-height:calc(100dvh - 32px); }
.contact-dialog .contact-editor-header,.contact-dialog .contact-editor-footer { flex-shrink:0; }
.contact-dialog .contact-editor-body { overflow-y:auto; }
@media(max-width:1300px) { .contacts-page main { padding-inline:20px; } .contacts-columns { gap:22px; grid-template-columns:minmax(0,2fr) minmax(280px,1fr); } }
@media(max-width:960px) { .contacts-columns { grid-template-columns:1fr; } .contact-tasks { min-height:0; } }
@media(max-width:600px) { .contacts-page main { padding:1.375rem 0.75rem; } .contacts-heading { flex-wrap:wrap; gap:14px; } .contacts-heading>div { width:100%; justify-content:space-between; } .contacts-heading .button { font-size:.8rem; } .contacts-tabs>a { padding:0.75rem 1rem 0.875rem; font-size:.85rem; } .contacts-search { padding:1.25rem 0.875rem; gap:8px; } .contacts-search>.outlined-field { max-width:none; width:auto; flex:1; min-height:3.625rem; padding:0.375rem; } .contacts-search>.outlined-field>input { font-size:.95rem; padding-left:0; } .contacts-search .outlined-field>.icon { width:20px; height:20px; margin-inline:4px; } .contacts-filter>summary { padding-inline:4px; font-size:.8rem; gap:4px; } .contact-dialog { width:calc(100% - 1rem); max-height:calc(100dvh - 16px); } .contact-dialog .contact-editor { max-height:calc(100dvh - 16px); } }
@media(max-width:600px) { .contact-editor-header { padding:1rem; } .contact-editor-body { padding:1.375rem 1.125rem; } .contact-editor-footer { flex-wrap:wrap; padding:0.75rem; gap:8px; } .contact-editor-footer>a { padding:8px; } .contact-editor-footer .button { font-size:.8rem; padding:0.5625rem 0.625rem; } .contact-addons { gap:12px; } .contact-addon>summary { font-size:.8rem; padding:4px 0; } .contact-delete-form { padding:12px 18px; flex-wrap:wrap; gap:2px 12px; } }
@media(max-width:600px) { .accounts-page .accounting-sidebar { padding-top:12px; } .accounts-page .accounting-header-controls>form { flex-basis:100%; gap:0 12px; } .accounts-search-field { width:100%; } .accounting-check { font-size:.875rem; } .accounts-table { min-width:700px; } }
@media(min-width:2000px) { .accounting-columns { grid-template-columns:minmax(0,1fr) 360px; } }
@media(max-width:1200px) { .accounting-workspace { grid-template-columns:12.5rem minmax(0,1fr); } .accounting-columns { grid-template-columns:minmax(0,1fr) 275px; } .accounting-header-controls { flex-wrap:wrap; gap:12px; } .accounting-header-links { margin-left:0; } .accounting-header-controls>form { width:100%; } .accounting-period { margin-left:0; } .accounting-header-links { margin-left:auto; } }
@media(max-width:960px) { .accounting-columns { grid-template-columns:1fr; } .accounting-detail { display:none; } .accounting-detail.has-selection { display:block; position:fixed; top:0; right:0; bottom:0; z-index:25; width:min(360px,100%); max-height:100dvh; box-shadow:-6px 0 30px #0003; } .accounting-table-scroll { max-height:calc(100dvh - 21.25rem); } }
@media(max-width:600px) { .accounting-workspace { display:block; } .accounting-sidebar { padding-top:0.75rem; } .accounting-new.button { margin:0 12px 8px; border-radius:4px; } .accounting-sidebar nav { display:flex; overflow:auto; } .accounting-sidebar nav>a { white-space:nowrap; flex:none; padding:0.625rem; font-size:.875rem; } .accounting-sidebar nav>a .icon { display:none; } .accounting-heading { padding:1.25rem 0.75rem 0.875rem; } .accounting-heading h1 { font-size:1.6rem; } .accounting-header-controls { gap:12px; } .accounting-header-controls input[type=search] { font-size:.875rem; } .accounting-period-popover { right:auto; left:0; } .accounting-list { padding-left:12px; } .accounting-table-scroll { max-height:60dvh; } }
@media print { .accounting-workspace,.accounting-columns { display:block; } .accounting-sidebar,.accounting-detail,.accounting-header-controls,.accounting-page .documents-pagination { display:none!important; } .accounting-heading { min-height:0; padding:0 0 0.75rem; } .accounting-list { padding:0; } .accounting-table-scroll { max-height:none; overflow:visible; padding:0; } .accounting-table { color:#333; font-size:9pt; } .accounting-table th { position:static; font-size:9pt; } .accounting-table td,.accounting-table th { padding:0.3125rem; } .bookings-table { min-width:0; table-layout:auto; } .bookings-table th:nth-child(n) { width:auto; } .bookings-table td:nth-child(3) { white-space:normal; } .accounting-table tr { break-inside:avoid; } }
@media(max-width:700px) { .open-items-workspace { padding:24px 12px; } .open-items-filters { flex-wrap:wrap; } .open-items-filters select,.open-items-filters input { flex:1 1 240px; width:100%; } .open-items-group table { font-size:.8rem; } .open-items-group table th,.open-items-group table td { padding:8px 4px; } .accounting-navigation { align-self:center; min-height:50px; } .accounting-navigation>div { left:auto; right:-10px; } }
@media print { .accounting-page .app-header,.accounting-page .app-footer,.accounting-page .skip-link,.accounting-page .messages,.accounting-page form,.accounting-page [data-print] { display:none!important; } .accounting-page .workspace,.accounting-page main { margin:0; padding:0; } .open-items-workspace { padding:0; } .open-items-group:not([open])>table { display:table; } }

/* Desktop kompakter, mobile Bedienflaechen und Druckgroessen bleiben erhalten. */
@media screen and (min-width:961px) {
  :root { font-size:14px; }
}

/* Rechnungserstellung: Adresse, Texte und Positionen im gemeinsamen Arbeitsplatz. */
.invoice-page main { max-width:1440px; padding:2rem 3rem 3rem; }
.invoice-heading { margin-bottom:2.5rem; }
.invoice-heading h1 { font-size:2.5rem; margin:0; font-weight:650; }
.invoice-page .card { border:0; border-radius:5px; box-shadow:0 2px 3px #0003; margin-bottom:1.5rem; padding:1.5rem 2rem; }
.invoice-address-card { display:grid; grid-template-columns:1fr 1fr; gap:5rem; }
.invoice-address-column,.invoice-date-column { display:flex; flex-direction:column; gap:1.25rem; min-width:0; position:relative; }
.invoice-field { min-width:0; }
.invoice-page .outlined-field { min-height:4rem; margin:0; padding:.5rem .75rem; }
.invoice-page .outlined-field>input,.invoice-page .outlined-field>select,.invoice-page .outlined-field>textarea { font-size:1.15rem; font-weight:400; min-width:0; }
.invoice-page .outlined-field>input::placeholder { color:#aaa; }
.invoice-page .outlined-field>span:first-child { top:-.8rem; font-size:.9rem; }
.invoice-page input[type=date]::-webkit-calendar-picker-indicator { width:1.2rem; height:1.2rem; opacity:.6; cursor:pointer; }
.invoice-page .outlined-field:has([aria-invalid=true]) { border-color:#e53935; outline:1px solid #e53935; }
.invoice-page .outlined-field>span.sr-only { width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.invoice-readonly input { color:#999; }
.invoice-new-contact { position:absolute; right:0; top:-1.5rem; color:#888; font-size:.75rem; }
.invoice-address-city { display:grid; grid-template-columns:1fr 2.5fr; gap:1.25rem; }
.invoice-service-fields { display:grid; grid-template-columns:minmax(10rem,1.2fr) minmax(0,1fr); gap:1rem; align-items:center; }
.invoice-service-fields>[data-service-start],.invoice-service-fields>[data-service-end] { min-width:0; }
.invoice-service-fields.has-period { grid-template-columns:minmax(10rem,1.4fr) minmax(0,1fr) auto minmax(0,1fr); gap:.75rem; }
.invoice-until { color:#444; text-align:center; }
.invoice-text-card { display:grid; gap:1.5rem; }
.invoice-text-row { display:grid; grid-template-columns:minmax(0,1fr) 2.75rem; gap:1rem; align-items:center; }
.invoice-page textarea { height:3.5rem; min-height:3.5rem; padding:.25rem .5rem; }
.invoice-text-templates { position:relative; align-self:center; }
.invoice-text-templates>summary { list-style:none; color:#888; cursor:pointer; display:grid; place-items:center; width:2.75rem; height:2.75rem; }
.invoice-text-templates>summary::-webkit-details-marker { display:none; }
.invoice-text-templates>summary .icon { width:1.8rem; height:1.8rem; }
.invoice-text-templates>div { position:absolute; right:0; top:100%; padding:.5rem 0; min-width:11rem; z-index:12; box-shadow:0 3px 14px #0003; background:white; border:1px solid #ddd; border-radius:4px; }
.invoice-text-templates button { border:0; background:none; color:#555; display:block; width:100%; padding:.5rem 1rem; text-align:left; white-space:nowrap; }
.invoice-text-templates button:hover { background:#f3f3f3; }
.invoice-page .invoice-lines { padding:0; overflow:hidden; }
.invoice-lines #invoice-lines { padding:2.5rem 2.5rem 0; }
.invoice-position,.invoice-overall-discount { display:grid; grid-template-columns:2.5rem minmax(0,1fr) 7.5rem 2.5rem; align-items:start; gap:1rem; margin-bottom:2rem; }
.invoice-position-marker { width:2.5rem; height:2.5rem; border-radius:50%; background:#eee; display:grid; place-items:center; margin-top:.75rem; font-size:1.25rem; font-weight:650; }
.invoice-position-marker>span { grid-area:1/1; }
.invoice-position-fields { min-width:0; }
.invoice-article-fields { display:grid; grid-template-columns:minmax(12rem,1.6fr) minmax(26rem,2fr); gap:.75rem; }
.invoice-number-fields { display:grid; grid-template-columns:1fr 1.15fr 1.5fr 1fr; gap:.75rem; }
.invoice-number-fields input { text-align:right; }
.invoice-number-fields [name$="-unit"] { text-align:left; }
.invoice-field-suffix { position:absolute; right:.8rem; color:#888; font-size:1.15rem; pointer-events:none; }
.invoice-field .outlined-field:has(.invoice-field-suffix)>input { padding-right:1.5rem; }
.invoice-line-total { font-size:1.2rem; font-weight:700; white-space:nowrap; text-align:right; padding-top:1rem; }
.invoice-position-delete { color:#888; margin-top:.6rem; grid-column:4; }
.invoice-position-delete .icon { width:1.5rem; height:1.5rem; }
.is-free-text .invoice-article-fields { grid-template-columns:1fr; }
.invoice-free-text { margin-top:.75rem; }
.invoice-overall-discount { padding:0 2.5rem; }
.invoice-discount-fields { display:grid; grid-template-columns:1.6fr 1fr 1.1fr; gap:1rem; }
.invoice-discount-marker { background:#444; color:white; }
#id_discount_value { padding-right:1.5rem; text-align:right; }
.invoice-discount-fields .outlined-field[data-unit]::after { content:attr(data-unit); position:absolute; right:.75rem; color:#888; font-size:1.15rem; pointer-events:none; }
.invoice-add-actions { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:1.75rem; padding:1.5rem 1.5rem 3rem; }
.invoice-lines .invoice-add-actions #add-line { margin:0; }
.invoice-add-actions .button { padding:0 0 0 1rem; font-size:1.1rem; font-weight:600; min-height:3rem; gap:.75rem; }
.invoice-add-article>span { border-left:1px solid #8bcba9; padding:.5rem .75rem; margin-left:.5rem; }
.invoice-add-article .icon { width:1.5rem; height:1.5rem; }
.invoice-add-actions .text-button { display:flex; align-items:center; gap:.6rem; color:#555; font-size:1.1rem; font-weight:650; text-transform:uppercase; min-height:3rem; padding:.5rem 0; }
.invoice-add-actions .text-button>span { font-size:1.6rem; font-weight:700; line-height:1; }
.invoice-grand-total { display:flex; flex-direction:column; align-items:flex-end; gap:.5rem; padding:1.25rem 3rem 1.5rem; background:#444; color:white; border-radius:0 0 1.5rem 1.5rem; }
.invoice-grand-total>span { font-size:1.15rem; letter-spacing:.02em; }
.invoice-grand-total>output { font-size:2.25rem; font-weight:700; line-height:1.2; }
.invoice-tax-note { margin-right:3.75rem!important; }
.invoice-tax-note input { color:#888; }
.invoice-payment-fields { display:grid; grid-template-columns:minmax(0,1fr) 13rem; gap:1.5rem; }
.invoice-payment-card { display:flex; flex-wrap:wrap; align-items:center; gap:1rem; }
.invoice-qr-option { display:flex; align-items:center; gap:1.25rem; background:#f4f4f4; border-radius:1.25rem; padding:1.25rem; width:min(39rem,100%); }
.invoice-qr-bank { width:3.75rem; height:3.75rem; border-radius:50%; background:#444; color:white; display:grid; place-items:center; flex-shrink:0; }
.invoice-qr-bank>.icon { width:2rem; height:2rem; }
.invoice-qr-option>div { min-width:0; }
.invoice-qr-option h2 { margin:0; font-size:1.3rem; font-weight:600; }
.invoice-qr-option p { margin:.25rem 0 0; overflow-wrap:anywhere; }
.invoice-qr-option .receipt-switch { margin-left:auto; min-height:44px; padding-inline:.5rem; cursor:pointer; }
.invoice-qr-hint { font-size:.85rem; color:#888; margin:0; }
.invoice-editor-actions { justify-content:flex-end; }
@media(max-width:1200px) {
  .invoice-address-card { gap:2rem; }
  .invoice-service-fields.has-period { grid-template-columns:1fr auto 1fr; }
  .invoice-service-fields.has-period>.invoice-field { grid-column:1/-1; }
  .invoice-position,.invoice-overall-discount { grid-template-columns:2rem minmax(0,1fr) 6rem 2rem; gap:.75rem; }
  .invoice-lines #invoice-lines { padding:2rem 1.5rem 0; }
  .invoice-overall-discount { padding:0 1.5rem; }
  .invoice-article-fields { grid-template-columns:minmax(10rem,1fr) minmax(24rem,1.8fr); }
}
@media(max-width:900px) {
  .invoice-page main { padding:1.5rem 1rem 2rem; }
  .invoice-page .card { padding:1.5rem; }
  .invoice-address-card { grid-template-columns:1fr; gap:1.75rem; }
  .invoice-date-column { padding-top:1.5rem; border-top:1px solid #eee; }
  .invoice-service-fields.has-period { grid-template-columns:1.2fr 1fr auto 1fr; }
  .invoice-service-fields.has-period>.invoice-field { grid-column:auto; }
  .invoice-page .invoice-lines { padding:0; }
  .invoice-position,.invoice-overall-discount { grid-template-columns:2rem minmax(0,1fr) 2rem; }
  .invoice-position>.invoice-line-total,.invoice-overall-discount>.invoice-line-total { grid-column:2; grid-row:2; padding:0; }
  .invoice-position-delete { grid-column:3; grid-row:1; padding:.25rem; width:2rem; }
  .invoice-article-fields { grid-template-columns:1fr; gap:1rem; }
  .invoice-discount-fields { grid-template-columns:1fr 1fr; }
  .invoice-discount-fields>.invoice-field:first-child { grid-column:1/-1; }
}
@media(max-width:600px) {
  .invoice-heading { margin-bottom:1.5rem; }
  .invoice-heading h1 { font-size:1.8rem; }
  .invoice-page .card { padding:1.25rem 1rem; }
  .invoice-page .outlined-field { min-height:3.5rem; padding:.375rem; }
  .invoice-page .outlined-field>input,.invoice-page .outlined-field>select,.invoice-page .outlined-field>textarea { font-size:1rem; }
  .invoice-page .outlined-field>span:first-child { font-size:.8rem; }
  .invoice-address-city { gap:.75rem; grid-template-columns:1fr 1.6fr; }
  .invoice-service-fields,.invoice-service-fields.has-period { grid-template-columns:1fr auto 1fr; gap:.6rem; }
  .invoice-service-fields>.invoice-field,.invoice-service-fields.has-period>.invoice-field { grid-column:1/-1; }
  .invoice-service-fields:not(.has-period)>[data-service-start] { grid-column:1/-1; }
  .invoice-text-row { grid-template-columns:minmax(0,1fr) 2rem; gap:.5rem; }
  .invoice-text-templates>summary { width:2rem; }
  .invoice-lines #invoice-lines { padding:1.5rem .75rem 0; }
  .invoice-position,.invoice-overall-discount { grid-template-columns:1.6rem minmax(0,1fr) 1.6rem; gap:.5rem; }
  .invoice-position-marker { width:1.6rem; height:1.6rem; font-size:1rem; margin-top:1rem; }
  .invoice-position-delete { width:1.6rem; }
  .invoice-number-fields { grid-template-columns:1fr 1fr; gap:1rem .6rem; }
  .invoice-overall-discount { padding:0 .75rem; }
  .invoice-add-actions { gap:.5rem 1rem; padding:.5rem .75rem 1.5rem; }
  .invoice-add-actions .button,.invoice-add-actions .text-button { font-size:.85rem; }
  .invoice-add-article>span { margin-left:0; padding:.4rem; }
  .invoice-grand-total { padding:1rem 1.5rem; }
  .invoice-page .invoice-lines { padding:0; }
  .invoice-payment-fields { grid-template-columns:1fr; gap:1.25rem; }
  .invoice-tax-note { margin-right:2.5rem!important; }
  .invoice-qr-option { gap:.75rem; padding:1rem .75rem; }
  .invoice-qr-bank { width:2.5rem; height:2.5rem; }
  .invoice-qr-option h2 { font-size:1.1rem; }
  .invoice-qr-option p { font-size:.8rem; }
  .invoice-qr-option .receipt-switch { padding:0; }
}
