.main-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(246, 247, 244, 0) 310px),
    var(--beauty-page-bg);
}

.content {
  padding-top: 22px;
}

.main-shell > .topbar {
  min-height: 72px;
  border-bottom: 1px solid rgba(205, 219, 211, 0.92);
  background: rgba(250, 252, 249, 0.92);
  box-shadow: 0 10px 28px rgba(19, 47, 41, 0.06);
}

.main-shell > .topbar h1 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 750;
  color: var(--beauty-text-primary);
}

.main-shell > .topbar p {
  font-size: var(--beauty-font-sm);
  color: var(--beauty-text-secondary);
}

.sidebar {
  background:
    linear-gradient(180deg, #073831 0%, #0a4a42 52%, #08322f 100%);
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.12), 13px 0 30px rgba(7, 56, 49, 0.18);
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #35d5c3 0%, #129884 72%, #0c6d60 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.55), 0 14px 30px rgba(18, 152, 132, 0.26);
}

.brand-title {
  font-size: 16px;
  font-weight: 780;
}

.side-section-title {
  font-size: 13px;
  letter-spacing: 0;
}

.side-nav a,
.sidebar details.side-subsection > summary {
  min-height: 36px;
  border-radius: 9px;
  font-size: 14px;
}

.side-nav a.primary-link {
  background: linear-gradient(90deg, rgba(44, 184, 159, 0.9), rgba(27, 145, 127, 0.72));
  border-color: rgba(141, 235, 215, 0.45);
  box-shadow: inset 3px 0 rgba(229, 255, 249, 0.78), 0 12px 24px rgba(0, 68, 60, 0.26);
}

.button,
a.button,
button[type="submit"],
.filter-bar button,
.pc-toolbar button,
.tc-filter-bar button,
.stc-filter-bar button,
.manual-upload-actions button,
.ed-icon-button,
.ed-link-button,
.ed-range-switch button,
.pc-button-solid,
.pc-button-outline {
  min-height: var(--beauty-button-h-md);
  padding: 0 15px;
  border-radius: var(--beauty-radius-sm);
  border: 1px solid var(--beauty-brand-700);
  background: linear-gradient(180deg, #2f7b68 0%, #174f45 100%);
  color: #ffffff;
  font-size: var(--beauty-font-base);
  font-weight: 720;
  line-height: 1;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.24), 0 10px 20px rgba(22, 75, 65, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.button:hover,
a.button:hover,
button[type="submit"]:hover,
.filter-bar button:hover,
.pc-toolbar button:hover,
.tc-filter-bar button:hover,
.stc-filter-bar button:hover,
.manual-upload-actions button:hover,
.ed-icon-button:hover,
.ed-link-button:hover,
.ed-range-switch button:hover {
  border-color: var(--beauty-brand-900);
  background: linear-gradient(180deg, #286f5e 0%, #123d35 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.22), 0 13px 24px rgba(22, 75, 65, 0.2);
}

.button.ghost,
a.button.ghost,
.button.secondary.ghost,
.filter-bar a.button.ghost,
.pc-button-outline {
  border-color: var(--beauty-border-strong);
  background: #ffffff;
  color: var(--beauty-brand-900);
  box-shadow: 0 6px 14px rgba(20, 48, 42, 0.055);
}

.button.secondary,
button.secondary {
  border-color: #9eb2aa;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7f5 100%);
  color: var(--beauty-brand-900);
}

.button.warn,
button.warn {
  border-color: #d6a24b;
  background: linear-gradient(180deg, #e5ad4d, #b97522);
  color: #fff;
}

.button.danger,
button.danger {
  border-color: #c94a4a;
  background: linear-gradient(180deg, #df6558, #b63b34);
  color: #fff;
}

.button.small,
a.button.small,
.compact-table .button,
.data-table-wrapper table .button {
  min-height: var(--beauty-button-h-sm);
  padding: 0 11px;
  font-size: 13.5px;
}

button svg,
.button svg,
button i[data-lucide],
.button i[data-lucide] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

input,
select,
textarea {
  min-height: 36px;
  border-color: var(--beauty-border-strong);
  border-radius: var(--beauty-radius-sm);
  font-size: var(--beauty-font-base);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
.button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(42, 166, 161, 0.18);
  outline-offset: 2px;
}

.page-header,
.card,
.card-link,
.table-panel,
.data-table-wrapper,
.drawer-panel,
.manual-data-hero,
.manual-status-card,
.manual-action-card,
.manual-info-card,
.pc-command,
.pc-readiness,
.pc-summary,
.pc-toolbar,
.pc-main,
.pc-detail,
.pc-card,
.pc-panel,
.pc-dish-card,
.pc-sop-sheet,
.pc-sop-document-head,
.tc-command,
.tc-filter-bar,
.tc-panel,
.tc-detail-card,
.tc-summary-card,
.stc-command,
.stc-panel,
.stc-filter-bar,
.stc-summary-card,
.occ-card,
.occ-panel,
.oc-card,
.store-home-hero,
.store-home-field,
.ed-board-card,
.ed-kpi-card,
.ed-ai-strip,
.import-center-header,
.import-status-tile,
.import-action-card,
.import-info-card {
  border: 1px solid var(--beauty-border-soft);
  border-radius: var(--beauty-radius-lg);
  background: var(--beauty-surface);
  box-shadow: var(--beauty-shadow-card);
}

.page-header {
  padding: 20px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 248, 0.98));
}

.page-header-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
}

.page-header-title {
  margin: 0;
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 760;
  color: var(--beauty-text-primary);
}

.page-header-desc {
  margin: 6px 0 0;
  color: var(--beauty-text-secondary);
  font-size: var(--beauty-font-base);
  line-height: 1.55;
}

.page-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.page-meta-item,
.badge,
.status-pill,
.data-source-badge {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--beauty-border-soft);
  background: #f7faf8;
  color: var(--beauty-text-secondary);
  padding: 3px 9px;
  font-size: var(--beauty-font-sm);
  font-weight: 680;
  line-height: 1.2;
}

.badge.good,
.status-pill.good {
  border-color: rgba(47, 118, 89, 0.2);
  background: rgba(47, 118, 89, 0.11);
  color: #245c4d;
}

.badge.warn,
.status-pill.warn {
  border-color: rgba(214, 154, 53, 0.28);
  background: rgba(214, 154, 53, 0.12);
  color: #8a5a12;
}

.badge.bad,
.status-pill.bad {
  border-color: rgba(201, 74, 74, 0.25);
  background: rgba(232, 111, 85, 0.12);
  color: #a33a31;
}

.badge.neutral,
.status-pill.neutral {
  border-color: #dbe3de;
  background: #f5f7f5;
  color: #64726c;
}

.visual-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(47, 92, 77, 0.12);
  background: color-mix(in srgb, var(--beauty-accent-green) 13%, #ffffff);
  color: var(--beauty-accent-green);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72), 0 8px 16px rgba(20, 48, 42, 0.07);
  line-height: 0;
}

