a.nav { text-decoration: none; }
[hidden] { display: none !important; }
:root { --blue: #275de4; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px;
}
.thumb { width: 60px; height: 60px; }
button.thumb { padding: 0; overflow: hidden; flex-shrink: 0; }
button.thumb img { width: 60px; height: 60px; object-fit: cover; }
.imgcell .product-name { max-width: 290px; }
.product-name-button { background: none; border: 0; text-align: left; color: var(--ink); padding: 0; font: inherit; }
#diagnostics { margin-top: 16px; font-size: 12px; }
#diagnosticList { overflow-wrap: anywhere; max-height: 330px; overflow: auto; }
#diagnosticList p { margin: 10px 0; }
#importStatus { font-size: 12px; color: #275de4; margin: 10px 0; min-height: 18px; }
progress { width: 100%; margin-top: 10px; accent-color: #275de4; }
td { overflow-wrap: anywhere; }
#productDialog { width: min(820px, calc(100% - 24px)); max-height: 90vh; overflow: auto; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); padding: 22px; }
#productDialog::backdrop { background: #122b5577; }
#productDialog h2 { padding-right: 60px; margin: 16px 0; overflow-wrap: anywhere; }
#productDialog > button { float: right; }
#productInfo p { margin: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#productInfo b { color: #162b49; }
#productInfo a { color: #275de4; }
#productDialog input { width: 100%; min-height: 42px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 16px 0; }
#costInputs { margin: 14px 0; grid-template-columns: repeat(4,1fr); gap: 12px; }
#profit { color: #17365d; font-weight: 700; }
.seg { flex-wrap: wrap; }
.top .buttons { flex-shrink: 0; }
.hint,.product-sub,.panel-sub,.fileitems,.field label { color: #61738e; }
#topbar-user { display: none; }
.toast { max-width: min(400px,calc(100vw - 28px)); }
@media(max-width:720px) {
  .top { flex-direction: column; gap: 12px; }
  .top .buttons { width: 100%; }
  h1 { font-size: 25px; }
  .hero { padding: 20px; }
  .panel-head { flex-wrap: wrap; }
  .seg button { min-height: 40px; }
  #costInputs { grid-template-columns: repeat(2,1fr); }
  #productDialog { padding: 16px; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
table { min-width: 1600px; }
td:not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(10)) { white-space: nowrap; overflow-wrap: normal; }
.imgcell .product-sub, .imgcell .thumblink { display: block; margin-top: 3px; }
.lightbox-close { flex-shrink: 0; white-space: nowrap; }

/* Per-file import outcomes remain visible after filtering. */
.import-report{font-size:12px;line-height:1.6;margin-top:14px;overflow-wrap:anywhere}.import-report p{margin:7px 0}.import-file-accepted{color:#216346}.import-file-skipped{color:#875411}.import-file-failed{color:#b42318}#fileitems{max-height:140px;overflow:auto;overflow-wrap:anywhere}

/* Reuse the current site logo and keep registration accessible on mobile. */
.sidebar .radar-brand{display:block;line-height:0;margin-bottom:28px;text-decoration:none}
.radar-brand img{display:block;width:100%;max-width:190px;height:auto;object-fit:contain}
.kalodata-offer{display:flex;flex-direction:column;gap:8px;padding:16px;margin-top:24px;border:1px solid #d7e6fb;border-radius:12px;background:#f0f7ff;text-decoration:none;color:#163968}
.kalodata-offer:hover{border-color:#275de4;background:#e8f2ff}
.kalodata-offer:focus-visible,.radar-brand:focus-visible{outline:3px solid #275de4;outline-offset:3px}
.offer-label{font-size:12px;color:#607b9e}.kalodata-offer strong{font-size:18px;line-height:1.4;color:#245fe0}.offer-action{font-size:12px;font-weight:700}
@media(max-width:720px){
 .layout{display:block}
 .sidebar{display:flex;position:static;width:auto;height:auto;min-height:0;padding:12px 14px;align-items:center;justify-content:space-between;gap:12px;border-right:0;border-bottom:1px solid #e4ebf5}
 .sidebar>.section-label,.sidebar>.nav,.sidebar>.side-foot{display:none}
 .sidebar .radar-brand{margin:0;flex:1;min-width:0;max-width:180px}
 .kalodata-offer{flex-shrink:0;margin:0;padding:8px 12px;gap:2px;border-radius:10px}
 .kalodata-offer strong{font-size:15px}.offer-label,.offer-action{font-size:11px}
}
