/* INHI A02 filter trigger, A06 month grid and A08 option panel. */
[data-settlement-fields] {
  --settle-disclosure: url("/assets/task-board-icons/chevron-down.svg");
}
#settlementDesk :is(select:not([multiple]), input[type=month], input[type=date], input[data-wb-year]),
#persistentNavigation[data-settlement-fields] .inhi-standard-project select {
  appearance: none;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 5px 34px 5px 14px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff var(--settle-disclosure) no-repeat right 10px center / 18px 18px;
  color: #161616;
  font: 400 15px/24px "Noto Sans SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  text-overflow: ellipsis;
}
#settlementDesk :is(input[type=month], input[type=date])::-webkit-calendar-picker-indicator,
#settlementDesk #settleYear::-webkit-inner-spin-button { display: none; }
#settlementDesk :is(input[type=month],input[type=date])::-webkit-datetime-edit { padding: 0; }
#settlementDesk :is(select, input[type=month], input[type=date], input[data-wb-year]):is(:focus-visible,[aria-expanded=true]),
#persistentNavigation[data-settlement-fields] .inhi-standard-project select:is(:focus-visible,[aria-expanded=true]) {
  border-color: #002fa7;
  outline: 2px solid #002fa7;
  outline-offset: 2px;
}
#settlementDesk :is(select, input[type=month], input[type=date], input[data-wb-year]):not(:disabled):hover { border-color: #777; }
#settlementDesk :is(select, input[type=month], input[type=date]):disabled { background-color: #f6f6f5; color: #767676; cursor: default; }
#settlementDesk .desk-filters label { grid-template-columns: auto minmax(0,1fr); }
#settlementDesk .periodLabel { white-space: nowrap; }
#settlementDesk .year-switch #settleYear { width: 92px; }
#settlementDesk .year-switch > button { width: 38px; height: 38px; line-height: 1; padding: 0; border: 1px solid #ccc; border-radius: 50%; }
#settlementDesk .finance-sheet .tools { flex-wrap: wrap; row-gap: 8px; }
#settlementDesk .voucher-months { width: 8em; }
#settlementDesk #intakePeriod { width: 10.8em; }
#persistentNavigation[data-settlement-fields] .inhi-standard-project select {
  width: 100%; min-height: 34px; padding: 4px 16px 4px 6px;
  font-size: 12px; background-position: right 3px center; background-size: 14px;
}
.settlement-choice.wb-choice {
  --settle-ink: #111;
  width: 402px; max-width: calc(100vw - 16px); padding: 24px;
  border: 1px solid #ccc; border-radius: 16px;
  color: var(--settle-ink); background: white;
  box-shadow: 0 6px 26px rgb(0 0 0 / 10%);
  font: 400 16px/1.5 "Noto Sans SC", "Microsoft YaHei", sans-serif;
  overflow: auto; overscroll-behavior: contain;
}
.settlement-choice:not(.ace-month-panel,.settlement-year-choice) .ace-picker-options {
  justify-items: start; gap: 12px; padding: 1px;
}
.settlement-choice:not(.ace-month-panel,.settlement-year-choice) .ace-picker-options > button {
  min-height: 34px !important; max-width: 100%; padding: 3px 13px !important;
}
.settlement-choice:has(.ace-picker-search) .ace-picker-options { gap: 8px; }
.settlement-choice .awf-picker-title { padding: 0; margin: 0 0 16px; border: 0; gap: 12px; }
.settlement-choice .awf-picker-title b,
.settlement-choice .ace-picker-head b { padding: 0; border: 0; color: #000; font: 700 20px/30px "Noto Sans SC","Microsoft YaHei",sans-serif; }
.settlement-choice.wb-choice button {
  box-sizing: border-box; color: var(--settle-ink) !important;
  background: #fff !important; border: 1px solid #ccc !important;
  border-radius: 999px !important; min-height: 34px !important;
  padding: 3px 12px !important; cursor: pointer;
}
.settlement-choice.wb-choice button:hover:not(:disabled) { background: #f4f4f3 !important; border-color: #888 !important; }
.settlement-choice.wb-choice .ace-picker-options button:has(.wb-option-note) {
  color: #565b64 !important; background: #f5f5f4 !important; border-color: transparent !important;
  border-radius: 8px !important; width: 100%; padding: 6px 12px !important; opacity: 1; cursor: default;
}
.settlement-choice .wb-option-note { display: block; font-size: 13px; line-height: 1.5; }
.settlement-choice.wb-choice button:focus-visible { outline: 2px solid #002fa7; outline-offset: -3px; }
.settlement-choice .ace-picker-head { justify-content: flex-start; padding: 0; gap: 16px; margin: 0 0 16px; }
.settlement-choice .ace-picker-options { gap: 8px; max-height: min(360px,50vh); scroll-padding: 4px; }
.settlement-choice .ace-picker-options button { text-align: left; word-break: break-word; min-height: 40px !important; padding: 6px 14px !important; }
.settlement-choice:is(.ace-month-panel,.settlement-year-choice) .ace-picker-options {
  grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 12px; max-height: none;
}
.settlement-choice:is(.ace-month-panel,.settlement-year-choice) .ace-picker-options button {
  text-align: center; min-height: 40px !important; padding: 4px 6px !important; font-size: 18px !important; border-color: #ccc !important;
}
.settlement-choice.wb-choice .ace-picker-options button[aria-selected=true],
.settlement-choice.wb-choice .ace-picker-options button[aria-selected=true]:hover {
  color: #fff !important; border-color: #000 !important; background: #000 !important; font-weight: 400 !important;
}
.settlement-choice .ace-picker-search, .settlement-choice .settlement-year-jump input {
  min-width: 0; min-height: 36px; border: 1px solid #ccc; border-radius: 8px; background: #fff;
  font: inherit; padding: 4px 12px; box-sizing: border-box;
}
.settlement-choice .ace-picker-search { margin: 0 0 12px; }
.settlement-choice .awf-picker-foot, .settlement-choice .wb-product-empty {
  margin: 16px 0 0; padding: 0; background: transparent; color: #666; font: 400 13px/20px "Noto Sans SC","Microsoft YaHei",sans-serif;
}
.settlement-choice .wb-product-empty { margin: 0; }
.settlement-choice .settlement-year-jump { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; }
.settlement-choice .settlement-year-jump input { flex: 1; }
.settlement-field-surface .tw-date-layer .tw-date-picker { border-color: #ccc; box-shadow: 0 6px 26px rgb(0 0 0 / 10%); }
.settlement-field-surface .tw-date-picker :is(header,.tw-date-month,.tw-date-months) button { border-color: #ccc; border-radius: 999px; }
.settlement-field-surface .tw-date-picker :is([data-cal=apply],.tw-date-months button[aria-pressed=true]) { background: #000; color: #fff; }
.settlement-field-surface .tw-date-picker .tw-date-days button.is-selected { background: #000; color: #fff; border-radius: 999px; }
@media(max-width: 700px){
  .settlement-choice.wb-choice { padding: 16px; }
  .settlement-choice:is(.ace-month-panel,.settlement-year-choice) .ace-picker-options { gap: 10px 8px; }
  #settlementDesk .annual-period-tools { grid-template-columns: minmax(0,1fr); }
  #settlementDesk .annual-period-tools .year-switch { grid-column: 1; }
}
