.customs-view{max-width:1600px}.customs-top{display:flex;justify-content:space-between;gap:30px;align-items:center;padding:27px 30px;background:linear-gradient(120deg,#12384b,#22645e);border-radius:18px;color:#f0fffb;margin-bottom:20px}.customs-eyebrow{font-size:9px;font-weight:750;letter-spacing:1.7px;color:#92c7b8}.customs-top h3{font-size:23px;letter-spacing:-.5px;margin:10px 0;color:#fff}.customs-top p{font-size:11px;color:#b5d4d2;line-height:1.8;margin-bottom:0}.customs-source-badge{text-align:right;flex-shrink:0}.customs-source-badge strong{font-size:29px;display:block;font-weight:650}.customs-source-badge span,.customs-source-badge small{display:block;font-size:10px;color:#accbc7;margin-top:6px}.customs-source-badge small{font-size:9px;color:#81b1aa}.customs-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.customs-title{min-width:0;flex:1;max-width:500px}.customs-title input{font-size:17px;font-weight:700;border-color:transparent;background:none;padding:6px 0;min-height:35px;color:#254a58}.customs-title input:focus{padding-left:8px;background:white}.customs-title small{font-size:9px;color:#91a0ac;display:block}.customs-buttons{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.customs-buttons .button{font-size:11px;padding:10px 13px;white-space:nowrap}.customs-saved{font-size:11px;color:#748b96;margin-bottom:20px}.customs-saved>summary{display:flex;justify-content:space-between;gap:15px;cursor:pointer;padding:9px 0}.customs-saved>summary>span{font-size:9px}.customs-saved-list{display:flex;gap:9px;overflow-x:auto;padding:12px 0}.customs-saved-list button{border:1px solid #dee7ed;background:white;border-radius:10px;min-width:180px;max-width:280px;padding:12px;text-align:left;cursor:pointer;color:#3d5b67}.customs-saved-list small{display:block;font-size:9px;color:#90a2ab;margin-top:6px}.customs-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:22px}.customs-kpis article{border:1px solid #dfe8ed;background:#fff;border-radius:14px;padding:18px;min-width:0}.customs-kpis span{display:block;font-size:10px;color:#6e8491;line-height:1.5}.customs-kpis strong{display:block;font-size:20px;color:#284957;font-weight:750;margin:12px 0;overflow-wrap:anywhere}.customs-kpis strong .customs-unavailable{font-size:16px;color:#93a4ad}.customs-kpis small{display:block;font-size:9px;color:#95a3ae;line-height:1.5}.customs-kpis .featured{background:#f0f8f5;border-color:#c4dfd4}.customs-kpis .featured strong{color:#258166}.customs-card{border:1px solid #dde7ed;border-radius:14px;background:#fff;margin-bottom:18px;padding:20px 23px}.customs-card>summary{display:flex;justify-content:space-between;gap:15px;align-items:center;cursor:pointer;list-style:none}.customs-card>summary:after{content:'＋';font-size:17px;color:#8ca7af}.customs-card[open]>summary:after{content:'−'}.customs-card>summary strong{font-size:12px;color:#345563}.customs-card>summary small{margin-left:auto;font-size:9px;color:#91a2aa}.customs-card[open]>summary{margin-bottom:20px}.customs-card fieldset{padding:0;border:0;margin:0;min-width:0}.customs-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.customs-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:10px;color:#68808c;font-weight:650}.customs-field>span{line-height:1.5}.customs-field input,.customs-field select,.customs-field textarea{font-size:11px;padding:11px 12px;min-height:39px;border:1px solid #dce6ed;border-radius:9px;box-shadow:none;font-weight:400;background:#fff;color:#344d5c;max-width:100%}.customs-field input::placeholder{color:#a1b0b7}.customs-field.wide{grid-column:1/-1}.customs-check{display:flex;align-items:flex-start;gap:8px;font-size:10px;color:#66818b;font-weight:400;line-height:1.8;cursor:pointer;margin:14px 0}.customs-check input{width:13px;height:13px;min-height:13px;margin:2px 0 0;accent-color:#2b8b73;flex-shrink:0}.customs-note{font-size:10px;color:#8b9ba6;line-height:1.85}.customs-warning{background:#fff8ed;border:1px solid #f5dfb7;border-radius:9px;color:#9f7638;padding:12px 15px;font-size:10px;line-height:1.8;margin:12px 0}.customs-section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.customs-section-heading strong{font-size:12px;color:#345563}.customs-section-heading p{font-size:10px;color:#91a0a9;line-height:1.7;margin:7px 0 0}.customs-table-wrap{overflow:auto;border:1px solid #e0e9ee;border-radius:10px;margin:15px 0}.customs-table{width:100%;border-collapse:collapse;text-align:left;font-size:10px;min-width:750px}.customs-table th{font-weight:700;font-size:9px;color:#6f8794;background:#f6f9fb;padding:12px;border-bottom:1px solid #e3ebef;white-space:nowrap}.customs-table td{padding:13px 12px;border-bottom:1px solid #edf2f5;vertical-align:top;color:#5c7685;line-height:1.7}.customs-table tr:last-child td{border-bottom:0}.customs-table td:first-child{min-width:210px;max-width:340px}.customs-table td strong,.customs-table td>span,.customs-table td small{display:block}.customs-table td strong{font-size:10px;color:#345566}.customs-table td>span{font-size:10px;line-height:1.6;margin:3px 0}.customs-table td small{font-size:8px;color:#91a3ae}.customs-table td .customs-amber{color:#b28a49}.customs-table .overview-link{font-size:9px;display:block;margin-top:4px}.customs-table code{font-size:10px;color:#3a657a}.customs-unavailable{font-size:10px;color:#a4aeb6}.customs-empty{text-align:center;padding:38px;color:#8da2aa;background:linear-gradient(135deg,#f6faf9,#fbfcfd);border:1px dashed #d7e5e5;border-radius:12px}.customs-empty>span{font-size:36px;color:#87b2a1}.customs-empty h4{font-size:16px;color:#4c7b77;margin:10px}.customs-empty p{font-size:11px;line-height:1.8;max-width:500px;margin:0 auto}.customs-expense{padding:15px!important;border:1px solid #e1eaef!important;border-radius:10px;margin:12px 0!important;background:#fbfcfd}.customs-expense-main{display:grid;grid-template-columns:2fr 1fr 1fr 1.2fr 1fr auto;gap:12px;align-items:end}.customs-expense-options{display:flex;flex-wrap:wrap;gap:7px 20px}.customs-expense-options .customs-check{margin:12px 0 0;font-size:9px}.customs-remove{border:1px solid #edd7d2;background:#fff7f5;border-radius:8px;color:#b17c71;padding:9px 12px;font-size:10px;cursor:pointer}.customs-archive{border:0;background:none;color:#a98881;text-decoration:underline;font-size:10px;cursor:pointer;padding:12px 0}.customs-source-links{display:flex;flex-wrap:wrap;gap:10px 20px;margin:18px 0}.customs-source-links a{font-size:10px;color:#51877f;text-decoration:none}.customs-job{padding:15px 17px;border:1px solid #dce7e8;background:#f3f9f7;border-radius:10px;font-size:11px;color:#5d8b7a;display:flex;align-items:center;gap:13px;flex-wrap:wrap}.customs-job p{flex-basis:100%;font-size:10px;color:#a17a43;margin:0}.customs-job progress{flex:1;height:6px;min-width:100px;accent-color:#419c7c}.customs-job .button{font-size:9px}.customs-job.working>span{animation:customsPulse 1.5s infinite}.customs-dialog{width:min(1050px,calc(100vw - 35px));max-height:calc(100dvh - 45px);overflow:auto;border:1px solid #dbe7ed;border-radius:18px;padding:26px 30px;box-shadow:0 25px 90px #132e4630;color:#526d7a}.customs-dialog::backdrop{background:#132b4577;backdrop-filter:blur(3px)}.customs-dialog header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.customs-dialog h3{font-size:19px;margin:8px 0;color:#284f5c;max-width:800px}.customs-dialog header>button{border:0;background:#f3f6f8;color:#879ba7;width:32px;height:32px;border-radius:50%;font-size:22px;cursor:pointer;flex-shrink:0}.customs-dialog fieldset{border:0;padding:0;margin:0;min-width:0}.customs-dialog h4{font-size:12px;color:#3f6774;margin:23px 0 15px}.customs-dialog .customs-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customs-dialog footer{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin-top:25px;padding-top:18px;border-top:1px solid #e8eff2}.customs-dialog footer .button{font-size:11px}.customs-divider{height:1px;background:#e4edef;margin:23px 0}.customs-tariff-tools{display:flex;gap:8px;margin:15px 0}.customs-tariff-tools input{flex:1;min-width:0;font-size:11px;padding:11px;border:1px solid #dee8ed;border-radius:8px}.customs-tariff-tools .button{font-size:10px;white-space:nowrap}.customs-tariff-result{display:flex;align-items:flex-start;gap:14px;width:100%;text-align:left;border:1px solid #e0e9ec;background:#fafdfc;border-radius:8px;padding:11px;margin:6px 0;font-size:10px;color:#6c848e;cursor:pointer}.customs-tariff-result code{color:#2a897b;font-size:10px;white-space:nowrap}.customs-tariff-result:hover{border-color:#95c3b5;background:#f1f9f5}.customs-hints{padding:17px;background:#f4f9f7;border-radius:10px;margin:15px 0;font-size:11px;line-height:1.8;color:#5d7d77}.customs-hints small{display:block;font-size:9px}.customs-line-result{margin-top:20px;background:#f8fafc;padding:18px;border:1px solid #e1eaf0;border-radius:12px;font-size:11px}.customs-line-result summary{font-weight:700;cursor:pointer;color:#497480}.customs-line-result dl{margin:15px 0}.customs-line-result dl>div{display:flex;justify-content:space-between;gap:20px;padding:7px 0;border-bottom:1px solid #e7eef1}.customs-line-result dt{font-size:10px;color:#7d909a}.customs-line-result dd{margin:0;font-size:11px;color:#4a6876}.customs-ai-result{margin-top:20px;padding:20px;border:1px solid #d9e8e2;border-radius:12px;background:#f6fbf8;font-size:11px;line-height:1.8}.customs-ai-result article{background:white;padding:13px;border:1px solid #e2ebe7;border-radius:9px;margin:10px 0}.customs-ai-result h4{margin-top:0}.customs-ai-result h5{margin:15px 0 7px;color:#4b8070}.customs-ai-result small{font-size:9px;color:#849d91}.customs-ai-result ul{margin:0;padding-left:19px;color:#789187}.customs-spinner{display:inline-block;vertical-align:middle;margin:12px 8px 12px 0;width:14px;height:14px;border:2px solid #d3e9df;border-top-color:#3d9277;border-radius:50%;animation:customsSpin 1s linear infinite}#customsMappingForm{padding:17px;background:#f6f9fb;border-radius:10px;margin:15px 0}#customsMappingForm .button{margin-top:15px;font-size:10px}#customsUploadDialog [data-upload-status]{font-size:12px;color:#759387;line-height:1.8}#customsUploadDialog .customs-table-wrap{max-height:none}
@keyframes customsSpin{to{transform:rotate(360deg)}}@keyframes customsPulse{50%{opacity:.45}}
@media(max-width:1150px){.customs-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.customs-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.customs-section-heading{align-items:flex-start;flex-direction:column}.customs-expense-main{grid-template-columns:2fr 1fr 1fr}.customs-expense-options{gap:4px 15px}.customs-top h3{font-size:20px}}
@media(max-width:760px){.customs-top{padding:23px;display:block}.customs-source-badge{text-align:left;margin-top:18px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.customs-source-badge strong{font-size:23px}.customs-source-badge span,.customs-source-badge small{margin:0}.customs-top h3{font-size:20px;line-height:1.4}.customs-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customs-toolbar{align-items:flex-start;flex-direction:column}.customs-title{max-width:100%;width:100%}.customs-buttons{justify-content:flex-start}.customs-buttons .button{font-size:10px;padding:9px 12px}.customs-card{padding:18px 16px}.customs-card>summary small{display:none}.customs-kpis{gap:9px}.customs-kpis article{padding:14px}.customs-kpis strong{font-size:17px}.customs-kpis span{font-size:9px}.customs-dialog{padding:20px 17px}.customs-dialog h3{font-size:17px}.customs-tariff-tools{flex-wrap:wrap}.customs-tariff-tools input{flex-basis:100%}.customs-expense-main{grid-template-columns:repeat(2,minmax(0,1fr))}.customs-expense-main .customs-field:first-child{grid-column:1/-1}.customs-saved>summary{display:block}.customs-saved>summary>span{display:block;margin-top:9px}.customs-dialog footer{flex-wrap:wrap}.customs-saved-list button{min-width:160px}.customs-tariff-result{display:block}.customs-tariff-result span{display:block;margin-top:7px}}
@media(prefers-reduced-motion:reduce){.customs-spinner,.customs-job.working>span{animation:none}}
.customs-dialog footer{position:sticky;bottom:-26px;background:#fff;z-index:2;padding:16px 0 10px;box-shadow:0 -12px 18px #ffffffed}
.customs-field,.customs-check,.customs-note,.customs-warning,.customs-table,.customs-table td>span{font-size:12px}
.customs-note,.customs-kpis small,.customs-section-heading p{color:#5e7480}
.customs-field input,.customs-field select,.customs-field textarea{font-size:13px;min-height:44px}
.customs-table th,.customs-table td small,.customs-table .overview-link{font-size:11px}
.customs-check input{width:16px;height:16px;min-height:16px}
.customs-dialog header>button{width:40px;height:40px}
@media(max-width:760px){.customs-dialog footer{bottom:-20px}.customs-dialog .button,.customs-buttons .button{min-height:40px}.customs-tariff-tools .button{white-space:normal}.customs-dialog h3{overflow-wrap:anywhere}}
@media(max-width:420px){.customs-form-grid,.customs-dialog .customs-form-grid{grid-template-columns:1fr}.customs-kpis strong{font-size:16px}.customs-dialog footer .button{flex:1}.customs-dialog footer .customs-remove{order:3;width:100%}}
#customsMappingForm .customs-note{grid-column:1/-1;margin:0}
