:root {
  color-scheme: light;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --bg: #f7f1cf;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #eadfb4;
  --panel: #fffdf5;
  --panel-strong: #fff3c4;
  --brand: #f6c343;
  --brand-strong: #eab308;
  --brand-ink: #3f3313;
  --brand-soft: #ffe89a;
  --accent: #c88f12;
  --accent-soft: #fff0b8;
  --sidebar-bg: rgba(255, 250, 238, 0.97);
  --sidebar-panel: rgba(255, 245, 210, 0.72);
  --sidebar-line: #eadfb4;
  --warn-bg: #fff5df;
  --warn-line: #ebc989;
  --warn-ink: #7a5723;
  --shadow: 0 22px 64px rgba(104, 85, 18, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(246, 195, 67, 0.2), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 232, 154, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 241, 0.98), rgba(247, 241, 207, 0.98)),
    var(--bg);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.employee-app {
  min-height: 100vh;
}

.employee-login {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  margin: 0 auto;
  max-width: 1160px;
  min-height: 100vh;
  padding: 40px 24px;
}

.employee-login-copy {
  display: grid;
  gap: 14px;
}

.employee-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.employee-login-copy h1 {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  margin: 0;
}

.employee-login-copy p:last-child {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  max-width: 640px;
}

.employee-login-card {
  background: rgba(255, 253, 247, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  padding: 24px;
}

.employee-login-card label {
  display: grid;
  gap: 7px;
}

.employee-login-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.employee-login-card input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 42px;
  outline: none;
  padding: 0 12px;
}

.employee-login-card input:focus {
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 3px rgba(246, 195, 67, 0.2);
}

.employee-login-card button,
.employee-ghost-button,
.employee-module-button,
.employee-subview-button {
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
}

.employee-login-card button {
  background: linear-gradient(180deg, rgba(248, 204, 68, 0.98), rgba(234, 179, 8, 0.98));
  border: 0;
  color: var(--brand-ink);
  min-height: 42px;
}

.employee-login-card button:hover {
  filter: brightness(1.02);
}

.form-message {
  color: #9d3a2d;
  min-height: 20px;
}

.employee-workspace {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}

.employee-sidebar {
  background:
    linear-gradient(180deg, rgba(255, 250, 238, 0.99), rgba(255, 246, 220, 0.94)),
    var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-line);
  box-shadow: inset -1px 0 0 rgba(234, 223, 180, 0.78);
  color: var(--ink);
  display: grid;
  gap: 18px;
  grid-template-rows: auto 1fr auto;
  padding: 20px 16px;
  position: sticky;
  top: 0;
  min-height: 100vh;
}

