.foreign-page .toolbar input{min-width:220px}
.phase-a-notice{margin:0 0 16px;padding:12px 14px;border-left:4px solid #15988a;border-radius:8px;background:#effaf8;color:#315c57;line-height:1.55}
.foreign-settings-panel{max-width:1080px}
.foreign-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.foreign-settings-grid label{display:grid;gap:7px;color:#435d59;font-weight:700}
.foreign-settings-grid input,.foreign-settings-grid select{width:100%}
.foreign-pager{display:flex;justify-content:center;align-items:center;gap:8px;padding:14px;flex-wrap:wrap}
.foreign-pager button.active{background:#0e8f82;color:#fff;border-color:#0e8f82}
.foreign-status-note{font-size:12px;color:#71817e}
.foreign-page button:disabled{opacity:.45;cursor:not-allowed;pointer-events:none}
.foreign-import-summary{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:12px}
.foreign-import-summary span{padding:5px 9px;border-radius:8px;background:#f1f7f6}
.foreign-import-preview{max-height:52vh;overflow:auto;margin-top:12px}
.foreign-price-history{max-height:58vh;overflow:auto}
.success-text{color:#087d6f}
.danger-text{color:#c63e3e}
#modal input[readonly]{background:#f2f5f4;color:#6f7d79;cursor:not-allowed}
@media(max-width:720px){
  .foreign-page{padding-bottom:88px}
  .foreign-page .toolbar{align-items:stretch}
  .foreign-page .top-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .foreign-page .top-actions input{min-width:0;grid-column:1/-1;width:100%}
  .foreign-page .top-actions input[type="file"]{display:none}
  .foreign-settings-grid{grid-template-columns:1fr}
  .foreign-page .table-wrap{overflow:visible}
  .foreign-page table,.foreign-page tbody,.foreign-page tr,.foreign-page td{display:block;width:100%}
  .foreign-page thead{display:none}
  .foreign-page tbody{display:grid;gap:12px}
  .foreign-page tbody tr{padding:12px;border:1px solid #dce9e6;border-radius:12px;background:#fff;box-shadow:0 2px 10px rgba(25,62,56,.05)}
  .foreign-page tbody td{display:grid;grid-template-columns:105px minmax(0,1fr);gap:10px;padding:7px 0;border:0;text-align:left!important;white-space:normal}
  .foreign-page tbody td::before{content:attr(data-label);font-weight:700;color:#5f7772}
  .foreign-page tbody td:last-child{grid-template-columns:1fr}
  .foreign-page tbody td:last-child::before{display:none}
  .foreign-page .table-actions{justify-content:flex-end;flex-wrap:wrap}
  .foreign-import-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .foreign-import-summary b{grid-column:1/-1}
  .foreign-import-preview,.foreign-price-history{max-height:58vh}
}
