.operator-profit-app {
  display: grid;
  gap: 18px;
}

.operator-profit-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 154px;
  padding: 30px 34px;
  overflow: hidden;
  color: #f8fafc;
  border-radius: 20px;
  background:
    radial-gradient(circle at 78% 10%, rgba(56, 189, 248, 0.24), transparent 31%),
    linear-gradient(125deg, #0f172a 0%, #172554 54%, #1e3a8a 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.operator-profit-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: 13%;
  top: -172px;
  border: 38px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.operator-profit-hero-copy,
.operator-profit-owner {
  position: relative;
  z-index: 1;
}

.operator-profit-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.operator-profit-hero h4 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.operator-profit-hero p {
  margin: 10px 0 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 14px;
}

.operator-profit-owner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 260px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(10px);
}

.operator-profit-owner div {
  display: grid;
  gap: 3px;
}

.operator-profit-owner small {
  color: rgba(226, 232, 240, 0.68);
  font-size: 11px;
}

.operator-profit-owner strong {
  font-size: 16px;
}

.operator-profit-scope-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  color: #bbf7d0;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.18);
}

.operator-profit-scope-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}

.operator-profit-stage-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
}

.operator-profit-stage-note div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.operator-profit-stage-note div span {
  padding: 4px 8px;
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  background: #fef3c7;
}

.operator-profit-stage-note p {
  margin: 0;
  color: #92400e;
  font-size: 12px;
}