.visual-icon--sm {
  width: 36px;
  height: 36px;
}

.visual-icon--lg {
  width: 44px;
  height: 44px;
}

.visual-icon svg,
.visual-icon i[data-lucide] {
  width: 20px;
  height: 20px;
  display: block;
}

.visual-icon--operation { background: rgba(42, 166, 161, 0.12); color: var(--beauty-accent-cyan); }
.visual-icon--data { background: rgba(60, 125, 240, 0.12); color: var(--beauty-accent-blue); }
.visual-icon--product { background: rgba(214, 154, 53, 0.15); color: #a76c18; }
.visual-icon--training { background: rgba(123, 97, 255, 0.12); color: var(--beauty-accent-purple); }
.visual-icon--ticket { background: rgba(224, 122, 63, 0.13); color: var(--beauty-accent-orange); }
.visual-icon--warning { background: rgba(232, 111, 85, 0.13); color: var(--beauty-accent-coral); }
.visual-icon--success { background: rgba(47, 118, 89, 0.12); color: var(--beauty-accent-green); }

.data-table-wrapper {
  overflow: hidden;
}

.data-table-wrapper-head,
.ed-board-head,
.pc-panel-head,
.tc-panel-head,
.stc-panel-head {
  border-bottom-color: var(--beauty-border-soft);
  background: linear-gradient(180deg, #ffffff, var(--beauty-surface-soft));
}

.data-table-wrapper-title,
.alert-panel-title,
.action-panel-title,
.drawer-section-title {
  font-size: var(--beauty-font-lg);
  font-weight: 720;
  color: var(--beauty-text-primary);
}

.data-table-wrapper table,
.table-scroll table,
table.compact-table {
  font-size: 14px;
  line-height: 1.5;
}

.data-table-wrapper table th,
.table-scroll table th,
table.compact-table th {
  background: #edf4f0;
  color: #2b3e38;
  font-size: 13.5px;
  font-weight: 760;
}

.data-table-wrapper table td,
.table-scroll table td,
table.compact-table td {
  color: #263530;
}

.data-table-wrapper table tbody tr:hover td,
.table-scroll table tbody tr:hover td,
table.compact-table tbody tr:hover td {
  background: #f8fbf8;
}

.filter-bar,
.pc-toolbar,
.tc-filter-bar,
.stc-filter-bar,
.occ-filter-bar {
  border-radius: var(--beauty-radius-lg);
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffffff, #fbfcfa);
  box-shadow: var(--beauty-shadow-soft);
}

.filter-control span,
.pc-filter-group span,
.tc-filter-bar span,
.stc-filter-bar span {
  font-size: var(--beauty-font-sm);
  font-weight: 720;
  color: var(--beauty-text-secondary);
}

.empty-state,
.pc-empty,
.tc-empty-state,
.stc-empty-state,
.oc-empty {
  min-height: 132px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px;
  border: 1px dashed #cbdad2;
  border-radius: var(--beauty-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 248, 0.94));
  color: var(--beauty-text-secondary);
  text-align: center;
}

.empty-state {
  grid-template-columns: auto minmax(0, 520px);
  justify-content: center;
  text-align: left;
}

.empty-illustration-lite {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(42, 166, 161, 0.22);
  background: linear-gradient(180deg, rgba(42, 166, 161, 0.13), rgba(214, 154, 53, 0.1));
  color: var(--beauty-accent-cyan);
}

.empty-illustration-lite svg,
.empty-illustration-lite i[data-lucide] {
  width: 24px;
  height: 24px;
}

.empty-state-title,
.pc-empty-rich strong,
.tc-empty-state strong,
.stc-empty-state strong {
  color: var(--beauty-text-primary);
  font-size: var(--beauty-font-md);
  font-weight: 760;
}

.empty-state-text {
  display: grid;
  gap: 4px;
}

.empty-state-missing,
.empty-state-source {
  color: var(--beauty-text-secondary);
  font-size: var(--beauty-font-base);
}

.pc-modal-card,
.import-modal,
.import-success-dialog {
  border-radius: 14px;
  border: 1px solid var(--beauty-border-soft);
  box-shadow: 0 30px 80px rgba(12, 40, 35, 0.22);
}
