* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif; background: #f0f2f5; color: #333; }
.hidden { display: none !important; }
.text-muted { color: #999; }

.login-page {
  min-height: 100vh;
  display: flex;
  background: #f0f5ff;
}

.login-brand {
  position: relative;
  flex: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  overflow: hidden;
  background: linear-gradient(145deg, #0a1628 0%, #0d2847 40%, #1677ff 100%);
  color: #fff;
}

.login-brand-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(22,119,255,.35) 0%, transparent 45%),
    radial-gradient(circle at 60% 10%, rgba(255,215,0,.08) 0%, transparent 30%);
  pointer-events: none;
}

.login-brand-bg::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -120px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
}

.login-brand-content {
  position: relative;
  max-width: 460px;
  z-index: 1;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.login-logo-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.login-logo-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .5px;
}

.login-logo-sub {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.login-brand-desc {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,.78);
  margin-bottom: 36px;
}

.login-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: rgba(255,255,255,.88);
}

.login-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-feature-icon svg {
  width: 18px;
  height: 18px;
}

.login-panel {
  flex: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #f7f9fc;
}

.login-box {
  width: 100%;
  max-width: 400px;
  background: #fff;
  padding: 40px 36px 32px;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(22, 119, 255, .08), 0 2px 8px rgba(0,0,0,.04);
  border: 1px solid rgba(22,119,255,.06);
}

.login-box-header {
  margin-bottom: 28px;
}

.login-box-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 8px;
}

.login-box-header p {
  font-size: 14px;
  color: #8c8c8c;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 48px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fafafa;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.login-field:focus-within {
  border-color: #1677ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22,119,255,.12);
}

.login-field-icon {
  display: flex;
  color: #bfbfbf;
  flex-shrink: 0;
  transition: color .2s;
}

.login-field:focus-within .login-field-icon {
  color: #1677ff;
}

.login-field-icon svg {
  width: 18px;
  height: 18px;
}

.login-field input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #262626;
  outline: none;
  min-width: 0;
}

.login-field input::placeholder {
  color: #bfbfbf;
}

