/* Task-focused interaction patterns shared by all company themes. */
.ux-form-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.ux-form-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.ux-form-sections {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: sticky;
  top: 0;
}
.ux-form-sections button {
  text-align: left;
  background: transparent;
  border-color: transparent;
  padding: 10px 12px;
  line-height: 1.4;
}
.ux-form-sections button[aria-selected='true'],
.ux-page-tabs button[aria-selected='true'],
.ux-issue-controls button[aria-pressed='true'] {
  background: #e7f5ef;
  color: #126a53;
  border-color: #bddfd2;
  font-weight: 650;
}
.ux-form-content {
  min-width: 0;
}
.ux-form-section {
  align-items: start;
  gap: 18px;
}
.ux-form-section label {
  position: relative;
}
.ux-required {
  display: inline-block;
  float: none;
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 5px;
}
.ux-form-section #employeeStatusPreview {
  grid-column: 1/-1;
}
.ux-form-section .reference-search {
  margin-top: 6px;
}
.ux-form-section label:has(textarea) {
  grid-column: 1/-1;
}
#recordForm[data-entity='employees'] > .formactions {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  margin-top: 24px;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
}
.ux-error-summary {
  border: 1px solid #dba7a7;
  border-left: 3px solid #b33030;
  background: #fff5f4;
  color: #8d2525;
  border-radius: 8px;
  padding: 14px;
  margin: 0 0 20px;
  line-height: 1.6;
}
.ux-field-error {
  display: block;
  color: #a22e2e;
  font-size: 12px;
  margin-top: 5px;
  font-weight: 500;
}
[aria-invalid='true'] {
  border-color: #bf4141 !important;
}
.ux-combobox {
  position: relative;
  display: block;
}
.ux-combobox input {
  padding-right: 38px;
  width: 100%;
  margin: 0;
}
.ux-combobox > small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  min-height: 16px;
  margin-top: 4px;
}
.ux-combo-clear {
  position: absolute;
  right: 4px;
  top: 4px;
  padding: 0;
  width: 30px;
  min-height: 30px;
  border: 0;
  background: transparent;
  font-size: 20px;
  color: var(--muted);
}
.ux-combo-options {
  position: absolute;
  left: 0;
  right: 0;
  top: 42px;
  max-height: 235px;
  overflow: auto;
  background: #fff;
  border: 1px solid #bfd5cd;
  box-shadow: 0 12px 30px #173c3026;
  border-radius: 9px;
  padding: 5px;
  z-index: 12;
}
.ux-combo-options button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 5px;
  white-space: normal;
  padding: 10px;
  line-height: 1.4;
}
.ux-combo-options button:hover,
.ux-combo-options button.ux-highlight,
.ux-combo-options button[aria-selected='true'] {
  background: #e8f5ef;
  color: #126a53;
}
.ux-combo-options p {
  padding: 10px;
  font-size: 12px;
}
.ux-page-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 20px 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px;
}
.ux-page-tabs button {
  background: transparent;
  border-color: transparent;
  padding: 10px 16px;
}
.ux-page-sections {
  min-width: 0;
}
.ux-next-actions {
  padding: 26px;
  background: linear-gradient(110deg, #f0f9f4, #fff);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.ux-next-actions h2 {
  font-size: 18px;
}
.ux-next-actions p {
  color: var(--muted);
  margin: 10px 0 20px;
}
.ux-filterable:not(.ux-filters-open) .columnfilter {
  display: none;
}
.tabletools {
  flex-wrap: wrap;
  align-items: flex-end;
}
.tabletools .ux-filter-toggle,
.tabletools .ux-filter-clear {
  font-size: 11px;
  min-height: 36px;
}
body[data-company] .tabletools button.ux-filter-toggle.has-active-filters,
.tabletools button.ux-filter-toggle.has-active-filters {
  background: var(--soft, #eaf6f1);
  border-color: var(--brand, #107965);
  color: var(--brand, #107965);
  font-weight: 650;
}
.ux-filter-clear {
  color: var(--muted);
}
.ux-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 20px;
  background: var(--canvas, #f5f8f7);
  border-bottom: 1px solid var(--line, #dfe7e4);
}
.ux-active-filters[hidden] {
  display: none;
}
.ux-active-filters-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #60747a);
}
.ux-active-filters-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  max-width: 100%;
}
.ux-active-filters-list > li {
  min-width: 0;
  max-width: 100%;
}
.ux-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line, #dfe7e4);
  background: var(--surface, #fff);
  color: var(--ink, #18343b);
  font-size: 12px;
  line-height: 1.35;
}
.ux-filter-chip-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
body button.ux-filter-chip-remove,
body[data-company='PA'] button.ux-filter-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 28px;
  min-height: 28px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--muted, #60747a);
  font-size: 16px;
  line-height: 1;
}
body button.ux-filter-chip-remove:hover:not(:disabled),
body[data-company='PA'] button.ux-filter-chip-remove:hover:not(:disabled) {
  background: var(--soft, #eaf6f1);
  color: var(--brand, #107965);
  box-shadow: none;
}
body button.ux-active-filters-clear,
body[data-company='PA'] button.ux-active-filters-clear {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--brand, #107965);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
body button.ux-active-filters-clear:hover:not(:disabled),
body[data-company='PA'] button.ux-active-filters-clear:hover:not(:disabled) {
  background: var(--soft, #eaf6f1);
  border-color: var(--line, #dfe7e4);
  box-shadow: none;
}
body dialog#uxColumnFiltersDialog,
body[data-company='PA'] dialog#uxColumnFiltersDialog {
  width: min(560px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  height: auto;
  max-height: 85dvh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line, #dfe7e4);
  border-radius: 14px;
  background: var(--surface, #fff);
  color: var(--ink, #18343b);
  overflow: hidden;
}
body dialog#uxColumnFiltersDialog[open],
body[data-company='PA'] dialog#uxColumnFiltersDialog[open] {
  display: flex;
  flex-direction: column;
}
body dialog#uxColumnFiltersDialog:modal {
  overscroll-behavior: contain;
}
body dialog#uxColumnFiltersDialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgb(16 32 38 / 0.45);
}
.ux-filter-dialog-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.ux-filter-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line, #dfe7e4);
  background: var(--surface, #fff);
  flex: 0 0 auto;
}
.ux-filter-dialog-head h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.ux-filter-dialog-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted, #60747a);
  overflow-wrap: break-word;
}
body button.ux-filter-dialog-close,
body[data-company='PA'] button.ux-filter-dialog-close {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.ux-filter-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ux-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ux-filter-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink, #18343b);
  overflow-wrap: break-word;
}
.ux-filter-field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
}
.ux-filter-dialog-foot {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 18px max(14px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line, #dfe7e4);
  background: var(--surface, #fff);
}
.ux-filter-dialog-foot button {
  min-height: 44px;
}
dialog#uxColumnFiltersDialog :is(button, input):focus-visible,
.ux-active-filters button:focus-visible,
.tabletools button:focus-visible {
  outline: 2px solid var(--brand, #107965);
  outline-offset: 2px;
}
@media (pointer: coarse) {
  body button.ux-filter-chip-remove,
  body[data-company='PA'] button.ux-filter-chip-remove {
    min-width: 44px;
    min-height: 44px;
  }
  body button.ux-active-filters-clear,
  body[data-company='PA'] button.ux-active-filters-clear {
    min-height: 44px;
  }
}
.ux-row-actions {
  align-items: start;
  flex-wrap: wrap;
  gap: 6px;
}
.ux-more-actions {
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  min-width: 110px;
}
.ux-more-actions > summary {
  cursor: pointer;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
  white-space: nowrap;
}
.ux-more-actions[open] {
  display: flex;
  flex-direction: column;
}
.ux-more-actions > button {
  display: block;
  margin-top: 6px;
  width: 100%;
  text-align: left;
}
.ux-workflow {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 17px 20px;
  margin-bottom: 22px;
}
.ux-workflow > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.ux-workflow > div > span,
.ux-workflow > p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.ux-workflow > p {
  margin: 12px 0 0;
}
.ux-workflow ol {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.ux-workflow a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  border: 1px solid transparent;
}
.ux-workflow a > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #edf2ef;
  font-size: 10px;
}
.ux-workflow a[aria-current] {
  background: #e9f6ef;
  border-color: #c1e0d0;
  color: #126a53;
  font-weight: 600;
}
.ux-workflow a[aria-current] > span {
  background: #107965;
  color: #fff;
}
.ux-home-tasks {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 22px 0;
}
.ux-home-tasks h2,
.ux-home-tasks h3 {
  font-size: 15px;
  margin: 0;
}
.ux-home-tasks p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 14px;
}
.ux-home-tasks a {
  font-size: 12px;
  text-decoration: none;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafcfb;
}
.ux-home-tasks .actions {
  margin-top: 12px;
}
.ux-home-tasks .actions > span {
  font-size: 12px;
  color: var(--muted);
}
.ux-issue-controls {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.ux-issue-controls button {
  font-size: 12px;
}
.issue-column .tabletools[hidden] {
  display: none !important;
}
#unsavedDialog {
  width: min(450px, 94vw);
  height: auto;
  max-height: 90dvh;
  padding: 0;
  border-radius: 14px;
}
#unsavedDialog .padded {
  padding: 26px;
}
#unsavedDialog h2 {
  font-size: 19px;
  margin: 0;
}
#unsavedDialog p {
  line-height: 1.6;
  margin: 14px 0 22px;
  color: var(--muted);
}
#unsavedDialog .actions {
  gap: 10px;
}
form[aria-busy='true'] {
  cursor: progress;
}
.ux-form-content,
.ux-page-sections {
  animation: ux-reveal 0.16s ease-out;
}
@keyframes ux-reveal {
  from {
    opacity: 0.65;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 900px) {
  .ux-form-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ux-form-sections {
    position: static;
    flex-direction: row;
    overflow: auto;
    gap: 5px;
    padding-bottom: 8px;
  }
  .ux-form-sections button {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
  }
  .ux-page-tabs {
    flex-wrap: nowrap;
    overflow: auto;
  }
  .ux-page-tabs button {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
  }
  .ux-form-section {
    grid-template-columns: 1fr;
  }
  .ux-combo-clear {
    min-width: 36px;
    min-height: 36px;
  }
  .ux-combo-options {
    top: 47px;
  }
  .ux-home-tasks {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .ux-workflow {
    padding: 15px;
  }
  .ux-workflow ol {
    flex-direction: column;
    gap: 3px;
  }
  .ux-workflow a {
    min-height: 36px;
  }
  body .tabletools,
  body[data-company] .tabletools {
    padding: 12px 14px;
    gap: 8px;
  }
  body .tabletools > label,
  body[data-company] .tabletools > label {
    flex: 1 1 100%;
    max-width: none;
  }
  body .tabletools button.ux-filter-toggle,
  body .tabletools button.ux-filter-clear,
  body[data-company] .tabletools button.ux-filter-toggle,
  body[data-company] .tabletools button.ux-filter-clear {
    min-height: 44px;
    height: auto;
    padding: 10px 14px;
    font-size: 13px;
    white-space: normal;
  }
  .ux-active-filters {
    padding: 10px 14px;
  }
  body button.ux-filter-chip-remove,
  body[data-company='PA'] button.ux-filter-chip-remove {
    min-width: 40px;
    min-height: 40px;
  }
  body button.ux-active-filters-clear,
  body[data-company='PA'] button.ux-active-filters-clear {
    min-height: 44px;
  }
  .ux-next-actions {
    padding: 20px;
  }
  .ux-issue-controls .actions {
    flex-wrap: wrap;
  }
  .ux-row-actions {
    justify-content: flex-end;
  }
  .ux-form-section input,
  .ux-form-section select,
  .ux-form-section textarea {
    font-size: 16px;
  }
  .ux-combo-options button {
    min-height: 44px;
  }
  .ux-page-tabs button {
    min-height: 44px;
  }
  .ux-form-sections button {
    min-height: 44px;
  }
  .ux-more-actions > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .ux-filters-open .columnfilter {
    display: none;
  }
}
@media (max-width: 600px) {
  body dialog#uxColumnFiltersDialog,
  body[data-company='PA'] dialog#uxColumnFiltersDialog {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 88dvh;
    margin: auto 0 0;
    border: 0;
    border-radius: 16px 16px 0 0;
  }
  .ux-filter-dialog-head {
    padding: 14px 16px;
  }
  .ux-filter-dialog-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 16px;
    gap: 12px;
  }
  .ux-filter-field input {
    font-size: 16px;
    min-height: 44px;
  }
  .ux-filter-dialog-foot {
    padding: 12px 16px max(12px, env(safe-area-inset-bottom, 0px));
  }
  .ux-filter-dialog-foot > button {
    flex: 1 1 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ux-form-content,
  .ux-page-sections {
    animation: none;
  }
}

.ux-required {
  position: absolute;
  right: 0;
  top: 0;
}
.ux-form-section h3 {
  grid-column: 1/-1;
  font-size: 13px;
  margin: 10px 0 0;
}
.ux-form-sections button {
  font-size: 12px !important;
}
.ux-combobox:focus-within {
  z-index: 8;
}

.expense-balance {
  display: block;
  font-variant-numeric: tabular-nums;
}
.expense-balance.pending {
  color: #b42318;
}
.expense-balance.balanced {
  color: #157347;
}
.expense-draft-row {
  border: 1px solid var(--line, #dce5e5);
  border-radius: 12px;
  margin: 18px 0;
  padding: 18px;
  min-width: 0;
}
.expense-draft-row legend {
  padding: 0 8px;
  font-weight: 650;
}
.expense-draft-row [data-remove-expense] {
  margin-top: 12px;
  color: #b42318;
}
.expense-draft-row .formgrid {
  margin-top: 4px;
}
.initial-invoice {
  margin: 16px 0;
  padding: 16px;
  border: 1px dashed #90aaa6;
  border-radius: 10px;
  background: #f6faf9;
}
.initial-invoice h3 {
  margin: 0 0 12px;
}
.initial-invoice [data-invoice-fields] {
  margin-top: 12px;
}
.invoice-local-preview {
  width: min(1000px, 94vw);
  max-height: 92vh;
}
.invoice-local-preview iframe {
  width: 100%;
  height: 70vh;
  border: 0;
}
.invoice-local-preview img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  margin: auto;
}

.monthly-rate-block {
  border: 1px solid var(--line, #dce5e7);
  border-radius: 12px;
  padding: 16px;
  margin: 8px 0;
}
.monthly-rate-block legend {
  font-weight: 700;
  padding: 0 8px;
}
#monthlyEnd[hidden],
#monthlyA1[hidden],
#monthlyLimosa[hidden] {
  display: none;
}

.monthly-mode {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin: 6px 0 20px;
}
.monthly-mode label {
  display: flex;
  gap: 8px;
  align-items: center;
}
.monthly-mode input {
  width: auto;
}
.monthly-selection {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.monthly-selection > span {
  background: var(--soft, #eef5f4);
  border: 1px solid var(--line, #dce5e7);
  border-radius: 8px;
  padding: 6px 10px;
}
.monthly-selection button {
  padding: 2px 8px;
  margin-left: 8px;
}
[data-rate-percent][hidden],
[data-rate-amount][hidden] {
  display: none;
}
.monthly-sheet-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-block: 1px solid #c7d1d7;
  background: #f5f8f8;
}
.monthly-sheet-heading > strong {
  font-size: 16px;
}
.monthly-sheet-heading > span {
  font-size: 12px;
}
.monthly-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
}
.monthly-legend span {
  padding: 5px 9px;
  border: 1px solid #b9c4c5;
}
.monthly-legend-ceased {
  background: #fff2a6;
}
.monthly-legend-finished {
  background: #d8edc7;
}
.monthly-grid {
  overflow: auto;
  max-height: 72vh;
  border: 1px solid #aebfc8;
}
.monthly-grid .monthly-sheet {
  table-layout: fixed;
  width: 2800px;
  min-width: 2800px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11px;
}
.monthly-grid .monthly-sheet th,
.monthly-grid .monthly-sheet td {
  padding: 7px 6px;
  vertical-align: middle;
  border-right: 1px solid #c5cfd3;
  border-bottom: 1px solid #c5cfd3;
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
}
.monthly-grid .monthly-sheet thead {
  display: table-header-group;
}
.monthly-grid .monthly-sheet tr {
  display: table-row;
}
.monthly-grid .monthly-sheet th,
.monthly-grid .monthly-sheet td {
  display: table-cell;
}
.monthly-grid .monthly-sheet td:before {
  display: none;
}
.monthly-grid .monthly-sheet thead th {
  background: #edf1f4;
  text-align: center;
  font-size: 10px;
}
.monthly-grid .monthly-sheet th button {
  font-size: 10px;
  white-space: normal;
  padding: 3px;
  min-height: 32px;
}
.monthly-grid .monthly-sheet small {
  display: block;
  font-size: 9px;
  color: #50616b;
  margin-top: 4px;
}
.monthly-grid .monthly-sheet td:nth-child(n + 13):nth-child(-n + 16) {
  background: #f0f7e7;
  text-align: right;
}
.monthly-grid .monthly-sheet td:nth-child(n + 17):nth-child(-n + 20) {
  background: #fff0e8;
  text-align: right;
}
.monthly-grid .monthly-sheet tr.monthly-finished td:nth-child(-n + 12) {
  background: #d8edc7;
}
.monthly-grid .monthly-sheet tr.monthly-ceased td:nth-child(-n + 12) {
  background: #fff2a6;
}
.monthly-grid .monthly-sheet tbody td:nth-child(3) {
  font-weight: 600;
}
.monthly-grid .monthly-sheet .monthly-groups th {
  font-size: 11px;
  padding: 9px;
}
.monthly-sheet-note {
  font-size: 12px;
  color: #52646d;
}

.employee-document-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border, #dce5e7);
  min-width: 230px;
}
.employee-document-item:first-child {
  padding-top: 0;
}
.employee-document-item:last-child {
  border-bottom: 0;
}
.employee-document-item > div {
  margin-top: 8px;
}
.employee-validity-tag.no_expiry {
  background: #eef2f5;
  color: #526775;
}
.employee-validity-card.no_expiry {
  border-color: #b9c8d0;
  background: #f4f7f9;
  color: #526775;
}

.monthly-project-group {
  margin-block: 22px;
  border: 1px solid #cad9dc;
  border-radius: 12px;
  overflow: hidden;
}
.monthly-project-group .monthly-sheet-heading {
  border-top: 0;
  background: var(--surface-soft, #f2f8f7);
}
.monthly-project-group .monthly-grid {
  border: 0;
  border-top: 1px solid #cad9dc;
}
.monthly-project-group .monthly-sheet-heading strong {
  color: var(--primary, #127b70);
}

.monthly-sheet .monthly-width-70 {
  width: 70px;
}
.monthly-sheet .monthly-width-75 {
  width: 75px;
}
.monthly-sheet .monthly-width-80 {
  width: 80px;
}
.monthly-sheet .monthly-width-85 {
  width: 85px;
}
.monthly-sheet .monthly-width-95 {
  width: 95px;
}
.monthly-sheet .monthly-width-100 {
  width: 100px;
}
.monthly-sheet .monthly-width-105 {
  width: 105px;
}
.monthly-sheet .monthly-width-110 {
  width: 110px;
}
.monthly-sheet .monthly-width-115 {
  width: 115px;
}
.monthly-sheet .monthly-width-120 {
  width: 120px;
}
.monthly-sheet .monthly-width-125 {
  width: 125px;
}
.monthly-sheet .monthly-width-130 {
  width: 130px;
}
.monthly-sheet .monthly-width-140 {
  width: 140px;
}
.monthly-sheet .monthly-width-180 {
  width: 180px;
}
.monthly-sheet .monthly-width-190 {
  width: 190px;
}
.monthly-grid .monthly-sheet .monthly-groups .monthly-color-E8EDF1 {
  background: #e8edf1;
}
.monthly-grid .monthly-sheet .monthly-groups .monthly-color-E5F0CF {
  background: #e5f0cf;
}
.monthly-grid .monthly-sheet .monthly-groups .monthly-color-F8DCCD {
  background: #f8dccd;
}

/* Native details preserve keyboard access and begin collapsed. */
details.monthly-project-group {
  padding: 0;
}
details.monthly-project-group > summary.monthly-sheet-heading {
  list-style: none;
  cursor: pointer;
  margin: 0;
  min-height: 64px;
  border-bottom: 0;
  transition: background-color 0.16s ease;
}
details.monthly-project-group > summary::-webkit-details-marker {
  display: none;
}
details.monthly-project-group > summary::marker {
  content: '';
}
details.monthly-project-group > summary:hover {
  background: #e7f2f0;
}
details.monthly-project-group > summary:focus-visible {
  outline: 3px solid var(--primary, #127b70);
  outline-offset: -3px;
}
details.monthly-project-group > summary > strong {
  flex: 1;
  min-width: 180px;
}
details.monthly-project-group > summary .monthly-project-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
}
details.monthly-project-group > summary .monthly-project-toggle::after {
  content: '›';
  font-size: 24px;
  line-height: 1;
  transform: rotate(0);
  transition: transform 0.16s ease;
}
details.monthly-project-group[open] > summary .monthly-project-toggle::after {
  transform: rotate(90deg);
}
@media (prefers-reduced-motion: reduce) {
  details.monthly-project-group > summary,
  details.monthly-project-group > summary .monthly-project-toggle::after {
    transition: none;
  }
}
@media (max-width: 600px) {
  details.monthly-project-group > summary {
    gap: 8px;
    padding: 16px;
  }
  details.monthly-project-group > summary > span:not(.monthly-project-toggle) {
    order: 3;
    flex-basis: 100%;
  }
}

/* Task-based entry to existing hours workflows. */
.hours-entry-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}
.hours-entry-mode {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  white-space: normal;
  gap: 8px;
  padding: 18px;
  min-height: 100px;
}
.hours-entry-mode span {
  font-weight: 400;
  line-height: 1.5;
}
.hours-entry-import {
  margin-block-start: 24px;
  padding-block-start: 16px;
  border-top: 1px solid var(--line, #ccd7da);
}

/* Full checksum remains selectable without widening a payment dialog. */
.sepa-checksum {
  display: block;
  max-inline-size: 100%;
  min-inline-size: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  user-select: all;
}

.ux-task-section,
.candidate-task-section {
  min-inline-size: 0;
  border: 1px solid var(--border, #d9e3e4);
  border-radius: 12px;
  margin-block: 12px;
}
.ux-task-section > summary,
.candidate-task-section > summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 650;
  min-block-size: 48px;
}
.ux-task-section > .formgrid {
  padding: 16px;
}
.candidate-task-section > .candidate-section {
  margin: 0;
  border: 0;
}
.ux-task-section[open] > summary,
.candidate-task-section[open] > summary {
  border-bottom: 1px solid var(--border, #d9e3e4);
}

.monthly-scroll-hint {
  font-size: 0.875rem;
  margin: 8px 16px;
  color: var(--muted, #52646d);
}
.monthly-grid:focus-visible {
  outline: 3px solid var(--accent, #087d78);
  outline-offset: 2px;
}
.monthly-grid .monthly-sheet thead {
  position: sticky;
  top: 0;
  z-index: 3;
}
.monthly-grid .monthly-sheet tbody td:nth-child(3),
.monthly-grid .monthly-sheet thead tr:last-child th:nth-child(3) {
  position: sticky;
  left: 0;
  z-index: 2;
  background-color: #fff;
  box-shadow: 2px 0 0 #aebfc8;
}
.monthly-grid .monthly-sheet tbody tr:is(:hover, :focus-within) td {
  box-shadow:
    inset 0 2px var(--accent, #087d78),
    inset 0 -2px var(--accent, #087d78);
}

.employee-import-table {
  max-width: 100%;
  overflow: auto;
  max-height: 18rem;
}
.employee-import-table table {
  min-width: 40rem;
}
.employee-import details {
  border: 1px solid var(--border, #cbd8dc);
  border-radius: var(--control-radius, 8px);
  margin-block: 0.75rem;
}
.employee-import summary {
  padding: 1rem;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.employee-import-row {
  padding: 1rem;
}
.employee-import dl {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) minmax(0, 2fr);
  gap: 0.5rem;
}
.employee-import dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.employee-import .checkline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
}
.employee-import .checkline input {
  width: auto;
}
.employee-import form + form {
  margin-top: 1.5rem;
}
