/* Vendra · Amazon VC Fulfillment brand theme. Visual changes only. */
:root {
  --ys-primary: #5875e8;
  --ys-primary-deep: #405ecf;
  --ys-mint: #43b99f;
  --ys-gold: #e9ad42;
  --ys-ink: #182235;
  --ys-muted: #6f7d91;
  --ys-line: #e5eaf1;
  --ys-canvas: #f1f4f8;
  --ys-panel: #ffffff;
  --ys-sidebar: #101827;
  --ys-sidebar-soft: #172238;
  --el-color-primary: var(--ys-primary);
  --el-color-primary-light-3: #7e94ee;
  --el-color-primary-light-5: #a4b3f3;
  --el-color-primary-light-8: #e5e9fb;
  --el-color-primary-light-9: #f2f4fd;
  --el-color-success: #2d9d82;
  --el-color-warning: #b77a23;
  --el-color-danger: #d3545e;
  --el-border-radius-base: 8px;
  --el-border-color: #dfe5ee;
  --el-border-color-light: #e8edf3;
  --el-text-color-primary: var(--ys-ink);
  --el-text-color-regular: #4b5a70;
  --el-fill-color-light: #f6f8fb;
}

html, body, #app { min-height: 100%; }
body {
  color: var(--ys-ink);
  background: var(--ys-canvas);
  font-family: Inter, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { color: #fff; background: #758bef; }

/* 登录页 */
.login-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(93, 125, 232, .34), transparent 30%),
    radial-gradient(circle at 82% 76%, rgba(67, 185, 159, .20), transparent 29%),
    linear-gradient(140deg, #0c1424 0%, #14223b 55%, #1a2d4a 100%);
}
.login-wrap::before,
.login-wrap::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  pointer-events: none;
}
.login-wrap::before { width: 520px; height: 520px; left: -160px; top: -210px; }
.login-wrap::after { width: 680px; height: 680px; right: -260px; bottom: -360px; }
.login-language-switch { position: absolute; z-index: 2; top: 24px; right: 28px; }
.login-card {
  position: relative;
  z-index: 1;
  width: 420px;
  padding: 42px 42px 38px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(3, 10, 24, .42);
}
.login-logo { display: flex; align-items: center; gap: 14px; text-align: left; margin-bottom: 30px; }
.login-brand-mark,
.logo-badge {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #7690f1 0%, #5875e8 52%, #3fb59c 100%);
  box-shadow: 0 8px 24px rgba(64, 94, 207, .32), inset 0 1px 0 rgba(255, 255, 255, .32);
}
.login-brand-mark { width: 52px; height: 52px; flex: none; border-radius: 15px; font-size: 22px; font-weight: 700; }
.login-brand-copy { min-width: 0; }
.login-logo h1 { color: #182235; font-size: 28px; line-height: 1.15; letter-spacing: .08em; }
.login-logo p { color: #718096; font-size: 12px; margin-top: 7px; letter-spacing: .02em; }
.login-card .el-input__wrapper { min-height: 46px; border-radius: 10px; background: #f7f9fc; box-shadow: 0 0 0 1px #e3e8f0 inset; }
.login-card .el-input__wrapper.is-focus { background: #fff; box-shadow: 0 0 0 1px var(--ys-primary) inset, 0 0 0 4px rgba(88, 117, 232, .10); }
.login-card .el-button--large { height: 46px; margin-top: 4px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #627feb, #4d69dd); box-shadow: 0 9px 22px rgba(65, 94, 207, .25); letter-spacing: .18em; }

/* 应用骨架 */
.workspace-shell { background: var(--ys-canvas); }
.workspace-shell .sidebar {
  width: 204px;
  background: linear-gradient(180deg, var(--ys-sidebar) 0%, #111b2d 62%, #0d1523 100%);
  box-shadow: 8px 0 28px rgba(17, 24, 39, .10);
  z-index: 12;
}
.workspace-shell .sidebar.collapsed { width: 66px; }
.pw-shell .sidebar { width: 204px; }
.pw-shell .sidebar.collapsed { width: 66px; }
.workspace-shell .logo-bar {
  height: 58px;
  padding: 0 16px;
  gap: 11px;
  border-bottom-color: rgba(255, 255, 255, .065);
}
.workspace-shell .logo-badge { width: 32px; height: 32px; border-radius: 10px; flex: none; font-size: 14px; font-weight: 700; }
.logo-lockup { display: flex; min-width: 0; flex-direction: column; justify-content: center; line-height: 1.15; }
.logo-name { color: #f8fafc; font-size: 16px; font-weight: 700; letter-spacing: .06em; }
.logo-subtitle { margin-top: 4px; color: #71819b; font-size: 8px; font-weight: 600; letter-spacing: .13em; }
.menu-scroll { padding-top: 5px; }
.side-menu { padding-top: 6px; }
.side-menu .el-sub-menu__title,
.side-menu .el-menu-item { height: 35px; line-height: 35px; margin: 3px 10px; border-radius: 8px; }
.side-menu .el-sub-menu__title { color: #aab5c8 !important; }
.side-menu .el-sub-menu__title:hover,
.side-menu .el-menu-item:hover { color: #fff !important; background: rgba(255, 255, 255, .055) !important; }
.side-menu .el-menu--inline .el-menu-item { color: #8e9bb0 !important; }
.side-menu .el-menu--inline .el-menu-item.is-active { color: #f7f9ff !important; font-weight: 600; }
.menu-highlight-layer {
  left: 10px;
  right: 10px;
  height: 35px;
  border: 1px solid rgba(119, 144, 241, .20);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(88, 117, 232, .25), rgba(67, 185, 159, .10));
  box-shadow: inset 3px 0 0 #6f89ee, 0 8px 18px rgba(3, 9, 22, .10);
}
.menu-footer { height: 50px; margin: 0 10px 8px; padding: 0 12px; border: 0; border-radius: 8px; }
.menu-footer:hover { background: rgba(255, 255, 255, .055); }

.workspace-shell .main { height: 100vh; }
.workspace-shell .topbar {
  height: 58px;
  min-height: 58px;
  padding: 0 18px;
  gap: 16px;
  color: #cbd5e1;
  background: rgba(16, 24, 39, .985);
  border: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
}
.workspace-tabbar { height: 100%; }
.workspace-tabs { gap: 7px; padding: 8px 0; scrollbar-width: none; }
.workspace-tabs::-webkit-scrollbar { display: none; }
.workspace-tab {
  height: 36px;
  border-radius: 9px;
  color: #93a0b5;
  transition: color .18s, background .18s, border-color .18s, box-shadow .18s;
}
.workspace-tab:hover { color: #e9eef7; background: rgba(255, 255, 255, .06); }
.workspace-tab.active {
  color: #fff;
  border-color: rgba(128, 151, 241, .25);
  background: linear-gradient(135deg, rgba(88, 117, 232, .24), rgba(67, 185, 159, .10));
  box-shadow: inset 0 -2px 0 #7e96f0;
}
.workspace-tab-select { padding-left: 13px; }
.workspace-tab-close { border-radius: 6px; opacity: .62; }
.workspace-tab:hover .workspace-tab-close,
.workspace-tab.active .workspace-tab-close { opacity: 1; }
.workspace-shell .topbar .user { color: #b7c2d3; gap: 9px; }
.language-switch { display: inline-flex; height: 31px; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid rgba(255,255,255,.11); border-radius: 8px; color: #c1cbda; background: rgba(255,255,255,.045); cursor: pointer; font: inherit; font-size: 12px; transition: color .18s, border-color .18s, background .18s; }
.language-switch:hover { color: #fff; border-color: rgba(135,156,239,.38); background: rgba(88,117,232,.14); }
.language-switch:focus-visible { outline: 2px solid #8fa3f1; outline-offset: 2px; }
.language-switch-icon { display: inline-grid; width: 18px; height: 18px; place-items: center; border-radius: 5px; color: #cfd8ff; background: rgba(111,137,238,.16); font-size: 10px; font-weight: 700; }
.user-avatar { display: inline-grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; color: #eaf0ff; background: rgba(255,255,255,.07); font-size: 12px; font-weight: 700; }
.user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-shell .topbar .user .el-button { border-radius: 7px; color: #8f9bb0; }
.workspace-shell .topbar .user .el-button:hover { color: #fff; background: rgba(255,255,255,.07); }
.workspace-shell .content { padding: 16px 18px 18px; background: var(--ys-canvas); }
.pw-shell .content { padding: 16px 18px 18px; overflow: hidden; }

/* 工作区、筛选与工具栏 */
.pw-workspace {
  height: auto;
  flex: 1;
  padding: 0 18px;
  border: 1px solid rgba(222, 228, 237, .88);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(31, 45, 74, .07);
}
.warehouse-workspace,
.card {
  border-color: rgba(222, 228, 237, .92);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(31, 45, 74, .045);
}
.warehouse-workspace { padding: 0 20px 20px; }
.pw-status-tabs .el-tabs__item { height: 48px; padding: 0 16px; }
.pw-status-tabs .el-tabs__active-bar { height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--ys-primary), var(--ys-mint)); }
.pw-filters { gap: 10px 12px; padding: 15px 0 16px; }
.el-input__wrapper,
.el-select__wrapper,
.el-date-editor.el-input__wrapper {
  min-height: 36px;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 0 0 1px #e2e7ee inset;
  transition: background .18s, box-shadow .18s;
}
.el-input__wrapper:hover,
.el-select__wrapper:hover { background: #fff; box-shadow: 0 0 0 1px #cbd4e2 inset; }
.el-input__wrapper.is-focus,
.el-select__wrapper.is-focused { background: #fff; box-shadow: 0 0 0 1px var(--ys-primary) inset, 0 0 0 3px rgba(88,117,232,.09); }
.pw-composite .el-select__wrapper { border-radius: 8px 0 0 8px; }
.pw-composite .el-input__wrapper { border-radius: 0 8px 8px 0; }
.pw-panel { border-color: #e2e7ef; border-radius: 10px; box-shadow: 0 4px 15px rgba(31,45,74,.025); }
.pw-toolbar { min-height: 54px; padding: 10px 13px; border-bottom: 1px solid #edf0f4; background: linear-gradient(180deg, #fff, #fbfcfe); }

/* 按钮与状态 */
.el-button { min-height: 34px; border-radius: 8px; font-weight: 500; transition: transform .15s, color .15s, border-color .15s, background .15s, box-shadow .15s; }
.el-button:not(.is-disabled):active { transform: translateY(1px); }
.el-button--primary:not(.is-text):not(.is-link) { border-color: transparent; background: linear-gradient(135deg, #637feb, #526edf); box-shadow: 0 5px 14px rgba(69, 96, 205, .18); }
.el-button--primary:not(.is-text):not(.is-link):hover { background: linear-gradient(135deg, #708af0, #5b76e4); box-shadow: 0 7px 18px rgba(69, 96, 205, .24); }
.el-button.is-plain { background: #fff; }
.el-tag { padding-inline: 8px; border-radius: 999px; font-weight: 500; }
.tab-count { color: #59677c; background: #edf1f6; border-radius: 999px; }
.el-tabs__item.is-active .tab-count { color: #435fc9; background: #e9edfc; }

/* 数据表格 */
.el-table,
.pw-table { font-variant-numeric: tabular-nums; }
.el-table { --el-table-header-bg-color: #f6f8fb; --el-table-row-hover-bg-color: #f7f9fd; }
.el-table th.el-table__cell,
.pw-table th { color: #59677c; font-weight: 600; background: #f6f8fb; }
.el-table td.el-table__cell { border-bottom-color: #edf0f4; }
.pw-table th { padding-top: 11px; padding-bottom: 11px; border-bottom-color: #e6eaf0; }
.pw-table td { border-bottom-color: #edf0f4; }
.pw-table .pw-group td,
.pw-group {
  color: #4c5b71;
  background: linear-gradient(90deg, #f2f5fc 0%, #f7f9fd 72%, #f8fafc 100%);
}
.pw-table tbody .pw-group td:first-child { box-shadow: inset 3px 0 0 #8da1ee; }
.pw-table tr:not(.pw-group):hover td { background: #fafbfe; }
.pw-photo { width: 50px; height: 50px; border-color: #e3e8ef; border-radius: 8px; background: linear-gradient(145deg, #fbfcfe, #f3f6fa); }
.pw-name { color: #27354a; font-weight: 500; }
.pw-link, a { color: #4f6edb; }
.pw-muted, .muted { color: #758297; }
.pw-table .pw-actions { border-left-color: #edf0f4; box-shadow: -8px 0 14px -13px #53627a; }
.pw-pagination { min-height: 60px; background: #fcfdfe; }
.pw-table-scroll,
.content,
.menu-scroll { scrollbar-color: #c6cfdb transparent; scrollbar-width: thin; }
.pw-table-scroll::-webkit-scrollbar,
.content::-webkit-scrollbar { width: 8px; height: 8px; }
.pw-table-scroll::-webkit-scrollbar-thumb,
.content::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: #bcc7d5; background-clip: padding-box; }

/* 弹窗与反馈 */
.el-overlay { backdrop-filter: blur(5px); background-color: rgba(13, 20, 34, .42); }
.el-dialog,
.el-message-box { border: 1px solid rgba(255,255,255,.72); border-radius: 15px; box-shadow: 0 28px 80px rgba(20,31,52,.24); }
.el-dialog__header { padding: 20px 24px 18px; }
.el-dialog__body { padding: 22px 24px 24px; }
.el-dialog__footer { background: #fafbfd; }
.el-drawer__header { margin-bottom: 0; padding-bottom: 18px; border-bottom: 1px solid #e9edf3; }
.el-message { border: 0 !important; border-radius: 10px; box-shadow: 0 12px 36px rgba(20,31,52,.15); }
.el-alert { border-radius: 9px; }

@media (max-width: 1000px) {
  .workspace-shell .sidebar, .pw-shell .sidebar { width: 176px; }
  .workspace-shell .content, .pw-shell .content { padding: 12px; }
  .pw-workspace { padding: 0 12px; }
  .logo-subtitle { display: none; }
}
@media (max-width: 650px) {
  .workspace-shell .topbar { height: 54px; min-height: 54px; padding-inline: 8px; }
  .workspace-shell .logo-bar { height: 54px; }
  .user-name { display: none; }
  .login-card { width: calc(100vw - 32px); padding: 34px 26px 30px; }
  .login-logo { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-tab, .el-button, .el-input__wrapper, .el-select__wrapper { transition: none; }
}
