@import '/assets/rental-expense-worksheet/resource.a6158962ac2d.css';

.expense-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: start;
}
.expense-workspace > section {
  min-width: 0;
}
.expense-year {
  max-width: 12rem;
}
#expense-form > button {
  margin-top: 1rem;
}
#expense-errors {
  color: #a42020;
  border: 2px solid currentColor;
  border-radius: 6px;
  padding: 1rem;
}
#expense-entries {
  list-style: none;
  margin: 0;
  padding: 0;
}
#expense-entries li {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
#expense-entries li div {
  min-width: 0;
  overflow-wrap: anywhere;
}
#expense-entries p {
  font-size: 0.9rem;
  margin: 0.25rem 0;
  color: var(--muted);
}
#expense-entries button {
  flex-shrink: 0;
}
.expense-currency {
  margin-block: 2rem;
}
.expense-currency h3 {
  font-size: 1.3rem;
}
.expense-currency summary {
  cursor: pointer;
  padding-block: 0.75rem;
  min-height: 46px;
  color: var(--action);
}
.expense-table-wrap {
  overflow-x: auto;
}
.expense-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.expense-table-wrap caption {
  text-align: left;
  padding-bottom: 0.5rem;
}
.expense-table-wrap th,
.expense-table-wrap td {
  padding: 0.65rem 0.4rem;
  text-align: right;
  border-bottom: 1px solid var(--line);
}
.expense-table-wrap th:first-child {
  text-align: left;
}
.expense-tools {
  margin-top: 1.5rem;
}
@media (max-width: 760px) {
  .expense-workspace {
    grid-template-columns: 1fr;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #e6edf8;
    --muted: #b7c4d8;
    --paper: #101b2c;
    --line: #40516d;
    --action: #9cbfff;
    --good: #9ae6b4;
  }
  .site-header,
  form,
  input,
  select,
  button {
    background: #19283e;
  }
  button[type='submit'] {
    background: #1d4ed8;
    color: #fff;
  }
  #expense-errors,
  .field-error {
    color: #ffb4b4;
  }
  input[aria-invalid] {
    border-color: #ffb4b4;
  }
  :focus-visible {
    outline-color: #ffd28a;
  }
}
@media print {
  :root {
    color-scheme: light;
    --ink: #000;
    --paper: #fff;
    --muted: #333;
    --line: #aaa;
  }
  body,
  .expense-output {
    background: white;
    color: black;
  }
  .expense-workspace {
    display: block;
  }
  .expense-editor,
  .expense-tools,
  .skip {
    display: none;
  }
  #expense-entries button {
    display: none;
  }
  .expense-year input {
    border: 0;
    background: white;
    color: black;
  }
  .expense-table-wrap {
    overflow: visible;
  }
  .expense-currency {
    break-inside: avoid;
  }
  .explanation {
    font-size: 0.85rem;
  }
}
