.batch-tax-panel {
 margin: 0 0 18px;
}
.batch-tax-summary {
 display: grid;
 grid-template-columns: minmax(155px, 1.4fr) repeat(3, minmax(120px, 1fr)) auto;
 align-items: center;
 gap: 12px;
 padding: 14px 20px;
 cursor: pointer;
 list-style: none;
}
.batch-tax-summary::-webkit-details-marker {
 display: none;
}
.batch-tax-summary-title {
 display: flex;
 align-items: center;
 gap: 8px;
 flex-wrap: wrap;
}
.batch-tax-summary-title svg,
.batch-tax-summary-chevron svg {
 width: 17px;
 height: 17px;
 color: #667b90;
 vertical-align: middle;
}
.batch-tax-summary-chevron {
 grid-column: -2;
}
.batch-tax-panel[open] > .batch-tax-summary .batch-tax-summary-chevron svg {
 transform: rotate(180deg);
}
.batch-tax-summary-kpi {
 display: grid;
 gap: 2px;
}
.batch-tax-summary-kpi small,
.batch-tax-note,
.batch-tax-components > small,
.batch-tax-plan-status small {
 color: #566b80;
 font-size: 13px;
}
.batch-tax-summary-kpi b {
 font-variant-numeric: tabular-nums;
}
.batch-tax-attention,
.batch-tax-error {
 color: #90531d;
}
.batch-tax-body {
 border-top: 1px solid #e3eaf0;
}
.batch-tax-plan-status,
.batch-tax-toolbar,
.batch-tax-plan-head,
.batch-tax-controls,
.batch-tax-pager {
 display: flex;
 align-items: center;
 justify-content: space-between;
 flex-wrap: wrap;
 gap: 10px;
}
.batch-tax-plan-status {
 padding: 12px 20px;
 font-size: 14px;
}
.batch-tax-plan-actions {
 display: flex;
 align-items: center;
 flex-wrap: wrap;
 gap: 8px;
}
.batch-tax-trial-status {
 flex-basis: 100%;
 color: #355572;
 margin: 0;
}
.batch-tax-trial-status.batch-tax-error {
 color: #90531d;
}
.batch-tax-components,
.batch-tax-filters {
 display: flex;
 align-items: center;
 flex-wrap: wrap;
 gap: 8px 14px;
}
.batch-tax-components {
 margin: 0 20px;
 padding: 9px 12px;
 border: 1px solid #e1e9f0;
 border-radius: 6px;
 background: #f7f9fc;
 font-size: 13px;
}
.batch-tax-toolbar {
 padding: 12px 20px;
}
.batch-tax-filters .btn[aria-pressed="true"] {
 background: #eaf1fb;
 border-color: #b5cae9;
 color: #204b87;
}
.batch-tax-search input {
 min-width: min(250px, 58vw);
}
.batch-tax-groups th,
.batch-tax-line-table th {
 white-space: nowrap;
}
.batch-tax-groups td,
.batch-tax-line-table td {
 vertical-align: top;
}
.batch-tax-groups td small,
.batch-tax-line-table td small {
 display: block;
 margin-top: 4px;
}
.batch-tax-group-link {
 display: inline;
 border: 0;
 padding: 0;
 min-height: 26px;
 background: transparent;
 color: #245e96;
 text-align: left;
 cursor: pointer;
 font-weight: 600;
}
.batch-tax-group-link:hover,
.batch-tax-group-link[aria-expanded="true"] {
 text-decoration: underline;
}
.batch-tax-status-link {
 color: #90531d;
}
.batch-tax-status-link:focus-visible {
 outline: 2px solid #26618f;
 outline-offset: 3px;
}
.batch-tax-resolved {
 margin: 6px 0;
 color: #286440;
}
.batch-tax-line-confirm {
 min-height: 32px;
}
.batch-tax-line-actions {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 4px 8px;
}
.batch-tax-detail-row > td {
 background: #f8fbfe;
 padding: 6px 12px 10px;
}
.batch-tax-line-table th,
.batch-tax-line-table td {
 padding: 9px;
}
.batch-tax-line-table td:last-child {
 white-space: nowrap;
}
.batch-tax-pager {
 justify-content: flex-end;
 padding: 10px 20px;
 font-size: 13px;
}
.batch-tax-form {
 margin: 0 20px 12px;
 padding: 14px 16px;
 border: 1px solid #d9e4ee;
 border-radius: 6px;
 background: #f8fafc;
}
.batch-tax-plan-head h3 {
 font-size: 15px;
 margin: 0;
}
.batch-tax-budget-fields,
.batch-tax-rule {
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 10px;
}
.batch-tax-budget-fields {
 margin: 10px 0 6px;
 max-width: 550px;
}
.batch-tax-fieldset {
 border: 0;
 padding: 0;
 margin: 0;
 min-width: 0;
}
.batch-tax-rule {
 padding: 10px;
 margin: 8px 0;
 border: 1px solid #e1e9f0;
 border-radius: 6px;
 min-width: 0;
}
.batch-tax-rule > legend {
 font-size: 13px;
 font-weight: 600;
 padding: 0 5px;
}
.batch-tax-form .field {
 min-width: 0;
}
.batch-tax-form .field input,
.batch-tax-form .field select {
 min-width: 0;
 width: 100%;
}
.batch-tax-controls > span {
 flex: 1;
}
.batch-tax-note,
.batch-tax-error {
 margin: 8px 0;
}
.batch-tax-row-reference {
 padding: 10px 12px;
 margin: 0 0 13px;
 border: 1px solid #e1e9f0;
 border-radius: 6px;
 background: #f7f9fc;
 font-size: 13px;
}
.batch-tax-row-reference > div {
 display: flex;
 justify-content: space-between;
 flex-wrap: wrap;
 gap: 4px 12px;
}
.batch-tax-row-reference > div + div {
 margin-top: 6px;
}
.batch-tax-row-reference small {
 display: block;
 margin-top: 4px;
}
.batch-tax-row-reference .batch-tax-group-link {
 margin-left: 5px;
}
.batch-tax-groups small.batch-tax-history,
.batch-tax-reference-error {
 color: #566b80;
}
.batch-tax-reference-error {
 margin: 6px 20px 0;
 font-size: 13px;
}
.batch-tax-reference-error .batch-tax-group-link {
 margin-left: 4px;
}
@media (max-width: 900px) {
 .batch-tax-summary {
  grid-template-columns: minmax(145px,1.4fr) repeat(3,minmax(88px,1fr)) auto;
  padding: 12px 14px;
 }
}
@media (max-width: 650px) {
 .batch-tax-summary {
  grid-template-columns: repeat(2,minmax(0,1fr)) auto;
 }
 .batch-tax-summary-title {
  grid-column: 1 / 3;
 }
 .batch-tax-summary-chevron {
  grid-row: 1;
  grid-column: 3;
 }
 .batch-tax-summary-kpi:nth-child(4) {
  grid-column: 1 / -1;
 }
 .batch-tax-plan-status,
 .batch-tax-toolbar,
 .batch-tax-pager {
  padding-left: 12px;
  padding-right: 12px;
 }
 .batch-tax-form,
 .batch-tax-components {
  margin-left: 12px;
  margin-right: 12px;
 }
 .batch-tax-search {
  width: 100%;
 }
 .batch-tax-groups {
  min-width: 700px;
 }
}
.batch-tax-rule-gaps {
 margin: 12px 20px 0;
 border: 1px solid #e1e9f0;
 border-radius: 6px;
}
.batch-tax-rule-gaps > div:first-child,
.batch-tax-rule-gaps li {
 display: flex;
 align-items: center;
 flex-wrap: wrap;
 gap: 6px 16px;
 padding: 8px 12px;
}
.batch-tax-rule-gaps > div:first-child {
 background: #f7f9fc;
}
.batch-tax-rule-gaps h3 {
 margin: 0;
 font-size: 15px;
}
.batch-tax-rule-gaps ul {
 margin: 0;
 padding: 0;
 list-style: none;
}
.batch-tax-rule-gaps li {
 border-top: 1px solid #e1e9f0;
 font-size: 14px;
}
.batch-tax-rule-gaps li > span {
 flex: 1;
 min-width: 75px;
}
.batch-tax-hs {
 font-variant-numeric: tabular-nums;
}
.batch-tax-exception-shortcuts {
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
 padding: 10px 20px 0;
}
.batch-tax-group-status {
 display: flex;
 flex-direction: column;
 align-items: flex-start;
 gap: 2px;
}
.batch-tax-provisional-link {
 color: #48637f;
}
@media (max-width: 650px) {
 .batch-tax-rule-gaps {
  margin-left: 12px;
  margin-right: 12px;
 }
 .batch-tax-exception-shortcuts {
  padding-left: 12px;
  padding-right: 12px;
 }
}
