/* Seller Central look-alike styles for the PartsBroz Listing Manager */
:root {
  --ink: #0f1111;
  --text: #273443;
  --muted: #586271;
  --nav: #161e28;
  --nav2: #141d26;
  --nav-line: #34404e;
  --link: #007c99;
  --link-blue: #1872d0;
  --line: #d5d9d9;
  --line2: #e3e6e6;
  --panel: #f7f8f9;
  --teal: #007f9d;
  --teal-dark: #006a83;
  --dark-btn: #384454;
  --green: #067d62;
  --green-bg: #e9f6f1;
  --red: #b12704;
  --red-bg: #fdf0ee;
  --amber: #8a5a00;
  --amber-bg: #fff7e5;
  --blue: #0b6bcb;
  --blue-bg: #eef5fc;
  --gray-bg: #eef0f2;
  font-family: "Amazon Ember", Arial, Helvetica, sans-serif;
  color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; background: #fff; }
body { font-size: 14px; line-height: 1.43; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; color: #c45500; }
code, pre { font-family: Menlo, Consolas, monospace; font-size: 12.5px; }
.icon { width: 17px; height: 17px; display: inline-block; vertical-align: middle; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- top bar ---------- */
.topbar { height: 43px; background: var(--nav); color: #eef1f5; display: flex; align-items: center; font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--nav-line); padding: 0 0 0 10px; white-space: nowrap; }
.iconbtn { border: 0; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.top-menu { width: 26px; height: 30px; margin-right: 12px; }
.logo { display: flex; align-items: center; }
.logo img { height: 24px; width: auto; display: block; }
.top-sep { height: 22px; margin: 0 12px; border-left: 1px solid #3c4756; }
.country .caret { display: inline-block; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; margin-left: 7px; vertical-align: middle; }
.conn { margin-left: 10px; color: #fff; border-radius: 4px; font-weight: 700; padding: 4px 9px; font-size: 13px; background: #4a5563; }
.conn.ok { background: #008a48; }
.conn.bad { background: #b42906; }
.top-right { margin-left: auto; display: flex; align-items: center; height: 100%; }
.top-right .sideitem { height: 22px; border-left: 1px solid #3c4756; display: flex; align-items: center; gap: 8px; padding: 0 16px; font-weight: 700; color: #eef1f5; background: none; border-top: 0; border-right: 0; border-bottom: 0; }
.top-right .sideitem:hover { color: #fff; text-decoration: underline; }
.top-right .sideitem .icon { width: 16px; height: 16px; }

.navbar { height: 35px; background: var(--nav2); border-bottom: 1px solid #374451; display: flex; align-items: stretch; padding-left: 10px; color: #c5cbd3; font-size: 13px; overflow-x: auto; }
.navbar a { color: inherit; display: flex; align-items: center; padding: 0 10px; white-space: nowrap; }
.navbar a:hover, .navbar a.on { background: #293647; color: #fff; text-decoration: none; }

/* ---------- side menu ---------- */
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 290px; max-width: 85vw; background: #fff; z-index: 120; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 25px #0005; overflow-y: auto; visibility: hidden; }
.sidebar.open { transform: none; visibility: visible; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line2); }
.sidebar-head img { height: 26px; width: auto; }
.sidebar-head .iconbtn { font-size: 26px; line-height: 1; width: 32px; height: 32px; color: #46505d; }
.sidebar-group { padding: 14px 14px 6px; font-size: 14px; font-weight: 700; color: #2b4153; }
.sidebar a { display: block; padding: 11px 14px; color: #2b4153; font-size: 14px; }
.sidebar a:hover { background: #e9f5f8; color: #2b4153; text-decoration: none; }
.sidebar a.on { background: #e9f5f8; font-weight: 700; }
.sidebar-screen { position: fixed; inset: 0; background: #0c152155; z-index: 115; }

/* ---------- page chrome ---------- */
.tabs-nav { min-height: 47px; display: flex; align-items: center; padding-left: 10px; background: #fff; border-bottom: 1px solid #d6d9db; overflow-x: auto; }
.tabs-nav a { height: 32px; display: flex; align-items: center; padding: 0 12px; color: #424956; border-right: 1px solid #d1d5da; font-size: 15px; font-weight: 700; position: relative; white-space: nowrap; }
.tabs-nav a:last-child { border-right: 0; }
.tabs-nav a:hover { text-decoration: none; color: #1475d3; }
.tabs-nav a.active { color: #1475d3; }
.tabs-nav a.active::after { content: ""; position: absolute; bottom: -8px; left: 0; right: 0; height: 4px; background: #1886ec; border-radius: 1px; }

.breadcrumb { display: flex; align-items: center; gap: 9px; padding: 11px 16px 0; font-size: 14px; }
.breadcrumb a { color: var(--link-blue); }
.chev { width: 8px; height: 8px; border-top: 2px solid #46505d; border-right: 2px solid #46505d; transform: rotate(45deg); }
.page { padding: 0 16px 60px; max-width: 1680px; }
.page-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 15px; padding: 10px 0 14px; }
.page-heading h1 { font-size: 25px; font-weight: 500; margin: 0; letter-spacing: -.5px; color: #27374b; }
.heading-links { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-top: 6px; }
.vline { height: 14px; border-left: 1px solid #d2d6dc; }
.heading-actions { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn { height: 32px; padding: 0 16px; font-size: 13px; font-weight: 700; border-radius: 2px; border: 1px solid #aeb5bd; background: #fff; color: #273949; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; text-decoration: none; }
.btn:hover { background: #f4f6f7; text-decoration: none; color: #273949; }
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-dark { background: var(--dark-btn); border-color: #444f5f; color: #fff; }
.btn-dark:hover { background: #222e3c; color: #fff; }
.btn-danger { color: var(--red); }
.btn-lg { height: 38px; padding: 0 22px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-link { border: 0; background: none; padding: 0; color: var(--link); font-weight: 700; font-size: 14px; }
.btn-link:hover { text-decoration: underline; }

/* ---------- boxes ---------- */
.box { border: 1px solid var(--line); border-radius: 4px; background: #fff; margin-bottom: 18px; }
.box-head { padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--panel); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.box-head h2 { margin: 0; font-size: 17px; font-weight: 700; color: #22303f; }
.box-head .sub { color: var(--muted); font-size: 13px; }
.box-body { padding: 18px; }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--dark-btn); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 960px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- alerts ---------- */
.alert { display: flex; gap: 12px; padding: 13px 16px; border: 1px solid; border-left-width: 5px; border-radius: 4px; margin-bottom: 16px; background: #fff; }
.alert .a-icon { font-weight: 700; width: 20px; height: 20px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.alert h4 { margin: 0 0 3px; font-size: 14px; }
.alert p { margin: 0; }
.alert-info { border-color: #5ba4d6; } .alert-info .a-icon { background: #2a7ec0; }
.alert-success { border-color: #3c9a6e; } .alert-success .a-icon { background: var(--green); }
.alert-warning { border-color: #e6a100; } .alert-warning .a-icon { background: #d48b00; }
.alert-error { border-color: #d0533a; } .alert-error .a-icon { background: var(--red); }

/* ---------- forms ---------- */
label.field { display: block; font-weight: 700; margin: 0 0 5px; font-size: 13px; }
.input { height: 32px; border: 1px solid #a7afb9; border-radius: 2px; padding: 0 10px; background: #fff; width: 100%; outline: none; }
.input:focus { border-color: #007d9c; box-shadow: 0 0 0 2px #c8eaf3; }
.check { display: flex; gap: 9px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.check input[type=checkbox] { appearance: none; width: 16px; height: 16px; border: 1px solid #a5adb5; background: #fff; margin: 2px 0 0; position: relative; cursor: pointer; flex-shrink: 0; }
.check input[type=checkbox]:checked { background: #057d9e; border-color: #057d9e; }
.check input[type=checkbox]:checked::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check small { display: block; color: var(--muted); font-weight: 400; }

.dropzone { border: 2px dashed #a7afb9; border-radius: 4px; background: var(--panel); padding: 34px 18px; text-align: center; transition: background .15s, border-color .15s; }
.dropzone.drag { background: #e9f5f8; border-color: var(--teal); }
.dropzone .dz-icon { width: 40px; height: 40px; color: #7b8794; margin-bottom: 8px; }
.dropzone p { margin: 6px 0; }
.dropzone .file-chosen { font-weight: 700; color: #22303f; }

/* ---------- filter bar & tables ---------- */
.quick-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 0; }
.quick-bar strong { font-size: 13px; }
.chip { height: 29px; border-radius: 20px; background: #fff; border: 1px solid #cbd1d6; box-shadow: 0 1px 1px #eff0f0; padding: 0 11px; font-weight: 700; color: #414f60; font-size: 13px; white-space: nowrap; }
.chip.selected { color: #fff; background: #007d9c; border-color: #007d9c; }
.chip:disabled { opacity: .45; cursor: default; }
.filters-panel { background: var(--panel); border: 1px solid #d4d9de; padding: 12px; display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.sortline { border: 1px solid #d6dadd; border-top: 0; padding: 7px 10px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.table-wrap { border: 1px solid #d9dee2; border-top: 0; overflow-x: auto; }
table.sc { width: 100%; border-collapse: collapse; font-size: 14px; }
table.sc th { background: #fafafa; text-align: left; font-weight: 700; color: #293747; padding: 11px 10px; border-bottom: 1px solid #d9dddf; white-space: nowrap; vertical-align: top; }
table.sc th .sub { display: block; font-weight: 400; color: #60626a; font-size: 13px; }
table.sc td { padding: 11px 10px; border-bottom: 1px solid #e3e6e6; vertical-align: top; }
table.sc tr:hover td { background: #fbfcfc; }
table.sc .num { text-align: right; }
.empty { padding: 50px; font-size: 16px; text-align: center; color: #606a73; }

.product-cell { display: flex; gap: 10px; min-width: 300px; }
.thumb { width: 56px; height: 56px; object-fit: contain; border: 1px solid #eee; background: #fff; flex-shrink: 0; }
.thumb.ph { display: flex; align-items: center; justify-content: center; color: #b7bec6; font-size: 11px; background: #f6f7f8; }
.ptitle { color: var(--link); font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 420px; }
.meta { display: grid; grid-template-columns: 52px 1fr; column-gap: 6px; row-gap: 1px; font-size: 13px; margin-top: 4px; }
.meta span:nth-child(odd) { color: #5c6064; }
.meta b { font-weight: 700; color: #263342; word-break: break-all; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; max-width: 360px; }
.tag { background: var(--gray-bg); border-radius: 3px; padding: 1px 7px; font-size: 12px; color: #39485a; white-space: nowrap; }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.pill.green { color: var(--green); }
.pill.red { color: var(--red); }
.pill.amber { color: #b26b00; }
.pill.blue { color: var(--blue); }
.pill.gray { color: #5f6b7a; }
.issues { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; max-width: 520px; }
.issues li { margin: 3px 0; padding-left: 16px; position: relative; }
.issues li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.issues li.ERROR { color: #8c1d06; } .issues li.ERROR::before { content: "!"; color: var(--red); }
.issues li.WARNING { color: #6b4a00; } .issues li.WARNING::before { content: "!"; color: #d48b00; }
.issues li.INFO { color: #39485a; } .issues li.INFO::before { content: "i"; color: var(--blue); }
.issues code { background: #f1f3f4; padding: 0 3px; }

/* stat tiles */
.stats { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 16px; }
.stat { flex: 1 1 140px; padding: 12px 16px; border-right: 1px solid var(--line2); }
.stat:last-child { border-right: 0; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-size: 24px; font-weight: 700; color: #22303f; }
.stat .v.green { color: var(--green); } .stat .v.red { color: var(--red); } .stat .v.amber { color: #b26b00; } .stat .v.blue { color: var(--blue); }

.progress { height: 8px; background: #e3e6e6; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.progress > div { height: 100%; background: var(--teal); transition: width .4s; }
.spinner { width: 16px; height: 16px; border: 2px solid #c8d0d8; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

.log { max-height: 220px; overflow: auto; font-size: 13px; background: var(--panel); border: 1px solid var(--line2); padding: 8px 12px; }
.log div { padding: 2px 0; } .log time { color: var(--muted); margin-right: 8px; }

/* modal & toast */
.modal-screen { position: fixed; inset: 0; background: #0c15216b; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 760px; max-width: 100%; max-height: 90vh; overflow: auto; background: #fff; padding: 22px 26px 24px; box-shadow: 0 12px 45px #0004; border-radius: 4px; position: relative; color: #223142; }
.modal h2 { font-size: 21px; margin: 0 0 14px; }
.modal pre { background: #f6f8f9; border: 1px solid var(--line2); padding: 12px; overflow: auto; max-height: 60vh; white-space: pre-wrap; word-break: break-word; }
.modal .close-modal { position: absolute; top: 12px; right: 16px; border: 0; background: #fff; font-size: 25px; line-height: 1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); background: #21313f; color: #fff; border-radius: 5px; z-index: 150; padding: 13px 20px; min-width: 240px; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 5px 20px #0003; font-size: 15px; }

/* ---------- login ---------- */
.login-body { background: #fff; }
.login-wrap { max-width: 360px; margin: 0 auto; padding: 28px 16px 40px; }
.login-brand { text-align: center; margin-bottom: 18px; }
.login-brand img { width: 220px; max-width: 80%; height: auto; }
.login-card { border: 1px solid #ddd; border-radius: 8px; padding: 20px 26px 22px; }
.login-card h1 { font-size: 28px; font-weight: 400; margin: 0 0 14px; color: var(--ink); }
.login-card label { display: block; font-weight: 700; font-size: 13px; margin: 12px 0 4px; color: var(--ink); }
.login-card .input { height: 31px; border-color: #888c8c; border-radius: 3px; box-shadow: 0 1px 0 rgba(255,255,255,.5), 0 1px 0 rgba(0,0,0,.07) inset; }
.login-card .input:focus { border-color: #e77600; box-shadow: 0 0 3px 2px rgb(228 121 17 / 50%); }
.btn-yellow { width: 100%; height: 31px; margin-top: 18px; border-radius: 8px; border: 1px solid #fcd200; background: #ffd814; color: var(--ink); font-size: 13px; box-shadow: 0 2px 5px 0 rgb(213 217 217 / 50%); }
.btn-yellow:hover { background: #f7ca00; }
.btn-yellow[disabled] { opacity: .6; }
.login-foot { border-top: 1px solid #e7e7e7; margin-top: 28px; padding-top: 18px; text-align: center; font-size: 11px; color: #555; }

@media (max-width: 720px) {
  .hide-sm { display: none !important; }
  .page { padding: 0 16px 40px; }
  .kv { grid-template-columns: 1fr; }
}