.login-submit {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  background: linear-gradient(135deg, #1677ff, #0958d9);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  box-shadow: 0 6px 20px rgba(22,119,255,.35);
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(22,119,255,.4);
}

.login-submit:active {
  transform: translateY(0);
  opacity: .92;
}

.login-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

.login-tip {
  margin-top: 24px;
  font-size: 12px;
  color: #bfbfbf;
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .login-page { flex-direction: column; }
  .login-brand { flex: none; padding: 36px 28px; }
  .login-brand-desc, .login-features { display: none; }
  .login-logo { margin-bottom: 0; }
  .login-panel { flex: 1; padding: 24px 20px 40px; }
  .login-box { padding: 32px 24px 24px; }
}

.app { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: 220px;
  flex-shrink: 0;
  height: 100vh;
  background: #001529;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.logo { padding: 20px; font-size: 18px; font-weight: 700; border-bottom: 1px solid #002140; }
.sidebar nav { flex: 1; padding: 12px 0; overflow-y: auto; min-height: 0; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 14px;
  transition: background .15s, color .15s;
}
.sidebar nav a:hover, .sidebar nav a.active { background: #1677FF; color: #fff; }
.sidebar nav a .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: .85;
}
.sidebar nav a .nav-icon svg { width: 18px; height: 18px; }
.sidebar nav a:hover .nav-icon, .sidebar nav a.active .nav-icon { opacity: 1; }
.sidebar nav a .nav-label { flex: 1; }
.nav-group { margin-bottom: 4px; }
.nav-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.nav-group-title:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-group-title .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: .85;
}
.nav-group-title .nav-icon svg { width: 18px; height: 18px; }
.nav-group-title .nav-label { flex: 1; }
.nav-group-title .nav-arrow {
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  font-size: 16px;
  line-height: 1;
  opacity: .55;
  transition: transform .2s ease;
}
.nav-group-title:hover .nav-arrow,
.nav-group-title.active .nav-arrow { opacity: .9; }
.nav-group-title.active { color: #fff; background: rgba(22, 119, 255, .25); }
.nav-group.expanded .nav-group-title .nav-arrow { transform: rotate(90deg); }
.nav-group .nav-sub {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 36px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 13px;
}
.nav-group .nav-sub .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: .85;
}
.nav-group .nav-sub .nav-icon svg { width: 18px; height: 18px; }
.nav-group .nav-sub:hover,
.nav-group .nav-sub.active { background: #1677FF; color: #fff; }
.nav-group .nav-sub:hover .nav-icon,
.nav-group .nav-sub.active .nav-icon { opacity: 1; }
.nav-group.expanded .nav-sub { display: flex; }
.logout { margin: 16px; padding: 10px; background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 8px; cursor: pointer; }

.main { flex: 1; min-width: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.header { background: #fff; padding: 16px 24px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0; }
.content { padding: 24px; flex: 1; overflow-y: auto; min-height: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.stat-card .num { font-size: 32px; font-weight: 700; color: #1677FF; }
.stat-card .label { color: #999; margin-top: 4px; font-size: 14px; }

.dash-wrap { display: flex; flex-direction: column; gap: 20px; }
.stats-rich { margin-bottom: 0; }
.stat-card-rich {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  transition: transform .15s, box-shadow .15s;
}
.stat-card-rich.dash-clickable { cursor: pointer; }
.stat-card-rich.dash-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 26px; height: 26px; }
.stat-body .num { font-size: 28px; line-height: 1.1; }
.stat-body .label { margin-top: 6px; font-size: 13px; }

.dash-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.dash-panel h3 { margin-bottom: 12px; font-size: 16px; }
.dash-summary {
  color: #8c8c8c;
  font-size: 13px;
  margin-bottom: 18px;
}
.dash-bar-item { margin-bottom: 16px; }
.dash-bar-item:last-child { margin-bottom: 0; }
.dash-bar-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  color: #595959;
}
.dash-bar-head strong { color: #262626; font-size: 14px; }
.dash-bar-head em {
  font-style: normal;
  color: #bfbfbf;
  font-weight: 400;
  margin-left: 4px;
}
.dash-bar-track {
  height: 8px;
  background: #f5f5f5;
  border-radius: 999px;
  overflow: hidden;
}
.dash-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .3s ease;
}

.dash-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dash-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fafafa;
  border-radius: 12px;
  transition: background .15s;
}
.dash-mini-card.dash-clickable { cursor: pointer; }
.dash-mini-card.dash-clickable:hover { background: #f0f5ff; }
.dash-mini-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-mini-icon svg { width: 22px; height: 22px; }
.dash-mini-num { font-size: 22px; font-weight: 700; color: #262626; line-height: 1.1; }
.dash-mini-label { font-size: 12px; color: #8c8c8c; margin-top: 4px; }
.dash-mini-sub { font-size: 11px; color: #bfbfbf; margin-top: 2px; }

.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}
.dash-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  background: #fafafa;
  border-radius: 12px;
  transition: background .15s, transform .15s;
}
.dash-quick-item.dash-clickable { cursor: pointer; }
.dash-quick-item.dash-clickable:hover {
  background: #e6f4ff;
  transform: translateY(-2px);
}
.dash-quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: #1677FF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(22,119,255,.12);
}
.dash-quick-icon svg { width: 22px; height: 22px; }
.dash-quick-label { font-size: 13px; color: #595959; text-align: center; }

.dash-sys {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 16px 20px !important;
}
.dash-sys-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #595959;
}
.dash-sys-label { color: #bfbfbf; font-size: 12px; }
.dash-sys code {
  background: #f5f5f5;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
}

@media (max-width: 960px) {
  .dash-grid-2, .dash-sys { grid-template-columns: 1fr; }
  .dash-mini-grid { grid-template-columns: 1fr; }
}

.card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 20px; }
.card h3 { margin-bottom: 16px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0f0f0; }
th { background: #fafafa; font-weight: 600; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.tag-vip { background: #fff7e6; color: #fa8c16; }
.tag-normal { background: #e6f4ff; color: #1677ff; }
.tag-stall { background: #fff0f6; color: #eb2f96; }

.btn { padding: 6px 14px; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; margin-right: 6px; }
.btn-primary { background: #1677FF; color: #fff; }
.btn-danger { background: #ff4d4f; color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

.form-row { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.form-row input, .form-row select { padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 6px; flex: 1; min-width: 120px; }

.toolbar { margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }

.admin-info { padding: 12px 16px; font-size: 12px; color: rgba(255,255,255,.7); border-top: 1px solid #002140; }
.admin-name { font-weight: 600; color: #fff; }
.admin-role { margin-top: 4px; }
.form-card textarea { width: 100%; min-height: 60px; margin: 12px 0; padding: 8px; border: 1px solid #d9d9d9; border-radius: 6px; }
.perm-group { margin: 12px 0; padding: 12px; background: #fafafa; border-radius: 8px; }
.perm-group strong { display: block; margin-bottom: 8px; }
.perm-label { display: inline-block; margin: 4px 12px 4px 0; font-size: 13px; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 520px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.modal-box.modal-wide {
  width: min(920px, 96vw);
  max-height: 94vh;
}
.quote-rows-scroll {
  overflow-x: auto;
  margin-bottom: 16px;
  border: 1px solid #eee;
  border-radius: 6px;
}
.quote-rows-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}
.quote-rows-table th,
.quote-rows-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
  text-align: left;
}
.quote-rows-table th {
  background: #f7f8fa;
  font-weight: 600;
  position: sticky;
  top: 0;
}
.quote-rows-table tbody tr:hover {
  background: #fafbfc;
}
.quote-rows-editable .quote-row-input {
  width: 100%;
  min-width: 56px;
  padding: 4px 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  box-sizing: border-box;
}
.quote-rows-editable .quote-row-sort {
  min-width: 40px;
  max-width: 52px;
}
.quote-rows-editable .quote-row-price {
  min-width: 64px;
  max-width: 88px;
  text-align: right;
}
.quote-rows-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.quote-rows-toolbar label {
  font-size: 13px;
  color: #666;
}
.quote-rows-toolbar input[type="date"],
.quote-rows-toolbar select {
  margin-left: 6px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.quote-rows-toolbar-spacer {
  flex: 1;
  min-width: 8px;
}
.quote-row-image-cell {
  min-width: 140px;
}
.quote-row-thumb {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 6px;
  background: #f5f5f5;
}
.quote-row-upload {
  margin-top: 6px;
  font-size: 12px;
  padding: 2px 8px;
}
.quote-price-adjust-label {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}
.quote-price-adjust-input {
  width: 72px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  text-align: right;
}
.quote-price-adjust-suffix {
  font-size: 13px;
  color: #666;
  margin-right: 4px;
}
.modal-box h3 { margin-bottom: 20px; font-size: 18px; }
.form-tip-compact {
  margin: -8px 0 16px;
  font-size: 12px;
  line-height: 1.5;
  color: #999;
}
.user-form-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.user-form-side .upload-group {
  margin-bottom: 0;
}
.user-form-side .upload-toolbar {
  flex-direction: column;
  align-items: stretch;
}
.user-form-side .upload-hint {
  line-height: 1.4;
}
.user-form-side .upload-url-group {
  margin-bottom: 0;
}
.user-form-main .form-group-compact {
  margin-bottom: 12px;
}
.user-form-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.user-form-options .form-group-inline {
  margin-bottom: 0;
  min-width: 160px;
}
.user-form-options .form-group-inline label {
  margin-bottom: 4px;
}
.user-form-options .form-group-inline select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
}
.form-group { margin-bottom: 16px; flex: 1; }
.form-group.flex-1 { min-width: 0; }
.form-group label:not(.checkbox-label) { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: #333; }
.form-group input,
.form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
}
.form-group textarea,
.modal-box textarea {
  width: 100%;
  min-height: 60px;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  resize: vertical;
}
.modal-box #perm-box { max-height: 240px; overflow-y: auto; margin: 12px 0; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 8px 0;
  cursor: pointer;
}

.role-check-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #fafafa;
  border-radius: 8px;
}

.role-check-group .checkbox-label {
  display: flex;
  align-items: center;
  margin: 0;
  font-weight: 400;
  line-height: 1.4;
}

.role-check-inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 10px 14px;
}

.role-check-inline .checkbox-label {
  margin: 0;
  white-space: nowrap;
}
.role-check-group .checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .user-form-layout {
    grid-template-columns: 1fr;
  }
  .modal-box.modal-wide {
    width: 100%;
  }
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.btn-default { background: #fff; border: 1px solid #d9d9d9; color: #333; }

.upload-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.upload-btn { cursor: pointer; margin: 0; }
.upload-hint { font-size: 12px; color: #999; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; min-height: 0; }
.upload-thumb { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid #f0f0f0; background: #fafafa; }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-remove { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: none; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; line-height: 20px; padding: 0; font-size: 14px; }
.upload-url-group { margin-bottom: 0 !important; }
.sub-label { display: block; margin-bottom: 6px; font-size: 12px; color: #999; font-weight: 400; }
.table-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: #f5f5f5; }
.form-tip { font-size: 12px; color: #999; margin: 0 0 12px; }
.notice-content-cell { max-width: 420px; line-height: 1.5; }

.catalog-brand-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.catalog-brand-head h4 { margin: 0; flex: 1; min-width: 120px; }
.catalog-series { margin-bottom: 16px; padding: 12px; background: #fafafa; border-radius: 8px; }
.catalog-series-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.catalog-series-head strong { margin-right: 8px; }
.catalog-models { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-model { background: #f5f5f5; color: #333; padding: 6px 10px; border-radius: 6px; }
.btn-link { background: none; border: none; color: #1677ff; cursor: pointer; font-size: 12px; padding: 0 4px; margin-left: 4px; }
.btn-link.danger { color: #ff4d4f; }

.home-menu-table input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 13px;
}
.home-menu-table input:disabled,
.home-menu-table input[readonly] {
  background: #f5f5f5;
  color: #666;
  cursor: not-allowed;
}
.home-menu-table .hm-sort { width: 56px; }
.hm-icon-cell {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.hm-icon-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.hm-upload-btn {
  align-self: flex-start;
  margin: 0;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
}
.hm-icon-preview {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: #f5f5f5;
  flex-shrink: 0;
}
.hm-icon-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
}
.home-menu-table .hm-icon { min-width: 160px; font-size: 12px; }

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  flex-wrap: wrap;
}
.pagination-info {
  font-size: 13px;
  color: #666;
}
.pagination-actions {
  display: flex;
  gap: 8px;
}
.pagination-actions .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.quote-level-tabs {
  margin-bottom: 12px;
  gap: 8px;
}
.quote-level-tabs .btn-sm {
  min-width: 96px;
}
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 8px 12px;
  background: #fafafa;
}
.stock-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
}
.stock-user-row + .stock-user-row {
  border-top: 1px solid #f0f0f0;
}
.stock-user-row input {
  flex-shrink: 0;
}
