.billing-import-dialog{padding:0;border:0;border-radius:12px;background:#fff;color:#172f40;width:min(1320px,96vw);max-width:96vw;max-height:94vh;overflow:auto}.billing-import-dialog::backdrop{background:#173d5070;backdrop-filter:blur(2px)}.billing-import-dialog *{box-sizing:border-box}.bill-import-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:21px 26px;border-bottom:1px solid #dce6eb;background:#fff;position:sticky;top:0;z-index:5}.bill-import-head p{color:#087e83;font-size:12px;margin:0 0 5px}.bill-import-head h2{font-size:21px;margin:0}.bill-import-close{border:0;font-size:28px;line-height:1;padding:3px 7px}.bill-import-body{padding:23px 26px;min-width:0}.bill-import-foot{padding:17px 26px;border-top:1px solid #dce6eb;background:#fff;display:flex;justify-content:flex-end;gap:10px;align-items:center;position:sticky;bottom:0;z-index:5;flex-wrap:wrap}.bill-import-foot>span{margin-right:auto;font-size:12px;color:#718390;line-height:1.6}.bill-import-foot button{white-space:nowrap}.bill-import-error{color:#b33b3d;font-size:14px;line-height:1.8;overflow-wrap:anywhere;margin:16px 0 0}.bill-import-error:empty{margin:0}.bill-import-steps{list-style:none;display:flex;gap:22px;margin:0 0 24px;padding:0;border-bottom:1px solid #e1e8ed;color:#82929d;font-size:13px}.bill-import-steps li{padding:0 0 13px}.bill-import-steps li.active{color:#087e83;box-shadow:inset 0 -2px #087e83;font-weight:600}.bill-import-setup{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:30px}.bill-import-setup h3,.bill-import-section-head h3,.bill-import-source-head h3{margin:0 0 9px;font-size:18px}.bill-import-setup p,.bill-import-section-head p,.bill-import-source-head p{color:#718390;font-size:13px;line-height:1.8;margin:0 0 18px}.bill-import-setup label,.bill-import-fields label,.bill-import-notes{font-size:13px;gap:7px}.bill-import-setup input,.bill-import-setup textarea,.bill-import-fields input,.bill-import-notes textarea{width:100%;font-size:14px}.bill-import-setup aside{padding:20px;border:1px solid #dce7eb;border-radius:8px;background:#f7fafb;align-self:start}.bill-import-setup aside h3{font-size:16px}.bill-import-setup aside button{font-size:13px}.bill-import-upload{margin:20px 0 10px;border:1px dashed #94c6c7;border-radius:9px;background:#f5fbfa;display:grid;gap:9px;padding:24px}.bill-import-upload strong{font-size:18px;color:#087e83}.bill-import-upload>span{font-size:12px;color:#718390}.bill-import-upload input{font-size:13px;margin-top:5px}.bill-import-file-list{display:grid;gap:8px;margin-bottom:20px}.bill-import-file-list>div{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #e0e8ed;border-radius:5px;padding:9px 12px}.bill-import-file-list a{font-size:13px;overflow-wrap:anywhere}.bill-import-file-list button{padding:5px 9px;font-size:12px;flex-shrink:0}.bill-import-progress,.bill-import-empty{text-align:center;padding:55px 20px;color:#718390;font-size:14px;line-height:1.8}.bill-import-empty h3,.bill-import-progress h3{color:#24495d;font-size:20px;margin:0 0 12px}.bill-import-progress p{max-width:580px;margin:12px auto}.bill-import-progress .bill-import-sources{justify-content:center}.bill-import-spinner{display:inline-block;width:30px;height:30px;border:3px solid #d7eceb;border-top-color:#087e83;border-radius:50%;animation:bill-import-spin 1s linear infinite;margin-bottom:20px}@keyframes bill-import-spin{to{transform:rotate(360deg)}}.bill-import-source-head{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:15px}.bill-import-source-head h3{overflow-wrap:anywhere}.bill-import-source-head p{overflow-wrap:anywhere}.bill-import-sources{display:flex;gap:8px 13px;flex-wrap:wrap;align-items:center;min-width:0}.bill-import-sources a{font-size:12px;overflow-wrap:anywhere;line-height:1.7}.bill-import-warning{background:#fff8e9;border:1px solid #f1e0b7;color:#956329;border-radius:6px;padding:12px 16px;font-size:13px;line-height:1.8;margin-bottom:18px;overflow-wrap:anywhere}.bill-import-warning ul{margin:0;padding-left:20px}.bill-import-warning strong+ul{margin-top:5px}.bill-import-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin:0 0 25px}.bill-import-fields label{min-width:0}.bill-import-editor-section{border:1px solid #dce6eb;border-radius:8px;overflow:hidden;margin-bottom:20px}.bill-import-section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px 18px}.bill-import-section-head p{margin:0}.bill-import-section-head h3{font-size:17px}.bill-import-section-head button{white-space:nowrap;font-size:13px}.bill-import-table-wrap{max-width:100%;overflow:auto;overscroll-behavior:contain}.bill-import-table-wrap table{margin:0;border-collapse:collapse}.bill-import-table-wrap th,.bill-import-table-wrap td{padding:10px;font-size:12px;line-height:1.7;vertical-align:top;border-bottom:1px solid #e4ebef}.bill-import-table-wrap th{background:#f3f7f9;color:#607a8c;font-weight:500;white-space:nowrap}.bill-import-table-wrap td small{display:block;white-space:normal;overflow-wrap:anywhere;color:#7c8d99;font-size:11px;margin-top:5px}.bill-import-edit-table{table-layout:fixed;width:1440px;min-width:1440px}.bill-import-edit-table th:nth-child(1){width:42px}.bill-import-edit-table th:nth-child(2){width:120px}.bill-import-edit-table th:nth-child(3){width:155px}.bill-import-edit-table th:nth-child(4){width:220px}.bill-import-edit-table th:nth-child(5){width:150px}.bill-import-edit-table th:nth-child(6){width:115px}.bill-import-edit-table th:nth-child(7){width:75px}.bill-import-edit-table th:nth-child(8){width:115px}.bill-import-edit-table th:nth-child(9){width:120px}.bill-import-edit-table th:nth-child(10){width:220px}.bill-import-edit-table th:nth-child(11){width:78px}.bill-import-edit-table input{width:100%;min-width:0;font-size:12px;padding:8px 7px}.bill-import-edit-table button{font-size:12px;padding:7px 9px;white-space:nowrap}.bill-import-edit-table thead th:last-child,.bill-import-edit-table tbody td:last-child{position:sticky;right:0;z-index:1;background:#fff;box-shadow:-5px 0 8px -5px #173c503d}.bill-import-edit-table thead th:last-child{background:#f3f7f9;z-index:2}.bill-import-edit-summary{background:#f7fbfb;color:#087e83;font-size:13px;margin:0;padding:13px 18px;line-height:1.7}.bill-import-original{font-size:13px;border:1px solid #dfe8ed;padding:12px 15px;border-radius:6px;margin-bottom:18px}.bill-import-original summary{cursor:pointer;color:#527588}.bill-import-original pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:330px;overflow:auto;background:#f6f9fa;padding:14px;font-family:inherit;font-size:12px;line-height:1.7;color:#61798a}.bill-import-notes{margin-bottom:22px}.bill-import-report-placeholder{text-align:center;border:1px dashed #cbdfe1;padding:25px;color:#718390;font-size:13px;line-height:1.7;border-radius:7px;background:#fafcfc}.bill-import-report{border:1px solid #dce6eb;border-radius:8px;overflow:hidden}.bill-import-report-stale-hint{display:none;font-size:12px;color:#ac7228;white-space:nowrap}.bill-import-report-stale .bill-import-report-stale-hint{display:inline}.bill-import-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0 18px 18px}.bill-import-totals>div{padding:15px;border:1px solid #dce6eb;border-radius:6px;min-width:0}.bill-import-totals small{font-size:12px;color:#718390}.bill-import-totals strong{font-size:20px;display:block;margin-top:8px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.bill-import-totals span{display:block;font-size:11px;color:#7d8f9d;margin-top:8px;line-height:1.6}.bill-import-status-summary{display:flex;gap:8px;flex-wrap:wrap;padding:0 18px 18px}.bill-import-status{display:inline-block;font-size:11px;padding:3px 7px;border-radius:4px;color:#687e8d;background:#edf2f5;white-space:nowrap}.bill-import-status.matched{color:#14725b;background:#e1f2eb}.bill-import-status.different,.bill-import-status.duplicate{color:#b33b3d;background:#fbe9e9}.bill-import-status.ambiguous,.bill-import-status.incomplete{color:#a56e22;background:#fff2db}.bill-import-report>.bill-import-warning{margin:0 18px 18px}.bill-import-result-table{table-layout:fixed;width:1200px;min-width:1200px}.bill-import-result-table th:nth-child(1){width:145px}.bill-import-result-table th:nth-child(2){width:330px}.bill-import-result-table th:nth-child(3),.bill-import-result-table th:nth-child(4){width:170px}.bill-import-result-table th:nth-child(5){width:175px}.bill-import-result-table th:nth-child(6){width:210px}.bill-import-result-table td>strong{display:block;font-size:12px;margin-bottom:5px}.bill-import-result-table select{width:100%;font-size:12px;min-width:0;padding:9px 7px}.bill-import-result-table dl{display:grid;grid-template-columns:34px minmax(0,1fr);gap:3px 9px;margin:0;font-variant-numeric:tabular-nums}.bill-import-result-table dt{color:#82939f}.bill-import-result-table dd{margin:0;overflow-wrap:anywhere}.bill-import-result-table td p{margin:0 0 5px;overflow-wrap:anywhere}.bill-import-difference{color:#b33b3d;font-weight:600}.bill-import-zero{color:#168068}.bill-import-unknown{color:#a67938}.bill-import-unmatched{padding:16px 18px;font-size:13px;color:#657e8f;border-top:1px solid #dce6eb}.bill-import-unmatched summary{cursor:pointer;color:#31596d}.bill-import-unmatched>p{font-size:12px;line-height:1.7}.bill-import-unmatched table{min-width:650px;table-layout:fixed;width:100%}.bill-import-unmatched th:first-child{width:55%}.bill-import-history-table{width:100%;min-width:800px;table-layout:fixed}.bill-import-history-table th:nth-child(1){width:175px}.bill-import-history-table th:nth-child(2){width:195px}.bill-import-history-table th:nth-child(3){width:220px}.bill-import-history-table th:nth-child(4){width:170px}.bill-import-history-table th:nth-child(5){width:110px}.bill-import-history-table button{padding:7px 10px;font-size:12px;white-space:nowrap}.bill-import-history-table td{overflow-wrap:anywhere}.bill-import-history-table .bill-import-sources{display:grid}.bill-import-history-table td:last-child,.bill-import-history-table th:last-child{position:sticky;right:0;background:#fff;box-shadow:-5px 0 8px -5px #173c503d}.bill-import-history-table th:last-child{background:#f3f7f9}.bill-import-report-stale .bill-import-totals{opacity:.65}
#bill-import-report{scroll-margin-top:112px}
@media(max-width:850px){.bill-import-setup{grid-template-columns:1fr;gap:20px}.bill-import-setup aside{padding:16px}.bill-import-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.bill-import-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.bill-import-source-head{flex-direction:column;gap:8px}.bill-import-source-head p{margin-bottom:0}.bill-import-report-stale-hint{white-space:normal}.bill-import-foot>span{flex-basis:100%;margin:0}.bill-import-steps{gap:15px;font-size:12px}}
@media(max-width:560px){.billing-import-dialog{width:98vw;max-width:98vw;max-height:97vh;border-radius:9px}.bill-import-head{padding:17px}.bill-import-head h2{font-size:18px}.bill-import-body{padding:18px 15px}.bill-import-foot{padding:13px 15px;gap:7px}.bill-import-foot button{padding:9px 10px;font-size:12px}.bill-import-fields{grid-template-columns:1fr;gap:14px}.bill-import-steps{gap:12px;font-size:11px;margin-bottom:20px}.bill-import-upload{padding:20px 16px}.bill-import-totals{gap:8px;padding:0 12px 14px}.bill-import-totals>div{padding:12px 10px}.bill-import-totals strong{font-size:17px}.bill-import-totals small{font-size:11px}.bill-import-section-head{padding:15px 12px;align-items:flex-start}.bill-import-section-head h3{font-size:16px}.bill-import-section-head p{font-size:12px}.bill-import-source-head h3{font-size:17px}.bill-import-status-summary{padding:0 12px 14px}.bill-import-progress,.bill-import-empty{padding:35px 10px}.bill-import-result-table th,.bill-import-result-table td{padding:9px}.bill-import-foot>span{font-size:11px}.bill-import-foot button.primary{flex-grow:1}}
@media(prefers-reduced-motion:reduce){.bill-import-spinner{animation:none}}
@media print{.billing-import-dialog{display:none!important}}