.operator-profit-view-tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.operator-profit-view-tabs button {
  padding: 9px 17px;
  color: var(--muted);
  font-weight: 700;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.operator-profit-view-tabs button.is-active {
  color: #fff;
  background: #1d4ed8;
  box-shadow: 0 5px 12px rgba(29, 78, 216, 0.22);
}

.operator-profit-region-tabs {
  display: inline-flex;
  max-width: 100%;
  gap: 6px;
  margin: 18px 0 10px;
  padding: 5px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
  overflow-x: auto;
}

.operator-profit-region-tabs button {
  padding: 9px 20px;
  color: #64748b;
  font-weight: 750;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.operator-profit-region-tabs button.is-active {
  color: #fff;
  background: #1d4ed8;
  box-shadow: 0 7px 18px rgb(37 99 235 / 22%);
}

.operator-profit-eu-safety {
  display: grid;
  gap: 7px;
  margin: 0 0 18px;
  padding: 16px 18px;
  color: #334155;
  font-size: 12px;
  line-height: 1.55;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  background: #f0f9ff;
}

.operator-profit-eu-safety strong { color: #075985; }
.operator-profit-eu-safety-inline { margin: 0 0 9px; padding: 10px; }
.operator-profit-eu-grid { grid-template-columns: minmax(0, 720px); }
.operator-profit-eu-warning { margin-top: 9px; padding: 9px 10px; color: #9a3412; font-size: 11px; border-radius: 8px; background: #fff7ed; }

.operator-profit-toolbar {
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.operator-profit-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 220px;
  color: var(--muted);
  font-size: 11px;
}

.operator-profit-toolbar select {
  min-height: 36px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  background: #f8fafc;
}

.operator-profit-toolbar input[type="month"],
.operator-profit-toolbar input[type="number"] {
  height: 34px;
  padding: 0 9px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
}

.operator-profit-toolbar .operator-profit-check {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 7px;
  padding-top: 17px;
}

.operator-profit-filter-button {
  align-self: end;
  height: 34px;
  padding: 0 13px;
  color: #fff;
  font-weight: 800;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  cursor: pointer;
}

.operator-profit-periods {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 9px;
  background: #f1f5f9;
}

.operator-profit-periods button {
  padding: 8px 13px;
  color: var(--muted);
  font-weight: 700;
  border: 0;
  border-radius: 7px;
  background: transparent;
}

.operator-profit-periods button.is-active {
  color: #1d4ed8;
  background: #fff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.08);
}

.operator-profit-data-pill {
  margin-left: auto;
  padding: 7px 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  background: #f1f5f9;
}

.operator-profit-priority-board { display: grid; gap: 15px; }
.operator-profit-priority-group { display: grid; gap: 13px; min-width: 0; padding: 18px; border: 1px solid #bfdbfe; border-radius: 18px; background: linear-gradient(145deg, #eff6ff, #fff); box-shadow: 0 12px 30px rgba(37, 99, 235, 0.06); }
.operator-profit-priority-group.is-monthly { border-color: #c7d2fe; background: linear-gradient(145deg, #eef2ff, #fff); box-shadow: 0 12px 30px rgba(79, 70, 229, 0.06); }
.operator-profit-priority-group > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.operator-profit-priority-group > header div { display: grid; gap: 3px; }
.operator-profit-priority-group > header span { color: #2563eb; font-size: 12px; font-weight: 900; letter-spacing: 0.04em; }
.operator-profit-priority-group.is-monthly > header span { color: #4f46e5; }
.operator-profit-priority-group > header h5 { margin: 0; color: #0f172a; font-size: 21px; }
.operator-profit-priority-group > header em { padding: 6px 10px; color: #1e40af; font-size: 11px; font-style: normal; font-weight: 800; border-radius: 999px; background: #dbeafe; }
.operator-profit-priority-group.is-monthly > header em { color: #4338ca; background: #e0e7ff; }
.operator-profit-day-selector { display: grid; grid-template-columns: auto minmax(142px, 170px); align-items: center; gap: 4px 9px; min-width: 0; padding: 8px 10px; border: 1px solid #93c5fd; border-radius: 12px; background: rgba(255, 255, 255, 0.86); }
.operator-profit-day-selector > span { color: #1e40af !important; font-size: 11px !important; letter-spacing: 0 !important; }
.operator-profit-day-selector input { width: 100%; min-width: 0; height: 34px; padding: 0 9px; color: #0f172a; font-weight: 800; border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff; }
.operator-profit-day-selector small { grid-column: 1 / -1; color: #64748b; font-size: 9px; line-height: 1.3; text-align: right; }
.operator-profit-priority-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; }
.operator-profit-priority-metric { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 13px; min-width: 0; min-height: 184px; padding: 21px 18px; border: 2px solid color-mix(in srgb, var(--metric-bg, #dbeafe) 82%, #fff); border-radius: 16px; background: #fff; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07); }
.operator-profit-priority-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--metric-color, #2563eb); font-size: 16px; font-weight: 900; border-radius: 14px; background: var(--metric-bg, #dbeafe); }
.operator-profit-priority-metric > div:last-child { display: grid; align-content: start; min-width: 0; }
.operator-profit-priority-metric span,
.operator-profit-priority-metric > div > small { overflow-wrap: anywhere; color: #64748b; font-size: 11px; line-height: 1.5; }
.operator-profit-priority-metric > div > strong { margin: 7px 0 6px; overflow-wrap: anywhere; color: #0f172a; font-size: 34px; line-height: 1; letter-spacing: -0.035em; }
.operator-profit-priority-metric.is-blue { --metric-color: #1d4ed8; --metric-bg: #dbeafe; }
.operator-profit-priority-metric.is-navy { --metric-color: #1e3a8a; --metric-bg: #dbeafe; }
.operator-profit-priority-metric.is-cyan { --metric-color: #0e7490; --metric-bg: #cffafe; }
.operator-profit-priority-metric.is-green { --metric-color: #15803d; --metric-bg: #dcfce7; }
.operator-profit-priority-metric.is-violet { --metric-color: #7c3aed; --metric-bg: #ede9fe; }
.operator-profit-priority-breakdown { display: grid; gap: 4px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #dbeafe; }
.operator-profit-priority-breakdown > span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.operator-profit-priority-breakdown b { color: #475569; font-size: 9px; font-weight: 700; }
.operator-profit-priority-breakdown em { color: #0f172a; font-size: 10px; font-style: normal; font-weight: 900; text-align: right; }
.operator-profit-priority-breakdown small { margin-top: 3px; color: #64748b; font-size: 9px; line-height: 1.4; }

.operator-profit-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.operator-profit-admin-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.operator-profit-admin-totals article {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 19px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #f8fbff);
}
.operator-profit-admin-totals article.is-warning { border-color: #fed7aa; background: linear-gradient(145deg, #fff, #fff7ed); }
.operator-profit-admin-totals article.is-profit-margin { border-color: #bbf7d0; background: linear-gradient(145deg, #f0fdf4, #fff); }
.operator-profit-admin-totals span,
.operator-profit-admin-totals small { overflow-wrap: anywhere; color: #64748b; font-size: 11px; line-height: 1.45; }
.operator-profit-admin-totals strong { color: #0f172a; font-size: 25px; }

.operator-profit-shipping-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.operator-profit-shipping-panel { min-width: 0; display: grid; gap: 13px; padding: 18px; border: 1px solid #bbf7d0; border-radius: 15px; background: linear-gradient(145deg, #f0fdf4, #fff); }
.operator-profit-shipping-panel.is-high-cost { border-color: #bfdbfe; background: linear-gradient(145deg, #eff6ff, #fff); }
.operator-profit-shipping-panel.is-high-cost header span { color: #1d4ed8; }
.operator-profit-shipping-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.operator-profit-shipping-panel header span { color: #047857; font-size: 11px; font-weight: 900; }
.operator-profit-shipping-panel h5 { margin: 4px 0 0; font-size: 16px; }
.operator-profit-shipping-panel p { margin: 5px 0 0; color: #64748b; font-size: 11px; }
.operator-profit-shipping-panel header button { padding: 8px 11px; color: #047857; font-size: 11px; font-weight: 800; border: 1px solid #a7f3d0; border-radius: 8px; background: #fff; cursor: pointer; }
.operator-profit-shipping-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.operator-profit-shipping-metrics.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.operator-profit-shipping-metrics article { min-width: 0; display: grid; gap: 5px; padding: 12px; border: 1px solid #dbe3ef; border-radius: 11px; background: #fff; }
.operator-profit-shipping-metrics span,
.operator-profit-shipping-metrics small { color: #64748b; font-size: 10px; }
.operator-profit-shipping-metrics strong { color: #0f172a; font-size: 19px; overflow-wrap: anywhere; }
.operator-profit-shipping-metrics .is-profit { border-color: #86efac; background: #f0fdf4; }
.operator-profit-shipping-metrics .is-profit strong { color: #15803d; }
.operator-profit-shipping-metrics .is-loss { border-color: #fecaca; background: #fef2f2; }
.operator-profit-shipping-metrics .is-loss strong { color: #dc2626; }
.operator-profit-shipping-metrics .is-even { border-color: #cbd5e1; background: #f8fafc; }
.operator-profit-shipping-metrics .is-pending { background: #f8fafc; }

.operator-profit-sales-search { display: grid; gap: 14px; padding: 19px; border: 1px solid #bfdbfe; border-radius: 15px; background: linear-gradient(145deg, #eff6ff, #fff); }
.operator-profit-sales-search header span { color: #1d4ed8; font-size: 11px; font-weight: 900; }
.operator-profit-sales-search h5 { margin: 4px 0 0; font-size: 17px; }
.operator-profit-sales-search header p,
.operator-profit-sales-placeholder { margin: 5px 0 0; color: #64748b; font-size: 11px; }
.operator-profit-sales-search-form { display: grid; grid-template-columns: 120px minmax(190px, 1fr) 160px 160px auto; gap: 9px; align-items: end; }
.operator-profit-sales-search-form label { display: grid; gap: 5px; color: #64748b; font-size: 11px; }
.operator-profit-sales-search-form input,
.operator-profit-sales-search-form select { width: 100%; height: 37px; min-width: 0; padding: 0 9px; border: 1px solid #bfdbfe; border-radius: 8px; background: #fff; }
.operator-profit-sales-search-form button { height: 37px; padding: 0 16px; color: #fff; font-weight: 800; border: 0; border-radius: 8px; background: #1d4ed8; cursor: pointer; }
.operator-profit-sales-search-form button:disabled { cursor: wait; opacity: 0.58; }
.operator-profit-sales-error { padding: 9px 11px; color: #b91c1c; font-size: 11px; border-radius: 8px; background: #fee2e2; }
.operator-profit-sales-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr); gap: 12px; }
.operator-profit-sales-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.operator-profit-sales-metrics article { display: grid; gap: 5px; min-width: 0; padding: 13px; border: 1px solid #dbeafe; border-radius: 10px; background: #fff; }
.operator-profit-sales-metrics article.is-isolated { border-color: #fed7aa; background: #fff7ed; }
.operator-profit-sales-metrics span,
.operator-profit-sales-metrics small { color: #64748b; font-size: 10px; }
.operator-profit-sales-metrics strong { overflow-wrap: anywhere; color: #0f172a; font-size: 19px; }
.operator-profit-sales-trend { min-width: 0; padding: 13px; border: 1px solid #dbeafe; border-radius: 10px; background: #fff; }
.operator-profit-sales-trend > strong { font-size: 11px; }
.operator-profit-sales-trend > p { margin: 18px 0 6px; color: #64748b; font-size: 11px; text-align: center; }
.operator-profit-sales-bars { display: flex; align-items: end; gap: 6px; min-height: 115px; margin-top: 9px; overflow-x: auto; }
.operator-profit-sales-bars > div { position: relative; display: flex; align-items: center; flex: 1 0 26px; flex-direction: column; justify-content: end; height: 104px; }
.operator-profit-sales-bars i { width: 17px; height: var(--height); min-height: 4px; border-radius: 4px 4px 0 0; background: linear-gradient(#38bdf8, #2563eb); }
.operator-profit-sales-bars span { margin-top: 4px; color: #94a3b8; font-size: 8px; white-space: nowrap; }
.operator-profit-sales-bars b { position: absolute; top: 0; display: none; padding: 3px 5px; color: #fff; font-size: 9px; white-space: nowrap; border-radius: 5px; background: #0f172a; z-index: 2; }
.operator-profit-sales-bars > div:hover b { display: block; }

.operator-profit-admin-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.7fr) minmax(260px, 0.7fr);
  gap: 12px;
}
.operator-profit-admin-grid > article { min-width: 0; min-height: 290px; padding: 19px; border: 1px solid #dbe3ef; border-radius: 14px; background: #fff; }
.operator-profit-admin-grid header span { color: #2563eb; font-size: 11px; font-weight: 800; }
.operator-profit-admin-grid h5 { margin: 5px 0 0; font-size: 16px; }
.operator-profit-admin-bars { display: flex; align-items: end; gap: 5px; height: 220px; margin-top: 18px; padding-bottom: 25px; overflow-x: auto; border-bottom: 1px solid #dbe3ef; }
.operator-profit-admin-bars > i { position: relative; flex: 1 0 18px; min-width: 12px; height: var(--height); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #38bdf8, #2563eb); }
.operator-profit-admin-bars em { position: absolute; top: -17px; left: 50%; color: #2563eb; font-size: 9px; font-style: normal; transform: translateX(-50%); }
.operator-profit-admin-bars small { position: absolute; bottom: -25px; left: 50%; color: #94a3b8; font-size: 8px; white-space: nowrap; transform: translateX(-50%) rotate(-38deg); transform-origin: center; }
.operator-profit-admin-bars p { margin: auto; color: #64748b; font-size: 12px; }
.operator-profit-admin-ranking ol { display: grid; gap: 7px; padding: 0; margin: 15px 0 0; list-style: none; }
.operator-profit-admin-ranking li { display: grid; grid-template-columns: 24px 1fr auto; gap: 7px; align-items: center; padding: 9px; border-radius: 8px; background: #f8fafc; }
.operator-profit-admin-ranking li b { display: grid; place-items: center; width: 22px; height: 22px; color: #1d4ed8; font-size: 10px; border-radius: 6px; background: #dbeafe; }
.operator-profit-admin-ranking li strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.operator-profit-admin-ranking li span { color: #64748b; font-size: 10px; white-space: nowrap; }
.operator-profit-admin-ranking li.is-empty { display: block; color: #64748b; font-size: 12px; text-align: center; }

.operator-profit-metric {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 118px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.operator-profit-metric-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: var(--metric-color, #2563eb);
  font-size: 14px;
  font-weight: 900;
  border-radius: 12px;
  background: var(--metric-bg, #dbeafe);
}

.operator-profit-metric > div:last-child {
  display: grid;
  min-width: 0;
}

.operator-profit-metric span,
.operator-profit-metric small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.operator-profit-metric strong {
  margin: 4px 0 3px;
  font-size: 25px;
  line-height: 1;
}

.operator-profit-metric.is-green { --metric-color: #15803d; --metric-bg: #dcfce7; }
.operator-profit-metric.is-violet { --metric-color: #7c3aed; --metric-bg: #ede9fe; }
.operator-profit-metric.is-orange { --metric-color: #c2410c; --metric-bg: #ffedd5; }
.operator-profit-metric.is-cyan { --metric-color: #0e7490; --metric-bg: #cffafe; }
.operator-profit-metric.is-navy { --metric-color: #1e3a8a; --metric-bg: #dbeafe; }
.operator-profit-metric.is-indigo { --metric-color: #4338ca; --metric-bg: #e0e7ff; }
.operator-profit-metric.is-slate { --metric-color: #475569; --metric-bg: #e2e8f0; }
.operator-profit-metric.is-actionable { cursor: pointer; }
.operator-profit-metric.is-actionable:hover,
.operator-profit-metric.is-actionable:focus-visible { border-color: var(--metric-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--metric-bg) 75%, transparent); outline: none; }

.operator-profit-series-panel { display: grid; gap: 13px; min-width: 0; padding: 18px; border: 1px solid #c7d2fe; border-radius: 15px; background: linear-gradient(145deg, #eef2ff, #fff); }
.operator-profit-series-panel > header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.operator-profit-series-panel > header span { color: #4338ca; font-size: 12px; font-weight: 900; }
.operator-profit-series-panel > header h5 { margin: 4px 0 0; color: #111827; font-size: 20px; }
.operator-profit-series-panel > header p { margin: 5px 0 0; color: #64748b; font-size: 11px; }
.operator-profit-series-panel > header em { flex: none; padding: 5px 8px; color: #4338ca; font-size: 10px; font-style: normal; border-radius: 999px; background: #e0e7ff; }
.operator-profit-series-formula,
.operator-profit-series-risk { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; color: #334155; font-size: 11px; line-height: 1.55; border: 1px solid #c7d2fe; border-radius: 10px; background: #fff; }
.operator-profit-series-formula strong,
.operator-profit-series-risk strong { flex: none; color: #3730a3; }
.operator-profit-series-risk { border-color: #fde68a; background: #fffbeb; }
.operator-profit-series-risk strong { color: #b45309; }
.operator-profit-series-table { min-width: 0; overflow-x: auto; border: 1px solid #e0e7ff; border-radius: 10px; background: #fff; }
.operator-profit-series-table table { width: 100%; min-width: 1220px; table-layout: fixed; border-collapse: collapse; }
.operator-profit-series-table col.is-series { width: 210px; }
.operator-profit-series-table col.is-income-cost { width: 335px; }
.operator-profit-series-table col.is-deductions { width: 310px; }
.operator-profit-series-table col.is-result { width: 230px; }
.operator-profit-series-table col.is-action { width: 130px; }
.operator-profit-series-table th,
.operator-profit-series-table td { padding: 12px; font-size: 11px; text-align: left; vertical-align: top; white-space: normal; border-bottom: 1px solid #eef2ff; }
.operator-profit-series-table th { color: #64748b; font-size: 10px; background: #f8fafc; }
.operator-profit-series-name > strong { display: block; color: #172554; font-size: 12px; line-height: 1.45; }
.operator-profit-series-name > small { display: block; margin-top: 5px; color: #94a3b8; font-size: 9px; }
.operator-profit-series-ledger,
.operator-profit-series-result { display: grid; gap: 6px; min-width: 0; }
.operator-profit-series-ledger > span,
.operator-profit-series-result > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; padding: 5px 7px; border-radius: 7px; background: #f8fafc; }
.operator-profit-series-ledger b,
.operator-profit-series-result b { min-width: 0; color: #64748b; font-size: 10px; font-weight: 700; }
.operator-profit-series-ledger b small { display: block; margin-top: 2px; color: #94a3b8; font-size: 8px; font-weight: 600; line-height: 1.35; }
.operator-profit-series-ledger strong,
.operator-profit-series-result strong { flex: none; color: #0f172a; font-size: 11px; }
.operator-profit-series-ledger .is-sales { background: #eff6ff; }
.operator-profit-series-ledger .is-income { background: #ecfeff; }
.operator-profit-series-ledger .is-cost { background: #fff7ed; }
.operator-profit-series-ledger .is-promotion { background: #f5f3ff; }
.operator-profit-series-ledger .is-actual { margin-left: 8px; background: #f0fdf4; }
.operator-profit-series-ledger .is-estimated { margin-left: 8px; background: #fffbeb; }
.operator-profit-series-ledger .is-refund,
.operator-profit-series-ledger .is-penalty,
.operator-profit-series-ledger .is-return-label { background: #fff1f2; }
.operator-profit-series-cost-breakdown { display: grid; gap: 5px; padding: 7px; border: 1px solid #fed7aa; border-radius: 9px; background: #fffaf5; }
.operator-profit-series-cost-breakdown > span { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; padding: 5px 7px; border-radius: 6px; background: #fff; }
.operator-profit-series-cost-breakdown > span b { line-height: 1.35; }
.operator-profit-series-cost-breakdown .is-cost-total,
.operator-profit-series-cost-breakdown .is-adopted-cost { background: #ffedd5; }
.operator-profit-series-cost-breakdown .is-cost-component { margin-left: 10px; }
.operator-profit-series-cost-breakdown .is-actual-label { color: #047857; background: #ecfdf5; }
.operator-profit-series-cost-breakdown .is-estimated-tail { color: #b45309; background: #fffbeb; }
.operator-profit-series-cost-breakdown .is-logistics-total { color: #0f766e; background: #ecfeff; }
.operator-profit-series-cost-breakdown .is-other-cost { color: #7c3aed; background: #f5f3ff; }
.operator-profit-series-ledger > span.is-zero-amount,
.operator-profit-series-cost-breakdown > span.is-zero-amount { color: #475569; background: #f8fafc; }
.operator-profit-series-result > span:first-child { padding: 8px; background: #f0fdf4; }
.operator-profit-series-result small { padding: 3px 7px; color: #64748b; font-size: 9px; }
.operator-profit-series-result strong.is-profit { color: #166534; }
.operator-profit-series-result strong.is-loss { color: #b91c1c; }
.operator-profit-series-result strong.is-pending { color: #64748b; }
.operator-profit-series-table td:last-child { vertical-align: middle; text-align: center; }
.operator-profit-series-table button { padding: 6px 9px; color: #3730a3; font-size: 10px; font-weight: 800; border: 1px solid #c7d2fe; border-radius: 7px; background: #eef2ff; cursor: pointer; }
.operator-profit-series-empty { padding: 24px; color: #64748b; font-size: 11px; text-align: center; border: 1px dashed #c7d2fe; border-radius: 10px; background: #fff; }
.operator-profit-sku-panel { display: grid; gap: 12px; min-width: 0; padding: 18px; border: 1px solid #bbf7d0; border-radius: 15px; background: linear-gradient(145deg,#f0fdf4,#fff); }
.operator-profit-sku-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.operator-profit-sku-panel > header span { color: #047857; font-size: 12px; font-weight: 900; }
.operator-profit-sku-panel > header h5 { margin: 4px 0 0; color: #111827; font-size: 20px; }
.operator-profit-sku-panel > header p { margin: 5px 0 0; color: #64748b; font-size: 11px; }
.operator-profit-sku-panel > header em { padding: 5px 8px; border-radius: 999px; background: #dcfce7; color: #047857; font-size: 10px; font-style: normal; }
.operator-profit-sku-table { max-height: 560px; overflow: auto; border: 1px solid #d1fae5; border-radius: 10px; background: #fff; }
.operator-profit-sku-table table { width: 100%; min-width: 820px; border-collapse: collapse; }
.operator-profit-sku-table th,
.operator-profit-sku-table td { padding: 10px 12px; border-bottom: 1px solid #ecfdf5; text-align: left; }
.operator-profit-sku-table th { position: sticky; top: 0; z-index: 1; background: #f0fdf4; color: #64748b; font-size: 10px; }
.operator-profit-sku-table td > small { display: block; color: #94a3b8; font-size: 9px; }
.operator-profit-sku-product { display: flex; align-items: center; gap: 9px; }
.operator-profit-sku-product > img,
.operator-profit-sku-product > span { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 8px; object-fit: cover; }
.operator-profit-sku-product > span { display: grid; place-items: center; background: #e2e8f0; color: #64748b; font-size: 9px; }
.operator-profit-sku-product strong,
.operator-profit-sku-product small { display: block; }
.operator-profit-sku-product small { margin-top: 2px; color: #64748b; font-size: 9px; }
.operator-profit-sku-table strong.is-profit { color: #166534; }
.operator-profit-sku-table strong.is-loss { color: #b91c1c; }
.operator-profit-sku-table strong.is-pending { color: #64748b; }

.operator-profit-charts {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  gap: 13px;
}

.operator-profit-chart-card {
  min-width: 0;
  min-height: 310px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel);
}

.operator-profit-chart-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.operator-profit-chart-card header span {
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
}

.operator-profit-chart-card h5,
.operator-profit-import-heading h5,
.operator-profit-import-card h5,
.operator-profit-empty-page h5 {
  margin: 5px 0 0;
  font-size: 17px;
}

.operator-profit-chart-card header em {
  padding: 5px 8px;
  color: #64748b;
  font-size: 10px;
  font-style: normal;
  border-radius: 999px;
  background: #f1f5f9;
}

.operator-profit-chart-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 238px;
  color: var(--muted);
}

.operator-profit-chart-empty strong {
  margin-top: 15px;
  color: #334155;
}

.operator-profit-chart-empty span {
  margin-top: 5px;
  font-size: 12px;
}

.operator-profit-trend-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 14px 0 2px;
  color: #475569;
  font-size: 11px;
}

.operator-profit-trend-legend span { display: inline-flex; align-items: center; gap: 6px; }
.operator-profit-trend-legend span::before { width: 19px; height: 3px; border-radius: 999px; background: currentColor; content: ""; }
.operator-profit-trend-legend .is-sales-line { color: #2563eb; }
.operator-profit-trend-legend .is-profit-line { color: #16a34a; }

.operator-profit-real-line-chart { width: 100%; overflow-x: auto; overflow-y: hidden; }
.operator-profit-real-line-chart svg { display: block; width: 100%; height: 228px; }
.operator-profit-real-line-chart text { fill: #64748b; font-size: 11px; }
.operator-profit-real-line-chart .is-scale { font-size: 10px; }
.operator-profit-real-line-chart .is-zero { stroke: #cbd5e1; stroke-width: 1; stroke-dasharray: 4 4; }
.operator-profit-real-line-chart path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.operator-profit-real-line-chart path.is-sales-line,
.operator-profit-real-line-chart circle.is-sales-line { stroke: #2563eb; }
.operator-profit-real-line-chart path.is-profit-line,
.operator-profit-real-line-chart circle.is-profit-line { stroke: #16a34a; }
.operator-profit-real-line-chart circle { fill: #fff; stroke-width: 3; }

.operator-profit-real-order-bars {
  display: flex;
  align-items: end;
  gap: 7px;
  height: 232px;
  margin-top: 12px;
  padding: 24px 2px 0;
  overflow-x: auto;
  border-bottom: 1px solid #cbd5e1;
}

.operator-profit-real-order-bars > div {
  display: grid;
  flex: 1 0 24px;
  grid-template-rows: 18px minmax(0, 1fr) 24px;
  min-width: 24px;
  height: 100%;
  align-items: end;
  justify-items: center;
}

.operator-profit-real-order-bars b { color: #2563eb; font-size: 9px; }
.operator-profit-real-order-bars i { width: min(100%, 28px); height: var(--height); min-height: 4px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #38bdf8, #2563eb); }
.operator-profit-real-order-bars span { align-self: center; color: #64748b; font-size: 9px; white-space: nowrap; transform: rotate(-38deg); }

.operator-profit-chart-lines {
  position: relative;
  width: min(92%, 560px);
  height: 95px;
  border-bottom: 1px solid #dbe3ef;
  background: repeating-linear-gradient(to bottom, #fff 0 30px, #edf2f7 31px 32px);
}

.operator-profit-chart-lines i {
  position: absolute;
  bottom: 8px;
  width: 26%;
  height: 2px;
  transform-origin: left center;
  background: #93c5fd;
}

.operator-profit-chart-lines i:nth-child(1) { left: 3%; transform: rotate(-8deg); }
.operator-profit-chart-lines i:nth-child(2) { left: 28%; bottom: 26px; transform: rotate(13deg); }
.operator-profit-chart-lines i:nth-child(3) { left: 53%; bottom: 19px; transform: rotate(-16deg); }
.operator-profit-chart-lines i:nth-child(4) { left: 77%; bottom: 39px; transform: rotate(10deg); width: 18%; }

.operator-profit-mini-bars {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 92px;
}

.operator-profit-mini-bars i {
  width: 18px;
  height: 30%;
  border-radius: 5px 5px 2px 2px;
  background: #bfdbfe;
}
.operator-profit-mini-bars i:nth-child(2) { height: 55%; }
.operator-profit-mini-bars i:nth-child(3) { height: 42%; }
.operator-profit-mini-bars i:nth-child(4) { height: 75%; }
.operator-profit-mini-bars i:nth-child(5) { height: 62%; }
.operator-profit-mini-bars i:nth-child(6) { height: 88%; }

.operator-profit-import-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel);
}

.operator-profit-import-heading > div:first-child > span {
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
}

.operator-profit-import-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.operator-profit-progress {
  display: grid;
  text-align: right;
}

.operator-profit-progress strong {
  font-size: 20px;
}

.operator-profit-progress span {
  color: var(--muted);
  font-size: 11px;
}

.operator-profit-import-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.operator-profit-source-shortcuts { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 10px 12px; border: 1px solid #dbeafe; border-radius: 12px; background: #eff6ff; }
.operator-profit-source-shortcuts strong { margin-right: 3px; color: #334155; font-size: 11px; }
.operator-profit-source-shortcuts button { padding: 6px 9px; color: #1d4ed8; font-size: 11px; font-weight: 800; border: 1px solid #bfdbfe; border-radius: 8px; background: #fff; cursor: pointer; }
.operator-profit-source-shortcuts button:hover { border-color: #2563eb; }

.operator-profit-import-target {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 18px;
  align-items: end;
  padding: 20px 24px;
  color: #fff;
  border: 1px solid #1d4ed8;
  border-radius: 15px;
  background: linear-gradient(135deg, #172554, #1d4ed8);
  box-shadow: 0 12px 26px rgba(29, 78, 216, 0.13);
}
.operator-profit-import-target.is-self { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.operator-profit-import-target > div > span { color: #93c5fd; font-size: 11px; font-weight: 900; }
.operator-profit-import-target h5 {
  margin: 5px 0 0;
  color: #fff !important;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.55);
}
.operator-profit-import-target p { margin: 6px 0 0; color: #dbeafe; font-size: 11px; line-height: 1.55; }
.operator-profit-import-target > em { padding: 7px 10px; color: #166534; font-size: 10px; font-style: normal; font-weight: 900; border-radius: 999px; background: #dcfce7; }
.operator-profit-import-target label { display: grid; gap: 6px; min-width: 0; }
.operator-profit-import-target label > span { color: #dbeafe; font-size: 11px; font-weight: 800; }
.operator-profit-import-target label b { color: #fde68a; }
.operator-profit-import-target select { width: 100%; height: 40px; min-width: 0; padding: 0 11px; color: #0f172a; border: 1px solid #93c5fd; border-radius: 9px; background: #fff; }
.operator-profit-import-target label small { color: #bfdbfe; font-size: 10px; line-height: 1.45; }

.operator-profit-store-settings,
.operator-profit-history {
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel);
}

.operator-profit-store-settings header span,
.operator-profit-history header span {
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
}

.operator-profit-store-settings h5,
.operator-profit-history h5 {
  margin: 5px 0 0;
  font-size: 17px;
}

.operator-profit-store-settings header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.operator-profit-store-form {
  display: grid;
  grid-template-columns: minmax(105px, 0.5fr) minmax(145px, 0.65fr) minmax(200px, 1.1fr) minmax(125px, 0.55fr) minmax(125px, 0.55fr) minmax(165px, 0.75fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
}

.operator-profit-store-form label { display: grid; gap: 5px; }
.operator-profit-store-form label span { color: #64748b; font-size: 11px; }
.operator-profit-store-form input,
.operator-profit-store-form select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}
.operator-profit-store-form button,
.operator-profit-file-actions > button {
  height: 38px;
  padding: 0 15px;
  color: #fff;
  font-weight: 800;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  cursor: pointer;
}
.operator-profit-store-form button { min-width: 76px; white-space: nowrap; }
.operator-profit-store-form button:disabled,
.operator-profit-file-actions > button:disabled { opacity: 0.45; cursor: not-allowed; }
.operator-profit-store-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.operator-profit-store-list > span { display: flex; align-items: center; gap: 7px; padding: 6px 9px; color: #64748b; font-size: 11px; border-radius: 999px; background: #f1f5f9; }
.operator-profit-store-list strong { color: #334155; }
.operator-profit-store-list em { font-style: normal; }
.operator-profit-store-settings.is-readonly { border-color: #bfdbfe; background: #f8fbff; }
.operator-profit-store-readonly { margin-top: 14px; padding: 10px 12px; border: 1px solid #dbeafe; border-radius: 10px; background: #fff; }
.operator-profit-store-readonly summary { color: #1d4ed8; font-size: 11px; font-weight: 900; cursor: pointer; }
.operator-profit-store-readonly .operator-profit-store-list { margin-top: 10px; }
.operator-profit-store-placeholder { margin: 14px 0 0; padding: 10px 12px; color: #475569; font-size: 11px; border-radius: 9px; background: #f1f5f9; }
.operator-profit-store-placeholder.is-error { color: #b91c1c; background: #fef2f2; }

.operator-profit-import-card {
  min-height: 250px;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.operator-profit-import-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.08);
}

.operator-profit-import-card.has-file {
  border-color: #86efac;
  background: linear-gradient(180deg, #fff, #f0fdf4);
}

.operator-profit-import-card.is-dragging {
  transform: translateY(-2px) scale(1.01);
  border: 2px dashed #2563eb;
  background: #eff6ff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.16);
}

.operator-profit-import-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.operator-profit-source-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #1d4ed8;
  font-weight: 900;
  border-radius: 12px;
  background: #dbeafe;
}

.operator-profit-import-card header em {
  padding: 5px 8px;
  color: #92400e;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  border-radius: 999px;
  background: #fef3c7;
}

.operator-profit-import-card.is-ready header em { color: #166534; background: #dcfce7; }
.operator-profit-import-card.is-waiting { opacity: 0.75; }

.operator-profit-import-card h5 {
  margin-top: 18px;
}

.operator-profit-import-card > p {
  min-height: 36px;
  margin: 7px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.operator-profit-rule-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 24px;
  margin-bottom: 9px;
}

.operator-profit-rule-tags span {
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 5px;
}

.operator-profit-rule-tags .is-blue { color: #1d4ed8; background: #dbeafe; }
.operator-profit-rule-tags .is-green { color: #166534; background: #dcfce7; }
.operator-profit-rule-tags .is-orange { color: #9a3412; background: #ffedd5; }
.operator-profit-rule-tags .is-violet { color: #6d28d9; background: #ede9fe; }

.operator-profit-upload-route {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 7px;
  margin-bottom: 9px;
}
.operator-profit-upload-route label { display: grid; gap: 5px; min-width: 0; }
.operator-profit-upload-route label > span { color: #64748b; font-size: 10px; }
.operator-profit-upload-route b { color: #dc2626; }
.operator-profit-upload-route select {
  width: 100%;
  height: 34px;
  min-width: 0;
  padding: 0 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.operator-profit-source-store {
  display: grid;
  gap: 5px;
  margin-bottom: 9px;
}
.operator-profit-source-store > span { color: #64748b; font-size: 10px; }
.operator-profit-source-store b { color: #dc2626; }
.operator-profit-source-store small { color: #9a3412; font-size: 9px; line-height: 1.4; }
.operator-profit-source-store select {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}
.operator-profit-source-scope { display: block; margin-bottom: 7px; color: #1d4ed8; font-size: 10px; font-weight: 800; }

.operator-profit-file-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 37px;
  padding: 8px 10px;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.operator-profit-file-state span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-profit-file-state small {
  flex: none;
  margin-left: 8px;
}

.operator-profit-file-button {
  display: block;
  margin-top: 12px;
  cursor: pointer;
}

.operator-profit-file-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.operator-profit-file-actions .operator-profit-file-button { margin-top: 12px; }
.operator-profit-file-actions > button { margin-top: 12px; }
.operator-profit-template-actions { display: grid; gap: 6px; margin-top: 12px; }
.operator-profit-template-actions .operator-profit-template-button { width: 100%; min-height: 40px; color: #1d4ed8; border: 1px solid #93c5fd; border-radius: 10px; background: #eff6ff; font-weight: 700; cursor: pointer; }
.operator-profit-template-actions .operator-profit-template-button:hover { background: #dbeafe; }
.operator-profit-template-actions small { color: #64748b; }
.operator-profit-import-result { margin-top: 9px; color: #166534; font-size: 11px; line-height: 1.4; }
.operator-profit-import-error { margin-top: 9px; padding: 8px 9px; color: #b91c1c; font-size: 10px; line-height: 1.45; border: 1px solid #fecaca; border-radius: 8px; background: #fef2f2; overflow-wrap: anywhere; }
.operator-profit-record-button { width: 100%; margin-top: 8px; padding: 8px; color: #1d4ed8; font-size: 11px; font-weight: 800; border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff; cursor: pointer; }
.operator-profit-export-button { width: 100%; margin-top: 7px; padding: 8px; color: #6d28d9; font-size: 11px; font-weight: 800; border: 1px solid #ddd6fe; border-radius: 8px; background: #f5f3ff; cursor: pointer; }
.operator-profit-delete-button { width: 100%; margin-top: 7px; padding: 8px; color: #b91c1c; font-size: 11px; font-weight: 800; border: 1px solid #fecaca; border-radius: 8px; background: #fff; cursor: pointer; }
.operator-profit-delete-button:hover { background: #fef2f2; }
.operator-profit-delete-button:disabled { color: #94a3b8; cursor: wait; border-color: #e2e8f0; background: #f8fafc; }

.operator-profit-record-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border: 1px solid #dbe3ef; border-radius: 12px; background: #fff; }
.operator-profit-record-head > div { display: flex; align-items: center; gap: 9px; }
.operator-profit-record-head button { padding: 7px 9px; color: #1d4ed8; font-weight: 800; border: 0; border-radius: 7px; background: #dbeafe; }
.operator-profit-record-head span { font-weight: 800; }
.operator-profit-record-head strong { padding: 4px 7px; color: #166534; font-size: 10px; border-radius: 999px; background: #dcfce7; }
.operator-profit-record-head p { margin: 0; color: #64748b; font-size: 11px; }
.operator-profit-record-table { min-height: 260px; overflow-x: auto; border: 1px solid #dbe3ef; border-radius: 13px; background: #fff; }
.operator-profit-record-table table { width: 100%; min-width: 1100px; border-collapse: collapse; }
.operator-profit-record-table th { position: sticky; top: 0; padding: 10px; color: #475569; font-size: 10px; text-align: left; white-space: nowrap; border-bottom: 1px solid #dbe3ef; background: #f8fafc; }
.operator-profit-record-table td { max-width: 260px; padding: 9px 10px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; border-bottom: 1px solid #edf2f7; }
.operator-profit-record-table tbody tr:hover { background: #f8fbff; }
.operator-profit-admin-record-links { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 12px; border: 1px solid #dbe3ef; border-radius: 10px; background: #fff; }
.operator-profit-admin-record-links strong { margin-right: 5px; font-size: 11px; }
.operator-profit-admin-record-links button { padding: 6px 8px; color: #1d4ed8; font-size: 10px; font-weight: 800; border: 1px solid #bfdbfe; border-radius: 7px; background: #eff6ff; }

.operator-profit-history article { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid #edf2f7; }
.operator-profit-history article:last-child { border-bottom: 0; }
.operator-profit-history article div { display: grid; gap: 4px; min-width: 0; }
.operator-profit-history article strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operator-profit-history article span,
.operator-profit-history article p { color: #64748b; font-size: 11px; }
.operator-profit-history article p { margin: 0; white-space: nowrap; }

.operator-profit-detail-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #fff;
}
.operator-profit-detail-head > div:first-child > span { color: #2563eb; font-size: 11px; font-weight: 800; }
.operator-profit-detail-head h5 { margin: 5px 0 0; font-size: 17px; }
.operator-profit-detail-head p { margin: 6px 0 0; color: #64748b; font-size: 11px; }
.operator-profit-detail-filters { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.operator-profit-detail-filters input,
.operator-profit-detail-filters select { height: 34px; padding: 0 8px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
.operator-profit-detail-filters label { display: flex; align-items: center; gap: 5px; color: #475569; font-size: 11px; }
.operator-profit-detail-filters label input { height: auto; }
.operator-profit-detail-filters button { height: 34px; padding: 0 13px; color: #fff; font-weight: 800; border: 0; border-radius: 8px; background: #2563eb; }
.operator-profit-detail-filters button.is-secondary { color: #1d4ed8; border: 1px solid #bfdbfe; background: #eff6ff; }
.operator-profit-detail-date { display: grid !important; grid-template-columns: auto minmax(138px, 160px); gap: 3px 6px !important; padding: 5px 7px; border: 1px solid #93c5fd; border-radius: 9px; background: #eff6ff; }
.operator-profit-detail-date input { height: 30px !important; color: #0f172a; font-weight: 800; border-color: #bfdbfe !important; }
.operator-profit-detail-date small { grid-column: 1 / -1; color: #64748b; font-size: 9px; line-height: 1.2; text-align: right; }
.operator-profit-toolbar :disabled,
.operator-profit-detail-filters :disabled { cursor: not-allowed; opacity: 0.58; }
.operator-profit-detail-summary { display: flex; align-items: center; gap: 9px; padding: 10px 13px; color: #475569; font-size: 11px; border: 1px solid #dbe3ef; border-radius: 10px; background: #fff; }
.operator-profit-detail-summary strong { color: #0f172a; }
.operator-profit-detail-period { padding: 4px 7px; color: #1d4ed8; font-weight: 800; border-radius: 999px; background: #eff6ff; }
.operator-profit-detail-summary em { padding: 4px 7px; color: #92400e; font-size: 10px; font-style: normal; border-radius: 999px; background: #fef3c7; }
.operator-profit-detail-summary em.is-ready { color: #166534; background: #dcfce7; }
.operator-profit-detail-delete { padding: 6px 10px; color: #b91c1c; font-size: 11px; font-weight: 800; border: 1px solid #fecaca; border-radius: 8px; background: #fff; cursor: pointer; }
.operator-profit-detail-delete:hover { background: #fef2f2; }
.operator-profit-detail-delete:disabled { color: #94a3b8; border-color: #e2e8f0; background: #f8fafc; cursor: not-allowed; }
.operator-profit-row-select { width: 34px; min-width: 34px; text-align: center; }
.operator-profit-row-select input { width: 16px; height: 16px; accent-color: #2563eb; cursor: pointer; }
.operator-profit-pagination { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.operator-profit-pagination button { padding: 5px 9px; color: #1d4ed8; font-size: 10px; font-weight: 800; border: 1px solid #bfdbfe; border-radius: 7px; background: #eff6ff; cursor: pointer; }
.operator-profit-pagination button:disabled { color: #94a3b8; cursor: not-allowed; border-color: #e2e8f0; background: #f8fafc; }
.operator-profit-pagination b { color: #475569; font-size: 10px; }
.operator-profit-formula { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 13px 16px; border: 1px solid #dbe3ef; border-radius: 12px; background: #fff; }
.operator-profit-formula strong { margin-right: 5px; font-size: 12px; }
.operator-profit-formula span { padding: 5px 7px; font-size: 10px; font-weight: 800; border-radius: 6px; }
.operator-profit-formula i { color: #94a3b8; font-style: normal; font-weight: 900; }
.operator-profit-formula .is-sales, .operator-profit-detail-table .is-sales { color: #1d4ed8; background: #dbeafe; }
.operator-profit-formula .is-buyer-shipping, .operator-profit-detail-table .is-buyer-shipping { color: #047857; background: #d1fae5; }
.operator-profit-formula .is-cost, .operator-profit-detail-table .is-cost { color: #7c2d12; background: #ffedd5; }
.operator-profit-formula .is-refund, .operator-profit-detail-table .is-refund { color: #b91c1c; background: #fee2e2; }
.operator-profit-formula .is-promo, .operator-profit-detail-table .is-promo { color: #6d28d9; background: #ede9fe; }
.operator-profit-formula .is-penalty, .operator-profit-detail-table .is-penalty { color: #9f1239; background: #ffe4e6; }
.operator-profit-formula .is-return-label, .operator-profit-detail-table .is-return-label { color: #9a3412; background: #ffedd5; }
.operator-profit-formula .is-profit, .operator-profit-detail-table .is-profit { color: #166534; background: #dcfce7; }
.operator-profit-cost-rule { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 12px 15px; color: #475569; font-size: 11px; border: 1px solid #fde68a; border-radius: 12px; background: #fffbeb; }
.operator-profit-cost-rule strong { color: #92400e; }
.operator-profit-cost-rule span,
.operator-profit-cost-rule b { padding: 5px 7px; border-radius: 6px; background: #fff; }
.operator-profit-cost-rule i { color: #d97706; font-style: normal; font-weight: 900; }
.operator-profit-cost-rule small { width: 100%; color: #78716c; }
.operator-profit-detail-table { overflow-x: auto; border: 1px solid #dbe3ef; border-radius: 14px; background: #fff; }
.operator-profit-detail-table table { width: 100%; min-width: 1460px; table-layout: fixed; border-collapse: collapse; }
.operator-profit-detail-table col.is-order { width: 280px; }
.operator-profit-detail-table col.is-store-price { width: 145px; }
.operator-profit-detail-table col.is-income { width: 205px; }
.operator-profit-detail-table col.is-cost { width: 285px; }
.operator-profit-detail-table col.is-deductions { width: 285px; }
.operator-profit-detail-table col.is-result { width: 150px; }
.operator-profit-detail-table col.is-status { width: 110px; }
.operator-profit-detail-table th { position: sticky; top: 0; z-index: 2; padding: 12px 11px; color: #475569; font-size: 10px; text-align: left; white-space: nowrap; border-bottom: 1px solid #dbe3ef; background: #f8fafc; }
.operator-profit-detail-table td { min-width: 0; padding: 14px 11px; vertical-align: top; font-size: 11px; border-bottom: 1px solid #e2e8f0; }
.operator-profit-detail-table tbody tr:nth-child(even) > td:not(.is-cost):not(.is-profit):not(.is-loss):not(.is-even):not(.is-pending) { background: #fbfdff; }
.operator-profit-detail-table tbody tr:hover > td { box-shadow: inset 0 1px #bfdbfe, inset 0 -1px #bfdbfe; }
.operator-profit-detail-table td > strong,
.operator-profit-detail-table td > span:not(.operator-profit-cell-tooltip) { display: block; }
.operator-profit-detail-table td > small { display: block; margin-top: 4px; color: #64748b; }
.operator-profit-order-product { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.operator-profit-order-product > div { display: grid; min-width: 0; gap: 2px; }
.operator-profit-order-product strong { color: #0f172a; white-space: nowrap; }
.operator-profit-order-product span:not(.operator-profit-product-thumb) { color: #334155; }
.operator-profit-order-product b { max-width: 215px; overflow: hidden; color: #0f172a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.operator-profit-order-product em { max-width: 215px; overflow: hidden; color: #64748b; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.operator-profit-order-product .operator-profit-series-tag { display: block; max-width: 215px; overflow: hidden; color: #4338ca; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.operator-profit-order-product small { color: #64748b; font-size: 9px; line-height: 1.4; }
.operator-profit-eu-product { max-width: 100%; min-width: 0; }
.operator-profit-eu-product > div { overflow: hidden; }
.operator-profit-eu-product strong,
.operator-profit-eu-product small { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operator-profit-product-thumb { display: grid; flex: 0 0 46px; width: 46px; height: 46px; overflow: hidden; place-items: center; border: 1px solid #dbe3ef; border-radius: 8px; background: #f1f5f9; }
.operator-profit-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.operator-profit-product-thumb i { color: #64748b; font-size: 13px; font-style: normal; font-weight: 800; }
.operator-profit-detail-table td.is-loss { color: #b91c1c; background: #fef2f2; }
.operator-profit-detail-table td.is-even { color: #475569; background: #f8fafc; }
.operator-profit-detail-table td.is-pending { color: #64748b; background: #f8fafc; }
.operator-profit-explain { display: grid; gap: 3px; width: 100%; padding: 0; color: inherit; text-align: left; border: 0; background: transparent; cursor: help; }
.operator-profit-explain:focus-visible { border-radius: 4px; outline: 2px solid #2563eb; outline-offset: 3px; }
.operator-profit-cell-value { display: grid; gap: 2px; font-weight: 800; white-space: nowrap; }
.operator-profit-cell-value em { color: #64748b; font-size: 9px; font-style: normal; font-weight: 600; white-space: normal; }
.operator-profit-explain small { color: #64748b; font-size: 9px; font-weight: 600; }
.operator-profit-cell-tooltip { position: fixed; z-index: 10020; display: block; width: 280px; max-width: calc(100vw - 28px); margin: 0; padding: 8px 9px; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(3px); color: #e2e8f0; font-size: 10px; font-weight: 500; line-height: 1.55; white-space: normal; border-radius: 7px; background: #0f172a; box-shadow: 0 10px 26px rgba(15, 23, 42, 0.24); transition: opacity 100ms ease, transform 100ms ease; }
.operator-profit-explain:hover + .operator-profit-cell-tooltip[data-positioned="true"],
.operator-profit-explain:focus-visible + .operator-profit-cell-tooltip[data-positioned="true"],
.operator-profit-explain.is-open + .operator-profit-cell-tooltip[data-positioned="true"] { visibility: visible; opacity: 1; transform: none; }
.operator-profit-detail-table.is-us-ledger {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-gutter: stable;
  overscroll-behavior-inline: contain;
}
.operator-profit-detail-table.is-us-ledger table { width: 2222px; min-width: 2222px; table-layout: fixed; }
.operator-profit-detail-table.is-us-ledger col.is-order { width: 260px; }
.operator-profit-detail-table.is-us-ledger col.is-store-price { width: 140px; }
.operator-profit-detail-table.is-us-ledger col.is-sales { width: 112px; }
.operator-profit-detail-table.is-us-ledger col.is-buyer-shipping { width: 140px; }
.operator-profit-detail-table.is-us-ledger col.is-product-cost { width: 112px; }
.operator-profit-detail-table.is-us-ledger col.is-head-fee { width: 104px; }
.operator-profit-detail-table.is-us-ledger col.is-warehouse-fee { width: 112px; }
.operator-profit-detail-table.is-us-ledger col.is-logistics { width: 160px; }
.operator-profit-detail-table.is-us-ledger col.is-erp-other { width: 145px; }
.operator-profit-detail-table.is-us-ledger col.is-refund { width: 108px; }
.operator-profit-detail-table.is-us-ledger col.is-promotion { width: 125px; }
.operator-profit-detail-table.is-us-ledger col.is-penalty { width: 115px; }
.operator-profit-detail-table.is-us-ledger col.is-remittance { width: 125px; }
.operator-profit-detail-table.is-us-ledger col.is-return-label { width: 115px; }
.operator-profit-detail-table.is-us-ledger col.is-profit { width: 112px; }
.operator-profit-detail-table.is-us-ledger col.is-margin { width: 92px; }
.operator-profit-detail-table.is-us-ledger col.is-status { width: 145px; }
.operator-profit-detail-table.is-us-ledger th {
  padding: 9px 10px;
  vertical-align: middle;
  line-height: 1.3;
  white-space: normal;
}
.operator-profit-detail-table.is-us-ledger tbody tr { height: 74px; }
.operator-profit-detail-table.is-us-ledger td {
  min-width: 0;
  padding: 8px 10px;
  vertical-align: middle;
  line-height: 1.25;
}
.operator-profit-detail-table.is-us-ledger .operator-profit-order-product { align-items: center; gap: 8px; }
.operator-profit-detail-table.is-us-ledger .operator-profit-order-product > div {
  display: grid;
  max-height: 48px;
  min-width: 0;
  gap: 2px;
  overflow: hidden;
}
.operator-profit-detail-table.is-us-ledger .operator-profit-order-product strong,
.operator-profit-detail-table.is-us-ledger .operator-profit-order-product b,
.operator-profit-detail-table.is-us-ledger .operator-profit-order-product em {
  display: block;
  max-width: 186px;
  overflow: hidden;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operator-profit-detail-table.is-us-ledger .operator-profit-product-thumb {
  box-sizing: border-box;
  flex: 0 0 46px;
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  align-self: center;
}
.operator-profit-detail-table.is-us-ledger .operator-profit-product-thumb img { display: block; }
.operator-profit-detail-table.is-us-ledger .operator-profit-store-price > strong,
.operator-profit-detail-table.is-us-ledger .operator-profit-store-price > small {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operator-profit-detail-table.is-us-ledger .operator-profit-store-price > small { margin-top: 3px; }
.operator-profit-detail-table.is-us-ledger .operator-profit-explain {
  display: grid;
  min-width: 0;
  height: 100%;
  align-content: center;
  grid-template-rows: minmax(16px, auto) 13px;
  gap: 2px;
}
.operator-profit-detail-table.is-us-ledger .operator-profit-cell-value {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operator-profit-detail-table.is-us-ledger .operator-profit-explain > small {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #475569;
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operator-profit-detail-table.is-us-ledger .operator-profit-cell-tooltip {
  position: fixed;
  pointer-events: none;
}
.operator-profit-detail-table.is-us-ledger td:last-child > small {
  display: -webkit-box;
  max-height: 25px;
  overflow: hidden;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.operator-profit-rule-pill { display: inline-block; max-width: 190px; padding: 4px 6px; color: #475569; line-height: 1.4; border-radius: 6px; background: #f1f5f9; }
.operator-profit-store-price { overflow-wrap: anywhere; }
.operator-profit-store-price > strong { color: #0f172a; font-size: 12px; }
.operator-profit-store-price > span { margin-top: 11px; color: #64748b; font-size: 9px; font-weight: 700; }
.operator-profit-store-price > b { display: block; margin-top: 3px; color: #0f172a; font-size: 14px; }
.operator-profit-store-price > small { line-height: 1.45; }
.operator-profit-detail-table td.operator-profit-bill-cell { max-width: none; padding: 10px; color: #334155; background: #fff; }
.operator-profit-detail-table td.operator-profit-cost-cell { color: #7c2d12; background: #fffaf5; }
.operator-profit-bill { display: grid; gap: 7px; min-width: 0; }
.operator-profit-bill-line { position: relative; min-width: 0; padding: 8px 9px; color: #334155; border: 1px solid #e2e8f0; border-radius: 9px; background: #f8fafc; }
.operator-profit-bill-line.is-prominent { padding: 10px; border-width: 2px; background: #fff; }
.operator-profit-bill-line.is-sales { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.operator-profit-bill-line.is-buyer-shipping { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.operator-profit-bill-line.is-cost { color: #9a3412; border-color: #fed7aa; background: #fff7ed; }
.operator-profit-bill-line.is-estimated-tail { color: #b45309; border-color: #fde68a; background: #fffbeb; }
.operator-profit-bill-line.is-other-cost { color: #7c3aed; border-color: #ddd6fe; background: #f5f3ff; }
.operator-profit-bill-line.is-refund { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.operator-profit-bill-line.is-promo { color: #6d28d9; border-color: #ddd6fe; background: #f5f3ff; }
.operator-profit-bill-line.is-penalty { color: #9f1239; border-color: #fecdd3; background: #fff1f2; }
.operator-profit-bill-line.is-return-label { color: #9a3412; border-color: #fed7aa; background: #fff7ed; }
.operator-profit-bill-line.is-zero { color: #475569; border-color: #e2e8f0; background: #f8fafc; }
.operator-profit-bill-line.is-profit { color: #166534; border-color: #bbf7d0; background: #f0fdf4; }
.operator-profit-bill-line.is-loss { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.operator-profit-bill-line.is-even { color: #475569; border-color: #cbd5e1; background: #f8fafc; }
.operator-profit-bill-line.is-pending { color: #64748b; border-color: #e2e8f0; background: #f8fafc; }
.operator-profit-deduction-note { display: grid; gap: 3px; margin: 0; padding: 8px 9px; color: #475569; font-size: 9px; line-height: 1.45; border: 1px dashed #cbd5e1; border-radius: 8px; background: #f8fafc; }
.operator-profit-deduction-note b { font-size: 9px; }
.operator-profit-deduction-note span { overflow-wrap: anywhere; color: #64748b; }
.operator-profit-deduction-note.is-clear { border-color: #bbf7d0; background: #f0fdf4; }
.operator-profit-deduction-note.is-clear b { color: #166534; }
.operator-profit-deduction-note.is-pending { border-color: #fde68a; background: #fffbeb; }
.operator-profit-deduction-note.is-pending b { color: #b45309; }
.operator-profit-bill-line-head { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-width: 0; }
.operator-profit-bill-line-head b { min-width: 0; color: currentColor; font-size: 10px; overflow-wrap: anywhere; }
.operator-profit-bill-line-head em { flex: none; padding: 2px 5px; color: currentColor; font-size: 8px; font-style: normal; font-weight: 900; border-radius: 999px; background: rgba(255, 255, 255, 0.8); }
.operator-profit-bill-line .operator-profit-explain > strong { margin-top: 4px; color: currentColor; font-size: 13px; line-height: 1.15; white-space: nowrap; }
.operator-profit-bill-line.is-prominent .operator-profit-explain > strong { font-size: 19px; letter-spacing: -0.02em; }
.operator-profit-bill-line .operator-profit-explain > small { margin-top: 2px; overflow-wrap: anywhere; color: #64748b; line-height: 1.45; white-space: normal; }
.operator-profit-bill-note { display: block; margin-top: 7px; padding-top: 6px; color: #047857; font-size: 9px; font-weight: 900; line-height: 1.4; border-top: 1px dashed #a7f3d0; }
.operator-profit-cost-components { display: grid; gap: 0; margin: 0; padding: 4px 9px; list-style: none; border: 1px solid #fed7aa; border-radius: 9px; background: #fff; }
.operator-profit-cost-components li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 7px 0; border-bottom: 1px dashed #e2e8f0; }
.operator-profit-cost-components li:last-child { border-bottom: 0; }
.operator-profit-cost-components li > span { display: grid; min-width: 0; gap: 2px; }
.operator-profit-cost-components b { color: #475569; font-size: 9px; }
.operator-profit-cost-components small { overflow-wrap: anywhere; color: #94a3b8; font-size: 8px; line-height: 1.35; }
.operator-profit-cost-components strong { flex: none; color: #0f172a; font-size: 11px; white-space: nowrap; }
.operator-profit-cost-components li.is-actual-label b,
.operator-profit-cost-components li.is-actual-label strong { color: #047857; }
.operator-profit-cost-components li.is-estimated-tail b,
.operator-profit-cost-components li.is-estimated-tail strong { color: #b45309; }
.operator-profit-cost-components li.is-other-cost b,
.operator-profit-cost-components li.is-other-cost strong { color: #7c3aed; }
.operator-profit-cost-components li.is-product-total { margin-bottom: 2px; padding: 8px 0; border-bottom-style: solid; }
.operator-profit-cost-components li.is-product-total b,
.operator-profit-cost-components li.is-product-total strong { color: #9a3412; font-size: 10px; }
.operator-profit-cost-components li.is-product-component { padding-left: 10px; }
.operator-profit-label-included { margin: 0; padding: 7px 9px; color: #047857; font-size: 9px; font-weight: 900; line-height: 1.4; border-radius: 7px; background: #ecfdf5; }
.operator-profit-margin-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 9px; color: #475569; border: 1px solid #dbe3ef; border-radius: 8px; background: #fff; }
.operator-profit-margin-line span { font-size: 9px; font-weight: 700; }
.operator-profit-margin-line strong { color: #0f172a; font-size: 13px; white-space: nowrap; }
.operator-profit-result-cell.is-loss .operator-profit-margin-line strong { color: #b91c1c; }
.operator-profit-result-cell.is-profit .operator-profit-margin-line strong { color: #166534; }
.operator-profit-status { padding: 4px 6px; font-size: 10px; font-weight: 800; border-radius: 999px; }
.operator-profit-status.is-calculated { color: #166534; background: #dcfce7; }
.operator-profit-status.is-uncalculated { color: #9a3412; background: #ffedd5; }
.operator-profit-eu-status { display: grid; align-content: start; gap: 6px; width: 310px; max-width: 100%; padding: 2px 0; white-space: normal; }
.operator-profit-eu-status > .operator-profit-status { justify-self: start; }
.operator-profit-eu-status > strong { color: #9a3412; font-size: 10px; }
.operator-profit-eu-status > ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.operator-profit-eu-status > ul > li { padding: 5px 7px; color: #7c2d12; font-size: 9px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; border-left: 2px solid #fb923c; border-radius: 0 6px 6px 0; background: #fff7ed; }
.operator-profit-eu-status > details { color: #64748b; font-size: 9px; }
.operator-profit-eu-status > details > summary { width: max-content; color: #475569; font-weight: 800; cursor: pointer; }
.operator-profit-eu-status > details > code { display: block; max-height: 120px; margin-top: 5px; padding: 7px; overflow: auto; color: #64748b; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 8px; line-height: 1.45; overflow-wrap: anywhere; white-space: normal; border: 1px dashed #cbd5e1; border-radius: 6px; background: #f8fafc; }
.operator-profit-detail-empty { display: grid; place-items: center; gap: 5px; min-height: 190px; color: #64748b; }
.operator-profit-detail-empty strong { color: #334155; }
.operator-profit-detail-empty button { margin-top: 7px; padding: 8px 12px; color: #fff; font-weight: 800; border: 0; border-radius: 7px; background: #2563eb; cursor: pointer; }

.operator-profit-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.operator-profit-file-button span {
  display: grid;
  place-items: center;
  min-height: 37px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #eff6ff;
}

.operator-profit-empty-page,
.operator-profit-load-error,
.operator-profit-loading {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 420px;
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel);
}

.operator-profit-load-error {
  gap: 12px;
}

.operator-profit-load-error > span {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.6;
}

.operator-profit-empty-page > div {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #2563eb;
  font-size: 20px;
  font-weight: 900;
  border-radius: 17px;
  background: #dbeafe;
}

.operator-profit-empty-page p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.65;
}

.operator-profit-empty-page button,
.operator-profit-load-error button {
  padding: 9px 16px;
  color: #fff;
  font-weight: 700;
  border: 0;
  border-radius: 9px;
  background: #2563eb;
  cursor: pointer;
}

.operator-profit-loading span {
  width: 30px;
  height: 30px;
  border: 3px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: operator-profit-spin 0.8s linear infinite;
}

.operator-profit-loading p {
  color: var(--muted);
}

@keyframes operator-profit-spin { to { transform: rotate(360deg); } }

 @media (max-width: 1500px) {
  .operator-profit-priority-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1400px) {
  .operator-profit-store-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .operator-profit-store-form button { width: 100%; }
}

@media (max-width: 1250px) {
  .operator-profit-priority-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operator-profit-metrics,
  .operator-profit-import-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operator-profit-charts { grid-template-columns: 1fr; }
  .operator-profit-admin-grid { grid-template-columns: 1fr; }
  .operator-profit-shipping-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operator-profit-shipping-panels { grid-template-columns: 1fr; }
  .operator-profit-sales-result { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .operator-profit-hero,
  .operator-profit-stage-note,
  .operator-profit-toolbar,
  .operator-profit-import-heading { align-items: stretch; flex-direction: column; }
  .operator-profit-owner { min-width: 0; }
  .operator-profit-priority-grid,
  .operator-profit-metrics,
  .operator-profit-import-grid { grid-template-columns: 1fr; }
  .operator-profit-admin-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operator-profit-admin-totals strong { overflow-wrap: anywhere; font-size: 20px; }
  .operator-profit-admin-ranking li { grid-template-columns: 24px minmax(0, 1fr); }
  .operator-profit-admin-ranking li span { grid-column: 2; white-space: normal; }
  .operator-profit-view-tabs { width: 100%; overflow-x: auto; }
  .operator-profit-view-tabs button { white-space: nowrap; }
  .operator-profit-data-pill { margin-left: 0; width: fit-content; }
  .operator-profit-priority-group > header { align-items: stretch; flex-direction: column; }
  .operator-profit-day-selector { width: 100%; }
  .operator-profit-import-target,
  .operator-profit-import-target.is-self { grid-template-columns: 1fr; align-items: stretch; }
  .operator-profit-store-form { grid-template-columns: 1fr; }
  .operator-profit-upload-route { grid-template-columns: 1fr; }
  .operator-profit-history article { align-items: flex-start; flex-direction: column; gap: 7px; }
  .operator-profit-detail-head { align-items: stretch; flex-direction: column; }
  .operator-profit-detail-filters { align-items: stretch; flex-direction: column; }
  .operator-profit-detail-filters label { align-items: stretch; flex-direction: column; }
  .operator-profit-detail-filters input,
  .operator-profit-detail-filters select { width: 100%; min-height: 36px; }
  .operator-profit-shipping-panel > header { align-items: flex-start; flex-direction: column; }
  .operator-profit-shipping-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operator-profit-sales-search-form { grid-template-columns: 1fr; }
  .operator-profit-sales-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operator-profit-detail-summary { align-items: flex-start; flex-direction: column; }
  .operator-profit-detail-summary em { margin-left: 0; }
}

@media (max-width: 430px) {
  .operator-profit-admin-totals { grid-template-columns: 1fr; }
}
