/* T掌柜 admin refresh: calm, task-first surfaces with the existing brand mark. */
:root {
  --graphite: #242622;
  --black: #242622;
  --white: #ffffff;
  --raw: #ffffff;
  --warm: #f6f7f3;
  --orange: #ffcc00;
  --secondary: #858982;
  --caption: #858982;
  --border: #e9ebe5;
  --divider: #e9ebe5;
  --success: #237448;
  --sidebar-width: 224px;
  --radius-card: 12px;
  --font-cn: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-en: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand-soft: #fff5c3;
  --brand-hint: #fffbeb;
  --surface-shadow: 0 1px 2px rgba(32, 36, 30, .035), 0 8px 24px rgba(32, 36, 30, .025);
}

html,
body {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: clip;
  background: var(--warm);
  color: var(--graphite);
  font-family: var(--font-cn);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { color: #242622; background: #ffe781; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration-thickness: .07em; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid #997800 !important; outline-offset: 2px; }

.admin-shell,
.main,
.content,
.login-page,
.product-editor,
.product-list,
.table-wrap { min-width: 0; max-width: 100%; }
.admin-shell { min-height: 100vh; }

/* Persistent navigation */
.admin-shell .sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  padding: 20px 12px 12px;
  background: #fff;
  color: var(--graphite);
  border-right: 1px solid var(--border);
  box-shadow: none;
  transition: transform .2s ease;
}
.brand {
  display: block;
  padding: 8px 10px 18px;
  border-bottom: 1px solid var(--divider);
}
.brand-logo {
  justify-content: flex-start;
  width: 138px;
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border-radius: 0;
}
.brand-logo img { width: 138px; height: auto; max-height: none; object-fit: contain; }
.brand-caption { display: grid; gap: 1px; margin: 15px 0 0; padding: 0 2px; }
.brand-caption b { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.brand-caption span { color: var(--caption); font-size: 11px; }
.brand-cn { margin-top: 5px; color: var(--caption); font: 11px var(--font-en); letter-spacing: .08em; }
.env-block { margin: 16px 9px 18px; gap: 9px; }
.env-block b { color: var(--graphite); font: 600 11px var(--font-en); letter-spacing: .03em; }
.env-block small { color: var(--caption); }
.env-dot { flex: 0 0 7px; width: 7px; height: 7px; background: #42a46b; box-shadow: 0 0 0 3px #e8f5ec; }
.nav {
  flex: 1 1 auto;
  gap: 3px;
  padding: 8px 0 12px;
  scrollbar-color: #d5d9d1 transparent;
}
.nav-label {
  margin: 0 10px 5px;
  color: #767d74;
  font: 600 10px var(--font-cn);
  letter-spacing: .02em;
  text-transform: none;
}
.nav-label:not(:first-child) { margin-top: 17px; }
.nav-link,
.nav-group-title {
  min-height: 38px;
  padding: 0 10px;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  color: #454a43;
  font-size: 13px;
  transition: background-color .14s ease, color .14s ease;
}
.nav-link:hover,
.nav-group-title:hover { color: var(--graphite); background: #f5f6f2; }
.nav-link.active,
.nav-group-title.active {
  color: #292714;
  background: var(--brand-soft);
  font-weight: 600;
}
.nav-link.active { box-shadow: inset 3px 0 0 var(--orange); }
.nav-mark { width: 16px; height: 16px; border: 0; opacity: .88; }
.nav-link.active .nav-mark { background: transparent; border: 0; }
.nav-link.active .menu-icon { color: #6b5700; }
.nav-link > .menu-icon,
.nav-group-title > .menu-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.nav-group { margin: 0; }
.nav-group-title { justify-content: flex-start; padding-left: 10px; cursor: pointer; list-style: none; }
.nav-group-title::-webkit-details-marker { display: none; }
.nav-group-title.active { color: #292714; }
.nav-group-chevron { display: grid; place-items: center; flex: 0 0 14px; width: 14px; height: 14px; margin-left: auto; border: 0; transform: none; }
.nav-group-chevron .menu-icon { width: 13px; height: 13px; flex: 0 0 13px; }
.nav-group[open] .nav-group-chevron { transform: rotate(90deg); }
.nav-submenu { margin: 3px 0 6px 10px; padding: 3px 0 3px 10px; border-left: 1px solid var(--border); }
.nav-submenu .nav-link { min-height: 34px; padding-left: 10px; font-size: 12px; }
.nav-submenu .nav-link.active { background: var(--brand-soft); }
.nav-submenu .nav-mark { width: 7px; height: 7px; border-radius: 50%; background: transparent; border: 1px solid currentColor; }
.nav-submenu .nav-link.active .nav-mark { background: var(--orange); border-color: #997800; }
.sidebar-account {
  flex: 0 0 auto;
  margin: auto 2px 0;
  padding-top: 8px;
  border-top: 1px solid var(--divider);
}
.sidebar-account .account-menu-wrap { width: 100%; }
.sidebar-user {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  gap: 9px;
  padding: 5px 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--graphite);
  text-align: left;
}
.sidebar-user:hover { background: #f5f6f2; }
.sidebar-user:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.sidebar-account-copy { display: grid; min-width: 0; flex: 1 1 auto; gap: 2px; }
.sidebar-account-copy b { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-copy small { display: flex; align-items: center; min-width: 0; gap: 5px; overflow: hidden; color: var(--caption); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-copy .env-dot { width: 6px; height: 6px; box-shadow: none; }
.sidebar-user .account-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--graphite); color: #fff; font-size: 12px; }
.sidebar-user .menu-icon { flex: 0 0 14px; width: 14px; height: 14px; color: var(--caption); }
.sidebar-account .account-menu { top: auto; right: 0; bottom: calc(100% + 7px); left: 0; width: 100%; }

/* Workspace top bar */
.admin-shell .main {
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  background: var(--warm);
}
.admin-shell .topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  height: 70px;
  min-height: 70px;
  gap: 24px;
  padding: 0 32px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.topbar-leading { display: flex; align-items: center; min-width: 0; gap: 12px; }
.breadcrumbs { display: flex; align-items: center; min-width: 0; gap: 9px; color: var(--caption); font-size: 12px; }
.breadcrumbs > span[aria-hidden="true"] { color: #a6aba4; }
.breadcrumbs a { color: #666c65; }
.breadcrumbs a:hover { color: var(--graphite); }
.breadcrumbs .breadcrumb-current { overflow: hidden; color: var(--graphite); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { gap: 16px; }
.feature-search { position: relative; width: min(290px, 28vw); }
.feature-search > label {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8f9f6;
  color: #767c74;
  transition: border-color .14s ease, background-color .14s ease;
}
.feature-search > label:focus-within { border-color: #c8a500; background: #fff; }
.feature-search > label .menu-icon { width: 16px; height: 16px; flex: 0 0 auto; }
.feature-search input { min-width: 0; width: 100%; height: 32px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--graphite); font-size: 12px; }
.feature-search input::placeholder { color: #81877f; opacity: 1; }
.feature-search kbd { display: none; }
.menu-search-results {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 60;
  width: min(360px, calc(100vw - 32px));
  max-height: min(60vh, 420px);
  overflow: auto;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(24,28,22,.12);
}
.menu-search-result { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 7px 9px; border-radius: 7px; }
.menu-search-result:hover, .menu-search-result[aria-selected="true"] { background: var(--brand-hint); }
.menu-search-result-copy { display: grid; gap: 1px; }
.menu-search-result-copy b { font-size: 12px; font-weight: 600; }
.menu-search-result-copy small { color: var(--caption); font-size: 11px; }
.menu-search-empty { padding: 14px; color: var(--caption); font-size: 12px; }
.account-menu-wrap { position: relative; }
.topbar-user {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 9px;
  padding: 3px 5px 3px 3px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
}
.topbar-user:hover { background: #f5f6f2; }
.topbar-user > .menu-icon { width: 14px; height: 14px; color: var(--caption); }
.topbar-user-copy { display: grid; max-width: 140px; gap: 0; }
.topbar-user-copy b { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.topbar-user-copy small { overflow: hidden; color: var(--caption); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.account-avatar { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; flex: 0 0 auto; border: 0; background: #f2e7b4; color: #4b3f09; font-size: 13px; font-weight: 650; }
.account-avatar:hover { background: #f0db80; }
.account-menu { top: calc(100% + 5px); width: 220px; padding: 6px; border-radius: 10px; border-color: var(--border); box-shadow: 0 12px 30px rgba(24,28,22,.12); }
.account-menu-user { padding: 10px; border-color: var(--divider); }
.account-menu-user b { font-size: 12px; }
.account-menu-user small { color: var(--caption); font-size: 11px; }
.account-menu > button { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 10px; border-radius: 7px; font-size: 12px; }
.account-menu > button .menu-icon { width: 15px; height: 15px; }

.mobile-menu-button { display: none; width: 36px; height: 36px; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.mobile-menu-button .menu-icon { width: 18px; height: 18px; }
.mobile-scrim { display: none; }

/* Page rhythm and shared controls */
.admin-shell .content {
  width: 100%;
  max-width: 1750px;
  margin: 0 auto;
  padding: 28px 32px 48px;
  overflow-x: clip;
}
.page-heading { align-items: center; gap: 18px; margin: 0 0 22px; }
.page-heading h2 { margin: 0 0 4px; font-size: 27px; line-height: 1.28; font-weight: 650; letter-spacing: -.025em; }
.page-heading p { max-width: 72ch; color: var(--secondary); font-size: 13px; line-height: 1.55; }
.heading-actions { flex-wrap: wrap; gap: 8px; }
.button { min-height: 36px; height: auto; padding: 0 13px; border-radius: 7px; font-size: 12px; font-weight: 550; transition: background-color .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease; }
.button:hover { opacity: 1; transform: none; }
.button:disabled, .button[aria-disabled="true"] { opacity: .48; cursor: not-allowed; }
.button.primary { color: #27240f; background: var(--orange); border-color: var(--orange); }
.button.primary:hover { background: #f0bf00; border-color: #f0bf00; }
.button.secondary { color: var(--graphite); background: #fff; border-color: var(--border); }
.button.secondary:hover { background: #f8f9f6; border-color: #cbd0c7; }
.button.text { min-height: 32px; color: #52584f; }
.button.compact { min-height: 30px; height: auto; padding: 0 9px; border-radius: 6px; font-size: 11px; }
.panel, .form-panel, .category-group, .scene-settings-panel, .report-subsection {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--surface-shadow);
}
.panel { padding: 20px; }
.form-panel { padding: 20px; }
.panel-head { align-items: center; gap: 14px; margin-bottom: 16px; }
.panel-head h3, .form-panel h3 { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 650; letter-spacing: -.01em; }
.panel-head > a { color: #5f655e; font-size: 12px; }
.panel-head > a:hover { color: #282b26; }
.eyebrow, .crumb { color: #747a73; font: 600 10px var(--font-en); letter-spacing: .07em; }

.toolbar {
  min-height: 58px;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.toolbar select, .toolbar input,
.field input, .field select, .field textarea,
.product-fields-grid .field input, .product-fields-grid .field select,
.product-first-row .field input {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--graphite);
  outline: 0;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.toolbar select, .toolbar input { height: 38px; padding: 0 10px; font-size: 12px; }
.field input, .field select, .field textarea { min-height: 39px; padding: 8px 10px; font-size: 13px; }
.field textarea { min-height: 96px; }
.field input::placeholder, .field textarea::placeholder, .toolbar input::placeholder { color: #858982; opacity: 1; }
.toolbar select:focus, .toolbar input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: #b19100; box-shadow: 0 0 0 3px rgba(255,204,0,.17); }
.field { gap: 6px; min-width: 0; }
.field > span, .process-choice > span { color: #52584f; font-size: 12px; font-weight: 550; }
.field small { color: var(--caption); font-size: 11px; line-height: 1.45; }
.toolbar-count { color: var(--caption); font: 12px var(--font-cn); letter-spacing: 0; }

.table-wrap, .pc-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--surface-shadow);
  scrollbar-color: #c8cdc3 transparent;
}
.table-wrap table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table-wrap th, .pc-table th {
  padding: 11px 13px;
  background: #f8f9f6;
  color: #5e645d;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.table-wrap td, .pc-table td { padding: 12px 13px; border-bottom: 1px solid var(--divider); color: var(--graphite); font-size: 12px; vertical-align: middle; }
.table-wrap tbody tr:last-child td, .pc-table tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:hover, .pc-table tbody tr:hover { background: #fdfdfb; }
.table-wrap td small { display: block; color: var(--caption); font-size: 11px; }
.table-wrap img { max-width: 100%; }

.status, .badge, .pill, .pc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  padding: 2px 8px;
  border: 0;
  border-radius: 6px;
  background: #f0f1ed;
  color: #545a52;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.3;
  white-space: nowrap;
}
.status.success, .badge.success, .pill.success, .pc-life { color: #216c43; background: #eaf5ed; }
.status.warning, .badge.warning, .pill.warning, .pc-badge { color: #705700; background: #fff5cf; }
.status.danger, .badge.danger, .pill.danger, .pc-life-closed { color: #a23c34; background: #faecea; }
.status.info, .badge.info, .pill.info { color: #345f7d; background: #eaf2f8; }
.status.neutral, .badge.neutral, .pill.neutral { color: #565d55; background: #f0f1ed; }

.product-editor .product-info-section,
.product-editor .product-parameter-section,
.product-editor .product-measurements-panel,
.product-editor .product-color-panel,
.product-editor .four-view-panel,
.product-editor .product-media-stack > .panel { border-radius: 10px; }
.product-editor-columns { gap: 14px 16px; }
.product-editor .panel-head h3 { font-size: 16px; }
.product-first-row .field input, .product-fields-grid .field input, .product-fields-grid .field select { min-height: 36px; height: 36px; border-radius: 6px; }
.product-first-row .field > span, .product-fields-grid .field > span { color: #555b53; }
.product-size-pane, .product-measurements-panel { min-width: 0; }
.product-measurements-panel .table-wrap, .product-size-pane .table-wrap { box-shadow: none; }
.product-bulk-price .button { border-radius: 6px; }
.product-color-panel, .four-view-panel, .scene-settings-panel, .scene-settings-row, .scene-create-form { min-width: 0; }

.toast { right: 20px; bottom: 20px; max-width: min(420px, calc(100vw - 32px)); padding: 11px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: #272a25; color: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.16); font-size: 12px; }
.login-page { min-height: 100dvh; padding: 24px; background: var(--warm); }
.login-box { width: min(420px, 100%); padding: 32px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 12px 36px rgba(28,32,26,.07); }
.login-box .brand-logo { width: 138px; min-height: 0; margin: 0 0 18px; padding: 0; background: transparent; }
.login-box .brand-logo img { width: 138px; height: auto; }
.login-box .brand-cn { margin: 0 0 30px; }
.login-box h1 { margin: 0 0 6px; font-size: 24px; font-weight: 650; letter-spacing: -.02em; }
.login-box p { margin: 0 0 22px; color: var(--secondary); font-size: 13px; }
.login-box .field input { height: 40px; }
.login-box .button.primary { width: 100%; min-height: 40px; margin-top: 6px; }

/* Project center uses the same neutral and brand palette as the admin shell. */
.pc {
  --pc-ink: #242622;
  --pc-muted: #666c65;
  --pc-line: #e3e6de;
  --pc-yellow: #ffcc00;
  --pc-surface: #fff;
  --pc-soft: #f6f7f3;
}
.pc-area-nav a.active { border-bottom-color: var(--orange); color: var(--graphite); }
.pc-scope-tabs button.active,
.pc-stage-tabs button.active,
.pc-view-toggle button.active {
  border-color: #e5c400;
  background: var(--brand-soft);
  color: var(--graphite);
}
.pc-scope-tabs button.active { border-bottom: 2px solid #e5c400; }
.pc :focus-visible { outline-color: #997800; }
.pc-btn { min-height: 36px; padding: 0 13px; border-color: var(--border); border-radius: 7px; font-size: 12px; }
.pc-btn.primary { background: #ffcc00; border-color: #ffcc00; color: #242622; }
.pc-btn.primary:hover { background: #f0bf00; }
.pc-btn.dark { background: #343830; border-color: #343830; }
.pc-card, .pc-table-scroll, .pc-filters, .pc-modal { border-color: var(--border); box-shadow: var(--surface-shadow); }
.pc-proc-count { align-self: center; color: #62665f; font-size: 13px; }
.pc-proc-intro { margin-bottom: 18px; padding: 16px 20px; background: #fffdf5; }
.pc-proc-intro b { display: block; margin-bottom: 4px; font-size: 13px; }
.pc-proc-intro p, .pc-proc-empty p, .pc-proc-hint { margin: 0; color: #666b64; font-size: 12px; line-height: 1.7; }
.pc-proc-empty, .pc-proc-error { padding: 32px; }
.pc-proc-empty b { display: block; margin-bottom: 6px; font-size: 17px; }
.pc-proc-empty .pc-btn { display: inline-flex; align-items: center; margin-top: 16px; }
.pc-proc-order-link { color: #20251e; font-weight: 700; text-decoration: none; }
.pc-proc-order-link:hover { text-decoration: underline; }
.pc-proc-table td[data-table-column="1"] small { display: block; margin-top: 3px; color: #767a74; }
.pc-proc-heading-actions { display: flex; align-items: center; gap: 14px; }
.pc-proc-table td[data-table-column="2"] small { display: block; margin-top: 3px; color: #767a74; }
.pc-manual-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px; background: rgba(27,30,25,.5); }
.pc-manual-dialog { width: min(980px,100%); max-height: min(90vh,1000px); overflow: auto; padding: 24px; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px #0003; }
.pc-manual-dialog h2,.pc-manual-dialog h3 { margin: 0 0 10px; }
.pc-manual-dialog p { color: #62665f; }
.pc-manual-title { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 20px; }
.pc-manual-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.pc-manual-grid label { display: grid; gap: 6px; min-width: 0; font-size: 12px; color: #51584f; }
.pc-manual-grid input,.pc-manual-grid select,.pc-manual-size-row input,.pc-manual-fee input,.pc-manual-contract input { width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font: inherit; }
.pc-manual-grid [hidden] { display: none; }
.pc-manual-line { display: grid; gap: 15px; margin: 16px 0; padding: 20px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.pc-manual-products,.pc-manual-meta { padding: 20px; margin-bottom: 18px; }
.pc-manual-supplier-sku { padding: 8px; border: 1px solid #e7cf72; border-radius: 7px; background: #fff9df; font-weight: 700; }
.pc-manual-size-row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.pc-manual-size-row [data-size-fields] { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-manual-size { display: grid; gap: 4px; width: 74px; font-size: 12px; }
.pc-manual-size-row [name="newSize"] { width: 110px; }
.pc-manual-line-foot,.pc-manual-submit { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.pc-manual-line-foot > div { display: flex; gap: 8px; }
.pc-manual-line-foot [role="alert"],.pc-manual-submit [role="alert"],.pc-manual-contract [role="alert"] { color: #a83122; font-size: 12px; }
.pc-manual-submit { margin-top: 18px; }
.pc-manual-fees,.pc-manual-contract { display: grid; gap: 10px; margin-top: 18px; }
.pc-manual-fee { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) auto; gap: 10px; }
.pc-manual-contract form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pc-manual-contract form input { max-width: 340px; }
@media (max-width: 760px) { .pc-manual-grid { grid-template-columns: 1fr; } .pc-manual-dialog { padding: 16px; } .pc-proc-heading-actions { flex-wrap: wrap; } }
.pc-proc-status { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border-radius: 999px; background: #ecefed; color: #4b534d; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pc-proc-status[data-status="DRAFT"] { background: #fff3c7; color: #725400; }
.pc-proc-status[data-status="ORDERED"], .pc-proc-status[data-status="IN_PRODUCTION"] { background: #e8f2ff; color: #285681; }
.pc-proc-status[data-status="RECEIVED"], .pc-proc-status[data-status="COMPLETED"] { background: #e6f5eb; color: #27643d; }
.pc-proc-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 20px; margin-bottom: 18px; }
.pc-proc-summary > div { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pc-proc-summary span, .pc-proc-line-fields label span, .pc-proc-sizes > span { color: #777c75; font-size: 11px; }
.pc-proc-summary b, .pc-proc-summary a { overflow-wrap: anywhere; font-size: 14px; color: #272b25; }
.pc-proc-lines { padding: 20px; }
.pc-proc-supplier { display: flex; align-items: end; gap: 12px; padding: 16px 20px; margin-bottom: 18px; }
.pc-proc-supplier label { display: flex; flex: 1; flex-direction: column; gap: 5px; font-size: 12px; }
.pc-proc-supplier input { width: 100%; min-height: 36px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.pc-proc-supplier [role="alert"] { color: #a83122; font-size: 12px; }
.pc-proc-lines .pc-card-head { margin-bottom: 7px; }
.pc-proc-line { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(280px, 1.6fr); gap: 14px 24px; padding: 17px 0; border-top: 1px solid var(--divider); }
.pc-proc-line:first-of-type { margin-top: 16px; }
.pc-proc-line-main { display: flex; flex-direction: column; gap: 4px; }
.pc-proc-line-main b { font-size: 14px; }
.pc-proc-line-main small, .pc-proc-line-main span { color: #6d726b; font-size: 11px; }
.pc-proc-line-fields { display: grid; grid-template-columns: minmax(85px, 1fr) minmax(110px, 1fr) minmax(90px, auto); align-items: end; gap: 12px; }
.pc-proc-line-fields label, .pc-proc-size { display: flex; flex-direction: column; gap: 4px; }
.pc-proc-line-fields input, .pc-proc-size input { width: 100%; min-height: 36px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font: inherit; }
.pc-proc-line-fields input:disabled, .pc-proc-size input:disabled { background: #f4f5f3; color: #62665f; }
.pc-proc-line-fields strong { padding-bottom: 8px; font-size: 13px; white-space: nowrap; }
.pc-proc-sizes { grid-column: 1 / -1; display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.pc-proc-sizes > span { padding-bottom: 8px; }
.pc-proc-size { width: 70px; }
.pc-proc-line-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.pc-proc-line-actions [role="alert"], .pc-proc-actions [role="alert"] { color: #a83122; font-size: 12px; }
.pc-print-line { display: grid; gap: 14px; padding: 20px 0; border-top: 1px solid var(--divider); }
.pc-print-line-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.pc-print-line-head b, .pc-print-line-head small { display: block; }
.pc-print-line-head small, .pc-print-facts span, .pc-print-sizes span, .pc-print-purchase label span { color: #6d726b; font-size: 12px; }
.pc-print-line-head strong { white-space: nowrap; }
.pc-print-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pc-print-facts > div, .pc-print-sizes, .pc-print-artwork { display: grid; gap: 5px; }
.pc-print-facts b, .pc-print-sizes b { font-size: 13px; }
.pc-print-artwork > div { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.pc-print-artwork > div > span { color: #6d726b; font-size: 12px; }
.pc-print-purchase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 12px; background: #f7f8f5; border-radius: 8px; }
.pc-print-purchase form { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.pc-print-purchase form label { display: grid; flex: 1 1 150px; gap: 5px; }
.pc-print-purchase select, .pc-print-purchase input { width: 100%; min-height: 36px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font: inherit; }
.pc-print-purchase [role="alert"] { flex-basis: 100%; color: #a83122; font-size: 12px; }
.pc-proc-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 18px; }
.pc-seller-section { padding: 22px; margin-bottom: 18px; }
.pc-seller-section .pc-card-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 18px; }
.pc-seller-section .pc-card-head h3, .pc-seller-form h3 { margin: 3px 0 5px; font-size: 19px; }
.pc-seller-section .pc-card-head p, .pc-seller-hint { margin: 0; color: var(--pc-muted); font-size: 12px; line-height: 1.65; }
.pc-seller-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pc-seller-card { min-width: 0; padding: 17px; border: 1px solid var(--pc-line); border-radius: 9px; background: #fff; }
.pc-seller-card-top { display: flex; justify-content: space-between; gap: 12px; }
.pc-seller-card-top b { display: block; font-size: 14px; }
.pc-seller-card-top small { display: block; margin-top: 4px; color: var(--pc-muted); font-size: 11px; }
.pc-seller-card .pc-proc-status[data-status="ACTIVE"] { background: #e6f5eb; color: #27643d; }
.pc-seller-card .pc-proc-status[data-status="INACTIVE"] { background: #ecefed; color: #62665f; }
.pc-seller-card dl { display: grid; gap: 8px; margin: 15px 0 0; }
.pc-seller-card dl > div { display: grid; grid-template-columns: 75px minmax(0, 1fr); gap: 8px; font-size: 12px; }
.pc-seller-card dt { color: var(--pc-muted); }
.pc-seller-card dd { margin: 0; overflow-wrap: anywhere; }
.pc-seller-card-actions { display: flex; gap: 8px; margin-top: 15px; }
.pc-seller-form { padding: 22px; margin-bottom: 18px; }
.pc-seller-form[hidden] { display: none; }
.pc-seller-form .pc-card-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.pc-seller-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.pc-seller-fields label { display: grid; gap: 6px; min-width: 0; color: var(--pc-muted); font-size: 12px; }
.pc-seller-fields label.wide { grid-column: span 2; }
.pc-seller-fields input, .pc-seller-fields select, .pc-seller-fields textarea { width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; border: 1px solid var(--pc-line); border-radius: 6px; background: #fff; color: var(--pc-ink); font: inherit; }
.pc-seller-fields textarea { min-height: 70px; resize: vertical; }
.pc-seller-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.pc-seller-actions [role="alert"] { color: #a83122; font-size: 12px; }
@media (max-width: 900px) { .pc-seller-list { grid-template-columns: 1fr; } .pc-seller-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pc-seller-fields { grid-template-columns: 1fr; } .pc-seller-fields label.wide { grid-column: auto; } .pc-seller-section .pc-card-head { flex-direction: column; } }
@media (max-width: 760px) { .pc-proc-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pc-proc-line { grid-template-columns: 1fr; } .pc-proc-line-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pc-proc-line-fields strong { grid-column: 1 / -1; } }
@media (max-width: 760px) { .pc-print-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pc-print-purchase { grid-template-columns: 1fr; } }
.pc-hero { background: #fff7d9; border-color: #efe3ad; }
.pc-modal-backdrop { background: rgba(27,30,25,.42); }
.content:has(.workbench-dept-grid) .workbench-dept::before { display: none; }

@media (min-width: 1500px) {
  .admin-shell .content { padding-right: 44px; padding-left: 44px; }
  .admin-shell .topbar { padding-right: 44px; padding-left: 44px; }
}

@media (max-width: 1100px) {
  .admin-shell .content { padding-right: 24px; padding-left: 24px; }
  .admin-shell .topbar { padding-right: 24px; padding-left: 24px; }
  .feature-search { width: min(250px, 26vw); }
}

@media (max-width: 900px) {
  html, body { overflow-x: clip; }
  .admin-shell .sidebar,
  body:has(.product-editor) .admin-shell .sidebar,
  body:has(.product-list-toolbar) .admin-shell .sidebar,
  body:has(.pc) .admin-shell .sidebar {
    display: flex !important;
    width: min(286px, calc(100vw - 52px));
    min-width: 0;
    transform: translateX(-105%);
    box-shadow: none;
  }
  .admin-shell.menu-open .sidebar { transform: translateX(0); box-shadow: 14px 0 36px rgba(18,21,16,.13); }
  .admin-shell .mobile-menu-button { display: grid; flex: 0 0 auto; }
  .admin-shell .mobile-scrim { position: fixed; inset: 0; z-index: 35; border: 0; background: rgba(27,30,25,.34); }
  .admin-shell.menu-open .mobile-scrim { display: block; }
  .admin-shell .main { width: 100%; margin-left: 0; }
  .admin-shell .topbar { gap: 12px; }
  .admin-shell .content { padding-top: 24px; }
  .feature-search { width: min(250px, 32vw); }
}

/* project-center.css predates the shared shell and hid navigation on phones.
   Keep the same mobile drawer behavior on every route, including project center. */
@media (max-width: 760px) {
  body:has(.pc) .admin-shell .sidebar {
    display: flex !important;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(286px, calc(100vw - 52px));
    min-width: 0;
    transform: translateX(-105%);
    box-shadow: none;
  }
  body:has(.admin-shell.menu-open .pc) .admin-shell .sidebar {
    transform: translateX(0);
    box-shadow: 14px 0 36px rgba(18,21,16,.13);
  }
  body:has(.pc) .admin-shell .main { width: 100%; min-width: 0; margin-left: 0; }
  body:has(.pc) .admin-shell .topbar { height: 66px; min-height: 66px; padding: 0 16px; }
}

@media (max-width: 640px) {
  .admin-shell .topbar { height: 62px; min-height: 62px; gap: 8px; padding: 0 14px; }
  .topbar-leading { gap: 8px; }
  .breadcrumbs { gap: 6px; font-size: 11px; }
  .breadcrumbs > span:nth-last-child(2) { display: none; }
  .breadcrumbs > span[aria-hidden="true"]:nth-last-child(3) { display: none; }
  .top-actions { gap: 7px; }
  .feature-search { width: 38px; }
  .feature-search > label { justify-content: center; width: 38px; height: 36px; padding: 0; }
  .feature-search input { position: absolute; inset: 0; width: 38px; height: 36px; opacity: 0; cursor: pointer; }
  .feature-search > label:focus-within { position: fixed; top: 9px; left: 62px; z-index: 28; justify-content: flex-start; width: calc(100vw - 126px); padding: 0 10px; box-shadow: 0 0 0 100vmax rgba(27,30,25,.12); }
  .feature-search > label:focus-within input { position: static; width: 100%; opacity: 1; cursor: text; }
  .menu-search-results { position: fixed; top: 52px; left: 14px; z-index: 61; }
  .topbar-user { min-height: 38px; padding: 2px; }
  .topbar-user-copy, .topbar-user > .menu-icon { display: none; }
  .account-avatar { width: 31px; height: 31px; }
  .admin-shell .content { padding: 20px 14px 36px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .page-heading h2 { font-size: 23px; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 0 0 auto; }
  .panel, .form-panel { padding: 15px; border-radius: 10px; }
  .toolbar { gap: 7px; padding: 8px; }
  .toolbar input { flex: 1 1 100%; }
  .toolbar select { max-width: 100%; }
  .table-wrap { border-radius: 8px; }
  .table-wrap th, .pc-table th { padding: 9px 10px; }
  .table-wrap td, .pc-table td { padding: 10px; }
  .login-box { padding: 24px; }
  .pc-heading { align-items: flex-start; flex-direction: column; }
  .pc-hero { grid-template-columns: 1fr; min-height: 0; padding: 20px; }
  .pc-hero-counts { border-top: 1px solid rgba(36,38,34,.15); border-left: 0; }
  .pc-hero-counts div { min-height: 86px; padding: 12px 8px; }
  .pc-work-grid { grid-template-columns: minmax(0,1fr); }
  .pc-filter-row { align-items: flex-start; flex-direction: column; }
  .pc-filter-tools, .pc-search { width: 100%; min-width: 0; }
  .pc-modal-backdrop { padding: 10px; }
  .pc-modal { max-height: calc(100dvh - 20px); }
  .pc-modal-head, .pc-modal-scroll { padding-right: 16px; padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Product center: category-first inventory workspace. */
.product-center-page {
  --product-accent: #efbf00;
  --product-ink: #272a25;
  --product-muted: #858a82;
  --product-line: #e8eae4;
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
  color: var(--product-ink);
}
.product-center-page .page-heading {
  margin: 0 0 2px;
  align-items: flex-end;
  gap: 20px;
}
.product-center-page .page-heading h2 {
  margin: 3px 0 2px;
  font-size: clamp(25px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -.045em;
}
.product-center-page .page-heading p { margin: 0; color: var(--product-muted); font-size: 12px; }
.product-center-page .eyebrow { color: #90958b; font-size: 9px; letter-spacing: .2em; }
.product-center-actions { display: flex; align-items: center; gap: 9px; }
.product-center-actions .button { min-height: 36px; padding: 0 13px; gap: 7px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.product-center-actions .button.primary { color: #292b25; background: var(--orange); border-color: var(--orange); }
.product-center-actions .button.primary:hover { background: #f2c000; border-color: #f2c000; }
.product-center-actions svg,
.product-category-manage svg,
.product-view-switch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.product-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-overview-tile {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 124px;
  padding: 17px 19px 14px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--product-line);
  border-radius: 13px;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.product-overview-tile::after { content: "↗"; position: absolute; right: 16px; bottom: 13px; color: #9ba097; font-size: 14px; }
.product-overview-tile > span { display: block; color: #747a71; font-size: 12px; }
.product-overview-tile > b { display: block; margin-top: 9px; font-size: 29px; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.04em; }
.product-overview-tile > b small { margin-left: 6px; color: #979c94; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.product-overview-tile p { margin: 10px 0 0; color: #9a9f97; font-size: 11px; }
.product-overview-tile.is-selected { border-color: #e8c641; background: linear-gradient(145deg, #fffefa 0%, #fff 75%); box-shadow: inset 0 0 0 1px rgba(239,191,0,.12); }
.product-overview-tile.is-selected > span::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; vertical-align: 1px; background: #d7a900; border-radius: 50%; }

.product-center-panel { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--product-line); border-radius: 13px; box-shadow: 0 2px 8px rgba(36,38,34,.018); }
.product-category-bar { display: flex; min-height: 57px; align-items: stretch; justify-content: space-between; gap: 12px; padding: 0 17px; border-bottom: 1px solid var(--product-line); }
.product-category-tabs { display: flex; min-width: 0; align-items: stretch; gap: 1px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #d9ddd4 transparent; }
.product-category-tab {
  position: relative;
  display: inline-flex;
  min-height: 57px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  color: #6d736b;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  transition: color .15s ease, background .15s ease;
}
.product-category-tab:hover { color: #31352e; background: #fbfbf8; }
.product-category-tab.is-active { color: #292b25; font-weight: 650; }
.product-category-tab.is-active::after { content: ""; position: absolute; right: 13px; bottom: 0; left: 13px; height: 2px; background: var(--orange); border-radius: 2px 2px 0 0; }
.product-category-tab > span,
.product-subcategory-tab > span { display: inline-grid; min-width: 19px; height: 18px; place-items: center; padding: 0 5px; color: #85897f; background: #f2f3ee; border-radius: 5px; font-size: 10px; font-weight: 500; }
.product-category-tab.is-active > span { color: #655100; background: #fff0a6; }
.product-category-manage { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; color: #737970; font-size: 11px; text-decoration: none; }
.product-category-manage:hover { color: #363a33; }
.product-category-manage svg { width: 14px; height: 14px; }
.product-subcategory-bar { display: flex; min-height: 47px; align-items: center; gap: 8px; padding: 7px 20px; overflow-x: auto; background: #fffdf5; border-bottom: 1px solid #f0eddf; }
.product-subcategory-bar[hidden] { display: none; }
.product-subcategory-label { flex: 0 0 auto; margin-right: 4px; color: #85897f; font-size: 11px; }
.product-subcategory-tab { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 5px 10px; color: #6c7168; background: transparent; border: 1px solid transparent; border-radius: 16px; cursor: pointer; font-size: 11px; }
.product-subcategory-tab:hover { background: #fff; border-color: #e9e7db; }
.product-subcategory-tab.is-active { color: #574700; background: #fff2b7; border-color: #f1d65d; font-weight: 600; }
.product-subcategory-tab.is-active > span { background: #fff; }
.product-subcategory-empty { flex: 0 0 auto; color: #92978f; font-size: 11px; }
.product-subcategory-empty a { color: #806700; text-decoration: none; }
.product-subcategory-empty a:hover { text-decoration: underline; }

.product-list-toolbar { display: flex; min-height: 66px; align-items: center; gap: 10px; padding: 13px 20px; }
.product-search { width: min(380px, 36%); min-width: 210px; height: 37px; gap: 8px; padding-left: 0; border: 0; }
.product-search > svg { width: 15px; height: 15px; flex: 0 0 15px; margin-left: 11px; fill: none; stroke: #969b93; stroke-width: 1.7; stroke-linecap: round; }
.product-search input { width: 100%; height: 37px; padding: 0 12px 0 35px; color: var(--product-ink); background: #fff; border: 1px solid var(--product-line); border-radius: 8px; font-size: 11px; }
.product-search input { padding-left: 12px; }
.product-search input::placeholder { color: #a0a49d; }
.product-list-toolbar select { min-width: 126px; height: 37px; padding: 0 29px 0 12px; color: #555b52; background: #fff; border: 1px solid var(--product-line); border-radius: 8px; font-size: 11px; }
.product-filter-reset { padding: 7px 5px; color: #737a6e; background: transparent; border: 0; cursor: pointer; font-size: 11px; }
.product-filter-reset:hover { color: #514300; }
.product-list-toolbar .toolbar-count { margin-left: auto; color: #8e938b; font-size: 11px; white-space: nowrap; }
.product-view-switch { display: inline-flex; align-items: center; padding: 2px; background: #f7f8f5; border: 1px solid var(--product-line); border-radius: 8px; }
.product-view-switch button { display: grid; width: 30px; height: 27px; place-items: center; padding: 0; color: #858a81; background: transparent; border: 0; border-radius: 5px; cursor: pointer; }
.product-view-switch button.is-active { color: #34372f; background: #fff; box-shadow: 0 1px 3px rgba(22,27,20,.1); }
.product-view-switch svg { width: 14px; height: 14px; }

.product-list-wrap { width: 100%; overflow-x: auto; border: 0; border-radius: 0; box-shadow: none; }
.product-list-table { width: 100%; min-width: 0; border-collapse: separate; border-spacing: 0; table-layout: auto; }
.product-list-table thead th { height: 39px; padding: 0 12px; color: #858a82; background: #f7f8f5; border-top: 1px solid #f1f2ee; border-bottom: 1px solid var(--product-line); font-size: 10px; font-weight: 500; text-align: left; white-space: nowrap; }
.product-list-table tbody td { height: 91px; padding: 12px; color: #343830; background: #fff; border-bottom: 1px solid #eceee8; font-size: 11px; vertical-align: middle; }
.product-list-table tbody tr:hover td { background: #fffefa; }
.product-list-table th.product-select-cell,
.product-list-table td.product-select-cell { width: 48px; min-width: 48px; max-width: 48px; padding-left: 20px; padding-right: 4px; }
.product-list-table th[data-table-column="2"] { min-width: 270px; }
.product-list-table th[data-table-column="3"] { min-width: 152px; }
.product-list-table th[data-table-column="4"] { min-width: 164px; }
.product-list-table th[data-table-column="5"] { min-width: 100px; }
.product-list-table th[data-table-column="6"] { min-width: 120px; }
.product-list-table th[data-table-column="7"] { min-width: 100px; }
.product-list-table th[data-table-column="8"] { min-width: 110px; }
.product-list-table input[type="checkbox"], .product-card-select input[type="checkbox"] { width: 14px; height: 14px; margin: 0; accent-color: #d8ad00; cursor: pointer; }
.product-cell { display: flex; min-width: 0; align-items: center; gap: 13px; }
.product-cell > div { display: grid; min-width: 0; gap: 4px; }
.product-cell > div b { overflow: hidden; color: #30332d; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.product-cell small, .product-list-table td > small, .product-list-table td small { display: block; margin-top: 4px; color: #9a9f97; font-size: 10px; line-height: 1.45; }
.product-cell small { margin-top: 0; }
.product-cell img, .product-cell .product-image-placeholder { display: block; width: 58px; height: 58px; flex: 0 0 58px; object-fit: contain; background: #f4f5f1; border-radius: 8px; }
.product-image-placeholder { position: relative; background: linear-gradient(135deg, #f1f2ed, #fafbf8); }
.product-image-placeholder::after { content: ""; position: absolute; inset: 16px 19px; border: 1px solid #d8dcd3; border-radius: 3px; }
.product-list-table td > b { color: #373a34; font-size: 11px; font-weight: 550; }
.product-list-table .product-price-cell > b { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.product-list-table .product-price-cell > small { color: #989d95; }
.product-list-table .status { display: inline-flex; min-height: 22px; align-items: center; padding: 0 8px; font-size: 10px; }
.product-list-table .status-active::before { width: 5px; height: 5px; margin-right: 5px; background: #38a66a; border-radius: 50%; content: ""; }
.product-row-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.product-row-actions .row-link { padding: 2px 0; color: #797e74; background: transparent; border: 0; font-size: 10px; text-decoration: none; cursor: pointer; }
.product-row-actions .row-link:first-child { color: #8c6c00; }
.product-row-actions .row-link:hover { color: #282b25; text-decoration: underline; }
.product-list-footer { display: flex; min-height: 48px; align-items: center; gap: 16px; padding: 0 20px; color: #888e85; font-size: 10px; }
.product-list-footer small { flex: 1; color: #a0a49d; text-align: center; }
.product-list-footer [data-product-pagination] { padding: 5px 9px; color: #73786f; border: 1px solid #eee5bb; border-radius: 6px; white-space: nowrap; }
.product-center-note { display: flex; align-items: center; gap: 7px; margin: 0; color: #8b9087; font-size: 10px; }
.product-center-note span { color: #a5aa9f; font-size: 13px; }
.product-empty-state { display: grid; min-height: 190px; align-content: center; justify-items: center; gap: 9px; color: #777d73; border-top: 1px solid var(--product-line); }
.product-empty-state b { color: #3b3e37; font-size: 13px; }
.product-empty-state span { font-size: 11px; }
.product-empty-state .button { margin-top: 3px; }
.product-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 13px; padding: 18px 20px 22px; border-top: 1px solid var(--product-line); }
.product-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--product-line); border-radius: 10px; transition: border-color .16s ease, transform .16s ease; }
.product-card:hover { border-color: #dfcc6e; transform: translateY(-2px); }
.product-card-select { position: absolute; top: 11px; left: 11px; z-index: 1; display: grid; width: 24px; height: 24px; place-items: center; background: rgba(255,255,255,.92); border: 1px solid var(--product-line); border-radius: 6px; }
.product-card-image { display: grid; height: 176px; place-items: center; padding: 15px; background: #f7f8f5; }
.product-card-image img, .product-card-image .product-image-placeholder { width: 100%; height: 100%; object-fit: contain; }
.product-card-body { display: grid; gap: 7px; padding: 13px; }
.product-card-name { overflow: hidden; color: #30332d; font-size: 12px; font-weight: 650; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.product-card-body > small, .product-card-meta { color: #969b93; font-size: 10px; }
.product-card-meta { display: flex; justify-content: space-between; gap: 8px; }
.product-card-prices { display: flex; align-items: baseline; gap: 9px; padding-top: 7px; border-top: 1px solid #f0f1ed; }
.product-card-prices b { font-size: 12px; }
.product-card-prices small { color: #999e96; font-size: 10px; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

@media (max-width: 1050px) {
  .product-overview { gap: 10px; }
  .product-overview-tile { min-height: 112px; padding: 14px; }
  .product-category-bar { padding: 0 10px; }
  .product-category-tab { padding: 0 10px; }
  .product-list-toolbar { flex-wrap: wrap; padding: 12px; }
  .product-search { width: min(100%, 340px); }
}
@media (max-width: 760px) {
  .product-center-page { gap: 12px; }
  .product-center-page .page-heading { align-items: flex-start; }
  .product-center-actions { width: 100%; }
  .product-center-actions .button { flex: 1; justify-content: center; }
  .product-overview { grid-template-columns: 1fr; gap: 8px; }
  .product-overview-tile { min-height: 90px; padding: 12px 15px; }
  .product-overview-tile > b { margin-top: 6px; font-size: 24px; }
  .product-overview-tile p { margin-top: 6px; }
  .product-category-bar { min-height: 53px; }
  .product-category-tabs { margin-right: auto; }
  .product-category-tab { min-height: 53px; padding: 0 9px; font-size: 11px; }
  .product-category-manage { max-width: 62px; gap: 4px; font-size: 10px; }
  .product-subcategory-bar { padding: 7px 12px; }
  .product-list-toolbar { gap: 8px; }
  .product-search { width: 100%; min-width: 100%; }
  .product-list-toolbar select { flex: 1; min-width: 0; }
  .product-list-toolbar .toolbar-count { margin-left: auto; }
  .product-list-footer { flex-wrap: wrap; gap: 7px; padding: 10px 12px; }
  .product-list-footer small { order: 3; flex-basis: 100%; text-align: left; }
  .product-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; padding: 12px; }
  .product-card-image { height: 135px; }
  .product-card-body { padding: 10px; }
  .product-card-meta { flex-direction: column; gap: 2px; }
  .product-card-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 390px) {
  .product-card-grid { grid-template-columns: 1fr; }
  .product-category-manage svg { display: none; }
}

/* Compact card layouts for category and usage scene maintenance. */
.taxonomy-settings-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--product-line, var(--border));
  border-radius: 12px;
}
.taxonomy-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}
.taxonomy-category-card {
  display: grid;
  min-width: 0;
  min-height: 132px;
  align-content: start;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e8df;
  border-radius: 11px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.taxonomy-category-card:hover,
.taxonomy-scene-card:hover { border-color: #d6d8c9; box-shadow: 0 4px 14px rgba(45, 48, 38, .045); }
.taxonomy-category-card { gap: 8px; padding: 14px 16px 10px; }
.taxonomy-category-heading { display: grid; grid-template-columns: 48px minmax(0, 1fr) 22px; align-items: center; gap: 10px; }
.taxonomy-category-icon,
.taxonomy-scene-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  color: #7b846d;
  background: #f3f4ee;
  border-radius: 9px;
}
.taxonomy-category-icon svg { width: 20px; height: 20px; }
.taxonomy-category-icon img { width: 100%; height: 100%; object-fit: cover; }
.taxonomy-category-title { display: grid; min-width: 0; gap: 3px; }
.taxonomy-category-title b,
.taxonomy-scene-info b { overflow: hidden; color: #30332d; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.taxonomy-category-title small,
.taxonomy-scene-info > span { color: #8e938a; font-size: 10px; }
.taxonomy-add-child {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  padding: 0;
  color: #7f8772;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}
.taxonomy-add-child:hover { color: #4e5a3a; background: #f1f3eb; }
.taxonomy-category-children { display: flex; min-height: 26px; flex-wrap: wrap; align-items: center; gap: 6px; }
.taxonomy-child-chip { display: inline-flex; min-height: 25px; appearance: none; align-items: center; padding: 0 7px; color: #68725d; background: #f4f5f0; border: 1px solid #eceee7; border-radius: 4px; font: inherit; font-size: 10px; line-height: 1.2; text-align: left; }
.taxonomy-child-chip[data-category-edit-open]:hover { color: #485638; border-color: #d6dcc8; background: #eef2e7; }
.taxonomy-empty-child { color: #a0a49c; font-size: 10px; }
.taxonomy-child-create { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; padding-top: 10px; border-top: 1px solid #eef0ea; }
.taxonomy-child-create[hidden] { display: none; }
.taxonomy-child-create .field { min-width: 0; margin: 0; }
.taxonomy-child-create .field > span { font-size: 10px; }
.taxonomy-child-create input { height: 34px; padding: 0 9px; font-size: 11px; }
.taxonomy-child-create .button { min-height: 34px; padding: 0 11px; font-size: 11px; }
.taxonomy-category-edit { min-width: 0; border-top: 0; justify-self: end; margin-top: -4px; }
.taxonomy-category-edit[open] { width: 100%; justify-self: stretch; }
.taxonomy-category-edit > summary,
.scene-card-edit > summary {
  display: flex;
  min-height: 18px;
  align-items: center;
  color: #72796d;
  cursor: pointer;
  font-size: 10px;
  list-style: none;
}
.taxonomy-category-edit > summary::-webkit-details-marker,
.scene-card-edit > summary::-webkit-details-marker,
.taxonomy-create-details > summary::-webkit-details-marker { display: none; }
.taxonomy-category-edit > summary::after,
.scene-card-edit > summary::after { margin-left: auto; color: #90968b; content: '+'; font-size: 15px; }
.taxonomy-category-edit > summary { min-height: 14px; color: #858b7d; font-size: 9px; }
.taxonomy-category-edit > summary::after { font-size: 12px; }
.taxonomy-category-edit[open] > summary::after,
.scene-card-edit[open] > summary::after { content: '−'; }
.taxonomy-category-edit-list { display: grid; gap: 8px; padding-top: 8px; }
.taxonomy-category-edit-list .category-editor-row,
.taxonomy-orphans .category-editor-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 10px 0; border-top: 1px solid #eff0eb; }
.taxonomy-category-edit-list .category-editor-row.is-child,
.taxonomy-orphans .category-editor-row.is-child { padding-left: 0; }
.taxonomy-category-edit-list .category-row-form,
.taxonomy-orphans .category-row-form { display: grid; grid-template-columns: 1fr minmax(64px, 84px) auto; gap: 7px; }
.taxonomy-category-edit-list .category-depth-label,
.taxonomy-orphans .category-depth-label,
.taxonomy-category-edit-list .category-visible,
.taxonomy-orphans .category-visible { grid-column: 1 / -1; }
.taxonomy-category-edit-list .category-alt-input,
.taxonomy-orphans .category-alt-input { width: 100%; grid-column: 1 / -1; }
.taxonomy-category-edit-list .category-image-editor,
.taxonomy-orphans .category-image-editor { width: 100%; grid-template-columns: 54px minmax(0, auto) minmax(0, auto); flex: auto; }
.taxonomy-category-edit-list .category-image-preview,
.taxonomy-orphans .category-image-preview { width: 54px; height: 48px; }
.taxonomy-category-edit-list .category-delete-button,
.taxonomy-orphans .category-delete-button { justify-self: start; }
.category-four-view-editor {
  min-width: 0;
  padding: 8px 10px 10px;
  border: 1px solid #e6e8df;
  border-radius: 8px;
  background: #fafbf8;
}
.category-four-view-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #343a30;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  list-style: none;
}
.category-four-view-heading::-webkit-details-marker { display: none; }
.category-four-view-heading small { color: #78816f; font-size: 10px; font-weight: 400; }
.category-four-view-heading::after { color: #858e80; content: '+'; font-size: 15px; }
.category-four-view-editor[open] .category-four-view-heading::after { content: '−'; }
.category-four-view-help { margin: 8px 0; color: #737b71; font-size: 10px; line-height: 1.5; }
.category-four-view-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.category-four-view-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto repeat(3, minmax(0, auto));
  align-items: center;
  gap: 5px 7px;
  min-width: 0;
  padding: 7px;
  background: #fff;
  border: 1px solid #e8eae2;
  border-radius: 7px;
}
.category-four-view-card > b { grid-column: 1 / -1; color: #343a30; font-size: 10px; }
.category-four-view-preview {
  grid-column: 1;
  grid-row: 2 / span 3;
  width: 64px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed #dfe3d8;
  border-radius: 5px;
  background: #fafbf8;
}
.category-four-view-preview img { width: 100%; height: 100%; object-fit: contain; }
.category-four-view-preview span,
.category-four-view-card small { color: #91998d; font-size: 9px; }
.category-four-view-card .button { justify-self: start; min-height: 24px; padding: 2px 7px; font-size: 9px; }
.category-four-view-card .category-view-upload { grid-column: 2; grid-row: 2; }
.category-four-view-card [data-category-view-remove] { grid-column: 2; grid-row: 3; }
.category-four-view-card [data-category-view-status] { grid-column: 2; grid-row: 4; }
.category-four-view-card .button[disabled] { opacity: .45; }
.category-four-view-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 9px; }
.category-four-view-footer small { color: #828a7f; font-size: 9px; }

/* Category editing lives in a focused dialog, away from the compact category cards. */
.taxonomy-category-card [data-category-edit-open],
.taxonomy-child-chip[data-category-edit-open] { cursor: pointer; }
.taxonomy-category-card [data-category-edit-open]:focus-visible,
.taxonomy-child-chip[data-category-edit-open]:focus-visible {
  outline: 2px solid #b98400;
  outline-offset: 3px;
}
.taxonomy-modal {
  width: min(940px, calc(100vw - 32px));
  max-width: none;
  max-height: min(880px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: #232720;
  background: #fff;
  border: 1px solid #e5e8df;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(25, 31, 22, .2);
}
.taxonomy-modal[open] { display: flex; flex-direction: column; }
.taxonomy-modal::backdrop { background: rgba(21, 28, 20, .55); backdrop-filter: blur(3px); }
.taxonomy-modal-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid #e9ece5;
  background: #fff;
}
.taxonomy-modal-header > :first-child { min-width: 0; }
.taxonomy-modal-header h2,
.taxonomy-modal-header h3 { margin: 0; font-size: 20px; line-height: 1.3; }
.taxonomy-modal-header p { margin: 5px 0 0; color: #767e73; font-size: 12px; }
.taxonomy-modal-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.taxonomy-modal-actions .button { min-height: 36px; padding: 0 14px; border-radius: 8px; white-space: nowrap; }
.taxonomy-modal-actions [data-action="category-edit-close"] { min-width: 36px; padding: 0 8px; }
.taxonomy-modal :is(button, summary, [role="button"]):focus-visible {
  outline: 2px solid #a77700;
  outline-offset: 2px;
}
.taxonomy-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  display: grid;
  align-content: start;
  gap: 18px;
  scrollbar-gutter: stable;
}
.taxonomy-modal .category-editor-row,
.taxonomy-modal .category-editor-row.is-child {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: start;
  gap: 16px 24px;
  padding: 18px;
  border: 1px solid #e7eae2;
  border-radius: 10px;
  background: #fcfdfb;
}
.taxonomy-modal .category-row-form {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 116px;
  align-items: end;
  gap: 12px;
  width: 100%;
}
.taxonomy-modal .category-depth-label { grid-column: 1 / -1; color: #596653; font-size: 12px; font-weight: 650; }
.taxonomy-modal .category-row-form > input[name="name"] { min-width: 0; height: 40px; }
.taxonomy-modal .category-row-form .category-sort-field,
.taxonomy-modal .category-row-form .category-order { min-width: 0; }
.taxonomy-modal .category-row-form .category-sort-field input,
.taxonomy-modal .category-row-form .category-order input { width: 100%; }
.taxonomy-modal .category-visible,
.taxonomy-modal .category-alt-input { grid-column: 1 / -1; }
.taxonomy-modal .category-alt-input { width: 100%; height: 40px; }
.taxonomy-modal .category-row-form > button[type="submit"] { display: none; }
.taxonomy-modal .category-image-editor {
  width: 100%;
  min-width: 0;
  grid-template-columns: 92px minmax(0, 1fr);
  align-content: start;
  justify-items: start;
  gap: 8px;
  flex: initial;
}
.taxonomy-modal .category-image-preview {
  width: 92px;
  height: 92px;
  grid-row: span 2;
  border-radius: 8px;
}
.taxonomy-modal .category-image-editor small { grid-column: 1 / -1; line-height: 1.45; }
.taxonomy-modal .category-delete-button { grid-column: 1 / -1; justify-self: end; }
.taxonomy-modal .category-four-view-editor { grid-column: 1 / -1; padding: 18px; border-radius: 10px; background: #fff; }
.taxonomy-modal [data-category-view-save] { display: none; }
.taxonomy-modal .category-four-view-heading { font-size: 14px; }
.taxonomy-modal .category-four-view-heading small { font-size: 11px; }
.taxonomy-modal .category-four-view-help { margin: 10px 0 14px; font-size: 12px; }
.taxonomy-modal .category-four-view-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.taxonomy-modal .category-four-view-card { grid-template-columns: 100px minmax(0, 1fr); gap: 7px 12px; padding: 12px; }
.taxonomy-modal .category-four-view-card > b { font-size: 12px; }
.taxonomy-modal .category-four-view-preview { width: 100px; height: 110px; }
.taxonomy-modal .category-four-view-card .button { min-height: 30px; padding: 4px 10px; font-size: 11px; }
.taxonomy-modal .category-four-view-card small,
.taxonomy-modal .category-four-view-footer small { font-size: 10px; }

@media (max-width: 720px) {
  .taxonomy-modal { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .taxonomy-modal-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 14px 16px; }
  .taxonomy-modal-header > :first-child { grid-column: 1; grid-row: 1; }
  .taxonomy-modal-header h2,
  .taxonomy-modal-header h3 { font-size: 17px; }
  .taxonomy-modal-actions { grid-column: 2; grid-row: 1; justify-content: flex-end; gap: 5px; }
  .taxonomy-modal-actions .button { min-height: 32px; padding: 0 9px; font-size: 11px; }
  .taxonomy-modal-actions [data-action="category-edit-close"] { min-width: 32px; padding: 0 6px; }
  .taxonomy-modal-body { padding: 16px; scrollbar-gutter: auto; }
  .taxonomy-modal .category-editor-row,
  .taxonomy-modal .category-editor-row.is-child { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .taxonomy-modal .category-image-editor { grid-template-columns: 92px minmax(0, 1fr); }
  .taxonomy-modal .category-four-view-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .taxonomy-modal-header { grid-template-columns: minmax(0, 1fr); }
  .taxonomy-modal-header > :first-child { grid-column: 1; }
  .taxonomy-modal-actions { grid-column: 1; grid-row: 2; }
  .taxonomy-modal-body { padding: 12px; gap: 12px; }
  .taxonomy-modal .category-editor-row,
  .taxonomy-modal .category-editor-row.is-child { padding: 12px; }
  .taxonomy-modal .category-row-form { grid-template-columns: minmax(0, 1fr) 84px; gap: 8px; }
  .taxonomy-modal .category-four-view-card { grid-template-columns: 76px minmax(0, 1fr); }
  .taxonomy-modal .category-four-view-preview { width: 76px; height: 94px; }
}
.category-shared-views-panel .panel-head { flex-wrap: wrap; gap: 8px; }
.category-shared-views-panel .product-field-help { margin: 5px 0 0; }
.category-shared-view-card .admin-image-preview { width: 100%; height: 95px; }
.category-shared-view-card .admin-image-preview img { object-fit: contain; }
.category-shared-view-card small { display: block; margin-top: 6px; color: #7d867a; font-size: 10px; }
.category-shared-view-card .four-view-image-controls { margin-top: 8px; }
.category-shared-view-card .four-view-image-controls [data-upload-status] { margin-top: 0; }
.category-shared-view-card [data-remove-product-view-image]:disabled { opacity: .45; cursor: default; }
.taxonomy-create-details { position: relative; }
.taxonomy-create-details > summary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  color: #4e4630;
  background: #fff;
  border: 1px solid #e3dfcf;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 550;
  list-style: none;
  white-space: nowrap;
}
.taxonomy-create-details > summary:hover { border-color: #d6bc4f; background: #fffdf5; }
.taxonomy-create-details[open] > summary { margin-bottom: 10px; }
.taxonomy-create-details .category-create-form,
.taxonomy-create-details .scene-create-form {
  min-width: 260px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e6e8df;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(28, 32, 25, .08);
}
.taxonomy-create-details .category-create-form { grid-template-columns: minmax(180px, 1fr) auto; align-items: end; gap: 10px; }
.taxonomy-create-details .category-create-form .field,
.taxonomy-create-details .scene-create-form .field { min-width: 0; margin: 0; }
.taxonomy-settings-note { display: flex; min-height: 42px; align-items: center; gap: 8px; padding: 0 20px; color: #899080; background: #fbfcf9; border-top: 1px solid #eceee7; font-size: 10px; }
.taxonomy-settings-note > span { color: #8d977b; font-size: 14px; }
.taxonomy-orphans { grid-column: 1 / -1; padding: 12px 16px; background: #fffdf8; border: 1px dashed #e2d9bc; border-radius: 10px; }
.taxonomy-orphans h3 { margin: 0; color: #746b53; font-size: 12px; }
.taxonomy-scene-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 20px; }
.taxonomy-scene-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 164px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  grid-template-rows: 52px minmax(42px, 1fr) auto;
  align-items: start;
  gap: 8px 12px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e5e8df;
  border-radius: 11px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.taxonomy-scene-icon { width: 52px; height: 52px; grid-column: 1; grid-row: 1; }
.taxonomy-scene-icon svg { width: 23px; height: 23px; }
.taxonomy-scene-icon.tone-0 { background: #eef1e7; }
.taxonomy-scene-icon.tone-1 { background: #f0eee8; }
.taxonomy-scene-icon.tone-2 { background: #eaf0f2; }
.taxonomy-scene-icon.tone-3 { background: #f0eee8; }
.taxonomy-scene-icon.tone-4 { background: #eeebf3; }
.taxonomy-scene-info { display: grid; min-width: 0; grid-column: 1 / -1; grid-row: 2; align-content: end; gap: 3px; padding-right: 70px; }
.taxonomy-scene-info b { font-size: 13px; }
.taxonomy-scene-disabled { display: inline-flex; margin-left: 7px; padding: 1px 5px; color: #8a6e3e; background: #f9f3e6; border-radius: 4px; font-size: 9px; font-weight: 500; vertical-align: 1px; }
.scene-card-edit { z-index: 1; min-width: 0; grid-column: 3; grid-row: 2; align-self: end; }
.scene-card-edit > summary { justify-content: flex-end; color: #6f7865; font-size: 10px; white-space: nowrap; }
.scene-card-edit > summary::after { display: none; }
.scene-card-edit[open] { grid-column: 1 / -1; grid-row: 3; align-self: stretch; padding-top: 9px; border-top: 1px solid #eef0ea; }
.scene-card-edit[open] > summary { justify-content: flex-start; }
.scene-card-edit[open] > summary::after { display: block; }
.scene-card-edit .scene-settings-row { grid-template-columns: minmax(0, 1fr) 72px 90px auto auto; gap: 8px; padding: 9px 0 0; border: 0; }
.scene-card-edit .scene-settings-row .field > span { font-size: 10px; }
.scene-card-edit .scene-settings-row .field input,
.scene-card-edit .scene-settings-row .field select { min-width: 0; height: 34px; padding: 0 7px; font-size: 11px; }
.scene-card-edit .scene-settings-row > .button,
.scene-card-edit .scene-settings-row > .row-link { min-height: 32px; padding: 0 8px; font-size: 10px; }
.taxonomy-scene-help { margin-top: 12px; }
.heading-actions:has(.taxonomy-create-details) { align-items: flex-start; }

@media (max-width: 1250px) {
  .taxonomy-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .taxonomy-scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .taxonomy-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
  .taxonomy-scene-grid { gap: 12px; padding: 14px; }
  .taxonomy-create-details .category-create-form,
  .taxonomy-create-details .scene-create-form { min-width: min(300px, calc(100vw - 36px)); }
}
@media (max-width: 620px) {
  .taxonomy-category-grid,
  .taxonomy-scene-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; }
  .taxonomy-category-card { min-height: 120px; padding: 13px; }
  .taxonomy-scene-card { min-height: 140px; padding: 15px; }
  .taxonomy-create-details .category-create-form,
  .taxonomy-create-details .scene-create-form { min-width: min(280px, calc(100vw - 30px)); }
  .taxonomy-create-details .scene-create-form { grid-template-columns: minmax(0, 1fr) 70px auto; }
  .scene-card-edit .scene-settings-row { grid-template-columns: minmax(0, 1fr) 68px; }
  .scene-card-edit .scene-settings-row .scene-status { grid-column: 1 / -1; }
}

/* 工艺维护：公开内容与内部采购资料在同一视野内完成。 */
.craft-category-panel { margin-bottom: 14px; padding: 15px 18px; }
.craft-category-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.craft-category-heading h3 { margin: 0; font-size: 15px; }
.craft-category-heading p { margin: 4px 0 0; color: #697166; font-size: 12px; }
.craft-category-heading>span { color: #697166; font-size: 12px; white-space: nowrap; }
.craft-category-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.craft-category-empty { margin: 0; color: #697166; font-size: 12px; }
.craft-category-item { display: flex; align-items: center; gap: 9px; min-width: 168px; max-width: 240px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.craft-category-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 5px; }
.craft-category-item>div { display: grid; flex: 1; min-width: 0; }
.craft-category-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.craft-category-item small { color: #697166; font-size: 10px; }
.craft-category-form[hidden] { display: none; }
.craft-category-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.craft-category-form h4 { margin: 0 0 10px; font-size: 13px; }
.craft-category-form-fields { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(230px, 1.8fr) 72px; align-items: start; gap: 12px; }
.craft-category-form .field { margin: 0; gap: 5px; }
.craft-category-form .field input { min-height: 36px; }
.craft-category-form .field input[type=file] { padding: 6px; font-size: 11px; }
.craft-category-form .field small { color: #697166; font-size: 11px; }
.craft-category-preview { width: 72px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 1px dashed #cbd0c6; border-radius: 6px; color: #697166; font-size: 10px; text-align: center; }
.craft-category-preview img { width: 100%; height: 100%; object-fit: cover; }
.craft-category-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
@media (max-width: 650px) { .craft-category-form-fields { grid-template-columns: minmax(0, 1fr) 72px; } .craft-category-form-fields .field:first-child { grid-column: 1 / -1; } }
.craft-editor { gap: 12px; }
.craft-editor-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr); gap: 14px; align-items: start; }
.craft-editor .form-panel { min-height: 0; padding: 18px; }
.craft-editor .field { min-width: 0; margin: 0; gap: 5px; }
.craft-editor .field input, .craft-editor .field select { height: 36px; min-height: 36px; padding: 6px 10px; }
.craft-editor .field textarea { width: 100%; min-height: 68px; padding: 9px 10px; resize: vertical; line-height: 1.55; }
.craft-editor .field input[type="file"] { height: auto; padding: 7px; font-size: 12px; }
.craft-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.craft-panel-head h3, .craft-editor .craft-publish h3 { margin: 0; font-size: 16px; }
.craft-panel-head span { color: #6a7166; font-size: 11px; }
.craft-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.craft-fields .craft-wide { grid-column: 1 / -1; }
.craft-image-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.craft-image-section h4 { margin: 0 0 12px; font-size: 13px; font-weight: 650; }
.craft-image-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 40%, 360px); gap: 14px; align-items: start; }
.craft-image-fields, .craft-sidebar { display: grid; gap: 12px; }
.craft-image-preview { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; min-height: 0; border: 1px dashed #cbd0c6; border-radius: 8px; background: #f7f8f5; color: #677064; font-size: 12px; text-align: center; overflow: hidden; }
.craft-image-preview img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.craft-image-preview img[hidden], .craft-image-preview span[hidden] { display: none; }
.craft-image-preview span { padding: 12px; }
.craft-internal-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.craft-internal-fields .field:first-child { grid-column: 1 / -1; }
.craft-internal-fields .field:nth-child(n+4) { grid-column: 1 / -1; }
.craft-publish { display: grid; gap: 12px; }
.craft-publish p { margin: 0; color: #697166; font-size: 11px; line-height: 1.55; }
.craft-editor .form-actions { position: static; padding-top: 2px; }
@media (max-width: 1050px) { .craft-editor-layout { grid-template-columns: minmax(0, 1fr); } .craft-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .craft-fields, .craft-sidebar { grid-template-columns: minmax(0, 1fr); } .craft-image-layout { grid-template-columns: minmax(0, 1fr); } .craft-image-preview { width: 100%; max-width: 440px; } }
.pc-payment-section { margin-top: 20px; }
.pc-payment-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 14px 0 12px; }
.pc-payment-tabs button { min-height: 34px; padding: 6px 13px; border: 1px solid #e2e5df; border-radius: 7px; background: #fff; color: #3a423e; cursor: pointer; font: inherit; }
.pc-payment-tabs button[aria-pressed="true"] { border-color: #e6c64c; background: #fff4c2; color: #302a10; font-weight: 700; }
.pc-payment-tabs button:focus-visible { outline: 2px solid #bb8d00; outline-offset: 2px; }
.pc-payment-tabs [data-payment-count] { margin-left: auto; color: #68716d; font-size: 12px; }
.pc-payment-section .pc-card-head p { margin: 6px 0 0; color: #697078; font-size: 13px; font-weight: 400; }
.pc-payment-table { min-width: 1550px; }
.pc-payment-table th, .pc-payment-table td { min-width: 115px; vertical-align: top; }
.pc-payment-table :is(th, td)[data-table-column="1"] { min-width: 220px; }
.pc-payment-table tr[hidden] { display: none; }
.pc-payment-table [data-payment-empty] td { padding: 24px; color: #69716d; text-align: center; }
.pc-payment-table td.is-paid { color: #89939a; }
.pc-payment-table td.is-paid small { color: #89939a; }
.pc-payment-table td small, .pc-proc-table td small { display: block; margin-top: 4px; color: #6f7880; font-size: 11px; }
.pc-payment-cell b { display: block; white-space: nowrap; }
.pc-payment-cell.is-paid { color: #98a0a7; }
.pc-payment-cell.is-paid b, .pc-manual-products.is-paid { color: #8a9299; }
.pc-manual-products.is-paid { background: #f6f7f8; }
.pc-payment-expanded td { background: #f8f9f8; }
.pc-payment-breakdown { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 12px; }
.pc-payment-breakdown > div { padding: 12px; border: 1px solid #e4e7e5; border-radius: 9px; background: white; }
.pc-payment-breakdown > div > span { display: block; margin-bottom: 7px; color: #626b71; }
.pc-payment-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 14px 0; padding: 14px; border: 1px solid #e4e7e5; border-radius: 9px; background: white; }
.pc-payment-form label { display: grid; gap: 5px; font-size: 12px; }
.pc-payment-form input, .pc-payment-form select { min-height: 36px; padding: 6px 9px; border: 1px solid #d8dddc; border-radius: 6px; }
.pc-payment-form input[type="file"] { max-width: 230px; background: #fff; }
.pc-payment-detail a { overflow-wrap: anywhere; }
.pc-payment-form [role="alert"] { color: #b33a2b; }
.pc-payment-detail h4 { margin: 16px 0 8px; }
.pc-payment-detail .is-voided { color: #98a0a7; text-decoration: line-through; }
.pc-proc-table [data-complete-order] { margin-left: 5px; white-space: nowrap; }
@media (max-width: 800px) { .pc-payment-breakdown { grid-template-columns: 1fr; } }
.pc-purchase-filters { display: grid; grid-template-columns: minmax(220px,2fr) repeat(4,minmax(115px,1fr)) repeat(2,minmax(135px,1fr)) auto; gap: 9px; align-items: end; margin: 0 0 12px; padding: 13px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.pc-purchase-filters label { display: grid; gap: 4px; min-width: 0; color: #50564e; font-size: 12px; }
.pc-purchase-filters input,.pc-purchase-filters select { width: 100%; min-width: 0; min-height: 36px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font: inherit; }
.pc-purchase-filters [data-purchase-match] { grid-column: 1 / -1; color: #62665f; font-size: 12px; }
.pc-proc-table tr[hidden] { display: none; }
.pc-proc-table [data-filter-empty] td { padding: 22px; text-align: center; color: #6a7068; }
.pc-manual-products { padding: 14px 16px; }
.pc-manual-products .pc-manual-line { gap: 9px; margin: 10px 0; padding: 12px 14px; }
.pc-manual-products .pc-manual-grid { gap: 8px 12px; }
.pc-manual-products .pc-manual-grid label { gap: 4px; }
.pc-manual-products .pc-manual-grid input,.pc-manual-products .pc-manual-grid select,.pc-manual-products .pc-manual-size-row input { min-height: 34px; padding: 5px 8px; }
.pc-manual-products .pc-manual-supplier-sku { padding: 4px 6px; }
.pc-manual-products .pc-manual-size-row { gap: 6px; }
.pc-manual-products .pc-manual-size-row [data-size-fields] { gap: 5px; }
.pc-manual-products .pc-manual-size { width: 66px; gap: 2px; }
.pc-manual-products .pc-manual-line-foot { gap: 6px; }
.pc-manual-contract a { overflow-wrap: anywhere; }
/* The garment purchase detail is a working form: keep the controls visible without card-sized gaps. */
.pc:has(> .pc-manual-meta) .pc-area-nav { min-height: 24px; margin-bottom: 8px; }
.pc:has(> .pc-manual-meta) .pc-heading { align-items: center; gap: 12px; margin-bottom: 12px; }
.pc:has(> .pc-manual-meta) .pc-heading h2 { max-width: 100%; margin: 2px 0; font-size: clamp(20px, 1.7vw, 27px); line-height: 1.2; overflow-wrap: anywhere; }
.pc:has(> .pc-manual-meta) .pc-heading p { font-size: 12px; }
.pc:has(> .pc-manual-meta) .pc-proc-summary { gap: 10px; padding: 12px 16px; margin-bottom: 12px; }
.pc:has(> .pc-manual-meta) .pc-proc-summary > div { gap: 2px; }
.pc:has(> .pc-manual-meta) .pc-proc-summary small { font-size: 11px; }
.pc:has(> .pc-manual-meta) .pc-manual-meta { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); align-items: start; gap: 10px 18px; padding: 14px 16px; margin-bottom: 12px; }
.pc:has(> .pc-manual-meta) .pc-manual-meta > .pc-card-head { grid-column: 1 / -1; align-items: center; margin-bottom: 0; }
.pc:has(> .pc-manual-meta) .pc-manual-meta .pc-card-head h3,.pc:has(> .pc-manual-meta) .pc-manual-products .pc-card-head h3 { margin: 0; font-size: 16px; }
.pc:has(> .pc-manual-meta) .pc-manual-meta .pc-card-head > span { font-size: 11px; color: var(--pc-muted); }
.pc:has(> .pc-manual-meta) [data-manual-meta] { min-width: 0; }
.pc:has(> .pc-manual-meta) .pc-manual-meta .pc-manual-grid { gap: 6px 10px; }
.pc:has(> .pc-manual-meta) .pc-manual-meta .pc-manual-grid label { gap: 3px; }
.pc:has(> .pc-manual-meta) .pc-manual-meta .pc-manual-grid input { min-height: 34px; padding: 5px 8px; }
.pc:has(> .pc-manual-meta) .pc-manual-fees { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; margin-top: 8px; }
.pc:has(> .pc-manual-meta) .pc-manual-fees [data-add-fee] { grid-column: 2; grid-row: 1; justify-self: end; }
.pc:has(> .pc-manual-meta) .pc-manual-fees [data-fee-rows] { grid-column: 1 / -1; grid-row: 2; display: grid; gap: 6px; }
.pc:has(> .pc-manual-meta) .pc-manual-fee { gap: 6px; }
.pc:has(> .pc-manual-meta) .pc-manual-fee input { min-height: 34px; padding: 5px 8px; }
.pc:has(> .pc-manual-meta) .pc-manual-submit { margin-top: 8px; }
.pc:has(> .pc-manual-meta) .pc-manual-contract { min-width: 0; gap: 6px; margin-top: 0; padding-left: 16px; border-left: 1px solid var(--border); font-size: 12px; }
.pc:has(> .pc-manual-meta) .pc-manual-contract form { gap: 6px; }
.pc:has(> .pc-manual-meta) .pc-manual-contract form input { max-width: 100%; min-height: 34px; padding: 5px 8px; }
.pc:has(> .pc-manual-meta) .pc-manual-products { padding: 14px 16px; margin-bottom: 12px; }
.pc:has(> .pc-manual-meta) .pc-manual-products .pc-card-head { align-items: center; margin-bottom: 4px; }
.pc:has(> .pc-manual-meta) .pc-manual-products .pc-manual-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px 9px; }
.pc:has(> .pc-manual-meta) .pc-manual-products .pc-manual-line { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; margin: 0; padding: 12px 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; }
.pc:has(> .pc-manual-meta) .pc-manual-products .pc-manual-line > .pc-manual-grid { grid-column: 1 / -1; }
.pc:has(> .pc-manual-meta) .pc-manual-products .pc-manual-supplier-sku { padding: 3px 5px; }
.pc:has(> .pc-manual-meta) .pc-manual-products .pc-manual-size-row { grid-column: 1; align-items: center; gap: 6px; }
.pc:has(> .pc-manual-meta) .pc-manual-products .pc-manual-size-row > b { font-size: 12px; white-space: nowrap; }
.pc:has(> .pc-manual-meta) .pc-manual-products .pc-manual-size { width: 60px; }
.pc:has(> .pc-manual-meta) .pc-manual-products .pc-manual-size-row [name="newSize"] { width: 108px; }
.pc:has(> .pc-manual-meta) .pc-manual-products .pc-manual-line-foot { grid-column: 2; align-self: end; flex-direction: column; align-items: flex-end; gap: 5px; font-size: 12px; }
.pc:has(> .pc-manual-meta) .pc-manual-products .pc-manual-line-foot [role="alert"] { max-width: 280px; text-align: right; }
@media (max-width: 1550px) { .pc:has(> .pc-manual-meta) .pc-manual-products .pc-manual-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1120px) { .pc:has(> .pc-manual-meta) .pc-manual-meta { grid-template-columns: 1fr; } .pc:has(> .pc-manual-meta) .pc-manual-contract { padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--border); } .pc:has(> .pc-manual-meta) .pc-manual-products .pc-manual-line-foot { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; } }
@media (max-width: 760px) { .pc:has(> .pc-manual-meta) .pc-heading { align-items: flex-start; } .pc:has(> .pc-manual-meta) .pc-proc-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pc:has(> .pc-manual-meta) .pc-manual-meta .pc-manual-grid,.pc:has(> .pc-manual-meta) .pc-manual-products .pc-manual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pc:has(> .pc-manual-meta) .pc-manual-products .pc-manual-line { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .pc:has(> .pc-manual-meta) .pc-manual-meta .pc-manual-grid,.pc:has(> .pc-manual-meta) .pc-manual-products .pc-manual-grid { grid-template-columns: 1fr; } .pc:has(> .pc-manual-meta) .pc-manual-products .pc-manual-line-foot { align-items: flex-start; flex-direction: column; } .pc:has(> .pc-manual-meta) .pc-manual-fee { grid-template-columns: 1fr; } }
@media (max-width: 1500px) { .pc-purchase-filters { grid-template-columns: minmax(220px,2fr) repeat(3,minmax(120px,1fr)); } }
@media (max-width: 760px) { .pc-purchase-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } .pc-purchase-filters label:first-child { grid-column: 1 / -1; } }

.pc-finance-center .pc-heading { margin-bottom: 16px; }
.pc-finance-center .pc-heading h2 { margin-top: 0; }
.pc-finance-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.pc-finance-metrics > div { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.pc-finance-metrics span { color: #636a64; font-size: 12px; }
.pc-finance-metrics strong { font-size: clamp(19px,1.7vw,25px); line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pc-finance-metrics small { color: #68716a; font-size: 11px; }
.pc-finance-metrics a,.pc-finance-block-head a { color: #745800; text-decoration: underline; text-underline-offset: 3px; }
.pc-finance-block { margin-bottom: 18px; }
.pc-finance-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.pc-finance-block-head h3 { margin: 0; font-size: 17px; }
.pc-finance-table { min-width: 840px; }
.pc-finance-table th,.pc-finance-table td { vertical-align: top; }
.pc-finance-table td small { display: block; margin-top: 3px; color: #6f7880; font-size: 11px; }
.pc-finance-note { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #e6e2d3; border-radius: 7px; background: #fffdf5; color: #555b53; font-size: 12px; line-height: 1.6; }
.pc-finance-empty { padding: 24px; color: #646c65; }
.pc-finance-center .pc-payment-section { margin-top: 0; }
@media (max-width: 1100px) { .pc-finance-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .pc-finance-metrics { grid-template-columns: 1fr; } .pc-finance-block-head { align-items: flex-start; flex-direction: column; } }

.pc-receivable-due { display: flex; align-items: center; gap: 6px; }
.pc-receivable-summary > div:nth-child(2) strong { color: #26845a; }
.pc-receivable-summary > div:nth-child(4) strong { color: #c43d3d; }
.pc-receivable-due input { width: 148px; min-width: 0; padding: 7px 8px; font: inherit; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.pc-receivable-status { display: inline-block; white-space: nowrap; padding: 4px 8px; border-radius: 6px; background: #fff3cc; color: #755600; font-size: 12px; }
.pc-receivable-status[data-status="OVERDUE"] { background: #ffebeb; color: #b32f2f; }
.pc-receivable-status[data-status="PAID"] { background: #e6f5ed; color: #26714d; }
.pc-finance-dialog-open { overflow: hidden; }
.pc-finance-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; overflow: auto; padding: 20px; background: rgba(23, 29, 31, .55); }
.pc-finance-modal[hidden] { display: none; }
.pc-finance-dialog { width: min(680px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 24px; border-radius: 13px; background: #fff; box-shadow: 0 18px 55px rgba(0,0,0,.18); }
.pc-finance-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.pc-finance-dialog-head h3 { margin: 0 0 5px; font-size: 21px; }
.pc-finance-dialog-head p { margin: 0; color: #65706a; font-size: 12px; }
.pc-finance-dialog-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.pc-finance-dialog-grid label { display: grid; gap: 5px; color: #3f4944; font-size: 12px; }
.pc-finance-dialog-grid label.wide { grid-column: 1 / -1; }
.pc-finance-dialog-grid input,.pc-finance-dialog-grid select,.pc-finance-dialog-grid textarea { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: #202821; font: inherit; font-size: 13px; }
.pc-finance-dialog-grid input[readonly] { background: #f4f5f2; color: #4d5750; }
.pc-finance-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.pc-finance-dialog-actions [role="alert"] { flex: 1; color: #b32f2f; font-size: 12px; }
@media (max-width: 600px) { .pc-finance-dialog { padding: 18px; } .pc-finance-dialog-grid { grid-template-columns: 1fr; } .pc-finance-dialog-grid label.wide { grid-column: auto; } }
.pc-payable-summary { margin-top: 2px; }
.pc-payment-table { min-width: 1280px; }
.pc-payment-table :is(th, td)[data-table-column="1"] { min-width: 240px; }
.pc-payment-table th,.pc-payment-table td { min-width: 100px; }
.pc-payment-table .pc-receivable-due { min-width: 165px; }
.pc-payable-actions { display: flex; gap: 6px; white-space: nowrap; }
.pc-payable-overdue { color: #b33a2b; font-weight: 600; }
.pc-payable-overdue:has(+ td) { font-variant-numeric: tabular-nums; }
.pc-payment-breakdown b,.pc-payment-breakdown small { display: block; margin-top: 4px; }
.pc-payment-breakdown small { color: #6f7880; font-size: 11px; }
.pc-invoice-heading-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.pc-invoice-tabs { display: flex; gap: 14px; margin: 4px 0 18px; border-bottom: 1px solid var(--border); }
.pc-invoice-tabs button { min-height: 42px; padding: 9px 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #606961; font: inherit; font-size: 13px; cursor: pointer; }
.pc-invoice-tabs button[aria-selected="true"] { color: #22251f; border-bottom-color: #e3b900; font-weight: 700; }
.pc-invoice-tabs button:hover { color: #1e2720; }
.pc-invoice-tabs button:focus-visible,.pc-invoice-filters input:focus-visible,.pc-invoice-filters select:focus-visible { outline: 2px solid #a78000; outline-offset: 2px; }
.pc-invoice-metrics > div:nth-child(2) strong { color: #a76e00; }
.pc-invoice-metrics > div:nth-child(3) strong { color: #26714d; }
.pc-invoice-metrics > div:nth-child(4) strong { color: #b03d36; }
.pc-invoice-list { padding: 16px; }
.pc-invoice-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; margin-bottom: 15px; }
.pc-invoice-filters label { display: grid; gap: 5px; min-width: 140px; color: #5c655e; font-size: 11px; }
.pc-invoice-filters label:first-child { flex: 1 1 220px; max-width: 360px; }
.pc-invoice-filters input,.pc-invoice-filters select { min-height: 37px; width: 100%; padding: 7px 9px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: #29332d; font: inherit; font-size: 12px; }
.pc-invoice-filters [data-invoice-count] { margin-left: auto; color: #647069; font-size: 12px; }
.pc-invoice-table { min-width: 1220px; font-variant-numeric: tabular-nums; }
.pc-invoice-table th,.pc-invoice-table td { vertical-align: top; }
.pc-invoice-table td small { display: block; margin-top: 3px; color: #68736d; font-size: 11px; }
.pc-invoice-table tr[hidden] { display: none; }
.pc-invoice-table [data-invoice-empty] td { padding: 28px 16px; text-align: center; color: #68736d; }
.pc-invoice-status { display: inline-block; padding: 4px 8px; border-radius: 6px; background: #e7f4eb; color: #276c46; white-space: nowrap; font-size: 12px; }
.pc-invoice-legacy { margin-top: 15px; padding: 14px 17px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.pc-invoice-legacy summary { cursor: pointer; font-weight: 600; }
.pc-invoice-legacy p { color: #626b65; font-size: 12px; }
.pc-invoice-dialog { width: min(760px,100%); }
.pc-invoice-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; margin: 0 0 20px; }
.pc-invoice-facts > div { min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pc-invoice-facts dt { color: #66716a; font-size: 11px; }
.pc-invoice-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 13px; }
@media (max-width: 700px) { .pc-invoice-heading-actions { width: 100%; } .pc-invoice-heading-actions .pc-btn { flex: 1; } .pc-invoice-filters label { flex: 1 1 150px; } .pc-invoice-filters label:first-child { max-width: none; flex-basis: 100%; } .pc-invoice-facts { grid-template-columns: 1fr; } }
