.sync-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 16px 0;
}
.sync-stats > div, .sync-stats > a {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 18px;
    background: #f5f8fb;
    border: 1px solid #e5ebf1;
    border-radius: 12px;
    text-decoration: none;
}
.sync-stats small { color: #708096; font-size: 13px; }
.sync-stats strong { color: #24374e; font-size: 22px; }
.sync-dashboard > a { background: #fff; }
.sync-dashboard > a:hover { border-color: #2197d4; }
.sync-checks { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.customs-label { display: block; color: #708096; font-size: 11px; }
.tariff-search { background: linear-gradient(120deg,#fff,#edf6fb); padding: 28px; }
.tariff-search form { display:flex; gap:12px; margin:18px 0; flex-wrap:wrap; }
.tariff-search input { flex:1; min-width:200px; padding:15px; border-radius:10px; border:1px solid #c8d8e5; font:inherit; }
.tariff-origin { color:#087d72; font-weight:700; }
.tariff-results { display:flex; flex-direction:column; gap:8px; }
.tariff-result { display:flex; align-items:center; gap:20px; padding:18px; border:1px solid #e2ebf2; border-radius:10px; color:inherit; text-decoration:none; }
.tariff-result:hover { background:#edf6fb; border-color:#8bb7d6; }
.tariff-result > div { flex:1; display:grid; gap:5px; }
.tariff-result strong { color:#23649e; justify-self:start; }
.tariff-select { display:flex; align-items:center; gap:15px; flex-wrap:wrap; }
.tariff-table td { min-width:90px; max-width:420px; white-space:normal; vertical-align:top; }
@media(max-width:600px) { .tariff-result { flex-wrap:wrap; gap:8px; } .tariff-result > div { flex-basis:100%; } }
.tariff-local-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.tariff-local-grid > div { padding:16px; background:#f5f8fb; border-radius:12px; border:1px solid #e0e8ef; }
.tariff-local-grid small { font-weight:700; color:#456079; }
.tariff-local-grid p { margin:8px 0 0; line-height:1.65; overflow-wrap:anywhere; }
@media(max-width:600px) { .tariff-local-grid { grid-template-columns:1fr; } }
.v5-section .sync-stats { margin: 12px 0; }
.v5-warning { padding: 12px 16px; background: #fff7e7; border: 1px solid #f4d6a4; border-radius: 10px; color: #85530b; }
.v5-warning p { margin: 5px 0; }
.v5-section .actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.inline-form { display:inline-flex; margin:0; }
.fx-fill { margin-top:6px; }
.fx-result { min-height:1em; color:#536c81; }
.po-print { direction:ltr; text-align:left; padding:20px; color:#182c40; background:white; }
.po-print table { direction:ltr; text-align:left; }
@media print {
  body:has(.po-print) .shell { display:block; }
  body:has(.po-print) aside,body:has(.po-print) header,body:has(.po-print) .heading,body:has(.po-print) .no-print,body:has(.po-print) .v5-section>h2 { display:none!important; }
  body:has(.po-print) main,body:has(.po-print) .content,body:has(.po-print) .panel { padding:0!important; margin:0!important; border:0!important; box-shadow:none!important; overflow:visible!important; }
}
.sync-panel h2 { margin-block: 10px; }
.sync-panel td { white-space: nowrap; }
@media(max-width:600px) {
    .sync-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .sync-stats strong { font-size: 19px; }
}
