.batch-invoice-page[hidden] { display: none; }
.batch-invoice-page { min-height: 320px; padding: 12px; }
.batch-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; }
.batch-controls label { display: grid; gap: 4px; font-size: 12px; color: #53646a; }
.batch-controls label:first-child { flex: 1 1 260px; }
.batch-controls select, .batch-controls input { height: 34px; min-width: 138px; max-width: 100%; padding: 4px 8px; border: 1px solid #d6e0e3; border-radius: 5px; background: #fff; color: #172c31; font: inherit; }
.batch-controls label:first-child select { width: 100%; }
.batch-controls [data-batch-date] { width: 186px; min-width: 186px; font-size: 13px; }
.batch-controls .primary-button { min-height: 34px; white-space: nowrap; }
.batch-message { margin: 0 0 10px; padding: 8px 10px; background: #e9f6f1; color: #176b56; font-size: 13px; }
.batch-message.is-error { background: #fff1ed; color: #a03f2b; }
.batch-detail-panel[hidden] { display: none; }
.batch-detail-panel { margin: 6px 0 10px; padding: 10px 12px; border: 1px solid #c7d9d7; border-radius: 6px; background: #f8fcfb; }
.batch-detail-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.batch-detail-heading button, .batch-detail-button { padding: 0; border: 0; background: none; color: #096d82; cursor: pointer; font: inherit; text-decoration: underline; }
.batch-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 8px 16px; }
.batch-detail-grid > div { min-width: 0; }
.batch-detail-grid span { display: block; color: #65777c; font-size: 11px; }
.batch-detail-grid b { display: block; overflow-wrap: anywhere; font-size: 12px; font-weight: 500; line-height: 1.5; }
.batch-detail-button { display: block; margin: 3px auto 0; white-space: nowrap; font-size: 11px; }
.batch-job-table .batch-detail-button { margin: 3px 0 0; }
.batch-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 10px 0 7px; }
.batch-section-heading h3 { margin: 0; font-size: 15px; }
.batch-section-heading span { color: #65777c; font-size: 12px; text-align: right; }
.batch-scroll { overflow: auto; border: 1px solid #e0e8e9; max-height: 330px; }
.batch-table, body.batch-invoice-view .batch-table { width: 100%; min-width: 900px; table-layout: fixed; border-collapse: collapse; }
.batch-table th, .batch-table td { height: 30px; padding: 5px 8px; border-bottom: 1px solid #e5ebec; white-space: normal; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; text-align: left; font-size: 12px; line-height: 1.4; }
.batch-table th { position: sticky; top: 0; z-index: 1; background: #f4f8f8; color: #4b6266; font-weight: 600; }
.batch-table th { white-space: normal; overflow: visible; text-overflow: clip; }
body.batch-invoice-view .batch-table tbody td:nth-child(2) { position: static; left: auto; z-index: auto; box-shadow: none; background: transparent; }
body.batch-invoice-view .batch-table thead th:nth-child(2) { position: sticky; top: 0; left: auto; z-index: 1; box-shadow: none; background: #f4f8f8; }
.batch-filter-label { display: block; overflow-wrap: anywhere; line-height: 1.3; }
.batch-header-filter { display: block; width: 22px; height: 17px; min-width: 22px; margin: 2px auto 0; padding: 0; border: 0; border-radius: 3px; appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%2364777c' stroke-width='1.5'/%3E%3C/svg%3E") center / 12px 8px no-repeat; color: transparent; cursor: pointer; font-size: 0; }
.batch-header-filter option { color: #172c31; font-size: 12px; }
.batch-header-filter.is-active { background-color: #e4efff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%231d54c4' stroke-width='1.8'/%3E%3C/svg%3E"); }
.batch-header-filter:focus-visible { outline: 2px solid #1d54c4; outline-offset: 1px; }
.batch-table:not(.batch-job-table) td:nth-child(4),
.batch-table:not(.batch-job-table) td:nth-child(5),
.batch-table:not(.batch-job-table) td:nth-child(6),
.batch-table:not(.batch-job-table) td:nth-child(10),
.batch-job-table td:nth-child(2),
.batch-job-table td:nth-child(7),
.batch-job-table td:nth-child(8) {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.batch-table th:first-child, .batch-table td:first-child { width: 34px; text-align: center; }
.batch-table th:nth-child(2), .batch-table td:nth-child(2) { width: 50px; }
.batch-table th:nth-child(3), .batch-table td:nth-child(3) { width: 78px; }
.batch-table th:nth-child(4), .batch-table td:nth-child(4) { width: 200px; }
.batch-table th:nth-child(5), .batch-table td:nth-child(5) { width: 165px; }
.batch-table th:nth-child(6), .batch-table td:nth-child(6) { width: 112px; }
.batch-table th:nth-child(7), .batch-table td:nth-child(7) { width: 60px; text-align: right; }
.batch-table th:nth-child(8), .batch-table td:nth-child(8) { width: 100px; text-align: right; }
.batch-table th:nth-child(9), .batch-table td:nth-child(9) { width: 100px; }
.batch-table th:nth-child(10), .batch-table td:nth-child(10) { width: 145px; }
.batch-table:not(.batch-job-table) { min-width: 1100px; }
.batch-table:not(.batch-job-table) th:nth-child(3),
.batch-table:not(.batch-job-table) td:nth-child(3) { width: 96px; min-width: 96px; white-space: nowrap; overflow: visible; text-overflow: clip; }
.batch-table input[type='checkbox'] { margin: 0; vertical-align: middle; }
.batch-job-table, body.batch-invoice-view .batch-job-table { min-width: 800px; }
.batch-job-table th:first-child, .batch-job-table td:first-child { width: 95px; text-align: left; }
.batch-job-table th:nth-child(2), .batch-job-table td:nth-child(2) { width: 180px; }
.batch-job-table th:nth-child(3), .batch-job-table td:nth-child(3) { width: 110px; }
.batch-job-table th:nth-child(4), .batch-job-table td:nth-child(4) { width: 90px; }
.batch-job-table th:nth-child(5), .batch-job-table td:nth-child(5) { width: 100px; }
.batch-job-table th:nth-child(6), .batch-job-table td:nth-child(6) { width: 110px; text-align: right; }
.batch-job-table th:nth-child(7), .batch-job-table td:nth-child(7) { width: 75px; }
.batch-job-table th:nth-child(8), .batch-job-table td:nth-child(8) { width: 165px; }
.batch-status-done { color: #18705b; }
.batch-status-error { color: #a03f2b; }
.batch-empty { padding: 24px 12px !important; text-align: center !important; color: #718287; }
.batch-download { color: #096d82; margin-right: 10px; white-space: nowrap; }
@media (max-width: 700px) { .batch-invoice-page { padding: 8px; } .batch-controls label { flex: 1 1 45%; } .batch-controls label:first-child { flex-basis: 100%; } .batch-controls .primary-button { width: 100%; } .batch-section-heading { display: block; } .batch-section-heading span { display: block; text-align: left; margin-top: 4px; } }