.employee-brand {
  background: var(--sidebar-panel);
  border: 1px solid rgba(234, 223, 180, 0.92);
  border-radius: 18px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.employee-brand h2 {
  font-size: 28px;
  line-height: 1;
  margin: 0;
}

.employee-identity {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.employee-module-nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.employee-module-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(234, 223, 180, 0.92);
  color: inherit;
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 10px 12px;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.employee-module-button:hover {
  background: rgba(255, 245, 208, 0.92);
  border-color: rgba(246, 195, 67, 0.56);
  transform: translateX(1px);
}

.employee-module-button.is-active {
  background: var(--brand-soft);
  border-color: rgba(234, 179, 8, 0.48);
  color: var(--brand-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 247, 214, 0.56);
}

.employee-module-label {
  font-size: 14px;
}

.employee-module-meta {
  color: var(--muted);
  font-size: 11px;
  opacity: 1;
}

.employee-ghost-button {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(234, 223, 180, 0.92);
  color: inherit;
  min-height: 38px;
}

.employee-ghost-button:hover {
  background: rgba(255, 245, 208, 0.92);
  border-color: rgba(246, 195, 67, 0.56);
}

.employee-main {
  display: grid;
  gap: 14px;
  padding: 20px;
  position: relative;
}

.employee-main-head {
  align-items: start;
  background: rgba(255, 253, 247, 0.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 38px rgba(56, 48, 28, 0.08);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 20px;
}

.employee-main-head h1 {
  font-size: 30px;
  line-height: 1.05;
  margin: 0;
}

.employee-module-scope,
.employee-module-description {
  margin: 0;
}

.employee-module-scope {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.employee-module-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 10px;
}

.employee-head-actions {
  display: flex;
  gap: 8px;
}

.employee-tag {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(246, 195, 67, 0.46);
  border-radius: 999px;
  color: #735519;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 30px;
  padding: 0 12px;
  white-space: nowrap;
}

.employee-notice,
.employee-status,
.employee-subview-nav,
.employee-loader,
.employee-native-panel {
  background: rgba(255, 253, 247, 0.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 38px rgba(56, 48, 28, 0.08);
}

.employee-notice,
.employee-status {
  color: var(--warn-ink);
  padding: 12px 16px;
}

.employee-notice {
  background: var(--warn-bg);
  border-color: var(--warn-line);
}

.employee-subview-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
}

.employee-loader {
  align-items: center;
  display: grid;
  inset: 162px 20px auto 20px;
  justify-items: center;
  min-height: 320px;
  padding: 24px;
  position: absolute;
  z-index: 2;
}

.employee-loader-card {
  background: rgba(255, 253, 247, 0.98);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  max-width: 460px;
  padding: 26px 28px;
  text-align: center;
}

.employee-loader-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.employee-loader-card h2,
.employee-loader-card p {
  margin: 0;
}

.employee-loader-card p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.employee-subview-button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  min-height: 34px;
  padding: 0 14px;
}

.employee-subview-button:hover {
  background: rgba(255, 245, 208, 0.86);
  border-color: rgba(246, 195, 67, 0.52);
}

.employee-subview-button.is-active {
  background: var(--brand-soft);
  border-color: var(--brand-strong);
  color: var(--brand-ink);
}

.employee-native-panel {
  min-height: 720px;
  padding: 20px;
}

.employee-center-toolbar,
.employee-center-card,
.employee-center-metric,
.employee-center-table-wrap,
.employee-center-detail-grid {
  background: rgba(255, 253, 247, 0.96);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(56, 48, 28, 0.08);
}

.employee-center-toolbar,
.employee-center-card {
  padding: 18px 20px;
}

.employee-center-toolbar {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.employee-center-toolbar-copy {
  display: grid;
  gap: 6px;
}

.employee-center-toolbar-copy h2,
.employee-center-card-head h3 {
  margin: 0;
}

.employee-center-toolbar-copy p,
.employee-center-card-head p,
.employee-center-helper {
  color: var(--muted);
  margin: 0;
}

.employee-center-toolbar-actions,
.employee-center-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.employee-center-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.employee-center-metric-grid,
.employee-center-grid,
.employee-center-filter-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.employee-center-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.employee-center-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.employee-center-metric {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.employee-center-metric span,
.employee-center-detail-grid span {
  color: var(--muted);
  font-size: 12px;
}

.employee-center-metric strong {
  color: var(--brand-ink);
  font-size: 24px;
}

.employee-center-metric small {
  color: var(--muted);
}

.employee-center-card-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.employee-center-list {
  display: grid;
  gap: 10px;
}

.employee-center-list-row {
  align-items: center;
  background: rgba(255, 248, 225, 0.72);
  border: 1px solid rgba(246, 195, 67, 0.16);
  border-radius: 12px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.employee-center-filter-grid {
  align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.employee-center-filter-grid label {
  display: grid;
  gap: 8px;
}

.employee-center-filter-grid input,
.employee-center-filter-grid select {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  font: inherit;
  min-height: 40px;
  padding: 0 12px;
  width: 100%;
}

.employee-center-table-wrap {
  margin-bottom: 14px;
  overflow: auto;
  padding: 0;
}

.employee-center-table {
  border-collapse: collapse;
  min-width: 100%;
  width: 100%;
}

.employee-center-table th,
.employee-center-table td {
  border-bottom: 1px solid rgba(236, 228, 196, 0.92);
  font-size: 13px;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.employee-center-table th {
  background: rgba(255, 247, 214, 0.86);
  color: var(--brand-ink);
  font-weight: 800;
  position: sticky;
  top: 0;
}

.employee-center-empty-cell {
  color: var(--muted);
  text-align: center;
}

.employee-center-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.employee-inline-select {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  font: inherit;
  min-height: 34px;
  padding: 0 10px;
}

.employee-center-detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 16px;
}

.employee-center-detail-grid div {
  display: grid;
  gap: 6px;
}

.employee-center-detail-grid .is-wide {
  grid-column: 1 / -1;
}

.employee-order-filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.employee-business-metric-grid,
.employee-business-period-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.employee-business-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.employee-business-period-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.employee-business-metric,
.employee-business-period-card {
  background: rgba(255, 253, 247, 0.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(56, 48, 28, 0.08);
  display: grid;
  gap: 6px;
  padding: 16px;
}

.employee-business-metric span,
.employee-business-period-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.employee-business-metric strong,
.employee-business-period-card strong {
  color: var(--brand-ink);
  font-size: 24px;
}

.employee-business-metric small,
.employee-business-period-card small {
  color: var(--muted);
  line-height: 1.5;
}

.employee-business-metric[data-tone="positive"] strong,
.employee-business-pill[data-tone="positive"] {
  color: #1f7a45;
}

.employee-business-metric[data-tone="negative"] strong,
.employee-business-pill[data-tone="negative"] {
  color: #b42318;
}

.employee-business-metric[data-tone="muted"] strong,
.employee-business-pill[data-tone="muted"] {
  color: var(--muted);
}

.employee-business-pill {
  background: rgba(255, 248, 225, 0.9);
  border: 1px solid rgba(234, 223, 180, 0.96);
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
  white-space: nowrap;
}

.employee-business-pill[data-tone="positive"] {
  background: rgba(223, 246, 232, 0.9);
  border-color: rgba(42, 157, 91, 0.22);
}

.employee-business-pill[data-tone="negative"] {
  background: rgba(255, 235, 232, 0.9);
  border-color: rgba(180, 35, 24, 0.22);
}

.employee-business-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.employee-business-filter {
  margin-bottom: 14px;
}

.employee-business-table td,
.employee-business-table th {
  white-space: nowrap;
}

.employee-business-trend-list {
  display: grid;
  gap: 10px;
}

.employee-business-trend-row {
  align-items: center;
  background: rgba(255, 253, 247, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: 92px minmax(120px, 1fr) repeat(5, max-content);
  padding: 12px;
}

.employee-business-trend-row span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.employee-business-trend-bar {
  background: rgba(234, 223, 180, 0.55);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.employee-business-trend-bar span {
  background: #2f9e67;
  display: block;
  height: 100%;
}

.employee-business-formula-list,
.employee-business-gap-list {
  display: grid;
  gap: 8px;
}

.employee-business-formula-list p,
.employee-business-gap-list p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.employee-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.employee-group-daily-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.employee-group-daily-toolbar span {
  color: var(--muted);
  font-size: 13px;
}

.employee-group-filter-popover {
  background: rgba(255, 253, 247, 0.98);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(56, 48, 28, 0.14);
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
}

.employee-group-filter-popover header {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.employee-group-filter-popover h3,
.employee-group-filter-popover p {
  margin: 0;
}

.employee-group-filter-search {
  display: grid;
  gap: 8px;
}

.employee-group-filter-search input {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 40px;
  padding: 0 12px;
}

.employee-group-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.employee-group-filter-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-height: 300px;
  overflow: auto;
}

.employee-group-filter-list label {
  align-items: center;
  background: rgba(255, 248, 225, 0.72);
  border: 1px solid rgba(246, 195, 67, 0.16);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr auto;
  padding: 10px 12px;
}

.employee-group-filter-list small {
  color: var(--muted);
}

.employee-group-daily-scroll {
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: grab;
  max-height: 68vh;
  overflow: auto;
  position: relative;
}

.employee-group-daily-scroll:active {
  cursor: grabbing;
}

.employee-group-daily-bottom-scroll {
  background: rgba(255, 253, 247, 0.96);
  border: 1px solid var(--line);
  border-radius: 999px;
  bottom: 10px;
  box-shadow: 0 12px 28px rgba(56, 48, 28, 0.14);
  height: 18px;
  margin-top: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  position: sticky;
  z-index: 9;
}

.employee-group-daily-bottom-scroll[hidden] {
  display: none;
}

.employee-group-daily-bottom-spacer {
  height: 1px;
}

.employee-group-daily-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
  width: max-content;
}

.employee-group-daily-table th,
.employee-group-daily-table td {
  background: #fffdf7;
  border-bottom: 1px solid rgba(236, 228, 196, 0.92);
  border-right: 1px solid rgba(236, 228, 196, 0.72);
  min-width: 124px;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.employee-group-daily-table th {
  background: rgba(255, 247, 214, 0.96);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 900;
  position: sticky;
  top: 0;
  z-index: 3;
}

.employee-group-daily-table thead tr:nth-child(2) th {
  top: 39px;
}

.employee-group-daily-table .is-sticky-date {
  left: 0;
  min-width: 118px;
  position: sticky;
  z-index: 4;
}

.employee-group-daily-table td.is-sticky-date {
  background: #fff9e8;
}

.employee-group-daily-cell {
  display: grid;
  gap: 5px;
  position: relative;
}

.employee-group-daily-cell span {
  color: var(--muted);
  font-size: 11px;
}

.employee-group-daily-cell strong {
  color: #1f7a45;
  font-size: 13px;
}

.employee-group-daily-cell i {
  background: rgba(47, 158, 103, 0.22);
  border-radius: 999px;
  display: block;
  height: 6px;
}

.employee-group-daily-table td.is-zero {
  color: #a8a29e;
  opacity: 0.58;
}

.employee-group-daily-table td.is-zero .employee-group-daily-cell strong {
  color: #a8a29e;
}

.employee-order-list,
.employee-order-detail-items,
.employee-order-import-preview-list {
  display: grid;
  gap: 14px;
}

.employee-order-card {
  background: rgba(255, 253, 247, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(56, 48, 28, 0.08);
  padding: 18px;
}

.employee-order-card-main {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(280px, 2.2fr) repeat(6, minmax(100px, 1fr));
}

.employee-order-card-block {
  display: grid;
  gap: 8px;
}

.employee-order-card-products {
  min-width: 0;
}

.employee-order-card-label,
.employee-order-helper {
  color: var(--muted);
  font-size: 12px;
}

.employee-order-card-block strong {
  font-size: 15px;
  line-height: 1.45;
}

.employee-order-product-list {
  display: grid;
  gap: 10px;
}

.employee-order-product-line {
  background: rgba(255, 248, 225, 0.68);
  border: 1px solid rgba(246, 195, 67, 0.14);
  border-radius: 12px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.employee-order-product-line span {
  color: var(--muted);
  font-size: 12px;
}

.employee-order-card-status {
  min-width: 120px;
}

.employee-order-status-list,
.employee-order-dialog-actions,
.employee-order-detail-inline-meta,
.employee-order-import-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.employee-order-status-pill,
.employee-order-import-flags span {
  align-items: center;
  background: rgba(255, 247, 214, 0.82);
  border: 1px solid rgba(246, 195, 67, 0.3);
  border-radius: 999px;
  color: var(--brand-ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 30px;
  padding: 0 12px;
  white-space: nowrap;
}

.employee-order-status-pill[data-tone="success"] {
  background: #e5f3e7;
  border-color: #a8cfaf;
  color: #27503a;
}

.employee-order-status-pill[data-tone="warn"] {
  background: var(--warn-bg);
  border-color: var(--warn-line);
  color: var(--warn-ink);
}

.employee-order-status-pill[data-tone="danger"] {
  background: #fff2ef;
  border-color: #efb4a8;
  color: #7b3023;
}

.employee-order-card-actions {
  justify-items: end;
}

.employee-modal-backdrop {
  align-items: center;
  background: rgba(34, 24, 8, 0.34);
  backdrop-filter: blur(4px);
  display: grid;
  inset: 0;
  padding: 28px;
  position: fixed;
  z-index: 30;
}

.employee-modal {
  background: rgba(255, 252, 244, 0.98);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(56, 48, 28, 0.18);
  display: grid;
  gap: 18px;
  max-height: min(88vh, 980px);
  overflow: auto;
  padding: 24px;
  width: min(1120px, 100%);
}

.employee-group-detail-modal {
  width: min(1180px, 100%);
}

.employee-modal-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.employee-modal-head h3,
.employee-modal-head p {
  margin: 0;
}

.employee-modal-head p:last-child {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 8px;
}

.employee-order-detail-content {
  display: grid;
  gap: 16px;
}

.employee-order-detail-topbar,
.employee-order-import-grid,
.employee-order-detail-grid {
  display: grid;
  gap: 14px;
}

.employee-order-detail-topbar {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 14px;
}

.employee-order-detail-topbar label,
.employee-order-import-grid label,
.employee-order-detail-grid label {
  display: grid;
  gap: 8px;
}

.employee-order-detail-topbar input,
.employee-order-detail-topbar select,
.employee-order-import-grid input,
.employee-order-import-grid select,
.employee-order-detail-grid input,
.employee-order-detail-grid select,
.employee-order-detail-grid textarea {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  font: inherit;
  min-height: 40px;
  padding: 0 12px;
  width: 100%;
}

.employee-order-detail-grid textarea {
  min-height: 92px;
  padding: 10px 12px;
  resize: vertical;
}

.employee-order-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.employee-order-detail-grid .is-wide,
.employee-order-import-grid .is-wide {
  grid-column: 1 / -1;
}

.employee-order-detail-item,
.employee-order-import-preview-item {
  background: rgba(255, 248, 225, 0.62);
  border: 1px solid rgba(246, 195, 67, 0.16);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.employee-order-detail-item header,
.employee-order-import-preview-item {
  align-items: start;
}

.employee-order-detail-item header {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.employee-order-detail-item header span,
.employee-order-detail-inline-meta span,
.employee-order-import-preview-item p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.employee-order-import-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.employee-order-import-preview-item {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.employee-funds-shell {
  display: grid;
  gap: 18px;
}

.employee-funds-banner {
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  padding: 12px 16px;
}

.employee-funds-banner[data-tone="success"] {
  background: #e5f3e7;
  border: 1px solid #a8cfaf;
  color: #27503a;
}

.employee-funds-banner[data-tone="warn"] {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn-ink);
}

.employee-funds-header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.employee-funds-header-copy {
  display: grid;
  gap: 8px;
}

.employee-funds-header-copy h2,
.employee-funds-header-copy p,
.employee-funds-card h3,
.employee-funds-card p,
.employee-funds-detail-card h3,
.employee-funds-detail-card p,
.employee-funds-state-card h3,
.employee-funds-state-card p,
.employee-funds-empty h3,
.employee-funds-empty p {
  margin: 0;
}

.employee-funds-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.employee-funds-header-copy h2 {
  font-size: 28px;
  line-height: 1.06;
}

.employee-funds-header-copy p:last-child {
  color: var(--muted);
  line-height: 1.7;
  max-width: 760px;
}

.employee-funds-context-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.employee-funds-tag {
  align-items: center;
  background: rgba(255, 247, 214, 0.9);
  border: 1px solid rgba(246, 195, 67, 0.34);
  border-radius: 999px;
  color: #735519;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 30px;
  padding: 0 12px;
  white-space: nowrap;
}

.employee-funds-tab-nav {
  background: linear-gradient(180deg, rgba(255, 252, 242, 0.98), rgba(255, 243, 198, 0.94));
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
}

.employee-funds-tab-button,
.employee-funds-action-button,
.employee-funds-inline-button {
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}

.employee-funds-tab-button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  min-height: 40px;
  padding: 0 16px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.employee-funds-tab-button:hover {
  background: rgba(255, 245, 208, 0.9);
  border-color: rgba(246, 195, 67, 0.56);
  transform: translateY(-1px);
}

.employee-funds-tab-button.is-active {
  background: var(--brand-soft);
  border-color: rgba(234, 179, 8, 0.5);
  color: var(--brand-ink);
}

.employee-funds-tab-button:disabled,
.employee-funds-action-button:disabled,
.employee-funds-inline-button:disabled,
.employee-funds-bootstrap-row button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.employee-funds-content {
  display: grid;
  gap: 18px;
}

.employee-funds-card,
.employee-funds-state-card,
.employee-funds-detail-card,
.employee-funds-empty,
.employee-funds-table-wrap,
.employee-funds-surface-note {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 206, 184, 0.9);
  border-radius: 16px;
}

.employee-funds-card,
.employee-funds-state-card,
.employee-funds-detail-card,
.employee-funds-empty,
.employee-funds-surface-note {
  padding: 18px;
}

.employee-funds-shell code,
.employee-funds-state-card code,
.employee-funds-empty code {
  background: rgba(244, 238, 223, 0.82);
  border-radius: 6px;
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 0.92em;
  padding: 2px 6px;
}

.employee-funds-card-header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.employee-funds-card-header p:last-child,
.employee-funds-state-card p:last-child,
.employee-funds-detail-card p:last-child,
.employee-funds-empty p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.employee-funds-card-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.employee-funds-state-card,
.employee-funds-empty {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.employee-funds-state-card[data-tone="error"] {
  background: #fff2ef;
  border-color: #efb4a8;
  color: #7b3023;
}

.employee-funds-state-card[data-tone="loading"] {
  background: rgba(255, 249, 236, 0.88);
}

.employee-funds-state-card[data-tone="plain"] {
  background: rgba(255, 255, 255, 0.74);
}

.employee-funds-state-card-actions,
.employee-funds-inline-actions,
.employee-funds-placeholder-actions,
.employee-funds-bootstrap-toolbar,
.employee-funds-bootstrap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.employee-funds-action-button,
.employee-funds-inline-button {
  border: 1px solid var(--line);
  min-height: 40px;
  padding: 0 16px;
}

.employee-funds-action-button {
  background: linear-gradient(180deg, rgba(248, 204, 68, 0.98), rgba(234, 179, 8, 0.98));
  border-color: rgba(234, 179, 8, 0.86);
  color: var(--brand-ink);
}

.employee-funds-action-button:hover {
  filter: brightness(1.02);
}

.employee-funds-inline-button,
.employee-funds-bootstrap-toolbar .employee-funds-inline-button {
  background: #fff;
  color: var(--ink);
}

.employee-funds-inline-button:hover,
.employee-funds-bootstrap-toolbar .employee-funds-inline-button:hover {
  background: rgba(255, 245, 208, 0.9);
  border-color: rgba(246, 195, 67, 0.56);
}

.employee-funds-inline-button.is-danger {
  background: #fff4f1;
  border-color: #e3a093;
  color: #8a3326;
}

.employee-dashboard-alerts {
  background:
    linear-gradient(135deg, rgba(255, 245, 223, 0.94), rgba(255, 253, 247, 0.92)),
    var(--panel);
  border: 1px solid var(--warn-line);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(122, 87, 35, 0.1);
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
}

.employee-dashboard-alerts-head {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.employee-dashboard-alerts-head h2,
.employee-dashboard-alerts-head p {
  margin: 0;
}

.employee-dashboard-alerts-head p:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.employee-funds-alert-grid,
.employee-funds-warning-list {
  display: grid;
  gap: 12px;
}

.employee-funds-alert-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.employee-funds-alert-card,
.employee-funds-warning {
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid rgba(216, 206, 184, 0.96);
  border-radius: 15px;
  display: grid;
  gap: 7px;
  padding: 14px;
}

.employee-funds-alert-card {
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.employee-funds-alert-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.employee-funds-alert-card[data-level="warning"],
.employee-funds-warning {
  border-color: var(--warn-line);
}

.employee-funds-alert-card[data-level="danger"] {
  background: #fff2ef;
  border-color: #e3a093;
}

.employee-funds-alert-card span,
.employee-funds-warning strong {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.employee-funds-alert-card strong {
  font-size: 15px;
}

.employee-funds-alert-card p,
.employee-funds-warning p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.employee-funds-overview-grid,
.employee-funds-summary-grid,
.employee-funds-settings-grid,
.employee-funds-bootstrap-grid {
  display: grid;
  gap: 14px;
}

.employee-funds-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.employee-funds-metric {
  background: linear-gradient(180deg, rgba(244, 238, 223, 0.88), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(216, 206, 184, 0.92);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 16px;
}

.employee-funds-metric strong {
  font-size: 26px;
  line-height: 1;
}

.employee-funds-metric span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.employee-funds-metric small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.employee-funds-summary-grid .employee-funds-metric:first-child strong {
  font-size: 32px;
}

.employee-funds-split {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
}

.employee-funds-table-wrap {
  overflow: auto;
}

.employee-funds-table {
  border-collapse: collapse;
  min-width: 100%;
  width: 100%;
}

.employee-funds-table th,
.employee-funds-table td {
  border-bottom: 1px solid rgba(216, 206, 184, 0.7);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.employee-funds-table th {
  background: rgba(244, 238, 223, 0.78);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  white-space: nowrap;
  z-index: 1;
}

.employee-funds-table td {
  font-size: 14px;
  line-height: 1.6;
}

.employee-funds-table tbody tr:hover td {
  background: rgba(244, 238, 223, 0.38);
}

.employee-funds-table tbody tr:last-child td {
  border-bottom: 0;
}

.employee-funds-table .is-number {
  text-align: right;
  white-space: nowrap;
}

.employee-funds-table .is-strong {
  font-weight: 800;
}

.employee-funds-pill {
  align-items: center;
  background: rgba(255, 247, 214, 0.9);
  border: 1px solid rgba(246, 195, 67, 0.36);
  border-radius: 999px;
  color: #735519;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 26px;
  padding: 0 10px;
}

.employee-funds-pill[data-tone="warn"] {
  background: var(--accent-soft);
  border-color: rgba(181, 127, 63, 0.32);
  color: #744c1f;
}

.employee-funds-pill[data-tone="muted"] {
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(216, 206, 184, 0.8);
  color: var(--muted);
}

.employee-funds-meta-stack {
  display: grid;
  gap: 4px;
}

.employee-funds-meta-stack small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.employee-funds-surface-note {
  display: grid;
  gap: 10px;
}

.employee-funds-placeholder-list {
  color: var(--muted);
  margin: 0;
  padding-left: 18px;
}

.employee-funds-detail-card {
  display: grid;
  gap: 14px;
}

.employee-funds-detail-grid,
.employee-funds-settings-grid,
.employee-funds-bootstrap-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-funds-detail-item,
.employee-funds-settings-item {
  background: rgba(244, 238, 223, 0.54);
  border-radius: 14px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.employee-funds-detail-item span:first-child,
.employee-funds-settings-item span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.employee-funds-detail-item strong,
.employee-funds-settings-item strong {
  font-size: 15px;
  line-height: 1.5;
}

.employee-funds-link-list {
  display: grid;
  gap: 10px;
}

.employee-funds-link-item {
  background: rgba(255, 252, 244, 0.88);
  border: 1px dashed rgba(181, 127, 63, 0.34);
  border-radius: 14px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.employee-funds-link-item strong {
  font-size: 13px;
}

.employee-funds-link-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.employee-funds-bootstrap-grid,
.employee-funds-bootstrap-row {
  align-items: start;
}

.employee-funds-bootstrap-form {
  display: grid;
  gap: 16px;
}

.employee-funds-bootstrap-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-funds-bootstrap-field,
.employee-funds-bootstrap-row {
  display: grid;
  gap: 8px;
}

.employee-funds-bootstrap-field span,
.employee-funds-bootstrap-row label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.employee-funds-bootstrap-form input,
.employee-funds-bootstrap-form select,
.employee-funds-bootstrap-form textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 42px;
  outline: none;
  padding: 0 12px;
}

.employee-funds-bootstrap-form textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.employee-funds-bootstrap-form input:focus,
.employee-funds-bootstrap-form select:focus,
.employee-funds-bootstrap-form textarea:focus {
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 3px rgba(246, 195, 67, 0.2);
}

.employee-funds-bootstrap-row {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(216, 206, 184, 0.9);
  border-radius: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 16px;
}

.employee-funds-bootstrap-row label {
  display: grid;
  gap: 8px;
}

.employee-funds-bootstrap-row label[data-span="2"] {
  grid-column: span 2;
}

.employee-funds-bootstrap-row-actions {
  align-items: end;
  display: flex;
  justify-content: flex-end;
}

.employee-funds-helper-text {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.employee-funds-quick-form {
  display: grid;
  gap: 16px;
}

.employee-funds-form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.employee-funds-form-field,
.employee-funds-static-field {
  display: grid;
  gap: 8px;
}

.employee-funds-form-field[data-span="2"] {
  grid-column: span 2;
}

.employee-funds-form-field span,
.employee-funds-static-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.employee-funds-form-field input,
.employee-funds-form-field select,
.employee-funds-form-field textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 42px;
  outline: none;
  padding: 0 12px;
}

.employee-funds-form-field textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.employee-funds-form-field input:focus,
.employee-funds-form-field select:focus,
.employee-funds-form-field textarea:focus {
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 3px rgba(246, 195, 67, 0.2);
}

.employee-funds-static-field {
  background: rgba(244, 238, 223, 0.58);
  border: 1px dashed rgba(181, 127, 63, 0.28);
  border-radius: 14px;
  padding: 14px;
}

.employee-funds-static-field strong {
  font-size: 15px;
  line-height: 1.5;
}

.employee-funds-static-field p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.employee-funds-check-field {
  align-items: start;
  display: flex;
  gap: 10px;
}

.employee-funds-check-field input {
  margin-top: 3px;
}

.employee-funds-check-field span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.employee-funds-void-card {
  border-color: #e3b0a4;
  background: linear-gradient(180deg, rgba(255, 245, 241, 0.96), rgba(255, 253, 247, 0.92));
}

.employee-funds-actions-muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.employee-funds-disabled-button {
  background: rgba(255, 255, 255, 0.76);
  border: 1px dashed rgba(216, 206, 184, 0.9);
  border-radius: 12px;
  color: var(--muted);
  cursor: not-allowed;
  min-height: 40px;
  padding: 0 16px;
}

.employee-funds-hidden-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 1040px) {
  .employee-login {
    grid-template-columns: 1fr;
  }

  .employee-workspace {
    grid-template-columns: 1fr;
  }

  .employee-sidebar {
    min-height: auto;
    position: static;
  }

  .employee-loader {
    inset: 214px 0 auto 0;
  }

  .employee-native-panel {
    padding: 16px;
  }

  .employee-funds-header,
  .employee-funds-card-header {
    flex-direction: column;
  }

  .employee-funds-context-tags {
    justify-content: flex-start;
  }

  .employee-funds-summary-grid,
  .employee-funds-settings-grid,
  .employee-funds-detail-grid,
  .employee-funds-alert-grid,
  .employee-funds-bootstrap-grid,
  .employee-funds-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .employee-order-card-main {
    grid-template-columns: 1fr 1fr;
  }

  .employee-order-card-products,
  .employee-order-card-status,
  .employee-order-card-actions {
    grid-column: 1 / -1;
  }

  .employee-modal {
    max-height: 92vh;
    padding: 20px;
  }

  .employee-funds-split {
    grid-template-columns: 1fr;
  }

  .employee-funds-bootstrap-row {
    grid-template-columns: 1fr 1fr;
  }

  .employee-funds-bootstrap-row label[data-span="2"] {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .employee-main {
    padding: 16px;
  }

  .employee-main-head h1,
  .employee-funds-header-copy h2 {
    font-size: 24px;
  }

  .employee-funds-summary-grid,
  .employee-funds-settings-grid,
  .employee-funds-detail-grid,
  .employee-funds-alert-grid,
  .employee-funds-bootstrap-grid,
  .employee-funds-bootstrap-row,
  .employee-funds-form-grid {
    grid-template-columns: 1fr;
  }

  .employee-order-card-main,
  .employee-order-detail-grid,
  .employee-order-detail-topbar,
  .employee-order-import-grid,
  .employee-order-import-preview-item {
    grid-template-columns: 1fr;
  }

  .employee-modal-backdrop {
    padding: 14px;
  }

  .employee-modal {
    border-radius: 18px;
    padding: 16px;
  }

  .employee-funds-bootstrap-row label[data-span="2"] {
    grid-column: auto;
  }

  .employee-funds-form-field[data-span="2"] {
    grid-column: auto;
  }

  .employee-funds-tab-button {
    flex: 1 1 calc(50% - 10px);
  }
}
