.integration-view { padding: 24px; background: #fff; border-radius: 16px; }
.integration-view form { margin: 18px 0; padding: 18px; background: #f5f8fb; border-radius: 10px; }
.integration-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(220px,100%),1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
#integrationConfig > .integration-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.integration-view label { display: grid; align-content: start; gap: 6px; margin: 0; min-width: 0; }
.integration-view input,.integration-view select,.integration-view textarea { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; padding: 9px; border: 1px solid #cad5df; border-radius: 6px; font: inherit; }
.integration-view input:not([type=checkbox]),.integration-view select { height: 42px; }
.integration-grid > p { grid-column: 1 / -1; margin: 0; color: #536572; line-height: 1.5; }
.integration-view label:has(> input[type=checkbox]) { display: flex; align-items: center; gap: 8px; min-height: 42px; cursor: pointer; }
.integration-view input[type=checkbox] { flex: 0 0 18px; width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: #12877f; }
#credentialScopes { margin-top: 16px; }
#productionFilters { align-items: end; }
#productionFilters > button { justify-self: start; align-self: end; height: 42px; margin: 0; padding: 0 22px; background: #117b82; color: #fff; border-color: #117b82; font: inherit; }
#coverage { padding: 12px 14px; background: #eaf3fc; border-radius: 8px; color: #536572; line-height: 1.5; }
#productionSummary { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 10px; margin: 16px 0; }
.integration-metric { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 14px; border: 1px solid #dae3eb; border-radius: 10px; }
.integration-metric span { font-size: 12px; color: #536572; }
.integration-metric strong { font-size: 20px; color: #203748; }
#productionExport { display: inline-flex; padding: 9px 14px; border: 1px solid #9bcfd3; border-radius: 8px; color: #117b82; text-decoration: none; }
.integration-table .integration-empty { padding: 32px 16px; text-align: center; color: #536572; }
@media(max-width:1000px) { #integrationConfig > .integration-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { #integrationConfig > .integration-grid { grid-template-columns: minmax(0,1fr); } .integration-view { padding: 16px; } }
.integration-view button { margin: 6px; padding: 9px 14px; border: 1px solid #cad5df; border-radius: 6px; cursor: pointer; }
.integration-table { overflow: auto; margin: 14px 0; }
.integration-table table { border-collapse: collapse; width: 100%; text-align: left; }
.integration-table td,.integration-table th { padding: 10px; border-bottom: 1px solid #dae3eb; vertical-align: top; }
.integration-view pre { max-width: 700px; max-height: 320px; overflow: auto; white-space: pre-wrap; }
.integration-notice { padding: 14px; background: #eaf3fc; border-radius: 8px; }
#integrationGroupNav b { transition: transform .2s; }
#integrationGroupNav[aria-expanded="true"] b { transform: rotate(90deg); }
.integration-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.integration-heading h1 { margin: 0; }
.integration-intro { margin: 9px 0 0; color: #657887; font-size: 13px; line-height: 1.6; }
.integration-status { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; padding: 14px 18px; margin-bottom: 24px; border: 1px solid #dce9ec; border-radius: 12px; background: #f3fafb; color: #496473; font-size: 12px; }
.integration-badge { display: inline-flex; align-items: center; white-space: nowrap; padding: 5px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; background: #edf1f5; color: #5a7183; }
.integration-badge.ok { color: #0a7565; background: #e0f5ed; }
.integration-badge.paused { color: #98691c; background: #fff2da; }
.integration-settings-card { margin: 22px 0; overflow: hidden; border: 1px solid #dae5ec; border-radius: 14px; background: #fff; }
.integration-settings-card > header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px; background: #f8fbfc; border-bottom: 1px solid #e4ecf0; }
.integration-settings-card > header > div { position: relative; padding-left: 46px; }
.integration-settings-card h2 { margin: 0 0 7px; color: #193b4b; font-size: 17px; }
.integration-settings-card > header p { max-width: 700px; margin: 0; color: #657887; font-size: 12px; line-height: 1.7; }
.integration-step { display: inline-flex; flex: 0 0 30px; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; color: #0c7c80; background: #dff1f1; font-size: 13px; font-weight: 800; }
.integration-settings-card > header .integration-step { position: absolute; left: 0; top: 1px; }
.integration-view .integration-settings-card button { margin: 0; padding: 9px 13px; background: #fff; color: #31586a; font: inherit; font-size: 12px; font-weight: 600; border: 1px solid #cfdee6; border-radius: 8px; }
.integration-view .integration-settings-card button.integration-primary { background: #108c8b; color: #fff; border-color: #108c8b; white-space: nowrap; }
.integration-view .integration-settings-card button:hover:not(:disabled) { filter: brightness(.96); }
.integration-view .integration-settings-card button:disabled { opacity: .5; cursor: wait; }
.integration-view .integration-settings-card button:focus-visible { outline: 2px solid #108c8b; outline-offset: 3px; }
.integration-view .integration-settings-card input:focus,.integration-view .integration-settings-card select:focus { outline: 2px solid #108c8b26; border-color: #108c8b; }
.integration-view .integration-settings-card input[readonly] { background: #eef3f6; color: #587182; }
.integration-settings-card > details { margin: 18px 22px; border: 1px solid #dce7ee; border-radius: 10px; overflow: hidden; }
.integration-settings-card > details > summary { cursor: pointer; padding: 13px 16px; font-size: 12px; font-weight: 700; color: #226578; background: #f1f8fa; }
.integration-view .integration-settings-card form { margin: 0; padding: 20px; background: #fbfcfd; border-radius: 0; }
.integration-settings-card label { color: #36586a; font-size: 12px; font-weight: 600; }
.integration-settings-card label small { color: #71828e; font-size: 11px; font-weight: 400; line-height: 1.5; }
.integration-form-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid #e2eaef; }
.integration-form-help { margin: 12px 0 0; color: #708390; font-size: 11px; line-height: 1.6; }
.integration-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px 6px; }
.integration-list-heading h3 { margin: 0; color: #254b5e; font-size: 13px; }
.integration-list-heading > span { color: #78909e; font-size: 11px; }
.integration-saved-list { margin: 10px 0 0; }
.integration-saved-list table { min-width: 700px; font-size: 12px; }
.integration-saved-list th { padding: 12px 22px; background: #f3f7fa; font-size: 11px; color: #607988; white-space: nowrap; }
.integration-saved-list td { padding: 15px 22px; vertical-align: middle; color: #3f5c6d; overflow-wrap: anywhere; }
.integration-saved-list tbody tr:last-child td { border-bottom: 0; }
.integration-saved-list td small { display: block; margin-top: 5px; color: #7b8e9b; font-size: 10px; }
.integration-row-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 160px; }
.integration-view .integration-row-actions button { padding: 7px 10px; font-size: 11px; }
.integration-view .integration-row-actions .integration-danger { color: #b34c55; background: #fff7f7; border-color: #f0d6da; }
.integration-permission-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.integration-permission-heading h3 { margin: 0; font-size: 13px; color: #31586a; }
.integration-permissions { padding: 12px; border: 1px solid #dfe9ee; border-radius: 10px; background: #fff; }
.integration-permissions label { font-size: 11px; font-weight: 400; }
.integration-advanced { margin-top: 24px; padding: 18px; border: 1px solid #dce7ee; border-radius: 12px; background: #fafcfd; }
.integration-advanced > summary { cursor: pointer; color: #31586a; font-size: 13px; font-weight: 700; }
@media(max-width:650px) { .integration-settings-card > header { align-items: flex-start; flex-direction: column; padding: 18px; } .integration-settings-card > details { margin: 14px; } .integration-view .integration-settings-card form { padding: 15px; } .integration-status { align-items: flex-start; flex-direction: column; gap: 9px; } }
.depara-eyebrow { margin: 0 0 7px; color: #16888e; font-size: 10px; letter-spacing: .12em; font-weight: 700; }
.depara-subtitle { margin: 8px 0 0; color: #6a7c8a; font-size: 12px; }
.depara-workspace { overflow: hidden; border: 1px solid #d5e2e9; border-radius: 14px; background: #fff; }
.depara-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #dce6ed; background: #f8fafc; }
.depara-toolbar > div { display: flex; gap: 7px; flex-wrap: wrap; }
.depara-toolbar > span { color: #6a7c8a; font-size: 11px; }
.integration-view .depara-workspace button,.integration-view .depara-log button { margin: 0; height: 34px; padding: 0 14px; border: 1px solid #cbdce5; border-radius: 7px; background: #fff; color: #315567; font: inherit; font-size: 11px; font-weight: 600; }
.integration-view .depara-workspace button:hover:not(:disabled) { border-color: #25969c; background: #eaf7f7; }
.integration-view .depara-workspace button:disabled { opacity: .45; cursor: not-allowed; }
.integration-view .depara-workspace button:focus-visible { outline: 2px solid #128f91; outline-offset: 2px; }
.integration-view form.depara-form { margin: 0; padding: 20px 18px 14px; border-radius: 0; background: #f3f7fa; border-bottom: 1px solid #dce6ed; }
.depara-form-grid { display: grid; grid-template-columns: minmax(160px,1fr) minmax(180px,1fr) minmax(220px,1.5fr); gap: 14px 20px; }
.depara-form-grid label { color: #415c6e; font-size: 11px; font-weight: 600; }
.integration-view .depara-workspace input,.integration-view .depara-workspace select { height: 36px; padding: 7px 9px; background: #fff; font-size: 12px; font-weight: 400; border-color: #ccdce6; }
.integration-view .depara-workspace input[readonly],.integration-view .depara-workspace select:disabled { background: #eaf0f4; color: #607580; opacity: 1; }
.depara-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.depara-form-footer p { margin: 0; max-width: 650px; color: #6a7c8a; font-size: 11px; line-height: 1.6; }
.integration-view .depara-workspace #mappingSave { background: #128f91; border-color: #128f91; color: #fff; white-space: nowrap; }
.integration-view .depara-workspace #mappingSave:hover:not(:disabled) { background: #10787a; }
.depara-list-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; color: #29475a; font-size: 12px; }
.depara-list-heading > span { color: #708390; font-size: 11px; }
.depara-table-wrap { overflow: auto; min-height: 240px; }
.depara-table { width: 100%; min-width: 920px; border-collapse: collapse; text-align: left; }
.depara-table th { padding: 9px 12px; background: #dceaf2; color: #3e5d70; font-size: 10px; font-weight: 700; white-space: nowrap; border-bottom: 1px solid #cbdce6; }
.depara-table td { padding: 9px 12px; border-bottom: 1px solid #e2ebf1; color: #3a5260; font-size: 11px; vertical-align: middle; }
.depara-table td small { display: block; margin-top: 3px; color: #718491; font-size: 10px; }
.depara-table tbody tr:nth-child(even) { background: #f4f8fb; }
.depara-table tbody tr { cursor: pointer; }
.depara-table tbody tr:hover { background: #e5f4f5; }
.depara-table tbody tr.selected { background: #c2e7ec; box-shadow: inset 3px 0 #148d94; }
.integration-view .depara-table .depara-row-select { border: 0; background: transparent; padding: 0; height: auto; color: #126f7c; font-weight: 700; }
.depara-column-filters th { padding: 10px 12px 4px; }
.integration-view .depara-column-filters input,.integration-view .depara-column-filters select { height: 30px; min-width: 100px; border-radius: 5px; font-size: 10px; }
.depara-status { display: inline-block; padding: 4px 9px; border-radius: 20px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.depara-status.active { background: #ddf4ea; color: #23735b; }
.depara-status.inactive { background: #eceff3; color: #697580; }
.depara-status.pending { background: #fff2d7; color: #93671a; }
.depara-table .depara-empty { height: 170px; text-align: center; color: #708390; }
.depara-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid #dce6ed; color: #6a7c8a; font-size: 11px; }
.depara-pagination > div { display: flex; align-items: center; gap: 7px; }
.integration-view .depara-pagination button { width: 30px; height: 30px; padding: 0; font-size: 18px; }
.depara-log { margin-top: 18px; padding: 16px; border: 1px solid #d5e2e9; border-radius: 12px; }
@media(max-width:900px) { .depara-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .depara-toolbar { align-items: flex-start; flex-direction: column; } }
@media(max-width:600px) { .depara-form-grid { grid-template-columns: minmax(0,1fr); } .depara-form-footer,.depara-pagination { align-items: flex-start; flex-direction: column; } }
.integration-swagger-link { display: inline-flex; align-items: center; padding: 10px 14px; border: 1px solid #9bcfd3; border-radius: 8px; background: #edf9f9; color: #117b82; text-decoration: none; font-size: 13px; font-weight: 700; }
.integration-swagger-link:hover { background: #d9f1f2; }
.imported-invoices-table { min-width: 1500px; }
.imported-guide { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 16px 0 10px; }
.imported-guide > div { padding: 16px; border: 1px solid #d9e5ea; border-radius: 12px; background: #f5fafb; }
.imported-guide b,.imported-guide span { display: block; }
.imported-guide b { color: #147d81; margin-bottom: 6px; }
.imported-guide span,.imported-help { color: #526b79; font-size: 12px; line-height: 1.6; }
.imported-help { margin: 10px 0 18px; }
.imported-label { display: block; font-size: 10px; color: #69808d; margin-top: 7px; }
.imported-status { display: inline-block; border-radius: 20px; padding: 4px 9px; font-weight: 700; white-space: nowrap; }
.imported-status.complete { background: #e6f5ee; color: #216546; }
.imported-status.pending { background: #fff3d9; color: #79560c; }
.imported-status.cancelled { background: #fdebec; color: #a62b38; }
.imported-pending { margin: 8px 0 0; color: #79560c; }
.imported-invoices-table .imported-origin { min-width: 0; margin-top: 8px; color: #69808d; }
@media(max-width:700px) { .imported-guide { grid-template-columns: 1fr; gap: 8px; } }
.imported-results { overflow: hidden; margin-top: 20px; border: 1px solid #d9e5ea; border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(7,35,53,.055); }
.imported-results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid #e3eaee; }
.imported-results-summary { display: flex; flex-direction: column; gap: 5px; }
.imported-results-summary strong { color: #183847; font-size: 13px; }
.imported-results-summary > span { color: #69808d; font-size: 11px; }
.imported-results-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.imported-results-actions [hidden] { display: none !important; }
.integration-view .imported-results button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin: 0; height: 36px; padding: 0 13px; border: 1px solid #cfdde3; border-radius: 9px; background: #fff; color: #47606d; font: inherit; font-size: 11px; font-weight: 700; transition: background .15s, border-color .15s; }
.integration-view .imported-results #importedSelectAll { background: #edf9f9; border-color: #9fd5d6; color: #147d81; }
.integration-view .imported-results #importedSave { background: #128f91; border-color: #128f91; color: #fff; }
.integration-view .imported-results #importedSave:hover:not(:disabled) { background: #107b7d; }
.integration-view .imported-results #importedSelectAll:hover:not(:disabled) { background: #dcf2f2; }
.integration-view .imported-results button:disabled { opacity: .45; cursor: not-allowed; }
.integration-view .imported-results button:focus-visible { outline: 2px solid #128f91; outline-offset: 3px; }
.imported-results #importedRows { margin: 0; min-height: 180px; }
.imported-results .imported-invoices-table th { background: #f1f6f8; color: #617480; font-size: 10px; font-weight: 700; white-space: nowrap; }
.imported-results .imported-invoices-table td { font-size: 11px; line-height: 1.6; border-color: #edf2f4; }
.imported-results .imported-invoices-table tbody tr:hover { background: #f3fbfb; }
.imported-results-empty { padding: 64px 20px; text-align: center; color: #69808d; font-size: 12px; }
.imported-results-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid #e3eaee; color: #627782; font-size: 11px; }
.imported-pagination { display: flex; align-items: center; gap: 10px; }
.integration-view .imported-pagination button { width: 32px; height: 32px; padding: 0; color: #147d81; font-size: 22px; font-weight: 400; }
.imported-pagination span { white-space: nowrap; }
@media(max-width:850px) { .imported-results-toolbar { align-items: flex-start; flex-direction: column; } .imported-results-actions { width: 100%; } .imported-results-footer { flex-wrap: wrap; } .imported-pagination { margin-left: auto; } }
.imported-invoices-table .imported-batch,.imported-invoices-table .imported-protocol { min-width: 150px; }
.imported-invoices-table .imported-competence { min-width: 160px; }
.imported-invoices-table details { min-width: 220px; max-width: 320px; }
.imported-invoices-table details p { border-bottom: 1px solid #dae3eb; padding-bottom: 10px; }

#importedFilters { background: #fff; border: 1px solid #dfe6ee; border-radius: 14px; padding: 18px; box-shadow: 0 8px 28px #18324b08; }
.imported-filter-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.imported-filter-heading p { margin: 0 0 4px; color: #1697b4; font-size: 10px; letter-spacing: 1.5px; }
.imported-filter-heading h3 { margin: 0; font-size: 15px; color: #102b42; }
#importedFilterCount,.imported-filter-footer span { display: inline-block; border-radius: 20px; padding: 6px 9px; background: #edf8fa; color: #238fa3; font-size: 10px; }
.imported-filter-row { display: grid; grid-template-columns: 14px 198px minmax(0,1fr) 32px; align-items: center; gap: 8px; margin: 10px 0; }
.imported-filter-row > span:first-child { text-align: center; font-size: 10px; color: #8797a8; }
.imported-filter-value { display: flex; align-items: center; gap: 8px; min-width: 0; }
#importedFilters input,#importedFilters select { height: 36px; background: #fbfcfe; border-color: #d5e1ed; border-radius: 8px; font-size: 12px; }
#importedFilters button { margin: 0; min-height: 32px; padding: 7px 12px; border: 1px solid #cbdce9; border-radius: 8px; background: #fff; color: #21425d; font-size: 11px; cursor: pointer; }
#importedFilters .imported-filter-remove { padding: 0; border-color: transparent; background: #fff0f2; color: #ff4860; }
.imported-filter-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.imported-filter-actions > div { display: flex; gap: 8px; }
#importedFilters #importedApplyFilters { background: #108c86; border-color: #108c86; color: #fff; font-weight: 600; }
#importedFilters #importedAddFilter { background: #f8fbfd; }
.imported-filter-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #e0e8ef; margin-top: 10px; padding-top: 10px; }
#importedFilterChips { display: flex; flex-wrap: wrap; gap: 6px; }
@media(max-width:700px) { .imported-filter-row { grid-template-columns: 14px minmax(0,1fr) 32px; } .imported-filter-value { grid-column: 2 / 4; grid-row: 2; flex-wrap: wrap; } .imported-filter-remove { grid-column: 3; grid-row: 1; } .imported-filter-heading,.imported-filter-footer { align-items: flex-start; } .imported-filter-actions { flex-wrap: wrap; } }

/* Compact summary with expandable review workspace. */
.imported-results #importedRows { max-height: 72vh; overflow: auto; margin: 0; border-top: 1px solid #dfe9ed; }
.imported-review-table { display: table; min-width: 940px; width: 100%; table-layout: fixed; }
.imported-review-table thead { display: table-header-group; }
.imported-review-table tbody { display: table-row-group; }
.imported-review-table tr { display: table-row; }
.imported-review-table th:nth-child(1) { width: 38px; }
.imported-review-table th:nth-child(2) { width: 155px; }
.imported-review-table th:nth-child(3) { width: 195px; }
.imported-review-table th:nth-child(4) { width: 185px; }
.imported-review-table th:nth-child(5) { width: 110px; }
.imported-review-table th:nth-child(6) { width: 165px; }
.imported-review-table th:nth-child(7) { width: 115px; }
.imported-review-table thead th { position: sticky; top: 0; z-index: 2; padding: 13px 12px; letter-spacing: .7px; text-transform: uppercase; font-size: 9px; background: #f2f6f8; }
.imported-review-table .invoice-review-summary td { padding: 15px 12px; vertical-align: middle; font-size: 11px; border-bottom: 1px solid #e6eef2; overflow-wrap: anywhere; }
.imported-review-table .invoice-review-summary.selected td { background: #eaf7f8; }
.invoice-review-number { color: #153a4d; font-size: 13px; }
.invoice-review-patient { margin-top: 3px; color: #607887; font-size: 11px; }
.invoice-review-patient strong { font-weight: 400; }
.imported-value { white-space: nowrap; }
.imported-review-table details { min-width: 0; max-width: none; }
.imported-review-table summary { cursor: pointer; }
.integration-view .imported-results .invoice-review-open { width: 100%; height: 35px; color: #19798b; background: #fff; border-color: #c8dfe4; }
.invoice-review-open[aria-expanded=true] .invoice-review-chevron { transform: rotate(180deg); }
.invoice-review-detail[hidden],.invoice-review-exams[hidden],.invoice-review-form .imported-adm-label[hidden] { display: none; }
.imported-review-table .invoice-review-detail>td { padding: 12px; background: #f8fbfc; }
.invoice-review-workspace { padding: 16px; border: 1px solid #e3ecef; border-radius: 12px; background: #fff; }
.invoice-review-workspace>header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.invoice-review-workspace h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; color: #153b51; }
.invoice-review-workspace h3 span { color: #098c8a; font-size: 23px; }
.integration-view .invoice-review-workspace>header button { color: #147c86; border-color: #b9dadd; background: #f6fcfc; }
.invoice-review-panels { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; align-items: stretch; }
.invoice-review-panel { min-width: 0; padding: 17px; border: 1px solid #e4ebef; border-radius: 10px; background: linear-gradient(#f8fafc,#fff 100px); }
.invoice-review-panel h4 { margin: 0 0 22px; color: #214a5b; font-size: 13px; }
.invoice-review-panel dl { display: grid; grid-template-columns: minmax(80px,.85fr) minmax(0,1.15fr); gap: 16px 12px; margin: 0; font-size: 11px; line-height: 1.6; }
.invoice-review-panel dt { color: #738491; }
.invoice-review-panel dd { margin: 0; color: #34505e; overflow-wrap: anywhere; }
.invoice-review-panel dd strong { font-weight: 600; }
.integration-view .invoice-review-form label { display: grid; grid-template-columns: 105px minmax(0,1fr); align-items: center; gap: 12px; margin: 11px 0; color: #6c7f8b; font-size: 11px; }
.integration-view .invoice-review-panel input:not([type=checkbox]),.integration-view .invoice-review-panel select { width: 100%; min-width: 0; height: 35px; padding: 6px 8px; border-color: #d5e1e7; background: #fff; font-size: 11px; }
.invoice-review-notice { padding: 12px; margin-bottom: 22px; border-radius: 8px; background: #fff4dd; color: #9c641f; font-size: 11px; line-height: 1.6; }
.invoice-review-notice p { margin: 7px 0; color: #6e6d60; }
.invoice-review-notice small { color: #7d806f; font-size: 10px; }
.invoice-review-exams { max-height: 380px; overflow: auto; margin-top: 16px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.invoice-review-exams article { padding: 12px; border: 1px solid #e3ebef; border-radius: 8px; font-size: 11px; color: #4b6574; }
.invoice-review-exams p { line-height: 1.7; }
#importedSelectedCount { color: #4e7282; font-size: 11px; white-space: nowrap; }
.integration-view .imported-results #importedDelete { color: #a9323c; border-color: #ebc6cb; background: #fff6f6; }
.imported-delete-prompt { margin: 12px 16px; padding: 14px; border: 1px solid #e9b8bd; border-radius: 10px; background: #fff5f5; color: #833740; }
.imported-delete-prompt p { margin: 0 0 10px; font-size: 12px; line-height: 1.6; }
.integration-view .imported-delete-prompt #importedDeleteConfirm { color: #fff; background: #b43c49; border-color: #b43c49; }
@media(max-width:1100px) { .invoice-review-panels { gap: 10px; } .invoice-review-panel { padding: 12px; } .integration-view .invoice-review-form label { grid-template-columns: 85px minmax(0,1fr); gap: 8px; } }
@media(max-width:650px) { .imported-results-actions { display: flex; flex-wrap: wrap; } .invoice-review-panels { grid-template-columns: minmax(0,1fr); max-width: 560px; } .invoice-review-exams { grid-template-columns: minmax(0,1fr); } }

.imported-lots { min-width:0; margin:16px 0 0; padding:0; border:0; background:transparent; }
.imported-lots legend { padding:0; color:#6c7f8b; font-size:11px; font-weight:600; }
.imported-lot-row { display:grid; grid-template-columns:minmax(0,1fr) 28px; gap:4px 8px; padding:8px 0; }
.imported-lot-row + .imported-lot-row { border-top:1px solid #e4ebef; }
.integration-view .imported-lot-row label { grid-column:1; grid-template-columns:82px minmax(0,1fr); margin:3px 0; }
.imported-lot-row [data-imported-remove-lot] { grid-column:2; grid-row:1/4; align-self:center; padding:6px; color:#a4464c; background:#fff; border:1px solid #e3c8cb; border-radius:6px; cursor:pointer; }
.integration-view .imported-lots [data-imported-add-lot] { width:auto; margin-top:4px; padding:5px 0; border:0; border-radius:0; color:#126d75; background:transparent; cursor:pointer; font-size:11px; }
.imported-lots [data-imported-add-lot]:hover:not(:disabled) { text-decoration:underline; }
.imported-lots-total { display:block; margin-top:12px; font-size:11px; line-height:1.6; color:#137d6a; font-weight:700; }
.imported-lots-total.mismatch { color:#a46124; }
.imported-lots button:disabled { opacity:.4; cursor:default; }
