/* FRONTERA ONE V1.5.7.15 — JP import multiple items / product photo / export origin */
:root{--v1561-navy:#0a1d3a;--v1561-blue:#1769c2;--v1561-line:#dbe3ee;--v1561-soft:#f5f8fc;--v1561-good:#087a55;--v1561-warn:#9a5b00;--v1561-danger:#b42318}

/* The base application uses .num for dashboard KPI figures (28px).
   Japan-accounting tables also use class="num", so force normal table typography. */
#jpaccounting .v1560-table{font-size:11px!important;line-height:1.45}
#jpaccounting .v1560-table th,
#jpaccounting .v1560-table td{font-size:11px!important;font-weight:500;margin:0!important;line-height:1.45;padding:8px 9px}
#jpaccounting .v1560-table th{font-size:10px!important;font-weight:800}
#jpaccounting .v1560-table th.num,
#jpaccounting .v1560-table td.num{font-size:11px!important;font-weight:500!important;margin:0!important;text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}
#jpaccounting .v1560-table tr.total td,
#jpaccounting .v1560-table tr.total td.num{font-size:11px!important;font-weight:800!important}
#jpaccounting .v1560-table tr.subtotal td,
#jpaccounting .v1560-table tr.subtotal td.num{font-size:11px!important;font-weight:700!important}

.v1561-hidden{display:none!important}
.v1561-phase-note{display:none;margin:0 0 12px;padding:11px 13px;border:1px solid #f0c96a;border-radius:10px;background:#fff9e8;color:#765100;font-size:10px;line-height:1.55}
.v1561-import-kpis{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr));gap:10px;margin:0 0 12px}
.v1561-import-kpi{background:#fff;border:1px solid var(--v1561-line);border-radius:12px;padding:12px;min-width:0}
.v1561-import-kpi label{display:block;color:#667085;font-size:9px;font-weight:800;margin-bottom:5px}
.v1561-import-kpi strong{display:block;color:var(--v1561-navy);font-size:18px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
.v1561-import-kpi small{display:block;color:#667085;font-size:8px;margin-top:4px}
.v1561-import-kpi.tokyo{background:#f5f9ff;border-color:#bdd2eb}
.v1561-import-kpi.osaka{background:#f5fbf8;border-color:#b9ddcb}
.v1561-import-kpi.warn{background:#fff9ef;border-color:#ecd09b}
.v1561-import-toolbar{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.v1561-import-toolbar input,.v1561-import-toolbar select{min-height:36px;font-size:10px;min-width:130px}
.v1561-import-toolbar input[type=search]{min-width:210px}
.v1561-import-table{min-width:1280px!important;table-layout:fixed}
.v1561-import-table th:nth-child(1){width:90px}.v1561-import-table th:nth-child(2){width:128px}.v1561-import-table th:nth-child(3){width:150px}.v1561-import-table th:nth-child(4){width:150px}.v1561-import-table th:nth-child(5){width:88px}.v1561-import-table th:nth-child(6){width:130px}.v1561-import-table th:nth-child(7){width:115px}.v1561-import-table th:nth-child(8){width:155px}.v1561-import-table th:nth-child(9){width:115px}.v1561-import-table th:nth-child(10){width:110px}
.v1561-import-table td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v1561-doc-status{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;font-size:9px;font-weight:800;white-space:nowrap}
.v1561-doc-status.complete{background:#eaf8f2;color:var(--v1561-good);border:1px solid #acd9c8}
.v1561-doc-status.missing{background:#fff5e3;color:var(--v1561-warn);border:1px solid #ebcf99}
.v1561-destination{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:9px;font-weight:800;white-space:nowrap}
.v1561-destination.TOKYO{background:#edf4fc;color:#175c9e;border:1px solid #bcd1e8}
.v1561-destination.OSAKA{background:#edf8f2;color:#087a55;border:1px solid #b7ddcc}
.v1561-doc-summary{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}
.v1561-doc-mini{display:inline-flex;align-items:center;padding:3px 6px;border-radius:7px;background:#f2f4f7;color:#667085;font-size:8px;font-weight:700}
.v1561-doc-mini.ok{background:#eaf8f2;color:#087a55}
.v1561-import-file-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.v1561-file-group{border:1px solid #e1e8f0;border-radius:11px;background:#fafbfd;padding:10px;min-width:0}
.v1561-file-group-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}
.v1561-file-group-head b{font-size:10px;color:var(--v1561-navy)}
.v1561-file-group-head span{font-size:8px;color:#667085}
.v1561-file-group input[type=file]{font-size:9px;width:100%}
.v1561-existing-files{display:grid;gap:6px;margin-top:8px}
.v1561-existing-file{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 8px;border:1px solid #e4e9f0;border-radius:8px;background:#fff;min-width:0}
.v1561-existing-file .name{min-width:0;font-size:9px;color:#344054;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v1561-existing-file .actions{display:flex;gap:5px;flex-shrink:0}
.v1561-existing-file .actions .btn{padding:5px 7px;font-size:8px}
.v1561-form-note{font-size:9px;color:#667085;line-height:1.55}
.v1561-import-mobile{display:none}
.v1561-import-mobile-card{background:#fff;border:1px solid var(--v1561-line);border-radius:12px;padding:11px;margin-bottom:8px}
.v1561-import-mobile-card h3{margin:0;color:var(--v1561-navy);font-size:12px;line-height:1.35}
.v1561-import-mobile-card .sub{margin-top:4px;color:#667085;font-size:9px}
.v1561-import-mobile-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}
.v1561-import-mobile-grid div{padding:7px;border-radius:8px;background:#f6f8fb;min-width:0}
.v1561-import-mobile-grid label{display:block;color:#8792a2;font-size:7px;font-weight:800}
.v1561-import-mobile-grid b{display:block;margin-top:3px;color:#344054;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media(max-width:1180px){.v1561-import-kpis{grid-template-columns:repeat(2,minmax(145px,1fr))}}
@media(max-width:760px){
  #jpaccounting .v1560-table th,#jpaccounting .v1560-table td,#jpaccounting .v1560-table td.num,#jpaccounting .v1560-table th.num{font-size:10px!important;padding:7px 8px}
  .v1561-import-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.v1561-import-kpi{padding:10px}.v1561-import-kpi strong{font-size:15px}
  .v1561-import-toolbar>*{flex:1 1 135px}.v1561-import-toolbar .btn{flex:0 0 auto}.v1561-import-toolbar input[type=search]{min-width:0}
  .v1561-import-desktop{display:none!important}.v1561-import-mobile{display:block}
  .v1561-import-file-groups{grid-template-columns:1fr}
}


/* V1.5.6.3 validation and deleted-file controls */
.v1563-invalid{border-color:#d92d20!important;box-shadow:0 0 0 2px rgba(217,45,32,.10)!important;background:#fff7f6!important}
.v1561-field-error{min-height:14px;margin-top:4px;color:#b42318;font-size:8px;font-weight:700;line-height:1.35}
.v1563-deleted-files-section{border:1px solid #efc4bf;border-radius:12px;background:#fff8f7;padding:11px}
.v1563-deleted-files-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;color:#7a271a}
.v1563-deleted-files-head b{font-size:11px}.v1563-deleted-files-head span{font-size:8px;color:#9a4b3d}
.v1563-deleted-file{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px;border:1px solid #f0d4d0;border-radius:9px;background:#fff;margin-top:6px}
.v1563-deleted-file>div:first-child{min-width:0}.v1563-deleted-file b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px;color:#5f1f17}.v1563-deleted-file small{display:block;margin-top:3px;font-size:8px;color:#8d5a52}
.v1563-deleted-file .actions{display:flex;gap:5px;flex-shrink:0}.v1563-deleted-file .btn{padding:5px 7px;font-size:8px}
@media(max-width:760px){.v1563-deleted-files-head,.v1563-deleted-file{align-items:flex-start;flex-direction:column}.v1563-deleted-file .actions{width:100%;flex-wrap:wrap}}

/* V1.5.7.15: multiple item numbers, product-photo previews, three export-document groups and export origin */
.v1561-import-table{min-width:1510px!important}
.v1561-import-table th:nth-child(1){width:88px}
.v1561-import-table th:nth-child(2){width:132px}
.v1561-import-table th:nth-child(3){width:190px}
.v1561-import-table th:nth-child(4){width:108px}
.v1561-import-table th:nth-child(5){width:155px}
.v1561-import-table th:nth-child(6){width:86px}
.v1561-import-table th:nth-child(7){width:82px}
.v1561-import-table th:nth-child(8){width:135px}
.v1561-import-table th:nth-child(9){width:118px}
.v1561-import-table th:nth-child(10){width:190px}
.v1561-import-table th:nth-child(11){width:145px}
.v1561-import-table th:nth-child(12){width:110px}
.v1561-import-table td:nth-child(3){white-space:normal;line-height:1.45}
.v1565-multi-item{display:block;white-space:pre-line;overflow-wrap:anywhere;word-break:break-word;max-height:76px;overflow:auto}
.v1565-item-nos{min-height:90px!important;white-space:pre-wrap}
.v1565-origin,.v1565-bulk-origin{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;font-size:9px;font-weight:800;white-space:nowrap}
.v1565-origin.QINGDAO,.v1565-bulk-origin.QINGDAO{background:#edf5ff;border:1px solid #bfd5ee;color:#175c9e}
.v1565-origin.SHANGHAI,.v1565-bulk-origin.SHANGHAI{background:#eef8f3;border:1px solid #b9dccb;color:#087a55}
.v1565-origin.NONE,.v1565-bulk-origin.NONE{background:#f2f4f7;border:1px solid #d8dde5;color:#667085}
.v1565-photo-thumb{position:relative;width:76px;height:62px;border:1px solid #d9e2ec;border-radius:9px;background:#f5f7fa;overflow:hidden;padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:#667085;font-size:8px;font-weight:800}
.v1565-photo-thumb:hover{border-color:#7da7d3;box-shadow:0 3px 10px rgba(10,29,58,.12)}
.v1565-photo-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.v1565-photo-thumb em{position:absolute;right:3px;bottom:3px;background:rgba(10,29,58,.82);color:#fff;border-radius:999px;padding:2px 5px;font-size:7px;font-style:normal}
.v1565-no-photo{display:inline-flex;align-items:center;justify-content:center;width:76px;height:38px;border:1px dashed #cbd5e1;border-radius:8px;color:#98a2b3;font-size:8px;background:#fafbfd}
.v1565-photo-group{background:#f7fbff;border-color:#bfd5ee}
.v1565-photo-existing{grid-template-columns:repeat(2,minmax(0,1fr))}
.v1565-photo-file{align-items:flex-start;justify-content:flex-start;flex-wrap:wrap}
.v1565-existing-photo{width:88px;height:70px;object-fit:cover;border-radius:7px;border:1px solid #d9e2ec;flex:0 0 auto;cursor:pointer}
.v1565-photo-file .name{flex:1 1 120px;white-space:normal;overflow-wrap:anywhere}
.v1565-photo-file .actions{width:100%;justify-content:flex-end}
.v1565-three-groups{grid-template-columns:repeat(3,minmax(0,1fr))}
.v1565-legacy-files-section{border:1px solid #e0e4eb;border-radius:12px;background:#f8fafc;padding:11px}
@media(max-width:1080px){.v1565-three-groups{grid-template-columns:1fr}.v1565-photo-existing{grid-template-columns:1fr}}
@media(max-width:760px){.v1565-photo-thumb{width:66px;height:56px}.v1565-no-photo{width:66px}.v1565-multi-item{max-height:none}}

/* V1.5.7.15 route classification */
.v1571-route-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}
.v1571-route{display:inline-flex;align-items:center;max-width:220px;padding:5px 9px;border-radius:999px;background:#eef3f9;color:#153354;font-size:11px;font-weight:800;line-height:1.25;white-space:normal}
.v1571-route.SHURONG_TO_GRAVITATION{background:#e9f4ff;color:#175a8f}
.v1571-route.SUPPLIER_TO_GRAVITATION{background:#f1f4f8;color:#46576d}
.v1571-route.SHURONG_TO_AD_LK,.v1571-route.SHURONG_TO_AD_GW,.v1571-route.SHURONG_TO_AD_OTHER{background:#eef8ef;color:#28723a}
.v1571-route.SHURONG_TO_CP{background:#fff5df;color:#805400}
.v1571-row-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.v1571-import-table{min-width:1650px}
@media(max-width:1200px){.v1571-route-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.v1571-route-kpis{grid-template-columns:1fr}.v1571-row-actions .btn{padding:7px 9px}}

/* V1.5.7.15: the sailing date is independent from customs/shipment date. */
#jpPaneImportDocs .v1571-import-table{min-width:1910px!important;table-layout:fixed}
#jpPaneImportDocs .v1571-import-table th:nth-child(1){width:88px}
#jpPaneImportDocs .v1571-import-table th:nth-child(2){width:150px}
#jpPaneImportDocs .v1571-import-table th:nth-child(3){width:170px}
#jpPaneImportDocs .v1571-import-table th:nth-child(4){width:170px}
#jpPaneImportDocs .v1571-import-table th:nth-child(5){width:90px}
#jpPaneImportDocs .v1571-import-table th:nth-child(6){width:170px}
#jpPaneImportDocs .v1571-import-table th:nth-child(7){width:80px}
#jpPaneImportDocs .v1571-import-table th:nth-child(8){width:85px}
#jpPaneImportDocs .v1571-import-table th:nth-child(9){width:115px}
#jpPaneImportDocs .v1571-import-table th:nth-child(10){width:130px}
#jpPaneImportDocs .v1571-import-table th:nth-child(11){width:115px}
#jpPaneImportDocs .v1571-import-table th:nth-child(12){width:200px}
#jpPaneImportDocs .v1571-import-table th:nth-child(13){width:150px}
#jpPaneImportDocs .v1571-import-table th:nth-child(14){width:135px}
#bulkRepeatHint{display:block;font-size:11px;line-height:1.5;color:#64748b;margin-top:5px}
