:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --sidebar: #17212b;
  --sidebar-muted: #91a0af;
  --text: #1d2733;
  --muted: #667382;
  --line: #dce2e8;
  --primary: #176b87;
  --primary-dark: #10556d;
  --green: #21865b;
  --amber: #b7791f;
  --red: #bf3f4b;
  --blue: #2674a8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: "Segoe UI", "Microsoft JhengHei", sans-serif; font-size: 15px; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 20px 14px; background: var(--sidebar); color: #fff; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 24px; }
.brand-mark { width: 38px; height: 38px; border-radius: 7px; display: inline-grid; place-items: center; background: #1b829f; color: white; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; }
.brand small { margin-top: 2px; color: var(--sidebar-muted); }
nav { display: grid; gap: 4px; }
nav a { padding: 11px 12px; border-radius: 6px; color: #c8d1da; display: flex; align-items: center; gap: 12px; }
nav a span { width: 20px; text-align: center; font-size: 17px; }
nav a:hover, nav a.active { color: #fff; background: #243443; }
nav a.active { box-shadow: inset 3px 0 #2ca0bd; }
.sidebar-note { margin-top: auto; padding: 12px; border: 1px solid #344555; border-radius: 6px; color: var(--sidebar-muted); }
.sidebar-note strong, .sidebar-note span { display: block; }
.sidebar-note strong { color: #d9e1e7; margin-bottom: 4px; }
main { min-width: 0; }
.topbar { height: 58px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.environment-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 7px; background: #2b9b66; }
.user-menu { display: flex; align-items: center; gap: 15px; }
.user-menu form { margin: 0; }
.text-button { border: 0; background: none; color: var(--primary); cursor: pointer; padding: 0; }
.content { padding: 26px 28px 40px; max-width: 1500px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 5px; font-size: 25px; }
h2 { margin-bottom: 4px; font-size: 16px; }
.page-heading p, .panel-header p { margin-bottom: 0; color: var(--muted); }
.primary-button, .secondary-button { min-height: 38px; border-radius: 6px; padding: 9px 15px; border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.primary-button { background: var(--primary); color: #fff; }
.primary-button:hover { background: var(--primary-dark); }
.secondary-button { background: #fff; color: var(--primary); border-color: #9dbac5; }
.secondary-button:disabled { color: #8b949c; border-color: var(--line); background: #f7f8f9; cursor: not-allowed; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { border-radius: 7px; padding: 17px 18px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid; }
.stat-card span, .stat-card small { color: var(--muted); display: block; }
.stat-card strong { display: block; margin: 6px 0 2px; font-size: 28px; }
.stat-card.blue { border-top-color: var(--blue); }.stat-card.green { border-top-color: var(--green); }.stat-card.amber { border-top-color: var(--amber); }.stat-card.red { border-top-color: var(--red); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; margin-bottom: 18px; overflow: hidden; }
.panel-header { min-height: 66px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-header a { color: var(--primary); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 15px; border-bottom: 1px solid #e9edf0; text-align: left; white-space: nowrap; }
th { color: #5d6975; background: #fafbfc; font-size: 12px; font-weight: 650; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f9fbfc; }
.mono { font-family: Consolas, monospace; }
.small { font-size: 12px; }
.badge { border-radius: 999px; padding: 4px 8px; font-size: 12px; display: inline-block; }
.badge.success { color: #146c48; background: #e8f6ef; }
.badge.warning { color: #8b5915; background: #fff2da; }
.badge.neutral { color: #586571; background: #edf0f3; }
.integration-list { padding: 5px 18px; }
.integration-item { display: grid; grid-template-columns: 38px 1fr 10px; align-items: center; gap: 11px; padding: 14px 0; border-bottom: 1px solid #e9edf0; }
.integration-item:last-child { border: 0; }
.integration-item strong, .integration-item small { display: block; }
.integration-item small { color: var(--muted); margin-top: 3px; white-space: normal; }
.platform-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px; background: #e8f2f5; color: var(--primary); font-weight: 700; }
.platform-icon.large { width: 48px; height: 48px; font-size: 16px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #a2abb3; }
.status-dot.reachable { background: var(--green); }.status-dot.error { background: var(--red); }.status-dot.credentials_required { background: var(--amber); }
.form-panel { overflow: visible; }
.inline-form { padding: 16px 18px; display: grid; align-items: end; gap: 12px; }
/* ── Product form ── */
.product-new-form { padding: 12px 18px 18px; }
.product-new-form label { font-size:14px; }
.product-new-form .form-section-title { padding: 14px 0 8px; font-size:15px; font-weight:700; color:#1e293b; display:flex; align-items:center; gap:8px; }
.product-new-form .form-section-title small { color:#94a3b8; font-weight:400; font-size:12px; }
.form-grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; margin-bottom:10px; }
.form-grid-4 { display:grid; grid-template-columns:1fr 1fr 1fr 1fr; gap:10px; margin-bottom:10px; }
.form-actions { padding:10px 0; display:flex; justify-content:flex-end; }
.form-section-title-mini { font-size:12px; font-weight:700; color:#64748b; margin:10px 0 6px; padding-top:10px; border-top:1px solid #e2e8f0; }
.product-edit-form { padding:8px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:6px; max-width:700px; }
.product-edit-form label { font-size:12px; }
.product-edit-form input,.product-edit-form select { height:32px; font-size:12px; }
.product-image-empty { width:48px; height:48px; display:grid; place-items:center; background:#f1f5f9; border-radius:4px; color:#94a3b8; }
@media(max-width:900px){.form-grid-3,.form-grid-4{grid-template-columns:1fr 1fr}}@media(max-width:500px){.form-grid-3,.form-grid-4{grid-template-columns:1fr}}
label { display: grid; gap: 6px; color: #46525e; font-weight: 600; }
input, select { min-width: 0; height: 39px; border: 1px solid #cbd3da; border-radius: 5px; padding: 8px 10px; background: #fff; color: var(--text); }
input:focus, select:focus { outline: 2px solid #b7d9e3; border-color: var(--primary); }
.sourcing-hero { padding: 22px; display: grid; grid-template-columns: 1fr minmax(400px, .9fr); gap: 28px; align-items: center; border-left: 4px solid #e06b22; }
.sourcing-hero h2 { font-size: 20px; margin: 5px 0 8px; }
.sourcing-hero p { color: var(--muted); margin-bottom: 0; line-height: 1.6; }
.eyebrow { font-size: 11px; color: #b65518; font-weight: 700; }
.url-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.url-cell { max-width: 450px; overflow: hidden; text-overflow: ellipsis; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.integration-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 18px; }
.integration-card { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 18px; }
.integration-card-top { display: flex; justify-content: space-between; margin-bottom: 15px; }
.integration-card p { color: var(--muted); overflow-wrap: anywhere; }
.integration-actions { display:flex; gap:8px; align-items:center; }
.integration-actions form { margin:0; }
.import-stat { margin:10px 0 0; font-size:11px; }
.import-stats { margin-top:10px; display:grid; grid-template-columns:repeat(2,1fr); gap:5px; color:#68737c; font-size:10px; }
.import-stats span { padding:5px 7px; border:1px solid #e1e5e8; border-radius:4px; }
.product-list-image { width:48px; height:48px; border:1px solid #dce2e6; border-radius:4px; object-fit:contain; background:#fff; }
.product-image-empty { width:48px; height:48px; display:grid; place-items:center; border:1px solid #dce2e6; border-radius:4px; color:#9aa3aa; }
.product-image-empty svg { width:19px; }
.table-subline { display:block; margin-top:4px; color:#7b858e; font-size:9px; white-space:normal; }
.table-subline a { color:#1177df; }
.inactive-row { opacity:.62; background:#f6f7f8; }
.product-actions { margin-top:6px; display:flex; align-items:center; gap:6px; white-space:nowrap; }
.product-actions form { margin:0; }
.product-actions button,.product-actions summary { border:0; padding:0; background:none; color:#087b39; cursor:pointer; font-size:11px; }
.product-actions .danger-link { color:#d33b43; }
.product-actions details { position:relative; }
.product-actions summary { list-style:none; }
.product-actions summary::-webkit-details-marker { display:none; }
.product-edit-form { position:absolute; z-index:20; right:0; top:24px; width:520px; padding:14px; display:grid; grid-template-columns:1fr 1.6fr 1fr; gap:10px; border:1px solid #cfd7dc; border-radius:6px; background:#fff; box-shadow:0 12px 32px rgba(31,42,52,.18); white-space:normal; }
.product-edit-form button { align-self:end; height:39px; padding:8px 12px; color:#fff; background:#087b39; border-radius:4px; }
dl { margin: 15px 0; }
dl div { display: grid; grid-template-columns: 90px 1fr; padding: 8px 0; border-top: 1px solid #edf0f2; }
dt { color: var(--muted); } dd { margin: 0; }
/* ── Login split layout ── */
.login-body {
  min-height: 100vh;
  background: #f3f6f9;
}
.login-split {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(520px, 1.12fr) minmax(460px, .88fr);
}

/* Left hero */
.login-hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 72px clamp(48px, 7vw, 112px);
  background: #071b2f;
  overflow: hidden;
  color: #fff;
}
.login-hero::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(123, 180, 218, .16);
  pointer-events: none;
}
.login-hero-content {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
}
.login-hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 82px;
}
.login-hero-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #35a8d4;
  border-radius: 8px;
  background: #0c3553;
  color: #83d8f4;
  font-size: 19px;
  font-weight: 800;
}
.login-hero-brand strong {
  display: block;
  font-size: 21px;
  font-weight: 750;
}
.login-hero-brand span {
  display: block;
  margin-top: 3px;
  color: #89a5b9;
  font-size: 11px;
  font-weight: 600;
}
.login-eyebrow {
  display: block;
  margin-bottom: 15px;
  color: #4fc3e8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
}
.login-hero h1 {
  margin: 0 0 20px;
  max-width: 600px;
  color: #f6fbff;
  font-size: clamp(35px, 3.3vw, 52px);
  font-weight: 720;
  line-height: 1.28;
}
.login-hero p {
  max-width: 560px;
  margin: 0;
  color: #9db2c2;
  font-size: 16px;
  line-height: 1.8;
}
.login-feature-list {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(130, 177, 207, .2);
  border-bottom: 1px solid rgba(130, 177, 207, .2);
}
.login-feature-list article {
  min-width: 0;
  padding: 22px 18px;
  display: flex;
  gap: 12px;
  border-right: 1px solid rgba(130, 177, 207, .2);
}
.login-feature-list article:first-child { padding-left: 0; }
.login-feature-list article:last-child {
  padding-right: 0;
  border-right: 0;
}
.login-feature-list article > strong {
  color: #45b9df;
  font-size: 11px;
}
.login-feature-list b,
.login-feature-list span {
  display: block;
}
.login-feature-list b {
  color: #e7f1f7;
  font-size: 13px;
}
.login-feature-list span {
  margin-top: 5px;
  color: #7f9aad;
  font-size: 11px;
  line-height: 1.5;
}
.login-hero-footer {
  display: block;
  margin-top: 34px;
  color: #57758a;
  font-size: 10px;
  letter-spacing: 1px;
}

/* Right form */
.login-form {
  display: grid;
  place-items: center;
  padding: 58px clamp(38px, 6vw, 96px);
  background: #f3f6f9;
}
.login-form-inner {
  width: min(440px, 100%);
  padding: 42px;
  border: 1px solid #dbe3e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(19, 43, 62, .08);
}
.login-mobile-brand { display: none; }
.login-welcome { margin-bottom: 28px; }
.login-welcome small {
  display: block;
  margin-bottom: 7px;
  color: #1882ad;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.login-welcome strong {
  display: block;
  color: #102a3e;
  font-size: 30px;
  font-weight: 720;
}
.login-welcome p {
  margin: 9px 0 0;
  color: #72818d;
  font-size: 14px;
}
.stack-form { display: grid; gap: 20px; }
.stack-form label > span {
  display: block;
  margin-bottom: 7px;
  color: #314858;
  font-size: 13px;
  font-weight: 700;
}
.stack-form input {
  width: 100%;
  height: 48px;
  padding: 10px 13px;
  border-color: #cbd6de;
  border-radius: 6px;
  color: #142c3d;
  background: #fbfcfd;
}
.stack-form input::placeholder { color: #9aa7b1; }
.stack-form input:focus {
  outline: 3px solid rgba(30, 143, 186, .12);
  border-color: #278fb7;
  background: #fff;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 64px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-width: 48px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  color: #277b9e;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.password-toggle:hover { background: #eaf4f8; }
.stack-form .login-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  justify-content: space-between;
  padding: 10px 17px;
  border-radius: 6px;
  background: #126f9a;
  box-shadow: none;
  font-size: 15px;
}
.stack-form .login-submit:hover { background: #0b5c82; }
.login-security {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #7c8b95;
}
.login-security > span {
  color: #2f9c78;
  font-size: 8px;
}
.login-security small { font-size: 11px; }
.login-version {
  display: block;
  margin-top: 15px;
  color: #a1abb2;
  text-align: center;
  font-size: 10px;
}
.login-body .alert.error {
  margin-bottom: 20px;
  padding: 11px 13px;
  border-color: #efc9ca;
  border-radius: 6px;
  color: #a6333a;
  background: #fff1f1;
}

@media (max-width: 980px) {
  .login-split { grid-template-columns: minmax(390px, .9fr) minmax(430px, 1.1fr); }
  .login-hero { padding: 54px 42px; }
  .login-hero::after { inset: 18px; }
  .login-hero-brand { margin-bottom: 60px; }
  .login-feature-list { grid-template-columns: 1fr; }
  .login-feature-list article {
    padding: 13px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(130, 177, 207, .15);
  }
  .login-feature-list article:last-child { border-bottom: 0; }
  .login-form { padding: 40px 30px; }
  .login-form-inner { padding: 34px; }
}
@media (max-width: 760px) {
  .login-split { display: block; }
  .login-hero { display: none; }
  .login-form {
    min-height: 100vh;
    padding: 28px 18px;
  }
  .login-form-inner {
    padding: 30px 24px;
  }
  .login-mobile-brand {
    margin-bottom: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .login-mobile-brand span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: #78d0ed;
    background: #09243a;
    font-weight: 800;
  }
  .login-mobile-brand strong {
    color: #173347;
    font-size: 18px;
  }
}
.alert { border-radius: 5px; padding: 10px 12px; margin-bottom: 16px; }
.alert.error { background: #fdebed; color: #a32f3a; border: 1px solid #f3c8cc; }
@media (max-width: 1050px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .product-form { grid-template-columns: repeat(3, 1fr); }
  .sourcing-hero { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .sidebar-note { display: none; }
  nav { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 14px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .stat-grid, .integration-grid, .product-form { grid-template-columns: 1fr; }
  .url-form { grid-template-columns: 1fr; }
}

/* Enterprise cockpit */
.enterprise-shell { grid-template-columns: 200px 1fr; background: #f7f8fa; }
.enterprise-sidebar { padding: 0 12px 16px; background: #fff; color: #20262d; border-right: 1px solid #dde2e6; }
.enterprise-brand { height: 58px; padding: 0 10px; border-bottom: 1px solid #e2e6e9; font-size: 23px; }
.enterprise-brand b { color: #087a37; }
.enterprise-nav { padding-top: 12px; gap: 4px; }
.enterprise-nav a { min-height: 44px; padding: 10px 12px; color: #242b31; font-weight: 600; }
.enterprise-nav a svg { width: 19px; height: 19px; stroke-width: 1.8; }
.enterprise-nav a:hover { color: #067b38; background: #eef8f2; }
.enterprise-nav a.active { color: #fff; background: #087b39; box-shadow: 0 4px 10px rgba(8,123,57,.2); }
.enterprise-nav em { margin-left: auto; padding: 2px 5px; border: 1px solid #1684ef; border-radius: 3px; color: #0879df; font-size: 10px; font-style: normal; font-weight: 500; }
.enterprise-nav a.active em { border-color: #fff; color: #fff; }
.nav-1688 { width: 26px!important; color: #ff6500; font-size: 11px!important; font-weight: 800; }
.collapse-button { margin-top: auto; border: 0; background: transparent; color: #6c7883; padding: 10px; text-align: left; cursor: pointer; }
.collapse-button svg { width: 18px; }
.enterprise-topbar { height: 58px; padding: 0 18px; color: #53606b; }
.page-context, .top-actions, .top-actions span { display: flex; align-items: center; gap: 10px; }
.page-context strong { color: #20262d; font-size: 17px; }
.top-actions { gap: 18px; font-size: 12px; }
.top-actions svg { width: 16px; height: 16px; }
.icon-button { position: relative; display: inline-grid; place-items: center; border: 0; background: transparent; padding: 6px; color: #44515d; cursor: pointer; }
.notice b { position: absolute; top: -2px; right: -3px; min-width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; background: #e62f36; color: #fff; font-size: 9px; }
.owner b { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: #087b39; color: #fff; font-size: 10px; }
.enterprise-content { max-width: none; padding: 14px; }
.enterprise-footer { min-height: 56px; padding: 0 18px; border-top: 1px solid #dde2e6; background: #fff; color: #77818a; display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 12px; margin-bottom: 12px; }
.kpi-card { min-height: 102px; padding: 15px 13px; display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: start; background: #fff; border: 1px solid #dce2e6; border-radius: 6px; }
.kpi-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #e7f4ec; color: #087b39; }
.kpi-icon svg { width: 24px; }
.kpi-card small { color: #4e5963; }
.kpi-card strong { display: block; margin: 4px 0; font-size: 22px; line-height: 1; }
.kpi-card p { margin: 0; color: #7c8790; font-size: 10px; }
.green { color: #098844!important; }.red { color: #e52e33!important; }.orange { color: #ff6800!important; }.dark { color: #353d45!important; }
.cockpit-grid { display: grid; grid-template-columns: minmax(440px, 1.12fr) minmax(520px, 1.18fr) 260px; gap: 12px; align-items: start; }
.compact-panel { margin-bottom: 12px; border-radius: 5px; }
.compact-title { min-height: 40px; padding: 8px 12px; border-bottom: 1px solid #e0e5e8; display: flex; align-items: center; justify-content: space-between; }
.compact-title strong { font-size: 14px; }.compact-title small { color: #77818a; font-weight: 400; }
.compact-title select { height: 28px; padding: 2px 8px; font-size: 11px; }
.compact-title svg { width: 15px; color: #69747e; }
.chart-legend { padding: 8px 70px 0; display: flex; gap: 22px; color: #59646e; font-size: 10px; }
.chart-legend span:before { content:""; width: 12px; height: 4px; margin-right: 5px; display: inline-block; background: #77c18e; }
.chart-legend .profit:before { background: #087b39; }.chart-legend .rate:before { height: 2px; background: #ff7200; }
.combo-chart { position: relative; height: 190px; padding: 24px 30px 0; border-bottom: 1px solid #dce2e6; display: flex; align-items: end; justify-content: space-around; overflow: hidden; }
.bar-pair { width: 23px; height: 100%; display: flex; align-items: end; gap: 3px; }
.bar-pair i,.bar-pair b { flex: 1; background: #9dd3ad; }.bar-pair b { background: #087b39; }
.combo-chart svg { position: absolute; inset: 20px 20px 10px; width: calc(100% - 40px); height: calc(100% - 30px); overflow: visible; }
.combo-chart polyline { fill: none; stroke: #ff7200; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-days { padding: 6px 24px; display: grid; grid-template-columns: repeat(14,1fr); color: #68737c; font-size: 9px; text-align: center; }
.chart-summary { padding: 12px 35px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #e1e5e8; }
.chart-summary div { padding-left: 18px; border-right: 1px solid #e1e5e8; }.chart-summary div:last-child { border: 0; }
.chart-summary small,.chart-summary strong { display: block; }.chart-summary small { color: #7b858e; }.chart-summary strong { margin-top: 3px; font-size: 16px; }
.service-stats { display: grid; grid-template-columns: repeat(4,1fr); }
.service-stats div { min-height: 80px; padding: 10px; border-right: 1px solid #e1e5e8; }
.service-stats small,.service-stats strong,.service-stats span { display: block; }.service-stats strong { margin: 7px 0; font-size: 18px; }.service-stats span { color: #7b858e; font-size: 9px; }.service-stats b { color: #0b8745; }
.service-actions { padding: 8px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.service-actions a { padding: 7px; border: 1px solid #1677e8; border-radius: 4px; color: #1677e8; text-align: center; font-size: 11px; }.service-actions .solid { color: #fff; background: #1677e8; }
.orange-button { padding: 6px 10px; border-radius: 4px; color: #fff; background: #ff6d16; font-size: 11px; }
.sourcing-opportunities table { font-size: 10px; }.sourcing-opportunities th,.sourcing-opportunities td { padding: 8px 7px; }
.sourcing-opportunities td:first-child { display: grid; grid-template-columns: 36px 1fr; min-width: 135px; }
.sourcing-opportunities td:first-child small { grid-column: 2; color: #f07a27; }.product-thumb { grid-row: 1/3; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 5px; background: #edf0f2; color: #7d8891; }
.product-thumb svg { width: 19px; }.table-more { display: block; padding: 9px; color: #1177df; text-align: center; font-size: 10px; }
.cockpit-side { min-width: 0; }.mini-panel { margin-bottom: 10px; }.mini-panel>small,.rate-number { display: block; padding: 8px 12px 0; }.rate-number { font-size: 18px; }.rate-number b { color: #0a8a46; font-size: 10px; }
.exchange-meta { padding:8px 12px 0; display:flex; justify-content:space-between; color:#59646e; font-size:10px; }
.exchange-meta small { color:#8a949c; }
.rate-chart { width:calc(100% - 24px); height:58px; margin:4px 12px 0; border-bottom:1px solid #dce2e6; }
.rate-chart polyline { fill:none; stroke:#087b39; stroke-width:2; vector-effect:non-scaling-stroke; }
.rate-footer { padding:3px 12px; display:flex; justify-content:space-between; color:#8a949c; font-size:8px; }
.demo-warning { margin:3px 12px 9px; color:#b36b00; font-size:9px; }
.official-rate { margin:3px 12px 9px; color:#68737c; font-size:9px; }
.official-rate a { color:#087b39; text-decoration:underline; }
.exchange-panel .compact-title form { margin:0; }
.risk-row,.sync-row { min-height: 27px; padding: 5px 12px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #edf0f2; font-size: 10px; }
.risk-row span { flex: 1; }.sync-row span { width: 7px; height: 7px; border-radius: 50%; background: #0b8c48; }.sync-row span.syncing { background: #ff8400; }.sync-row strong { flex: 1; }.sync-row b { color: #0a8a46; }.sync-row small { color: #8a949c; }
.bottom-grid { display: grid; grid-template-columns: 1fr 1.05fr 1.05fr; gap: 12px; }
.bottom-grid table { font-size: 10px; }.bottom-grid th,.bottom-grid td { padding: 8px 10px; }.bottom-grid td:last-child { color: #098844; }
.calendar-head { padding: 7px 35px; display: flex; justify-content: space-between; align-items: center; }.calendar-head button { border: 0; background: none; font-size: 18px; }
.calendar-grid { padding: 0 12px 12px; display: grid; grid-template-columns: repeat(7,1fr); }
.calendar-grid span { min-height: 44px; padding: 5px; text-align: center; font-size: 10px; }.calendar-grid span.today { border-radius: 50%; color: #fff; background: #098844; }.calendar-grid small { display: block; margin-top: 5px; color: #1677e8; font-size: 8px; }
@media (max-width: 1250px) { .cockpit-grid { grid-template-columns: 1fr 1fr; }.cockpit-side { grid-column: 1/-1; display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }.kpi-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 900px) { .enterprise-shell { grid-template-columns: 72px 1fr; }.enterprise-brand strong { font-size:0; }.enterprise-brand strong:first-letter { font-size:20px; }.enterprise-nav a { font-size:0; justify-content:center; }.enterprise-nav em,.nav-1688 { display:none; }.cockpit-grid,.bottom-grid { grid-template-columns:1fr; }.cockpit-side { grid-column:auto; grid-template-columns:1fr; }.kpi-grid { grid-template-columns:repeat(2,1fr); }.top-actions span:not(.owner) { display:none; } }
.module-heading { margin: 4px 0 14px; }.module-heading h1 { font-size: 20px; }
.module-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:12px; }
.module-kpis article { padding:14px 16px; border:1px solid #dce2e6; border-radius:5px; background:#fff; }
.module-kpis small,.module-kpis strong { display:block; }.module-kpis small { color:#77818a; }.module-kpis strong { margin-top:7px; font-size:20px; }
.module-form { grid-template-columns:2fr 1.4fr 1fr .7fr auto; }
.toolbar { display:flex; gap:7px; }.toolbar input { width:220px; height:30px; }.toolbar .secondary-button { min-height:30px; padding:4px 10px; font-size:11px; }
@media (max-width:900px){.module-kpis{grid-template-columns:repeat(2,1fr)}.module-form{grid-template-columns:1fr}.toolbar input{width:130px}}
.order-form { grid-template-columns:1fr 1fr 2fr .6fr auto; }
.purchase-form { grid-template-columns:1.2fr 1.8fr .6fr .8fr 1fr auto; }
.inventory-form { grid-template-columns:2fr 1fr 2fr auto; }
.action-cell { display:flex; align-items:center; gap:6px; }
.action-cell form { margin:0; }
.action-cell button { border:0; background:none; color:#087b39; cursor:pointer; font-size:11px; }
.action-cell .danger-link { color:#d33b43; }
@media(max-width:900px){.order-form,.purchase-form,.inventory-form{grid-template-columns:1fr}}
/* ── Rich Table（取代卡片網格，供應商 / 客戶共用）── */
.rich-table { width:100%; border-collapse:collapse; }
.rich-table thead th { padding:10px 14px; border-bottom:2px solid #dce2e6; background:#f8fafb; color:#5d6975; font-size:12px; font-weight:650; text-transform:uppercase; letter-spacing:.3px; white-space:nowrap; }
.rich-table tbody td { padding:14px; border-bottom:1px solid #edf0f2; vertical-align:top; }
.rich-table tbody tr:hover { background:#f8fbfc; }
.rich-table .rt-primary { font-weight:650; font-size:15px; display:block; }
.rich-table .rt-secondary { font-size:12px; color:#77818a; display:block; margin-top:2px; }
.rich-table .rt-meta { font-size:11px; color:#94a3b8; display:block; margin-top:1px; }
.rich-table .rt-avatar { width:34px; height:34px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:#e7f4ec; color:#087b39; font-weight:700; font-size:15px; margin-right:10px; flex-shrink:0; }
.rich-table .rt-avatar.inactive { background:#eaeef0; color:#8a959e; }
.rich-table .rt-name-cell { display:flex; align-items:center; min-width:180px; }
.rich-table .rt-contact { font-size:13px; line-height:1.6; }
.rich-table .rt-contact small { display:block; color:#94a3b8; font-size:11px; }
.rich-table .rt-amount { font-weight:650; font-size:14px; }
.rich-table .rt-amount small { display:block; color:#77818a; font-size:11px; font-weight:400; }
.rich-table .rt-actions { display:flex; align-items:center; gap:4px; }
.rich-table .rt-actions form { margin:0; }
.rich-table .rt-actions .icon-button { padding:5px; color:#69747e; border:0; background:none; cursor:pointer; }
.rich-table .inactive-row { opacity:.5; }
.rich-table .inactive-row:hover { opacity:.75; }
@media(max-width:900px){.rich-table .rt-name-cell{min-width:auto}}
.supplier-form { grid-template-columns:1fr 1.7fr 1fr 1fr .7fr auto; }
@media(max-width:720px){.supplier-form{grid-template-columns:1fr}}

/* 2026 interface refresh: larger type, clearer hierarchy, modern neutral surfaces */
:root {
  --bg: #f3f6f5;
  --surface: #ffffff;
  --text: #17221c;
  --muted: #647169;
  --line: #dce5df;
  --primary: #087b39;
  --primary-dark: #05642e;
  --green: #087b39;
  --shadow-sm: 0 1px 2px rgba(20, 50, 34, .04), 0 5px 16px rgba(20, 50, 34, .035);
  --shadow-md: 0 12px 30px rgba(20, 50, 34, .10);
}
body {
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
}
.enterprise-shell { grid-template-columns: 248px minmax(0, 1fr); background: var(--bg); }
.enterprise-sidebar {
  padding: 0 14px 18px;
  border-right-color: #d6e0da;
  box-shadow: 2px 0 12px rgba(25, 55, 38, .025);
  min-height: 0;
  overflow: hidden;
}
.enterprise-brand {
  height: 68px;
  flex: 0 0 68px;
  padding: 0 12px;
  font-size: 24px;
  border-bottom-color: #e1e8e3;
}
.enterprise-nav {
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 14px;
  padding-right: 5px;
  gap: 5px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(185, 211, 229, .55) transparent;
  scrollbar-width: thin;
}
.enterprise-nav::-webkit-scrollbar { width: 6px; }
.enterprise-nav::-webkit-scrollbar-track { background: transparent; }
.enterprise-nav::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: rgba(185, 211, 229, .55);
}
.enterprise-nav a {
  min-height: 48px;
  padding: 11px 13px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 650;
  gap: 12px;
  white-space: nowrap;
}
.enterprise-nav a svg { width: 20px; height: 20px; flex: 0 0 20px; }
.enterprise-nav a.active { box-shadow: 0 5px 14px rgba(8, 123, 57, .20); }
.enterprise-nav em { flex: 0 0 auto; padding: 2px 6px; font-size: 11px; }
.nav-1688 { width: 28px!important; font-size: 12px!important; }
.enterprise-topbar {
  height: 68px;
  padding: 0 24px;
  border-bottom-color: #dbe4de;
  box-shadow: 0 1px 8px rgba(24, 55, 36, .035);
}
.page-context strong { font-size: 18px; }
.top-actions { gap: 20px; font-size: 13px; }
.top-actions svg { width: 18px; height: 18px; }
.owner b { width: 30px; height: 30px; font-size: 12px; }
.icon-button { min-width: 36px; min-height: 36px; border-radius: 7px; }
.icon-button:hover { background: #edf5f0; color: var(--primary); }
.enterprise-content { padding: 22px 24px 32px; }
.enterprise-footer { min-height: 62px; padding: 0 24px; font-size: 13px; }
h1 { font-size: 28px; line-height: 1.25; }
h2 { font-size: 19px; line-height: 1.3; }
.module-heading h1 { font-size: 26px; }
.page-heading p,.panel-header p { font-size: 14px; }
.panel {
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.panel-header { min-height: 72px; padding: 17px 20px; }
.compact-panel { border-radius: 8px; }
.compact-title { min-height: 48px; padding: 11px 15px; }
.compact-title strong { font-size: 16px; }
.compact-title small { font-size: 13px; }
.compact-title select { height: 34px; font-size: 13px; }
.kpi-grid { gap: 14px; margin-bottom: 14px; }
.kpi-card {
  min-height: 118px;
  padding: 18px 16px;
  grid-template-columns: 46px 1fr;
  gap: 13px;
  border-radius: 8px;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi-icon { width: 46px; height: 46px; }
.kpi-card small { font-size: 13px; }
.kpi-card strong { margin: 7px 0 5px; font-size: 25px; }
.kpi-card p { font-size: 12px; }
.cockpit-grid,.bottom-grid { gap: 14px; }
.chart-legend { padding-top: 11px; font-size: 12px; }
.chart-days { font-size: 11px; }
.chart-summary small { font-size: 12px; }
.chart-summary strong { font-size: 18px; }
.service-stats div { min-height: 94px; padding: 13px; }
.service-stats small { font-size: 12px; }
.service-stats strong { font-size: 21px; }
.service-stats span { font-size: 11px; }
.service-actions { padding: 11px; }
.service-actions a { padding: 9px; border-radius: 6px; font-size: 13px; font-weight: 650; }
.orange-button { padding: 8px 12px; border-radius: 6px; font-size: 13px; }
.sourcing-opportunities table { font-size: 12px; }
.sourcing-opportunities th,.sourcing-opportunities td { padding: 10px 9px; }
.product-thumb { width: 38px; height: 38px; }
.table-more { padding: 11px; font-size: 12px; font-weight: 600; }
.exchange-meta,.risk-row,.sync-row { font-size: 12px; }
.risk-row,.sync-row { min-height: 36px; padding: 8px 13px; }
.rate-number { font-size: 22px; }
.rate-number b,.official-rate,.demo-warning { font-size: 11px; }
.rate-footer { font-size: 10px; }
.bottom-grid table { font-size: 12px; }
.bottom-grid th,.bottom-grid td { padding: 10px 11px; }
.calendar-grid span { min-height: 50px; font-size: 12px; }
.calendar-grid small { font-size: 10px; }
.module-kpis article {
  padding: 17px 18px;
  border-radius: 8px;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.module-kpis small { font-size: 13px; }
.module-kpis strong { font-size: 24px; }
.primary-button,.secondary-button {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 650;
}
.primary-button { box-shadow: 0 3px 9px rgba(8, 123, 57, .16); }
label { gap: 7px; font-size: 14px; }
input,select {
  height: 43px;
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 14px;
}
input:focus,select:focus {
  outline: 3px solid rgba(8, 123, 57, .13);
  border-color: var(--primary);
}
.inline-form { padding: 19px 20px; gap: 14px; }
table { font-size: 14px; }
th,td { padding: 13px 15px; }
th { font-size: 13px; background: #f7faf8; }
tbody tr:hover { background: #f4faf6; }
.small { font-size: 13px; }
.badge { padding: 5px 9px; font-size: 12px; font-weight: 650; }
.table-subline { margin-top: 5px; font-size: 12px; }
.action-cell button,.product-actions button,.product-actions summary { font-size: 13px; }
.product-actions { gap: 9px; }
.product-list-image,.product-image-empty { width: 54px; height: 54px; border-radius: 7px; }
.product-thumb-cell .thumb-wrapper { position:relative; cursor:pointer; display:inline-block; }
.product-thumb-cell .thumb-wrapper:hover::after {
  content: "更換圖片";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 7px;
  pointer-events: none;
}
.integration-grid { gap: 18px; }
.integration-card { padding: 21px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.integration-card h2 { font-size: 20px; }
.integration-actions { flex-wrap: wrap; gap: 10px; }
.import-stats { gap: 7px; font-size: 12px; }
.import-stats span { padding: 8px 9px; border-radius: 6px; }
.rich-table thead th { padding: 12px 15px; font-size: 13px; }
.rich-table tbody td { padding: 15px; }
.rich-table .rt-primary { font-size: 16px; }
.rich-table .rt-secondary { font-size: 13px; }
.rich-table .rt-meta,.rich-table .rt-contact small,.rich-table .rt-amount small { font-size: 12px; }
.rich-table .rt-contact,.rich-table .rt-amount { font-size: 14px; }
.toolbar input { height: 38px; font-size: 14px; }
.toolbar .secondary-button { min-height: 38px; padding: 7px 12px; font-size: 13px; }
.product-edit-form { width: 590px; padding: 17px; gap: 12px; border-radius: 8px; box-shadow: var(--shadow-md); }

@media (max-width: 1250px) {
  .enterprise-shell { grid-template-columns: 232px minmax(0, 1fr); }
  .kpi-grid { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
}
@media (max-width: 900px) {
  .enterprise-shell { grid-template-columns: 78px minmax(0, 1fr); }
  .enterprise-content { padding: 18px; }
  .top-actions { gap: 9px; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .enterprise-shell { display: block; }
  .enterprise-sidebar { position: static; width: 100%; height: auto; padding-bottom: 10px; overflow: visible; }
  .enterprise-brand { height: 58px; flex-basis: 58px; }
  .enterprise-brand strong { font-size: 21px; }
  .enterprise-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .enterprise-nav a { justify-content: flex-start; font-size: 14px; }
  .enterprise-nav em,.nav-1688 { display: inline-block; }
  .enterprise-topbar { height: 60px; padding: 0 14px; }
  .page-context strong { font-size: 16px; }
  .enterprise-content { padding: 14px; }
  .kpi-grid,.module-kpis { grid-template-columns: 1fr; }
  .product-edit-form { position: fixed; inset: 12px; width: auto; overflow-y: auto; grid-template-columns: 1fr; }
  .enterprise-footer { padding: 14px; gap: 8px; flex-direction: column; align-items: flex-start; }
}

/* Reference dashboard */
.enterprise-sidebar {
  color: #fff;
  background: #062846;
  border-right: 0;
  box-shadow: 5px 0 20px rgba(5, 32, 56, .10);
}
.enterprise-brand {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.10);
}
.enterprise-brand strong { display:block; font-size:23px; line-height:1.15; }
.enterprise-brand small { margin-top:5px; color:#b9d3e5; font-size:13px; font-weight:500; }
.brand-cube {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  color:#dcf7ff;
}
.brand-cube svg { width:38px; height:38px; stroke-width:1.8; }
.enterprise-nav a { color:#e7f1f8; font-size:16px; }
.enterprise-nav a:hover { color:#fff; background:#0b3b61; }
.enterprise-nav a.active {
  color:#fff;
  background:#079ba4;
  box-shadow:0 6px 18px rgba(0, 184, 184, .24);
}
.collapse-button { color:#d8e9f4; }
.enterprise-topbar { background:#fff; }
.page-context { flex:1; max-width:700px; }
.global-search {
  position:relative;
  width:min(560px, 100%);
  display:block;
}
.global-search input {
  width:100%;
  height:46px;
  padding:10px 46px 10px 15px;
  border-color:#d7e0e7;
  background:#fff;
  font-size:15px;
}
.global-search svg {
  position:absolute;
  z-index:1;
  right:14px;
  top:13px;
  width:20px;
  color:#172739;
}
.store-switcher {
  min-height:42px;
  padding:8px 13px;
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid #d7e0e7;
  border-radius:7px;
  background:#fff;
  color:#172739;
  font-size:14px;
  font-weight:650;
}
.store-switcher svg { width:18px; }
.owner strong { font-size:14px; color:#182838; }
.reference-kpis {
  display:grid;
  grid-template-columns:repeat(5,minmax(170px,1fr));
  gap:16px;
  margin-bottom:16px;
}
.reference-kpi {
  min-height:124px;
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border:1px solid #d8e1e8;
  border-radius:9px;
  background:#fff;
  box-shadow:0 3px 12px rgba(20,45,68,.055);
}
.reference-kpi small,.reference-kpi strong,.reference-kpi span { display:block; }
.reference-kpi small { color:#2b3947; font-size:15px; font-weight:650; }
.reference-kpi strong { margin:8px 0 6px; color:#172535; font-size:27px; line-height:1; }
.reference-kpi span { color:#536272; font-size:13px; }
.reference-kpi-icon {
  width:48px;
  height:48px;
  flex:0 0 48px;
  padding:11px;
  border-radius:10px;
  color:#087bd8;
  background:#e7f5ff;
}
.reference-kpi-icon.teal { color:#009ca4; background:#e8f8f7; }
.reference-kpi-icon.green { color:#08a35c; background:#e8f8ef; }
.reference-kpi-icon.red { color:#ff5a31; background:#fff0e8; }
.reference-dashboard-grid {
  display:grid;
  grid-template-columns:minmax(650px,1.8fr) minmax(340px,.92fr);
  gap:18px;
  align-items:start;
}
.reference-main,.reference-side { min-width:0; }
.reference-panel-title {
  min-height:56px;
  padding:13px 17px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #dce4ea;
}
.reference-panel-title strong { color:#142434; font-size:17px; }
.reference-panel-title>div { display:flex; align-items:center; gap:5px; }
.reference-panel-title select { height:36px; font-size:14px; }
.reference-panel-title>a { display:flex; align-items:center; gap:4px; color:#416071; font-size:13px; font-weight:650; text-decoration:none; }
.reference-panel-title>a svg { width:15px; }
.live-data-badge,.live-dot { display:flex; align-items:center; gap:5px; color:#087c70; font-size:12px; font-weight:700; }
.live-data-badge svg { width:15px; }
.live-dot:before { content:""; width:7px; height:7px; border-radius:50%; background:#0ba36d; box-shadow:0 0 0 4px #e3f6ef; }
.revenue-trend { min-height:390px; }
.trend-legend {
  padding:12px 20px 0;
  display:flex;
  justify-content:center;
  gap:30px;
  color:#243544;
  font-size:14px;
  font-weight:650;
}
.trend-legend span:before {
  content:"";
  width:28px;
  height:4px;
  margin-right:7px;
  display:inline-block;
  vertical-align:middle;
  border-radius:4px;
}
.teal-line:before { background:#039da2; }
.navy-line:before { background:#073a88; }
.line-chart { height:310px; padding:15px 18px 15px 12px; display:grid; grid-template-columns:52px 1fr; }
.chart-scale {
  padding-bottom:28px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  color:#425363;
  font-size:12px;
}
.chart-canvas { position:relative; min-width:0; }
.chart-canvas>i {
  position:absolute;
  left:0;
  right:0;
  height:1px;
  background:#dbe3e9;
}
.chart-canvas>i:nth-child(1){top:0}.chart-canvas>i:nth-child(2){top:40px}.chart-canvas>i:nth-child(3){top:80px}.chart-canvas>i:nth-child(4){top:120px}.chart-canvas>i:nth-child(5){top:160px}.chart-canvas>i:nth-child(6){top:200px}.chart-canvas>i:nth-child(7){top:240px}
.chart-canvas svg { position:absolute; inset:0 0 28px; width:100%; height:242px; overflow:visible; }
.chart-canvas polyline { fill:none; stroke-width:3; vector-effect:non-scaling-stroke; }
.revenue-line { stroke:#039da2; }
.profit-line { stroke:#073a88; }
.revenue-point { fill:#fff; stroke:#039da2; stroke-width:3; }
.profit-point { fill:#fff; stroke:#073a88; stroke-width:3; }
.chart-labels {
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  display:grid;
  grid-template-columns:repeat(14,1fr);
  color:#405160;
  font-size:12px;
  text-align:center;
}
.platform-overview table { font-size:14px; }
.platform-overview th,.platform-overview td { padding:13px 12px; text-align:center; }
.platform-overview td:first-child,.platform-overview th:first-child { text-align:left; }
.platform-overview td:first-child { display:flex; align-items:center; gap:9px; }
.platform-square {
  width:32px;
  height:32px;
  flex:0 0 32px;
  display:inline-grid;
  place-items:center;
  border-radius:7px;
  color:#fff;
  background:#089da5;
}
.platform-square svg { width:18px; }
.platform-square.blue { background:#328ee8; }
.platform-square.orange { background:#ff5b28; }
.platform-square.navy { background:#0a355d; }
.platform-square.teal { background:#0cb5c3; }
.total-row { background:#f6f8fa; font-weight:650; }
.sourcing-cta {
  min-height:66px;
  margin-bottom:16px;
  padding:0 22px;
  display:flex;
  align-items:center;
  gap:15px;
  border-radius:9px;
  color:#fff;
  background:#008e94;
  box-shadow:0 7px 18px rgba(0,142,148,.20);
}
.sourcing-cta strong { flex:1; font-size:21px; }
.sourcing-cta svg { width:25px; }
.reference-side .panel {
  border-color:#cfd9e1;
  box-shadow:0 4px 14px rgba(18,44,65,.07);
}
.reference-side .reference-panel-title {
  min-height:58px;
  background:#fbfcfd;
  border-bottom-color:#cfd9e1;
}
.reference-side .reference-panel-title strong { color:#0f2435; font-size:18px; }
.reference-panel-title em {
  margin-left:8px;
  padding:3px 8px;
  border-radius:999px;
  color:#fff;
  background:#e94b42;
  font-size:12px;
  font-style:normal;
}
.urgent-row {
  min-height:47px;
  padding:9px 15px;
  display:flex;
  align-items:center;
  gap:10px;
  border-bottom:1px solid #d7e0e7;
  color:#152838;
}
.urgent-row:hover { background:#f2f7f9; }
.urgent-row>svg:first-child { width:19px; color:#ff5c36; }
.urgent-row>svg:last-child { width:17px; color:#526474; }
.urgent-row span { flex:1; font-size:15px; font-weight:550; }
.urgent-row b {
  padding:2px 7px;
  border-radius:3px;
  font-size:12px;
  background:#fff0dc;
}
.urgent-row b.red { color:#e5423c; background:#ffe9e5; }
.urgent-row b.orange { color:#e86b21; }
.urgent-row b.yellow { color:#b77d00; background:#fff5d5; }
.urgent-row strong { min-width:26px; color:#152838; font-size:15px; text-align:center; }
.reference-exchange-panel .reference-panel-title form { margin:0; }
.reference-exchange-body { padding:15px 17px 14px; }
.exchange-heading { display:flex; align-items:flex-start; justify-content:space-between; }
.exchange-heading small,.exchange-heading strong { display:block; }
.exchange-heading small { color:#324858; font-size:14px; font-weight:650; }
.exchange-heading strong { margin-top:3px; color:#10283a; font-size:28px; line-height:1.1; }
.exchange-heading>b { margin-top:20px; font-size:14px; }
.reference-rate-chart { width:100%; height:72px; margin-top:8px; border-bottom:1px solid #d5e0e7; }
.reference-rate-chart polyline { fill:none; stroke:#008f95; stroke-width:3; vector-effect:non-scaling-stroke; }
.reference-exchange-meta { margin-top:9px; display:flex; justify-content:space-between; gap:12px; color:#536777; font-size:12px; }
.reference-exchange-meta a { color:#0876c9; font-weight:650; }
.system-row {
  min-height:53px;
  padding:9px 15px;
  display:flex;
  align-items:center;
  gap:11px;
  border-bottom:1px solid #d7e0e7;
  color:#132737;
}
.system-row>strong { flex:1; font-size:15px; }
.system-row>b { min-width:62px; font-size:14px; }
.system-row>small { color:#546575; font-size:12px; }
.system-row>svg { width:17px; color:#536575; }
.sync-link {
  padding:12px 16px;
  display:flex;
  align-items:center;
  gap:5px;
  color:#076bc2;
  font-size:14px;
  font-weight:650;
}
.sync-link svg { width:17px; }
.monthly-summary {
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:14px;
}
.monthly-summary article {
  min-height:90px;
  padding:14px 17px;
  display:flex;
  align-items:center;
  gap:14px;
  border:1px solid #d5dfe6;
  border-radius:9px;
  background:#fff;
  box-shadow:0 3px 12px rgba(20,45,68,.05);
}
.monthly-summary article>svg { width:38px; height:38px; }
.monthly-summary small,.monthly-summary strong,.monthly-summary span { display:block; }
.monthly-summary small { color:#354858; font-size:13px; }
.monthly-summary strong { margin:3px 0; color:#152535; font-size:18px; }
.monthly-summary span { font-size:12px; }
.dashboard-support-summary { display:block; color:inherit; text-decoration:none; transition:border-color .18s ease,box-shadow .18s ease; }
.dashboard-support-summary:hover { border-color:#80beb7; box-shadow:0 6px 18px rgba(11,124,112,.1); }
.support-summary-grid { padding:14px; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.support-summary-grid>div { min-width:0; padding:11px; display:grid; grid-template-columns:25px 1fr; grid-template-rows:auto auto; column-gap:8px; border:1px solid #dce7e9; border-radius:7px; background:#f8fbfb; }
.support-summary-grid svg { width:20px; color:#087f75; grid-row:1/3; align-self:center; }
.support-summary-grid strong { color:#163546; font-size:19px; line-height:1; }
.support-summary-grid small { margin-top:4px; color:#647985; font-size:11px; white-space:nowrap; }
.dashboard-arrival-days .muted { color:#9aa8b1; }
.purple { color:#8d3bd1!important; }
.blue { color:#087bd8!important; }
.yellow { color:#e0aa00!important; }
.operations-bottom-grid {
  margin-top:16px;
  display:grid;
  grid-template-columns:1fr 1.22fr 1fr;
  gap:16px;
  align-items:start;
}
.operations-panel { margin-bottom:0; }
.operations-panel .reference-panel-title a {
  display:flex;
  align-items:center;
  gap:3px;
  color:#35495a;
  font-size:13px;
  font-weight:650;
}
.operations-panel .reference-panel-title a svg { width:15px; }
.operations-panel .reference-panel-title small { color:#687987; font-size:13px; font-weight:500; }
.operations-panel table { font-size:13px; }
.operations-panel th,.operations-panel td { padding:13px 11px; text-align:center; }
.operations-panel th:first-child,.operations-panel td:first-child { text-align:left; }
.arrival-month {
  padding:13px 22px 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.arrival-month strong { color:#172a3a; font-size:17px; }
.arrival-month button {
  border:0;
  background:none;
  color:#536879;
  font-size:25px;
  cursor:pointer;
}
.arrival-weekdays,.arrival-days {
  display:grid;
  grid-template-columns:repeat(7,1fr);
}
.arrival-weekdays { padding:0 12px; }
.arrival-weekdays b {
  padding:8px 4px;
  color:#293d4d;
  font-size:13px;
  text-align:center;
}
.arrival-days {
  margin:0 12px;
  border-top:1px solid #d9e2e8;
  border-left:1px solid #d9e2e8;
}
.arrival-days>span {
  min-height:67px;
  padding:7px 5px;
  border-right:1px solid #d9e2e8;
  border-bottom:1px solid #d9e2e8;
  color:#253949;
  text-align:center;
}
.arrival-days>span>b { font-size:14px; }
.arrival-days>span.today>b {
  width:27px;
  height:27px;
  margin:auto;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#fff;
  background:#079a54;
}
.arrival-days small { display:block; margin-top:6px; font-size:11px; font-weight:650; }
.arrival-days .sea,.arrival-legend .sea { color:#1678cf; }
.arrival-days .air,.arrival-legend .air { color:#f07822; }
.arrival-legend {
  padding:11px 15px 14px;
  display:flex;
  justify-content:center;
  gap:24px;
  font-size:12px;
  font-weight:650;
}

@media(max-width:1300px) {
  .reference-kpis { grid-template-columns:repeat(3,1fr); }
  .reference-dashboard-grid { grid-template-columns:1fr; }
  .reference-side { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  .sourcing-cta { grid-column:1/-1; margin-bottom:0; }
  .monthly-summary { grid-template-columns:repeat(3,1fr); }
  .operations-bottom-grid { grid-template-columns:1fr 1fr; }
  .arrival-calendar { grid-column:1/-1; }
}
@media(max-width:900px) {
  .global-search { display:none; }
  .store-switcher { display:none; }
  .reference-kpis { grid-template-columns:repeat(2,1fr); }
  .reference-side { grid-template-columns:1fr; }
  .monthly-summary { grid-template-columns:repeat(2,1fr); }
  .operations-bottom-grid { grid-template-columns:1fr; }
  .arrival-calendar { grid-column:auto; }
}
@media(max-width:620px) {
  .reference-kpis,.monthly-summary { grid-template-columns:1fr; }
  .reference-kpi { min-height:108px; }
  .line-chart { grid-template-columns:42px 1fr; overflow-x:auto; }
  .chart-canvas { min-width:650px; }
  .top-actions .owner strong { display:none; }
}

/* Procurement landed-cost quotation */
.procurement-builder { margin-bottom:18px; padding:0; overflow:hidden; }
.procurement-builder-head {
  padding:20px 22px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  border-bottom:1px solid #dbe4ea;
  background:#f7fafb;
}
.procurement-builder-head h2 { margin:3px 0 4px; font-size:22px; color:#122b3c; }
.procurement-builder-head p { margin:0; color:#627584; font-size:14px; }
.section-kicker { color:#008d81; font-size:11px; font-weight:800; letter-spacing:.08em; }
.icon-button { width:36px; height:36px; padding:0; display:grid; place-items:center; border:1px solid #d4dee5; border-radius:6px; background:#fff; color:#506473; }
.icon-button svg { width:18px; }
.procurement-product-row {
  padding:20px 22px;
  display:grid;
  grid-template-columns:minmax(250px,1.3fr) minmax(180px,1fr) minmax(260px,1.4fr) 130px 160px;
  gap:14px;
  align-items:end;
}
.procurement-product-row>label,.cost-section label { color:#3c5262; font-size:14px; font-weight:650; }
.procurement-product-row select,.procurement-product-row input,.cost-section select,.cost-section input {
  width:100%;
  min-height:42px;
  margin-top:7px;
  border:1px solid #cbd8e0;
  border-radius:6px;
  background:#fff;
  color:#172d3d;
  font-size:15px;
}
.quote-product-preview { min-width:0; display:flex; align-items:center; gap:13px; }
.quote-product-image {
  width:68px;
  height:68px;
  flex:0 0 68px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid #d7e1e7;
  border-radius:7px;
  background:#f0f5f7;
  color:#8a9ba7;
}
.quote-product-image img { width:100%; height:100%; object-fit:cover; }
.quote-product-image svg { width:25px; }
.quote-product-preview small,.quote-product-preview strong,.quote-product-preview span { display:block; }
.quote-product-preview small { color:#71828e; font-size:12px; }
.quote-product-preview strong { margin:4px 0; overflow:hidden; color:#142c3d; font-size:16px; text-overflow:ellipsis; white-space:nowrap; }
.quote-product-preview span { color:#617582; font-size:12px; }
.cost-currency-grid { padding:0 22px 20px; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.cost-section { padding:18px; border:1px solid #d5e0e6; border-radius:8px; background:#fff; }
.source-cost { border-top:3px solid #eb7c22; }
.local-cost { border-top:3px solid #078e82; }
.cost-section-title { margin-bottom:16px; display:flex; align-items:center; justify-content:space-between; gap:15px; }
.cost-section-title>div { display:flex; align-items:center; gap:10px; }
.cost-section-title svg { width:24px; color:#008d81; }
.source-cost .cost-section-title svg { color:#e76c13; }
.cost-section-title strong,.cost-section-title small { display:block; }
.cost-section-title strong { color:#153042; font-size:19px; }
.cost-section-title small { margin-top:2px; color:#758590; font-size:13px; font-weight:500; }
.cost-section-title select { width:145px; margin:0; }
.cost-section-title>b { padding:6px 10px; border-radius:4px; color:#087d73; background:#e7f6f3; font-size:13px; }
.cost-fields { display:grid; grid-template-columns:repeat(2,1fr); gap:13px; }
.cost-fields label>span { float:right; color:#71838f; font-size:11px; }
.cost-fields .inline-currency-select { width:76px; margin-top:-6px; }
.cost-fields .inline-currency-select select { min-height:28px; margin:0; padding:3px 6px; font-size:12px; }
.exchange-rate-row { margin-top:15px; padding-top:14px; display:grid; grid-template-columns:190px 1fr; gap:14px; align-items:end; border-top:1px dashed #d4dfe5; }
.volume-calculator { margin-top:15px; padding:14px; border:1px solid #d9e2e7; border-radius:7px; background:#f7fafb; }
.volume-title { display:flex; align-items:center; gap:8px; color:#183244; }
.volume-title svg { width:18px; color:#e76c13; }
.volume-title span { margin-left:auto; color:#71838f; font-size:11px; font-weight:500; }
.volume-fields { margin-top:12px; display:grid; grid-template-columns:repeat(5,1fr); gap:10px; }
.volume-fields input { min-height:38px; }
.volume-result { margin-top:11px; display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.volume-result span { color:#687b88; font-size:12px; }
.volume-result strong { color:#087d73; font-size:17px; }
.volume-result button { padding:7px 10px; border:1px solid #e5a36e; border-radius:5px; color:#bf570e; background:#fff4e9; font-weight:650; cursor:pointer; }
.exchange-chip { min-height:42px; padding:9px 12px; display:flex; align-items:center; gap:8px; border-radius:6px; color:#536977; background:#f0f5f7; font-size:12px; }
.exchange-chip svg { width:17px; color:#087d73; }
.landed-cost-summary {
  margin:0 22px 20px;
  display:grid;
  grid-template-columns:repeat(4,1fr) 1.15fr 1.15fr;
  overflow:hidden;
  border:1px solid #cad8df;
  border-radius:8px;
  background:#f8fafb;
}
.landed-cost-summary>div { min-height:83px; padding:15px; border-right:1px solid #d8e2e7; }
.landed-cost-summary>div:last-child { border-right:0; }
.landed-cost-summary small,.landed-cost-summary strong { display:block; }
.landed-cost-summary small { margin-bottom:7px; color:#617481; font-size:13px; }
.landed-cost-summary strong { color:#183142; font-size:18px; }
.landed-cost-summary .landed-total { background:#e9f7f4; }
.landed-cost-summary .landed-unit { color:#fff; background:#007f75; }
.landed-cost-summary .landed-unit small,.landed-cost-summary .landed-unit strong { color:#fff; }
.landed-cost-summary .landed-total strong,.landed-cost-summary .landed-unit strong { font-size:22px; }
.procurement-form-actions { padding:15px 22px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-top:1px solid #dce5ea; background:#f7fafb; }
.procurement-form-actions>span { display:flex; align-items:center; gap:7px; color:#596e7c; font-size:14px; }
.procurement-form-actions svg { width:17px; }
.compact-title>span { color:#70818c; font-size:12px; }
.procurement-table { min-width:1350px; }
.procurement-table th,.procurement-table td { padding:12px 10px; vertical-align:middle; }
.po-product { min-width:250px; display:flex; align-items:center; gap:10px; }
.po-product>img,.po-product>span { width:42px; height:42px; flex:0 0 42px; border-radius:5px; object-fit:cover; }
.po-product>span { display:grid; place-items:center; color:#71838e; background:#edf3f5; }
.po-product>span svg { width:20px; }
.po-product b,.po-product small,.table-sub { display:block; }
.po-product b { max-width:220px; overflow:hidden; color:#183040; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.po-product small,.table-sub { margin-top:3px; color:#71828d; font-size:11px; }
.cost-highlight { color:#008b70; }
.empty-cell { padding:36px!important; color:#71828d; text-align:center; }

@media(max-width:1300px) {
  .procurement-product-row { grid-template-columns:1fr 1fr 1fr; }
  .quote-product-preview { grid-column:1/-1; }
  .landed-cost-summary { grid-template-columns:repeat(3,1fr); }
  .landed-cost-summary>div:nth-child(3) { border-right:0; }
  .landed-cost-summary>div:nth-child(-n+3) { border-bottom:1px solid #d8e2e7; }
}
@media(max-width:900px) {
  .procurement-product-row,.cost-currency-grid { grid-template-columns:1fr; }
  .cost-fields { grid-template-columns:1fr 1fr; }
  .volume-fields { grid-template-columns:repeat(2,1fr); }
  .landed-cost-summary { grid-template-columns:1fr 1fr; }
  .landed-cost-summary>div { border-bottom:1px solid #d8e2e7; }
  .landed-cost-summary>div:nth-child(2n) { border-right:0; }
}
@media(max-width:620px) {
  .procurement-builder-head,.procurement-form-actions { align-items:stretch; flex-direction:column; }
  .procurement-product-row,.cost-currency-grid { padding-left:14px; padding-right:14px; }
  .cost-fields,.exchange-rate-row,.landed-cost-summary { grid-template-columns:1fr; }
  .volume-fields { grid-template-columns:1fr 1fr; }
  .volume-title,.volume-result { align-items:flex-start; flex-direction:column; }
  .volume-title span { margin-left:0; }
  .landed-cost-summary { margin-left:14px; margin-right:14px; }
  .landed-cost-summary>div { border-right:0; }
}

/* Larger admin typography */
@media(min-width:901px) {
  body { font-size:17px; }
  .enterprise-shell { grid-template-columns:230px 1fr; }
  .enterprise-brand strong { font-size:25px; }
  .enterprise-brand small { font-size:14px; }
  .enterprise-nav a { min-height:49px; padding:11px 14px; font-size:17px; }
  .enterprise-nav a svg { width:22px; height:22px; }
  .enterprise-nav em { font-size:12px; }
  .nav-1688 { font-size:13px!important; }
  .global-search input,.store-switcher,.owner strong,.text-button { font-size:15px; }
  h1,.module-heading h1 { font-size:29px; }
  h2 { font-size:21px; }
  .page-heading p,.panel-header p { font-size:16px; }
  .compact-title { min-height:48px; padding:10px 15px; }
  .compact-title strong { font-size:18px; }
  .compact-title small,.compact-title>span { font-size:14px; }
  table { font-size:16px; }
  th { padding:14px 15px; font-size:15px; }
  td { padding:15px; }
  label { font-size:16px; }
  input,select { min-height:44px; font-size:16px; }
  .primary-button,.secondary-button { min-height:43px; padding:10px 17px; font-size:16px; }
  .badge { padding:6px 10px; font-size:14px; }
  .table-subline,.table-sub,.po-product small { font-size:14px; line-height:1.45; }
  .product-actions button,.product-actions summary,.action-cell button { font-size:15px; }
  .product-actions { margin-top:8px; gap:9px; }
  .product-list-image,.product-image-empty { width:56px; height:56px; }
  .module-kpis small { font-size:15px; }
  .module-kpis strong { font-size:26px; }
  .rich-table thead th { font-size:15px; }
  .rich-table .rt-primary { font-size:18px; }
  .rich-table .rt-secondary,.rich-table .rt-contact,.rich-table .rt-amount { font-size:15px; }
  .rich-table .rt-meta,.rich-table .rt-contact small,.rich-table .rt-amount small { font-size:13px; }
}

/* Enterprise finance center */
.finance-heading-actions { display:flex; align-items:center; gap:12px; }
.finance-heading-actions .secondary-button { white-space:nowrap; }
.finance-section-nav { margin:-2px 0 16px; display:flex; gap:8px; overflow-x:auto; }
.finance-section-nav a { padding:8px 13px; flex:0 0 auto; border:1px solid #d4e0e6; border-radius:6px; color:#405b6b; background:#fff; font-size:13px; font-weight:650; text-decoration:none; }
.finance-section-nav a:hover { color:#08796f; border-color:#8cc9c2; background:#f2fbfa; }
.finance-period { padding:10px 13px; display:flex; align-items:center; gap:7px; border:1px solid #d4e0e6; border-radius:6px; color:#536b7b; background:#fff; font-size:14px; }
.finance-period svg { width:17px; }
.finance-entry-form { overflow:visible; }
.finance-form-grid { padding:18px; display:grid; grid-template-columns:repeat(5,1fr); gap:14px; align-items:end; }
.finance-form-grid .finance-note { grid-column:span 2; }
.finance-form-grid .primary-button { align-self:end; }
.finance-kpis { margin-bottom:16px; display:grid; grid-template-columns:repeat(6,1fr); gap:12px; }
.finance-kpis article { min-width:0; min-height:116px; padding:17px 15px; display:flex; align-items:flex-start; gap:12px; border:1px solid #d5e0e6; border-radius:8px; background:#fff; box-shadow:0 3px 12px rgba(21,45,64,.05); }
.finance-kpis article>div { min-width:0; }
.finance-kpis small,.finance-kpis strong,.finance-kpis div>span { display:block; }
.finance-kpis small { color:#425868; font-size:13px; font-weight:650; }
.finance-kpis strong { margin:7px 0 6px; color:#142b3b; font-size:20px; white-space:nowrap; }
.finance-kpis div>span { color:#71838f; font-size:11px; }
.finance-kpi-icon { width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center; border-radius:8px; }
.finance-kpi-icon svg { width:21px; }
.finance-kpi-icon.blue { color:#1678cf; background:#e9f4fd; }
.finance-kpi-icon.orange { color:#e66b17; background:#fff1e7; }
.finance-kpi-icon.green { color:#098d55; background:#e7f7ef; }
.finance-kpi-icon.red { color:#d94c43; background:#ffedeb; }
.finance-kpi-icon.purple { color:#8251c8; background:#f2ebfb; }
.finance-kpi-icon.teal { color:#008c91; background:#e6f7f7; }
.finance-overview-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(310px,.8fr); gap:16px; }
.finance-overview-grid>.panel { margin-bottom:16px; }
.reference-panel-title>div>small { display:block; margin-top:3px; color:#72838e; font-size:12px; font-weight:500; }
.finance-status { display:flex; align-items:center; gap:5px; font-size:12px; font-weight:650; }
.finance-status svg { width:16px; }
.profit-waterfall { padding:20px; display:grid; gap:15px; }
.profit-waterfall>div { position:relative; display:grid; grid-template-columns:1fr auto; gap:12px; }
.profit-waterfall span { color:#536a79; font-size:14px; }
.profit-waterfall strong { color:#193344; font-size:16px; }
.profit-waterfall i { grid-column:1/-1; width:100%; height:9px; display:block; border-radius:10px; background:#0a9c82; }
.profit-waterfall i.cost { background:#ed9c45; }
.profit-waterfall i.fee { background:#e0645a; }
.profit-result { margin-top:3px; padding:16px; align-items:center; border-radius:7px; background:#eef8f5; }
.profit-result span { color:#176b5b; font-weight:700; }
.profit-result strong { color:#087c69; font-size:24px; }
.profit-result b { position:absolute; right:16px; bottom:-2px; color:#0a8c72; font-size:13px; }
.finance-rate-body { padding:22px; }
.finance-rate-body>small,.finance-rate-body>strong,.finance-rate-body>span { display:block; }
.finance-rate-body>small { color:#526978; font-size:13px; }
.finance-rate-body>strong { margin:9px 0 7px; color:#0c7d76; font-size:34px; line-height:1; }
.finance-rate-body>span { color:#7a8a95; font-size:12px; }
.currency-exposure { margin-top:22px; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.currency-exposure>div { padding:13px; border:1px solid #dce6eb; border-radius:6px; background:#f8fafb; }
.currency-exposure small,.currency-exposure b { display:block; }
.currency-exposure small { color:#6b7d89; font-size:11px; }
.currency-exposure b { margin-top:5px; color:#1a3344; font-size:14px; }
.finance-platform-panel { margin-bottom:16px; }
.finance-tag { padding:5px 9px; border-radius:4px; color:#116ca8; background:#e9f4fb; font-size:12px; font-weight:700; }
.finance-tag.china { color:#bc5d12; background:#fff0e3; }
.finance-tag.taiwan { color:#087d69; background:#e8f7f2; }
.platform-finance-name { display:flex; align-items:center; gap:9px; }
.platform-finance-name svg { width:22px; color:#087e76; }
.finance-procurement-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.finance-procurement-grid>.panel { margin-bottom:16px; }
.finance-compact-table { font-size:13px; }
.finance-compact-table th,.finance-compact-table td { padding:12px 11px; }
.finance-bottom-grid { display:grid; grid-template-columns:minmax(340px,.75fr) minmax(0,1.6fr); gap:16px; }
.finance-bottom-grid>.panel { margin-bottom:0; }
.finance-cost-panel .reference-panel-title>b { color:#0b7c70; font-size:15px; }
.cost-breakdown-list { padding:15px 18px 18px; display:grid; gap:13px; }
.cost-breakdown-list>div { display:grid; grid-template-columns:92px 1fr 105px 42px; gap:10px; align-items:center; }
.cost-breakdown-list span { color:#405767; font-size:12px; }
.cost-breakdown-list>div>div { height:8px; overflow:hidden; border-radius:8px; background:#e8eef1; }
.cost-breakdown-list i { height:100%; display:block; border-radius:8px; background:#0b9685; }
.cost-breakdown-list strong { color:#193343; font-size:12px; text-align:right; }
.cost-breakdown-list small { color:#6d7f8b; font-size:11px; text-align:right; }
.finance-ledger-panel .text-button { margin-top:5px; font-size:12px; }
.finance-accounting-grid { margin-top:16px; display:grid; grid-template-columns:1fr; gap:16px; }
.finance-accounting-grid>.panel,.finance-transaction-panel,.finance-platform-fee-panel { margin-bottom:0; }
.finance-transaction-panel,.finance-platform-fee-panel { margin-top:16px; }
.finance-accounting-panel .table-wrap,.finance-transaction-panel .table-wrap,.finance-platform-fee-panel .table-wrap { max-height:440px; overflow:auto; }
.finance-accounting-panel form { display:inline; }
.finance-accounting-panel .text-button { margin:4px 6px 0 0; }
.finance-accounting-panel .text-button.red { color:#c13d38; }

@media(max-width:1450px) {
  .finance-kpis { grid-template-columns:repeat(3,1fr); }
  .finance-form-grid { grid-template-columns:repeat(3,1fr); }
}
@media(max-width:1050px) {
  .finance-overview-grid,.finance-procurement-grid,.finance-bottom-grid { grid-template-columns:1fr; }
  .finance-form-grid { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:700px) {
  .finance-heading-actions { width:100%; align-items:stretch; flex-direction:column; }
  .finance-kpis,.finance-form-grid { grid-template-columns:1fr; }
  .finance-form-grid .finance-note { grid-column:auto; }
  .cost-breakdown-list>div { grid-template-columns:82px 1fr 90px; }
  .cost-breakdown-list small { display:none; }
}

/* 1688 sourcing workbench */
.sourcing-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.sourcing-rate { min-width:270px; padding:12px 15px; border:1px solid #cfe0dd; border-radius:8px; background:#f1faf7; }
.sourcing-rate span,.sourcing-rate strong,.sourcing-rate small { display:block; }
.sourcing-rate span { color:#59706c; font-size:12px; }
.sourcing-rate strong { margin:3px 0; color:#087e70; font-size:17px; }
.sourcing-rate small { color:#758682; font-size:11px; }
.bookmarklet-panel { padding:20px; display:grid; grid-template-columns:1fr minmax(390px,.8fr); gap:28px; align-items:center; border-left:4px solid #f27a1a; }
.bookmarklet-panel h2 { margin:5px 0 8px; font-size:21px; }
.bookmarklet-panel p { margin:0; color:var(--muted); line-height:1.65; }
.bookmarklet-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.bookmarklet-button { min-height:42px; padding:10px 16px; display:flex; align-items:center; justify-content:center; border-radius:6px; color:#fff; background:#ed6c16; font-weight:700; text-decoration:none; }
.bookmarklet-button:hover { background:#d85c0c; }
.bookmarklet-actions textarea { grid-column:1/-1; height:62px; resize:none; border:1px solid #d2dbe0; border-radius:6px; padding:8px; color:#64747e; background:#f8fafb; font-size:11px; }
.sourcing-entry-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.sourcing-entry-card { margin-bottom:18px; }
.sourcing-entry-form { padding:17px 20px 20px; display:grid; grid-template-columns:1fr auto; gap:12px; align-items:end; }
.sourcing-entry-form textarea { width:100%; min-height:76px; resize:vertical; border:1px solid #cbd3da; border-radius:5px; padding:9px 10px; font:inherit; }
.sourcing-count { color:#647783; font-size:13px; }
.sourcing-task-table { font-size:14px; }
.sourcing-task-table td { vertical-align:middle; }
.sourcing-product-cell { min-width:290px; white-space:normal; }
.sourcing-product-cell strong,.sourcing-product-cell small { display:block; }
.sourcing-product-cell strong { color:#172d3c; }
.sourcing-product-cell small { margin-top:4px; max-width:440px; overflow:hidden; color:#758690; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.sourcing-actions form { display:inline; }
.sourcing-actions .muted { color:#8b999f; font-size:12px; }
.sourcing-preview-panel { scroll-margin-top:18px; }
.sourcing-preview-layout { padding:20px; display:grid; grid-template-columns:minmax(280px,.7fr) minmax(0,1.4fr); gap:24px; }
.sourcing-preview-gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.sourcing-preview-gallery img { width:100%; aspect-ratio:1; object-fit:cover; border:1px solid #dbe3e7; border-radius:7px; background:#f6f8f9; }
.sourcing-image-empty { grid-column:1/-1; min-height:180px; display:grid; place-items:center; border:1px dashed #cbd7dc; border-radius:7px; color:#788992; background:#f8fafb; }
.sourcing-match-box { margin-top:14px; padding:14px; border:1px solid #dce5e9; border-radius:7px; background:#f8fafb; }
.sourcing-match-box strong { display:block; margin-bottom:8px; }
.sourcing-match-box div,.sourcing-match-box a { display:block; color:#60737e; font-size:12px; line-height:1.7; }
.sourcing-import-form { min-width:0; }
.form-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:10px; }
.sourcing-cost-summary { margin:13px 0; padding:14px; display:grid; grid-template-columns:1fr 1fr; gap:8px 20px; border:1px solid #cfe3df; border-radius:7px; background:#f1faf7; }
.sourcing-cost-summary div { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.sourcing-cost-summary span { color:#526c67; font-size:12px; }
.sourcing-cost-summary strong { color:#087f70; font-size:17px; }
.sourcing-cost-summary small { grid-column:1/-1; color:#70837f; font-size:11px; }
.sourcing-import-actions { margin-top:16px; display:flex; justify-content:flex-end; gap:9px; flex-wrap:wrap; }

@media(max-width:1050px) {
  .bookmarklet-panel,.sourcing-preview-layout { grid-template-columns:1fr; }
  .sourcing-entry-grid { grid-template-columns:1fr; }
}
@media(max-width:720px) {
  .sourcing-heading { flex-direction:column; }
  .sourcing-rate { width:100%; }
  .bookmarklet-panel { grid-template-columns:1fr; }
  .bookmarklet-actions,.sourcing-entry-form,.form-grid-2 { grid-template-columns:1fr; }
  .sourcing-preview-gallery { grid-template-columns:repeat(2,1fr); }
  .sourcing-cost-summary { grid-template-columns:1fr; }
  .sourcing-cost-summary small { grid-column:auto; }
}

/* Taiwan tender AI */
.tender-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.tender-kpis { margin-bottom:16px; }
.tender-form-panel { margin-bottom:16px; }
.tender-import-panel { margin-bottom:16px; }
.tender-import-form { padding:18px; display:grid; grid-template-columns:minmax(280px,.8fr) minmax(380px,1.6fr) auto; gap:14px; align-items:end; }
.tender-import-form textarea { width:100%; min-height:76px; padding:10px; resize:vertical; border:1px solid #cbd3da; border-radius:5px; font:inherit; }
.tender-form-grid { padding:18px; display:grid; grid-template-columns:repeat(4,1fr); gap:14px; align-items:end; }
.tender-form-grid .wide { grid-column:span 2; }
.tender-form-grid textarea { width:100%; min-height:96px; padding:10px; resize:vertical; border:1px solid #cbd3da; border-radius:5px; font:inherit; }
.tender-form-actions { grid-column:1/-1; display:flex; justify-content:flex-end; }
.tender-table td { vertical-align:middle; }
.tender-title-cell { min-width:310px; }
.tender-title-cell strong,.tender-title-cell small,.tender-title-cell a { display:block; }
.tender-title-cell small { margin:5px 0; color:#71838e; }
.tender-title-cell a { color:#087d72; font-size:13px; }
.tender-score-cell { min-width:330px; display:flex; align-items:center; gap:12px; }
.tender-score-cell>div:last-child { min-width:0; }
.tender-score-cell strong,.tender-score-cell small { display:block; }
.tender-score-cell small { margin-top:4px; color:#6f808b; font-size:12px; line-height:1.45; white-space:normal; }
.tender-score { width:50px; height:50px; flex:0 0 50px; display:grid; place-items:center; border-radius:50%; color:#fff; font-size:18px; font-weight:800; }
.tender-score.good { background:#0a8e70; }
.tender-score.medium { background:#d48a19; }
.tender-score.poor { background:#c84843; }
.badge.danger { color:#b93833; background:#fdebea; }
.green { color:#07845f!important; }
.muted { color:#83919a; }
.tender-document-actions { position:relative; margin-top:8px; }
.tender-document-actions summary { color:#087d72; cursor:pointer; font-size:13px; font-weight:700; }
.tender-document-actions[open] { width:360px; padding:12px; position:absolute; right:24px; z-index:10; border:1px solid #ccdadd; border-radius:7px; background:#fff; box-shadow:0 12px 30px rgba(20,45,60,.16); }
.tender-document-actions form { margin-top:10px; display:grid; gap:8px; }
.tender-document-actions input[type=file] { width:100%; min-height:auto; padding:8px; font-size:12px; }
.tender-document-list { margin-top:10px; padding:9px; display:grid; gap:4px; border-radius:5px; background:#f5f8f9; }
.tender-document-list small { color:#627681; line-height:1.4; }
.ai-unconfigured { margin-top:10px; display:block; color:#9b6a16; line-height:1.45; }

@media(max-width:1100px) {
  .tender-form-grid { grid-template-columns:repeat(2,1fr); }
  .tender-import-form { grid-template-columns:1fr; }
}
@media(max-width:700px) {
  .tender-heading { flex-direction:column; }
  .tender-form-grid { grid-template-columns:1fr; }
  .tender-form-grid .wide { grid-column:auto; }
}

/* Customer sales quotations */
.quotation-heading { margin-bottom:18px; display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.quotation-heading h1 { margin:3px 0 5px; color:#162d3a; font-size:27px; }
.quotation-heading p { margin:0; color:#6b7d87; }
.page-kicker { color:#078479; font-size:11px; font-weight:800; letter-spacing:1.3px; }
.primary-button,.secondary-button { min-height:38px; padding:9px 15px; display:inline-flex; align-items:center; justify-content:center; gap:7px; border:1px solid transparent; border-radius:6px; font:inherit; font-weight:700; text-decoration:none; cursor:pointer; }
.primary-button { color:#fff; background:#078479; box-shadow:0 4px 10px rgba(7,132,121,.18); }
.primary-button:hover { background:#056f66; }
.secondary-button { color:#166f68; border-color:#aacdc8; background:#fff; }
.primary-button svg,.secondary-button svg { width:17px; height:17px; }
.quotation-kpis { margin-bottom:16px; display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.quotation-kpis article { padding:16px 18px; border:1px solid #dbe4e8; border-radius:7px; background:#fff; box-shadow:0 2px 7px rgba(24,50,64,.04); }
.quotation-kpis span,.quotation-kpis small { display:block; color:#72838c; }
.quotation-kpis strong { margin:6px 0 2px; display:block; color:#15313f; font-size:23px; }
.quotation-panel { margin-bottom:18px; border:1px solid #d9e3e7; border-radius:7px; background:#fff; box-shadow:0 3px 12px rgba(24,50,64,.05); overflow:hidden; }
.quotation-panel-header { padding:17px 19px; display:flex; align-items:center; justify-content:space-between; gap:15px; border-bottom:1px solid #e3eaed; }
.quotation-panel-header h2 { margin:0 0 4px; color:#17313d; font-size:18px; }
.quotation-panel-header p { margin:0; color:#778991; font-size:12px; }
.quotation-form-grid { padding:18px; display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.quotation-form-grid.compact { padding:0; grid-template-columns:repeat(2,1fr); }
.quotation-form-grid label { min-width:0; display:grid; gap:6px; color:#526772; font-size:12px; font-weight:700; }
.quotation-form-grid .span-2 { grid-column:span 2; }
.quotation-form-grid input,.quotation-form-grid select,.quotation-form-grid textarea,.quotation-lines-table input,.quotation-lines-table select,.quotation-lines-table textarea,.quotation-totals input,.quotation-totals select { width:100%; min-height:37px; padding:8px 9px; border:1px solid #cbd8dd; border-radius:5px; color:#213943; background:#fff; font:inherit; font-size:13px; }
.quotation-form-grid textarea,.quotation-lines-table textarea { resize:vertical; }
.quotation-form-grid input:focus,.quotation-form-grid select:focus,.quotation-form-grid textarea:focus,.quotation-lines-table input:focus,.quotation-lines-table select:focus,.quotation-lines-table textarea:focus { outline:2px solid rgba(7,132,121,.16); border-color:#279c91; }
.quotation-lines-toolbar { padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:15px; border-top:1px solid #e4eaed; border-bottom:1px solid #e4eaed; background:#f7fafb; }
.quotation-lines-toolbar h3 { margin:0 0 3px; color:#17313d; font-size:15px; }
.quotation-lines-toolbar span { color:#7a8b93; font-size:12px; }
.quotation-lines-wrap,.quotation-list-wrap { overflow-x:auto; }
.quotation-lines-table,.quotation-list { width:100%; border-collapse:collapse; }
.quotation-lines-table { min-width:1320px; }
.quotation-lines-table th,.quotation-list th { padding:10px 8px; color:#526773; border-bottom:1px solid #dfe7ea; background:#f8fafb; font-size:12px; text-align:left; white-space:nowrap; }
.quotation-lines-table td,.quotation-list td { padding:9px 8px; border-bottom:1px solid #e8edef; vertical-align:middle; }
.quotation-lines-table td:nth-child(1) { min-width:205px; }
.quotation-lines-table td:nth-child(2) { min-width:230px; }
.quotation-lines-table td:nth-child(3),.quotation-lines-table td:nth-child(4) { width:75px; }
.quotation-lines-table td:nth-child(5),.quotation-lines-table td:nth-child(6),.quotation-lines-table td:nth-child(8) { width:105px; }
.quotation-lines-table td:nth-child(7) { width:115px; text-align:right; }
.quotation-lines-table td:nth-child(9) { min-width:135px; }
.quotation-lines-table td:last-child { width:42px; }
.quotation-lines-table td>input+.line-model { margin-top:5px; }
.quotation-lines-table .line-cost+small { margin-top:3px; display:block; color:#bd6b24; font-size:10px; text-align:right; }
.line-image-box { width:58px; height:48px; margin:6px 0; display:grid; place-items:center; border:1px solid #d6e0e4; border-radius:5px; color:#92a0a6; background:#f4f7f8; font-size:10px; }
.line-image-box img { width:100%; height:100%; object-fit:contain; }
.line-image { min-height:31px!important; padding:5px 7px!important; font-size:11px!important; }
.line-remove { width:34px; height:34px; display:grid; place-items:center; border:1px solid #efd2d0; border-radius:5px; color:#bd4842; background:#fff8f7; cursor:pointer; }
.line-remove svg { width:16px; }
.quotation-bottom-grid { padding:18px; display:grid; grid-template-columns:minmax(0,1.7fr) minmax(300px,.65fr); gap:20px; border-top:1px solid #e4eaed; background:#fbfcfc; }
.quotation-terms h3,.quotation-totals h3 { margin:0 0 13px; color:#17313d; font-size:15px; }
.quotation-totals { padding:17px; border:1px solid #cee0dd; border-radius:7px; background:#fff; }
.quotation-totals>div,.quotation-totals>label { min-height:40px; display:flex; align-items:center; justify-content:space-between; gap:15px; border-bottom:1px solid #e7edee; color:#61737c; font-size:13px; }
.quotation-totals>label input,.quotation-totals>label select { width:130px; min-height:32px; text-align:right; }
.quotation-totals .grand-total { color:#103d39; font-size:16px; }
.quotation-totals .grand-total strong { color:#078479; font-size:21px; }
.quotation-totals .internal-total { color:#8a632f; background:#fffaf3; }
.quotation-totals .quotation-submit { padding-top:14px; border:0; }
.quotation-submit .primary-button { width:100%; }
.quotation-list { min-width:1040px; }
.quotation-list td strong,.quotation-list td small { display:block; }
.quotation-list td small { margin-top:4px; color:#819098; font-size:11px; }
.quotation-list .positive { color:#07835d; }
.quotation-list .negative { color:#c14640; }
.quotation-status { padding:5px 9px; display:inline-block; border-radius:12px; font-size:11px; font-weight:800; }
.quotation-status.draft { color:#63737b; background:#edf1f3; }
.quotation-status.sent { color:#276c9e; background:#e8f3fb; }
.quotation-status.accepted { color:#087956; background:#e5f6ee; }
.quotation-status.rejected,.quotation-status.expired { color:#b04740; background:#fbecea; }
.quotation-actions { display:flex; align-items:center; gap:6px; }
.quotation-actions form { margin:0; display:inline-flex; }
.quotation-actions>a,.quotation-actions button { width:32px; height:32px; display:grid; place-items:center; border:1px solid #d6e0e4; border-radius:5px; color:#35656c; background:#fff; cursor:pointer; }
.quotation-actions svg { width:15px; height:15px; }
.quotation-actions select { height:32px; padding:0 7px; border:1px solid #d6e0e4; border-radius:5px; color:#3d5863; background:#fff; font-size:11px; }
.quotation-actions .convert-order { color:#fff; border-color:#078479; background:#078479; }
.quotation-actions .converted { color:#07835d; font-size:11px; white-space:nowrap; }
.empty-row { padding:40px!important; color:#83939b; text-align:center; }

@media(max-width:1150px) {
  .quotation-kpis { grid-template-columns:repeat(2,1fr); }
  .quotation-form-grid { grid-template-columns:repeat(2,1fr); }
  .quotation-bottom-grid { grid-template-columns:1fr; }
}
@media(max-width:700px) {
  .quotation-heading { flex-direction:column; }
  .quotation-kpis,.quotation-form-grid,.quotation-form-grid.compact { grid-template-columns:1fr; }
  .quotation-form-grid .span-2 { grid-column:auto; }
  .quotation-lines-toolbar { align-items:flex-start; flex-direction:column; }
}


/* ── 商品中心優化 ── */
.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.toolbar-left input[type=search] {
  width: 240px; height: 38px;
}
.toolbar-left select {
  height: 38px; min-width: 110px;
}
.toolbar-right small { color: var(--muted); font-size: 12px; }
.image-preview-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.65);
  display: grid; place-items: center; padding: 40px;
}
.image-preview-dialog {
  position: relative; max-width: 90vw; max-height: 85vh;
  background: #fff; border-radius: 10px; padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  text-align: center;
}
.image-preview-dialog img {
  max-width: 100%; max-height: 65vh; object-fit: contain; border-radius: 6px;
}
#image-preview-caption {
  display: block; margin-top: 12px; color: var(--text); font-size: 15px; font-weight: 650;
}
.image-preview-close {
  position: absolute; top: 10px; right: 10px;
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
  gap: 18px;
  align-items: start;
}
.settings-form { padding-bottom: 20px; }
.settings-form .panel-header { padding: 20px 22px; }
.settings-grid { padding: 20px 22px 4px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-grid .full { grid-column: 1 / -1; }
.settings-section-title { margin-top: 18px; border-top: 1px solid var(--line); }
.settings-form .form-actions { padding: 18px 22px 0; justify-content: flex-end; }
.settings-side { display: grid; gap: 18px; }
.settings-side .panel { margin: 0; }
.settings-status-list { margin: 0; padding: 8px 20px 16px; }
.settings-status-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 43px;
  border-bottom: 1px solid #edf1f3;
}
.settings-status-list div:last-child { border-bottom: 0; }
.settings-status-list dt { color: var(--muted); }
.settings-status-list dd { margin: 0; font-weight: 650; }
.status-dot { width: 8px; height: 8px; margin-right: 7px; display: inline-block; border-radius: 50%; background: #96a2ab; }
.status-dot.ok { background: #159c5b; }
.status-dot.warn { background: #e99a22; }
.status-dot.error { background: #d94b51; }
.settings-link { padding: 0 20px 18px; }
.settings-link .secondary-button { width: 100%; }
.settings-security-note p { margin: 0; padding: 0 20px 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }
@media(max-width:1000px) {
  .settings-layout { grid-template-columns: 1fr; }
}
@media(max-width:720px) {
  .settings-grid { grid-template-columns: 1fr; }
  .settings-grid .full { grid-column: auto; }
}
.quick-edit-cell .quick-value { cursor: pointer; border-bottom: 1px dashed var(--muted); }
.quick-edit-cell .quick-value:hover { color: var(--primary); border-color: var(--primary); }
@media(max-width:900px) { .toolbar-left input[type=search] { width: 160px; } }

/* ── 財務營收佔比圖表 ── */
.finance-revenue-grid {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(0, 1.6fr);
  gap: 16px;
  margin-bottom: 16px;
}
.revenue-chart-panel .reference-panel-title { border-bottom: 1px solid var(--line); }
.revenue-chart-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
}
.rev-donut-container {
  width: 160px; height: 160px;
  flex: 0 0 160px;
}
.rev-legend { flex: 1; }
.rev-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
}
.rev-dot {
  width: 11px; height: 11px;
  border-radius: 3px;
  flex: 0 0 11px;
}
.rev-label { flex: 1; font-weight: 650; color: var(--text); }
.rev-pct { font-weight: 700; color: var(--primary); min-width: 42px; text-align: right; }
.rev-amount { color: var(--muted); font-size: 12px; min-width: 80px; text-align: right; }
.store-sales-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.store-sales-summary div { min-width: 0; }
.store-sales-summary small,
.store-sales-summary strong { display: block; }
.store-sales-summary small { color: var(--muted); font-size: 12px; }
.store-sales-summary strong { margin-top: 5px; color: var(--text); font-size: 16px; white-space: nowrap; }
@media(max-width:1050px) { .finance-revenue-grid { grid-template-columns: 1fr; } }
@media(max-width:720px) { .store-sales-summary { grid-template-columns: repeat(2, 1fr); } }
.integration-import-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(160px, auto)) minmax(240px, 1.3fr) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
}
.integration-import-form .check-label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.integration-import-form .check-label input { width: auto; }
.integration-import-form.secondary-import {
  grid-template-columns: 1fr auto;
  border-top: 1px solid var(--line);
}
.integration-import-form.secondary-import small { display: block; margin-top: 4px; color: var(--muted); }
@media(max-width:1100px) {
  .integration-import-form { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:650px) {
  .integration-import-form,
  .integration-import-form.secondary-import { grid-template-columns: 1fr; }
}
