:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-muted: #eef2f5;
  --line: #d9e0e7;
  --text: #18202a;
  --muted: #667282;
  --blue: #2563eb;
  --green: #16885a;
  --amber: #b7791f;
  --rose: #c2415a;
  --shadow: 0 14px 34px rgba(30, 41, 59, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.10), transparent 38%),
    linear-gradient(315deg, rgba(22, 136, 90, 0.12), transparent 40%),
    var(--bg);
}

.login-panel {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 28px;
}

.login-panel h1 {
  margin: 4px 0 24px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.login-form,
.entry-form,
.range-form {
  display: grid;
  gap: 14px;
}

.entry-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-form.compact {
  grid-template-columns: 1fr;
}

.work-time-access-field {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 12px;
}

.work-time-access-field legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 0 6px;
}

.field-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 10px;
}

.employee-access-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.employee-access-list label {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
}

.employee-access-list input {
  flex: 0 0 auto;
  width: auto;
}

.integration-panel .entry-form + .entry-form {
  margin-top: 16px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field-help {
  border-bottom: 1px dotted currentColor;
  color: inherit;
  cursor: help;
  display: inline-flex;
  justify-self: start;
  line-height: 1.35;
  max-width: 100%;
  outline: none;
  position: relative;
  width: max-content;
}

.field-help::before,
.field-help::after {
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
  visibility: hidden;
  z-index: 70;
}

.field-help::before {
  border: 6px solid transparent;
  border-bottom-color: #111827;
  content: "";
  top: calc(100% + 1px);
  transform: translateY(-4px);
}

.field-help::after {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.24);
  color: #fff;
  content: attr(data-help);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  max-width: min(420px, calc(100vw - 48px));
  min-width: min(300px, calc(100vw - 48px));
  padding: 10px 12px;
  text-align: left;
  top: calc(100% + 12px);
  transform: translateY(-4px);
  white-space: normal;
}

.field-help:hover::before,
.field-help:hover::after,
.field-help:focus::before,
.field-help:focus::after,
.field-help:focus-visible::before,
.field-help:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.field-help:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  border-radius: 4px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 9px 10px;
  outline: none;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.full {
  grid-column: 1 / -1;
}

.primary-button,
.secondary-button,
.ghost-button,
.small-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 8px 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.primary-button {
  background: var(--blue);
  color: #fff;
}

.secondary-button {
  background: #243447;
  color: #fff;
}

.danger-button {
  background: var(--rose);
  color: #fff;
}

.ghost-button,
.small-button {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

.small-button {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 13px;
}

.small-button.danger {
  border-color: rgba(194, 65, 90, 0.35);
  color: var(--rose);
}

.portal {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 14px clamp(12px, 1.5vw, 24px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.brand-block,
.user-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.user-block {
  justify-content: flex-end;
}

.permission-preview-control {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.permission-preview-control select {
  min-height: 34px;
  min-width: 190px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  padding: 5px 10px;
  font-weight: 800;
}

.impersonation-banner,
.permission-preview-banner {
  align-items: center;
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  color: #9a3412;
  display: flex;
  gap: 12px;
  min-width: 0;
  justify-content: space-between;
  padding: 10px clamp(16px, 3vw, 36px);
}

.permission-preview-banner {
  background: #eff6ff;
  border-bottom-color: #bfdbfe;
  color: #1d4ed8;
}

.impersonation-banner span,
.permission-preview-banner span {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.impersonation-banner small,
.permission-preview-banner small {
  color: #c2410c;
  font-weight: 700;
}

.permission-preview-banner small {
  color: #2563eb;
}

.brand-home-link {
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  text-decoration: none;
}

.brand-home-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 3px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #1f2937;
  color: #fff;
  font-weight: 900;
}

.brand-logo {
  width: auto;
  max-width: min(220px, 42vw);
  height: 48px;
  object-fit: contain;
}

.brand-block strong {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-block span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tabbar {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 14px clamp(12px, 1.5vw, 24px) 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.tabbar button,
.tabbar a {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  padding: 8px 14px;
  font-weight: 800;
  text-decoration: none;
}

.tabbar button.active {
  border-color: #1f2937;
  background: #1f2937;
  color: #fff;
}

.content {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 18px clamp(12px, 1.5vw, 24px) 48px;
}

.content > *,
.content .kpi-grid,
.content .panel-grid,
.content .split-section,
.content .panel,
.content .kpi {
  min-width: 0;
  max-width: 100%;
}

.content input,
.content select,
.content textarea {
  max-width: 100%;
}

.range-form {
  grid-template-columns: repeat(2, minmax(160px, 220px)) auto auto auto;
  align-items: end;
  margin-bottom: 16px;
}

.work-time-month-range-form {
  grid-template-columns: minmax(140px, 180px) minmax(120px, 160px) minmax(160px, 220px);
  max-width: 580px;
}

.date-preset-group {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 44px;
}

.date-preset-button {
  min-width: 44px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.date-preset-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.date-preset-button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.notice {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}

.notice.success {
  border-color: rgba(22, 136, 90, 0.30);
  background: rgba(22, 136, 90, 0.08);
}

.notice.error {
  border-color: rgba(194, 65, 90, 0.30);
  background: rgba(194, 65, 90, 0.08);
}

.notice.warning {
  border-color: rgba(180, 83, 9, 0.30);
  background: rgba(180, 83, 9, 0.08);
}

.loading-line {
  height: 3px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--amber));
  animation: pulse 1.1s ease-in-out infinite alternate;
}

.kpi-grid,
.panel-grid,
.split-section {
  display: grid;
  gap: 16px;
}

.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.kpi-grid.compact-kpi {
  margin-bottom: 14px;
}

.kpi-grid.daeryun-production-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-only-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-only-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid rgba(180, 83, 9, 0.35);
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.admin-only-block {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px dashed rgba(180, 83, 9, 0.4);
  border-radius: 8px;
  background: #fffaf4;
}

.admin-only-block-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
}

.admin-only-block-header strong {
  color: var(--text);
  font-size: 13px;
}

.compact-kpi .kpi {
  box-shadow: none;
}

.compact-kpi .kpi strong {
  font-size: clamp(18px, 1.7vw, 24px);
}

.panel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.split-section {
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
}

.kpi,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.kpi {
  padding: 18px;
  border-left-width: 5px;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.kpi strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: 0;
}

.accent-blue {
  border-left-color: var(--blue);
}

.accent-green {
  border-left-color: var(--green);
}

.accent-amber {
  border-left-color: var(--amber);
}

.accent-rose {
  border-left-color: var(--rose);
}

.accent-slate {
  border-left-color: #475569;
}

.panel {
  min-width: 0;
  padding: 18px;
}

.integration-panel {
  margin-bottom: 16px;
}

.dashboard-week-schedule {
  margin-bottom: 16px;
  overflow: hidden;
  padding: 0;
}

.dashboard-week-schedule-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 18px;
}

.dashboard-week-schedule-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.dashboard-week-schedule-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 1000px;
  align-items: stretch;
}

.dashboard-week-schedule-day {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #fff;
}

.dashboard-week-schedule-day:last-child {
  border-right: 0;
}

.dashboard-week-schedule-day > header {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.dashboard-week-schedule-day > header strong {
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
}

.dashboard-week-schedule-day > header span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.dashboard-week-schedule-day > header b {
  color: #087a57;
}

.dashboard-week-schedule-day.is-today > header {
  background: #ecfdf5;
  box-shadow: inset 0 3px #15936c;
}

.dashboard-week-schedule-entries {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 110px;
  padding: 8px;
}

.dashboard-week-schedule-entry {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 8px 8px 9px;
  border-left: 3px solid #cbd5e1;
  border-bottom: 1px solid #e4eaf1;
  background: #fbfcfe;
}

.dashboard-week-schedule-entry.shift-morning {
  background: #f5f9ff;
}

.dashboard-week-schedule-entry.shift-afternoon {
  background: #fff7fa;
}

.dashboard-week-schedule-entry-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.dashboard-week-schedule-site,
.dashboard-week-schedule-shift {
  font-size: 12px;
  font-weight: 800;
}

.dashboard-week-schedule-entry.site-daeryun .dashboard-week-schedule-site {
  color: #9a6500;
}

.dashboard-week-schedule-entry.site-daeryun {
  border-left-color: #c88616;
}

.dashboard-week-schedule-entry.site-duksung .dashboard-week-schedule-site {
  color: #185ac9;
}

.dashboard-week-schedule-entry.site-duksung {
  border-left-color: #2d67d5;
}

.dashboard-week-schedule-entry.shift-morning .dashboard-week-schedule-shift {
  color: #185ac9;
}

.dashboard-week-schedule-entry.shift-afternoon .dashboard-week-schedule-shift {
  color: #c43b61;
}

.dashboard-week-schedule-time {
  font-size: 12px;
  white-space: nowrap;
}

.dashboard-week-schedule-workers {
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.dashboard-week-schedule-memo {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.dashboard-week-schedule-empty {
  display: grid;
  min-height: 72px;
  margin: 0;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.integration-grid div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfc;
  padding: 12px;
}

.integration-grid span,
.integration-actions span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.integration-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  word-break: break-word;
}

.integration-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.inventory-filter-form {
  grid-template-columns: minmax(220px, 0.7fr) minmax(260px, 1fr) auto;
  align-items: end;
  margin-bottom: 12px;
}

.inventory-filter-form select[multiple] {
  min-height: 118px;
}

.inventory-filter-actions {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.inventory-filter-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-section-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  padding: 8px 12px;
  font-weight: 800;
}

.admin-section-tabs button.active {
  border-color: #1f2937;
  background: #1f2937;
  color: #fff;
}

.daeryun-shipping-panel {
  display: grid;
  gap: 16px;
  overflow: hidden;
}

.daeryun-shipping-heading {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  padding-bottom: 12px;
}

.daeryun-shipping-tabs {
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 4px;
}

.daeryun-shipping-tabs button {
  min-width: 128px;
  border-color: transparent;
  background: transparent;
}

.daeryun-shipping-tabs button.active {
  border-color: #1f2937;
  background: #1f2937;
  color: #fff;
}

.daeryun-shipping-empty {
  padding-top: 6px;
}

.daeryun-shipping-section {
  display: grid;
  gap: 16px;
}

.daeryun-shipping-overview {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.daeryun-shipping-overview article {
  display: grid;
  gap: 6px;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdff;
  padding: 12px 14px;
}

.daeryun-shipping-overview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.daeryun-shipping-overview strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
}

.coupang-shipping-item-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  margin-bottom: 0;
}

.coupang-pallet-generator {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.coupang-pallet-generator-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.coupang-pallet-generator-header div {
  display: grid;
  gap: 4px;
}

.coupang-pallet-generator-header strong {
  font-size: 16px;
}

.coupang-pallet-generator-header span,
.muted-small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.coupang-pallet-generator-actions {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.coupang-shipping-record-manager {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdff;
  padding: 16px;
}

.compact-heading {
  margin-bottom: 0;
}

.coupang-shipping-record-meta {
  grid-template-columns: minmax(160px, 0.6fr) minmax(240px, 1fr) auto;
  align-items: end;
  margin-bottom: 0;
}

.coupang-shipping-record-meta.has-inbound-type {
  grid-template-columns: minmax(150px, 0.55fr) minmax(130px, 160px) minmax(220px, 1fr) auto;
}

.coupang-shipping-record-table {
  min-width: 860px;
  table-layout: fixed;
}

.coupang-shipping-record-table th,
.coupang-shipping-record-table td,
.coupang-shipping-record-list-table th,
.coupang-shipping-record-list-table td {
  white-space: nowrap;
}

.coupang-shipping-record-table th {
  background: #f8fafc;
}

.coupang-shipping-record-table input[type="number"] {
  width: 96px;
  text-align: right;
}

.coupang-shipping-record-table tfoot th {
  background: #f8fafc;
  font-weight: 900;
}

.coupang-shipping-record-list {
  display: grid;
  gap: 10px;
}

.coupang-shipping-record-list-table {
  width: 100%;
  min-width: 1100px;
  table-layout: auto;
}

.coupang-shipping-record-list-table .shipping-record-date-col,
.coupang-shipping-record-list-table .shipping-record-inbound-col {
  width: 140px;
}

.coupang-shipping-record-list-table .shipping-record-number-col {
  width: 110px;
  text-align: right;
}

.coupang-shipping-record-list-table .shipping-record-actions-col {
  width: 500px;
  text-align: right;
}

.coupang-shipping-record-list-table .shipping-record-updated-col {
  width: 180px;
}

.coupang-shipping-record-list-table th {
  background: #f8fafc;
}

.coupang-shipping-record-list-table tbody tr.selected {
  background: #eff6ff;
  outline: 2px solid rgba(37, 99, 235, 0.2);
  outline-offset: -2px;
}

.summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.summary-badges span {
  border-radius: 999px;
  background: #eef2ff;
  color: #1f2937;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
}

.inline-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  flex-wrap: wrap;
}

.shipping-document-actions {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.file-upload-button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.file-upload-button input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

@media (max-width: 720px) {
  .daeryun-shipping-heading {
    padding-bottom: 10px;
  }

  .daeryun-shipping-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .daeryun-shipping-tabs button {
    min-width: 0;
  }

  .daeryun-shipping-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coupang-shipping-record-manager {
    padding: 12px;
  }

  .coupang-pallet-generator-header,
  .coupang-pallet-generator-actions,
  .coupang-shipping-record-meta,
  .coupang-shipping-record-meta.has-inbound-type {
    grid-template-columns: 1fr;
  }

  .coupang-pallet-generator-header {
    display: grid;
  }

  .shipping-record-list-wrap,
  .shipping-items-wrap {
    overflow-x: visible;
  }

  .coupang-shipping-record-list-table,
  .coupang-shipping-items-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .coupang-shipping-record-list-table thead,
  .coupang-shipping-items-table thead {
    display: none;
  }

  .coupang-shipping-record-list-table tbody,
  .coupang-shipping-record-list-table tr,
  .coupang-shipping-record-list-table td,
  .coupang-shipping-items-table tbody,
  .coupang-shipping-items-table tr,
  .coupang-shipping-items-table td {
    display: block;
  }

  .coupang-shipping-record-list-table tbody tr,
  .coupang-shipping-items-table tbody tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px;
  }

  .coupang-shipping-record-list-table td,
  .coupang-shipping-items-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: auto !important;
    border-bottom: 0;
    padding: 6px 0;
    text-align: right;
    white-space: normal;
  }

  .coupang-shipping-record-list-table td::before,
  .coupang-shipping-items-table td::before {
    content: attr(data-label);
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 900;
    text-align: left;
  }

  .coupang-shipping-record-list-table td.shipping-record-actions-col,
  .coupang-shipping-items-table td.table-actions {
    display: grid;
    gap: 8px;
    text-align: left;
  }

  .coupang-shipping-record-list-table .inline-actions,
  .coupang-shipping-items-table .table-actions {
    justify-content: flex-end;
    justify-items: end;
  }
}

.coupang-shipping-dimension-preview {
  display: grid;
  align-content: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  padding: 8px 12px;
}

.coupang-shipping-dimension-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.coupang-shipping-dimension-preview strong {
  font-size: 18px;
}

.coupang-shipping-form-actions {
  align-self: stretch;
}

.coupang-shipping-items-table {
  min-width: 1040px;
}

.coupang-shipping-items-table th,
.coupang-shipping-items-table td {
  white-space: nowrap;
}

.coupang-shipping-items-table th {
  background: #f8fafc;
}

.coupang-shipping-items-table .dimension-sum-col {
  min-width: 132px;
}

.coupang-shipping-items-table tbody tr.selected {
  background: #eff6ff;
  outline: 2px solid rgba(37, 99, 235, 0.2);
  outline-offset: -2px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.right {
  text-align: right;
}

.admin-sync-range {
  margin: 0;
}

.sync-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sync-service-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.sync-metric-list {
  display: grid;
  gap: 8px;
}

.sync-metric-list div {
  display: grid;
  grid-template-columns: minmax(84px, 0.7fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.sync-metric-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sync-metric-list strong {
  min-width: 0;
  font-size: 14px;
  word-break: break-word;
}

.sync-schedule-form {
  gap: 10px;
  margin-top: 2px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.sync-schedule-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.sync-schedule-toggle input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.sync-schedule-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sync-schedule-summary {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sync-schedule-error {
  color: var(--rose);
}

.integration-management-hero {
  display: grid;
  gap: 14px;
}

.integration-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.integration-summary-grid div {
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfc;
  padding: 12px;
}

.integration-summary-grid span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.integration-summary-grid strong {
  min-width: 0;
  font-size: 16px;
  word-break: break-word;
}

.integration-summary-grid small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  word-break: break-word;
}

.integration-info-panel,
.integration-service-overview {
  display: grid;
  align-content: start;
  gap: 12px;
}

.integration-info-panel .panel-heading,
.integration-service-overview .panel-heading {
  gap: 10px;
}

.integration-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.integration-detail-list div {
  display: grid;
  grid-template-columns: minmax(92px, 0.45fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.integration-detail-list div:first-child {
  padding-top: 0;
}

.integration-detail-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.integration-detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.integration-detail-list dd {
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  word-break: break-word;
}

.integration-detail-list a {
  color: var(--blue);
}

.integration-schedule-line {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.integration-schedule-line span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.integration-schedule-line strong {
  font-size: 13px;
}

.compact-empty-state {
  min-height: auto;
  place-items: start;
  padding: 10px;
  font-size: 12px;
}

.basic-code-layout {
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1.55fr);
}

.basic-code-filter-form {
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 180px) auto;
  align-items: end;
  margin-bottom: 12px;
}

.basic-code-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-control-panel {
  margin-bottom: 16px;
}

.order-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.6fr);
  gap: 16px;
  align-items: end;
}

.order-toolbar > :only-child {
  grid-column: 1 / -1;
}

.order-range-form {
  grid-template-columns: repeat(2, minmax(160px, 220px)) auto auto auto;
}

.order-filter-form {
  grid-template-columns: minmax(130px, 0.7fr) minmax(130px, 0.7fr) minmax(160px, 0.9fr) minmax(240px, 1.4fr) auto;
  align-items: end;
}

.order-keyword-filter {
  min-width: 0;
}

.order-export-form {
  grid-template-columns: auto;
  justify-content: end;
  align-items: end;
}

.order-export-actions {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  gap: 8px;
}

.order-export-actions .order-export-form {
  margin: 0;
}

.order-mapping-layer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.order-mapping-layer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.42);
  cursor: pointer;
}

.order-mapping-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 40px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  padding: 18px;
}

.order-mapping-dialog-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: -18px -18px 14px;
  padding: 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.order-mapping-list {
  display: grid;
  gap: 8px;
}

.order-mapping-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(170px, 0.8fr) minmax(170px, 0.8fr) minmax(150px, 0.7fr) 76px 70px;
  gap: 8px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfc;
  padding: 8px;
}

.market-customer-mapping-row {
  grid-template-columns: minmax(260px, 1.4fr) minmax(200px, 0.9fr) minmax(200px, 0.9fr) 76px 70px;
}

.order-market-product {
  min-width: 0;
  gap: 2px;
  cursor: help;
}

.order-market-product strong,
.order-market-product small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-market-product small {
  color: var(--muted);
  font-size: 12px;
}

.order-items-table .order-date-cell,
.order-items-table th:first-child {
  min-width: 112px;
  white-space: nowrap;
}

.order-items-table th:nth-child(2),
.order-items-table td:nth-child(2) {
  min-width: 180px;
}

.order-items-table th:nth-child(3),
.order-items-table td:nth-child(3) {
  min-width: 240px;
}

.order-items-table th:nth-child(4),
.order-items-table td:nth-child(4) {
  min-width: 260px;
}

.order-number-cell,
.order-product-cell,
.order-info-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.order-number-cell span,
.order-product-cell small,
.order-info-summary span {
  color: var(--muted);
  font-size: 12px;
}

.order-number-cell strong,
.order-product-cell strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.order-number-cell small {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.order-product-cell code {
  color: #334155;
  font-size: 12px;
}

.order-info-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.order-info-summary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  padding: 2px 7px;
  white-space: nowrap;
}

.order-detail-panel {
  color: var(--muted);
  font-size: 12px;
}

.order-detail-panel summary {
  width: max-content;
  color: #2563eb;
  cursor: pointer;
  font-weight: 800;
}

.order-detail-panel dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 10px;
  margin: 6px 0 0;
}

.order-detail-panel div {
  display: contents;
}

.order-detail-panel dt {
  color: var(--muted);
}

.order-detail-panel dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.order-info-multiline {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.mapping-active {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.mapping-active input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.company-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.company-logo-form {
  min-width: 0;
  padding: 0;
}

.company-logo-form .panel-heading {
  margin-bottom: 2px;
}

.logo-admin-preview {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fafbfc;
}

.logo-admin-preview img {
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
}

.menu-manager {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 16px;
}

.menu-employee-list,
.menu-settings-form,
.menu-settings-list {
  display: grid;
  gap: 6px;
}

.menu-employee-list button {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 10px;
  text-align: left;
  font-weight: 800;
}

.menu-employee-list button.active {
  border-color: #1f2937;
  background: #1f2937;
  color: #fff;
}

.menu-employee-list span {
  color: var(--muted);
  font-size: 12px;
}

.menu-setting-row {
  display: grid;
  grid-template-columns: 24px 28px minmax(0, 1fr) 112px 92px;
  align-items: center;
  column-gap: 8px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfc;
  padding: 4px 8px;
}

.menu-setting-row select {
  min-height: 34px;
}

.menu-setting-row.dragging {
  opacity: 0.55;
  outline: 2px solid rgba(37, 99, 235, 0.35);
}

.drag-handle {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  cursor: grab;
  font-weight: 900;
}

.drag-handle:active {
  cursor: grabbing;
}

.menu-setting-row > span {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  white-space: nowrap;
}

.menu-setting-row > span strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-setting-row .muted-text {
  flex: 0 0 auto;
}

.menu-setting-row input[type="checkbox"] {
  justify-self: center;
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.menu-setting-row input[type="number"] {
  min-height: 28px;
  padding: 3px 8px;
  text-align: right;
}

.menu-employee-visibility-panel {
  margin-top: 16px;
}

.menu-centered-manager {
  align-items: start;
}

.menu-catalog-list {
  max-height: 620px;
  overflow-y: auto;
  padding-right: 4px;
}

.menu-employee-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  padding: 0 2px 10px;
}

.menu-employee-summary strong {
  font-size: 18px;
}

.menu-employee-summary span,
.menu-employee-access-table td small {
  color: var(--muted);
  font-size: 12px;
}

.menu-employee-access-table {
  min-width: 760px;
}

.menu-employee-access-table td:first-child {
  display: grid;
  gap: 3px;
}

.menu-employee-access-table select {
  width: 100%;
  min-width: 88px;
}

.menu-visibility-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  white-space: nowrap;
}

.menu-visibility-toggle input {
  width: 18px;
  height: 18px;
}

.daily-work-section {
  align-items: start;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.work-time-page,
.work-time-form {
  display: grid;
  gap: 16px;
}

.work-time-page .panel {
  min-width: 0;
}

.work-time-kpi-grid {
  grid-template-columns: minmax(260px, 1.35fr) repeat(2, minmax(180px, 1fr));
}

.work-time-total-pay-kpi strong {
  font-size: 26px;
}

.work-time-section {
  align-items: start;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
}

.work-time-form-panel {
  position: sticky;
  top: 16px;
}

.work-time-break-end-field {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
}

.work-time-break-end-row {
  align-items: stretch;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.work-time-break-end-row .small-button {
  min-width: 78px;
  white-space: nowrap;
}

.work-time-break-cell {
  min-width: 150px;
  white-space: normal;
}

.work-time-filter-panel {
  margin-bottom: 16px;
  box-shadow: none;
}

.work-time-filter-form {
  grid-template-columns: minmax(180px, 240px) minmax(220px, 320px) minmax(260px, 1fr);
  align-items: end;
}

.work-time-filter-actions {
  display: flex;
  gap: 8px;
  align-items: end;
  justify-content: flex-end;
}

.work-time-filter-actions button {
  min-height: 42px;
  white-space: nowrap;
}

.work-time-employee-summary {
  margin-bottom: 12px;
}

.work-time-summary-table {
  min-width: 0;
  table-layout: fixed;
}

.work-time-summary-table th:not(:first-child),
.work-time-summary-table td:not(:first-child) {
  text-align: right;
}

.work-time-list-panel .panel-heading {
  align-items: flex-start;
}

.work-time-table,
.work-time-settlement-table {
  table-layout: auto;
}

.work-time-table {
  min-width: 980px;
}

.work-time-table th,
.work-time-table td,
.work-time-settlement-table th,
.work-time-settlement-table td {
  vertical-align: middle;
  white-space: nowrap;
}

.work-time-table th:first-child,
.work-time-table td:first-child,
.work-time-settlement-table th:first-child,
.work-time-settlement-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  box-shadow: 1px 0 0 var(--line);
}

.work-time-table th:first-child,
.work-time-settlement-table th:first-child {
  z-index: 2;
}

.work-time-table tbody tr.selected {
  background: #eff6ff;
  outline: 2px solid rgba(37, 99, 235, 0.2);
  outline-offset: -2px;
}

.work-time-table tbody tr.selected td:first-child {
  background: #eff6ff;
}

.work-time-date-cell {
  font-weight: 900;
}

.work-time-number-cell,
.work-time-settlement-table td:nth-child(n+2):not(:last-child) {
  text-align: right;
}

.work-time-memo-cell {
  max-width: 220px;
  white-space: normal;
}

.work-time-table th:last-child,
.work-time-table td:last-child {
  min-width: 150px;
}

.work-time-table .small-button {
  white-space: nowrap;
}

.work-time-settlement-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.work-time-settlement-table {
  min-width: 1120px;
}

.inline-check {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  margin-right: 12px;
  white-space: nowrap;
}

.work-time-monthly-table input,
.work-time-monthly-table select,
.work-time-monthly-table textarea {
  min-width: 96px;
}

.work-time-settings-standalone .work-time-monthly-table {
  min-width: 2000px;
}

.work-time-monthly-table input[type="date"] {
  min-width: 136px;
}

.work-time-monthly-table input[type="number"] {
  min-width: 88px;
}

.work-time-monthly-table textarea {
  min-height: 64px;
  min-width: 180px;
}

.work-time-monthly-table input[name="employeeNotes"] {
  min-width: 180px;
}

.work-time-settings-month-filter {
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px 14px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  padding: 12px;
}

.work-time-settings-month-filter label {
  margin: 0;
}

.work-time-settings-month-filter .field-note {
  margin: 0;
}

.work-time-monthly-panel {
  margin-top: 16px;
}

.daily-work-form,
.daily-work-meta-grid {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.daily-work-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.daily-work-form-panel,
.daily-work-block,
.daily-work-table-wrap,
.daily-process-wrap {
  min-width: 0;
}

.daily-work-block {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdff;
  padding: 14px;
}

.daily-work-table-wrap,
.daily-process-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.daily-task-table,
.daily-process-table {
  table-layout: fixed;
}

.daily-task-table {
  min-width: 860px;
}

.daily-process-table {
  min-width: 1160px;
}

.facility-table {
  min-width: 840px;
}

.daily-task-table th,
.daily-task-table td,
.daily-process-table th,
.daily-process-table td {
  padding: 8px 6px;
}

.daily-task-table input,
.daily-process-table input {
  min-width: 0;
  min-height: 34px;
  padding: 7px 8px;
  font-size: 13px;
}

.daily-task-table th:first-child,
.daily-task-table td:first-child {
  width: 52px;
}

.daily-task-table th:last-child,
.daily-task-table td:last-child {
  width: 62px;
}

.daily-process-table th:first-child,
.daily-process-table td:first-child {
  width: 82px;
}

.daily-process-table th:nth-child(2),
.daily-process-table td:nth-child(2) {
  width: 48px;
}

.daily-work-list-table tbody tr {
  cursor: pointer;
}

.daily-work-list-table tbody tr:hover {
  background: #f8fafc;
}

.daily-work-list-table tbody tr.selected {
  background: #eff6ff;
  outline: 2px solid rgba(37, 99, 235, 0.2);
  outline-offset: -2px;
}

.environmental-section {
  align-items: start;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.environment-form,
.environment-meta-grid,
.self-measure-grid {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.environment-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.environment-form-panel,
.environment-block,
.environment-table-wrap {
  min-width: 0;
}

.environment-block {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdff;
  padding: 14px;
}

.environment-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.electric-usage-edit-table,
.air-edit-table,
.wastewater-edit-table {
  table-layout: fixed;
}

.electric-usage-edit-table {
  min-width: 1320px;
}

.air-edit-table {
  min-width: 920px;
}

.wastewater-edit-table {
  min-width: 1480px;
}

.electric-usage-edit-table th:first-child,
.electric-usage-edit-table td:first-child {
  width: 132px;
}

.electric-usage-edit-table th:last-child,
.electric-usage-edit-table td:last-child {
  width: 62px;
}

.electric-usage-edit-table th:nth-last-child(2),
.electric-usage-edit-table td:nth-last-child(2) {
  width: 70px;
}

.electric-usage-edit-table th,
.electric-usage-edit-table td,
.air-edit-table th,
.air-edit-table td,
.wastewater-edit-table th,
.wastewater-edit-table td {
  padding: 6px 5px;
}

.electric-usage-edit-table input,
.air-edit-table input,
.wastewater-edit-table input {
  min-width: 0;
  min-height: 32px;
  padding: 6px 7px;
  font-size: 12px;
}

.electric-usage-edit-table .readonly-cell {
  background: #f8fafc;
  color: var(--text);
  font-weight: 900;
  text-align: right;
}

.self-measure-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.environment-list-table tbody tr {
  cursor: pointer;
}

.environment-list-table tbody tr:hover {
  background: #f8fafc;
}

.environment-list-table tbody tr.selected {
  background: #eff6ff;
  outline: 2px solid rgba(37, 99, 235, 0.2);
  outline-offset: -2px;
}

.production-order-section {
  align-items: start;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.production-order-form,
.production-order-fields,
.production-quantity-grid {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.production-order-section > .panel,
.production-order-form-panel,
.material-edit-block,
.material-table-wrap {
  min-width: 0;
}

.production-order-fields,
.production-quantity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.production-quantity-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.button-row,
.sub-heading,
.summary-strip,
.weekday-input-row,
.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button-row,
.sub-heading,
.form-actions {
  flex-wrap: wrap;
}

.weekday-input-row {
  align-items: stretch;
}

.weekday-input-row input {
  min-width: 0;
}

.weekday-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--text);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.sub-heading {
  justify-content: space-between;
  margin-bottom: 10px;
}

.summary-strip {
  justify-content: flex-end;
  margin-top: 10px;
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px 12px;
  font-weight: 800;
}

.summary-strip span {
  color: var(--muted);
}

.material-edit-block {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdff;
  padding: 14px;
}

.material-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.material-edit-table {
  table-layout: fixed;
  min-width: 520px;
}

.production-instruction-table {
  min-width: 560px;
}

.production-work-time-table {
  table-layout: auto;
  min-width: 1120px;
}

.material-edit-table th,
.material-edit-table td {
  padding: 8px 6px;
}

.material-edit-table th:first-child,
.material-edit-table td:first-child {
  width: 44px;
}

.material-edit-table th:nth-child(2),
.material-edit-table td:nth-child(2) {
  width: 74px;
}

.material-edit-table th:nth-child(3),
.material-edit-table td:nth-child(3) {
  width: 112px;
}

.material-edit-table th:nth-child(4),
.material-edit-table td:nth-child(4) {
  width: 82px;
}

.material-edit-table th:nth-child(5),
.material-edit-table td:nth-child(5) {
  width: 112px;
}

.material-edit-table th:last-child,
.material-edit-table td:last-child {
  width: 62px;
}

.production-instruction-table th:first-child,
.production-instruction-table td:first-child {
  width: 48px;
}

.production-instruction-table th:nth-child(2),
.production-instruction-table td:nth-child(2) {
  width: 160px;
}

.production-instruction-table th:last-child,
.production-instruction-table td:last-child,
.production-work-time-table th:last-child,
.production-work-time-table td:last-child {
  width: 62px;
}

.production-work-time-table th,
.production-work-time-table td {
  width: 180px;
  min-width: 180px;
}

.production-work-time-table th:first-child,
.production-work-time-table td:first-child {
  width: 140px;
  min-width: 140px;
}

.production-work-time-table th:last-child,
.production-work-time-table td:last-child {
  width: 70px;
  min-width: 70px;
}

.time-range-inputs {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
  align-items: center;
  gap: 4px;
}

.time-range-inputs select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding-inline: 4px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.time-range-inputs span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.production-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.material-edit-table input,
.material-edit-table select {
  min-width: 0;
  min-height: 36px;
  padding: 7px 8px;
  font-size: 13px;
}

.material-edit-table .small-button {
  min-height: 34px;
  padding: 5px 7px;
  font-size: 13px;
  white-space: nowrap;
}

.production-order-list-table td strong,
.material-summary {
  display: grid;
  gap: 3px;
}

.production-order-list-table td .muted-text {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.production-order-list-table tbody tr {
  cursor: pointer;
}

.production-order-list-table tbody tr:hover {
  background: #f8fafc;
}

.production-order-list-table tbody tr.selected {
  background: #eff6ff;
  outline: 2px solid rgba(37, 99, 235, 0.2);
  outline-offset: -2px;
}

.daeryun-production-form {
  display: grid;
  gap: 14px;
}

.daeryun-production-item-form {
  grid-template-columns: 130px minmax(220px, 1fr) minmax(180px, 1fr) 120px auto;
  align-items: end;
  margin-bottom: 0;
  padding-bottom: 0;
}

.daeryun-production-heading {
  align-items: flex-start;
}

.daeryun-production-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.daeryun-production-date-control {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 8px;
  min-width: 250px;
  white-space: nowrap;
}

.daeryun-production-date-control span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.daeryun-production-date-control input,
.daeryun-production-date-control select {
  width: 210px;
  min-width: 180px;
  min-height: 34px;
  padding: 7px 10px;
}

.daeryun-production-shift-control {
  min-width: 170px;
}

.daeryun-production-shift-control select {
  width: 110px;
  min-width: 100px;
}

.daeryun-production-worker-control {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
}

.daeryun-production-worker-control > label {
  min-width: 140px;
}

.daeryun-production-worker-control > label input {
  max-width: 150px;
}

.daeryun-production-worker-control .daeryun-production-worker-names {
  position: relative;
  flex: 1 1 360px;
  min-width: 280px;
  margin: 0;
  padding: 0;
  border: 0;
}

.daeryun-production-worker-names legend {
  margin-bottom: 5px;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.daeryun-production-worker-select {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.daeryun-production-worker-select summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
  list-style: none;
}

.daeryun-production-worker-select summary::-webkit-details-marker {
  display: none;
}

.daeryun-production-worker-select summary::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  content: "";
  transform: rotate(45deg) translateY(-2px);
}

.daeryun-production-worker-select[open] summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.daeryun-production-worker-select summary > span {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daeryun-production-worker-select summary small {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.daeryun-production-worker-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
}

.daeryun-production-worker-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfc;
  cursor: pointer;
}

.daeryun-production-worker-options label:has(input:checked) {
  border-color: rgba(37, 99, 235, 0.45);
  background: #eff6ff;
  color: #1d4ed8;
}

.daeryun-production-worker-options input {
  width: 18px;
  height: 18px;
  max-width: none;
  margin: 0;
  accent-color: var(--blue);
}

.daeryun-production-worker-names:disabled .daeryun-production-worker-select summary {
  cursor: default;
  opacity: 0.72;
}

.daeryun-production-worker-control .daeryun-production-per-person-card {
  min-width: 130px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfc;
  padding: 8px 10px;
}

.daeryun-production-worker-control strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
}

@media (max-width: 720px) {
  .daeryun-production-worker-control > label,
  .daeryun-production-worker-control .daeryun-production-worker-names,
  .daeryun-production-worker-control .daeryun-production-per-person-card {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .daeryun-production-worker-control > label input,
  .daeryun-production-worker-select {
    width: 100%;
    max-width: none;
  }

  .daeryun-production-worker-options {
    position: static;
    margin-top: 6px;
    box-shadow: none;
  }
}

.production-date-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.production-total-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.production-total-preview div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfc;
  padding: 10px;
}

.production-total-preview span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.production-total-preview strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.daeryun-production-table th,
.daeryun-production-table td {
  vertical-align: middle;
}

.daeryun-production-table input {
  min-width: 110px;
}

.daeryun-production-history-table tbody tr.is-selectable {
  cursor: pointer;
}

.daeryun-production-history-table tbody tr.is-selectable:hover {
  background: #f8fafc;
}

.daeryun-production-history-table tbody tr.is-selectable.selected {
  background: #eff6ff;
  outline: 2px solid rgba(37, 99, 235, 0.2);
  outline-offset: -2px;
}

.daeryun-production-worker-names-cell {
  min-width: 150px;
  white-space: normal;
}

.production-request-note textarea {
  min-height: 86px;
  resize: vertical;
}

.production-process-cell {
  color: var(--text);
  font-weight: 900;
}

.material-summary span {
  white-space: nowrap;
}

.panel.wide {
  grid-column: 1 / -1;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.panel-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.panel-heading .admin-only-meta {
  display: inline-flex;
}

.panel-heading .admin-only-badge {
  color: #9a3412;
  font-size: 11px;
  font-weight: 900;
}

.panel-heading.compact {
  margin-bottom: 8px;
}

.panel-heading h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0;
}

.sub-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.bar-chart {
  min-height: 260px;
  display: flex;
  align-items: end;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 2px 0;
}

.bar-item {
  flex: 1 0 88px;
  min-width: 88px;
  display: grid;
  gap: 8px;
  align-items: end;
  text-align: center;
}

.bar-track {
  height: 170px;
  display: flex;
  align-items: end;
  border-radius: 6px;
  background: var(--surface-muted);
  overflow: hidden;
}

.bar-fill {
  width: 100%;
  min-height: 4px;
  background: linear-gradient(180deg, #2563eb, #16885a);
}

.bar-item strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  word-break: keep-all;
}

.bar-item span {
  color: var(--muted);
  font-size: 12px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.table-wrap.mini table {
  min-width: 360px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

td {
  font-size: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.ok {
  background: rgba(22, 136, 90, 0.10);
  color: var(--green);
}

.status-pill.muted {
  background: rgba(102, 114, 130, 0.12);
  color: var(--muted);
}

.status-pill.running {
  background: rgba(37, 99, 235, 0.11);
  color: var(--blue);
}

.status-pill.warning {
  background: rgba(183, 121, 31, 0.13);
  color: var(--amber);
}

.status-pill.failed {
  background: rgba(194, 65, 90, 0.12);
  color: var(--rose);
}

.file-link {
  display: inline-block;
  max-width: 160px;
  margin-right: 6px;
  color: var(--blue);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
  white-space: nowrap;
}

.muted-text,
.empty-state {
  color: var(--muted);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: #fafbfc;
  font-weight: 800;
}

@keyframes pulse {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-grid.daeryun-production-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-grid,
  .split-section,
  .integration-grid,
  .integration-summary-grid,
  .inventory-filter-form,
  .sync-service-grid,
  .company-logo-grid,
  .order-toolbar,
  .basic-code-layout,
  .order-filter-form,
  .basic-code-filter-form,
  .order-export-actions,
  .order-export-form,
  .order-mapping-row,
  .menu-manager,
  .work-time-section {
    grid-template-columns: 1fr;
  }

  .work-time-form-panel {
    position: static;
  }

  .work-time-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .order-export-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 1280px) and (min-width: 721px) {
  .range-form:not(.work-time-month-range-form) {
    grid-template-columns: repeat(2, minmax(160px, 1fr)) minmax(0, 2fr);
  }

  .range-form:not(.work-time-month-range-form) > button:not(.date-preset-button) {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
    min-width: 0;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    position: static;
    gap: 10px;
    padding: 10px 12px;
  }

  .brand-block {
    width: 100%;
    gap: 8px;
  }

  .brand-logo {
    max-width: min(160px, 52vw);
    height: 38px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-block strong {
    max-width: calc(100vw - 92px);
  }

  .user-block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .user-block > span,
  .user-block .permission-preview-control {
    grid-column: 1 / -1;
  }

  .user-block > button,
  .user-block > a {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .permission-preview-control,
  .permission-preview-control select {
    width: 100%;
  }

  .permission-preview-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .impersonation-banner,
  .permission-preview-banner {
    gap: 8px;
    padding: 10px 12px;
  }

  .impersonation-banner,
  .permission-preview-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .tabbar {
    gap: 6px;
    padding: 8px 10px 0;
    scrollbar-width: thin;
  }

  .tabbar button,
  .tabbar a {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .content {
    padding: 12px 10px 32px;
  }

  .notice {
    margin-bottom: 10px;
    padding: 9px 10px;
    font-size: 13px;
  }

  .range-form,
  .entry-form,
  .work-time-settings-month-filter,
  .work-time-filter-form,
  .inventory-filter-form,
  .daeryun-production-item-form,
  .coupang-shipping-item-form,
  .sync-schedule-fields,
  .environment-meta-grid,
  .self-measure-grid,
  .integration-detail-list div {
    grid-template-columns: 1fr;
  }

  .range-form,
  .entry-form,
  .daily-work-form,
  .production-order-form {
    gap: 10px;
  }

  .range-form > button:not(.date-preset-button),
  .range-form > .admin-only-badge {
    width: 100%;
  }

  .date-preset-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
  }

  .date-preset-button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 6px 4px;
    font-size: 13px;
  }

  .kpi-grid,
  .kpi-grid.daeryun-production-kpi-grid,
  .work-time-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }

  .kpi {
    min-height: 88px;
    padding: 12px;
  }

  .kpi span {
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .kpi strong,
  .compact-kpi .kpi strong {
    margin-top: 6px;
    font-size: 20px;
    overflow-wrap: anywhere;
  }

  .panel {
    padding: 12px;
  }

  .panel-grid,
  .split-section,
  .sync-service-grid,
  .daeryun-shipping-section {
    gap: 12px;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
  }

  .panel-heading h2 {
    font-size: 17px;
  }

  .panel-heading span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .admin-section-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .admin-section-tabs button {
    width: 100%;
    min-width: 0;
    padding-inline: 6px;
  }

  .integration-grid,
  .integration-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .integration-grid div,
  .integration-summary-grid div {
    padding: 10px;
  }

  .form-actions,
  .basic-code-form-actions,
  .integration-actions,
  .order-export-actions,
  .production-order-actions,
  .coupang-shipping-form-actions,
  .inventory-filter-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }

  .form-actions > button,
  .form-actions > a,
  .basic-code-form-actions > button,
  .integration-actions > button,
  .integration-actions > a,
  .order-export-actions button,
  .production-order-actions > button,
  .coupang-shipping-form-actions > button,
  .inventory-filter-actions > button {
    width: 100%;
    min-width: 0;
  }

  .order-mapping-layer {
    padding: 8px;
  }

  .order-mapping-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 12px;
  }

  .order-mapping-dialog-heading {
    margin: -12px -12px 12px;
    padding: 12px;
  }

  .order-mapping-row .small-button {
    width: 100%;
  }

  .shipping-record-input-wrap,
  .shipping-record-list-wrap,
  .shipping-items-wrap {
    overflow-x: visible;
  }

  .coupang-shipping-record-table,
  .coupang-shipping-record-list-table,
  .coupang-shipping-items-table {
    width: 100%;
    min-width: 0 !important;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0 8px;
  }

  .coupang-shipping-record-table thead {
    display: none;
  }

  .coupang-shipping-record-table tbody,
  .coupang-shipping-record-table tbody tr,
  .coupang-shipping-record-table tbody td {
    display: block;
  }

  .coupang-shipping-record-table tbody tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px;
  }

  .coupang-shipping-record-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: auto !important;
    min-width: 0;
    border-bottom: 0;
    padding: 6px 0;
    text-align: right;
    white-space: normal;
  }

  .coupang-shipping-record-table tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 900;
    text-align: left;
  }

  .coupang-shipping-record-table tbody td strong,
  .coupang-shipping-items-table tbody td strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .coupang-shipping-record-table tbody input[type="number"] {
    width: min(120px, 46vw);
    min-width: 0;
  }

  .coupang-shipping-record-table tfoot,
  .coupang-shipping-record-table tfoot tr {
    display: block;
  }

  .coupang-shipping-record-table tfoot tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding-top: 4px;
  }

  .coupang-shipping-record-table tfoot th[colspan] {
    display: none;
  }

  .coupang-shipping-record-table tfoot th:not([colspan]) {
    display: grid;
    gap: 3px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 4px;
    text-align: center;
  }

  .coupang-shipping-record-table tfoot th:not([colspan])::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
  }

  .coupang-shipping-items-table tbody td {
    min-width: 0 !important;
    white-space: normal;
  }

  .coupang-shipping-items-table tbody td:not(.table-actions) {
    overflow-wrap: anywhere;
  }

  .production-order-fields,
  .production-quantity-grid,
  .daily-work-meta-grid {
    grid-template-columns: 1fr;
  }

  .summary-strip,
  .sub-heading,
  .weekday-input-row {
    flex-wrap: wrap;
  }

  .summary-strip {
    justify-content: flex-start;
  }

  .weekday-input-row input {
    flex: 1 1 180px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .menu-setting-row {
    grid-template-columns: 24px 28px minmax(0, 1fr);
  }

  .menu-setting-row select,
  .menu-setting-row input[type="number"] {
    grid-column: 3;
  }

  .production-date-row,
  .production-total-preview {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 760px;
  }

  .work-time-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .work-time-filter-actions button {
    width: 100%;
  }

  .work-time-page {
    gap: 12px;
  }

  .work-time-month-range-form {
    max-width: none;
  }

  .work-time-summary-table {
    min-width: 0;
  }

  .work-time-summary-table th,
  .work-time-summary-table td {
    padding: 8px 6px;
  }

  .work-time-summary-table th:first-child,
  .work-time-summary-table td:first-child {
    width: 72px;
  }

  .work-time-table-wrap {
    overflow-x: visible;
  }

  .work-time-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .work-time-table thead {
    display: none;
  }

  .work-time-table tbody,
  .work-time-table tr,
  .work-time-table td {
    display: block;
  }

  .work-time-table tbody tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px;
  }

  .work-time-table tbody tr.selected {
    background: #eff6ff;
    outline-offset: 0;
  }

  .work-time-table td,
  .work-time-table td:first-child {
    position: static;
    min-width: 0;
    max-width: none;
    border-bottom: 0;
    box-shadow: none;
    background: transparent;
    padding: 6px 0;
    white-space: normal;
  }

  .work-time-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: right;
  }

  .work-time-table td::before {
    content: attr(data-label);
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 900;
    text-align: left;
  }

  .work-time-table td[data-label="메모"],
  .work-time-table td[data-label="처리"] {
    align-items: flex-start;
    display: grid;
    gap: 8px;
    justify-content: stretch;
    text-align: left;
  }

  .work-time-table td[data-label="처리"] .button-row {
    justify-content: flex-end;
  }

  .work-time-settlement-table th:first-child,
  .work-time-settlement-table td:first-child {
    min-width: 92px;
  }

  .menu-catalog-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
    padding: 0 0 4px;
  }

  .menu-catalog-list button {
    flex: 0 0 148px;
  }

  .menu-employee-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .menu-employee-access-wrap {
    overflow-x: visible;
  }

  .menu-employee-access-table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .menu-employee-access-table thead {
    display: none;
  }

  .menu-employee-access-table tbody,
  .menu-employee-access-table tr,
  .menu-employee-access-table td,
  .menu-employee-access-table td:first-child {
    display: block;
  }

  .menu-employee-access-table tbody tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px;
  }

  .menu-employee-access-table td,
  .menu-employee-access-table td:first-child {
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 6px 0;
    white-space: normal;
  }

  .menu-employee-access-table td {
    display: grid;
    grid-template-columns: minmax(86px, 0.36fr) minmax(0, 0.64fr);
    align-items: center;
    gap: 10px;
  }

  .menu-employee-access-table td:first-child {
    display: grid;
  }

  .menu-employee-access-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .menu-employee-access-table td:first-child strong,
  .menu-employee-access-table td:first-child small {
    grid-column: 2;
  }

  .menu-employee-access-table select {
    min-width: 0;
  }
}

.product-management-shell {
  display: grid;
  gap: 16px;
}

.product-management-header .panel-heading {
  align-items: flex-end;
}

.product-management-header .panel-heading h2,
.product-detail-heading h2,
.product-detail-section h3 {
  margin: 0;
}

.product-management-intro,
.product-management-copy {
  margin: 0 0 16px;
  color: var(--muted);
}

.product-capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-management-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.6fr) minmax(0, 1.4fr);
  gap: 16px;
}

.product-create-panel,
.product-list-panel {
  min-width: 0;
}

.product-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(130px, 0.35fr) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}

.product-list-table {
  min-width: 720px;
}

.selected-product-row {
  background: rgba(37, 99, 235, 0.06);
}

.selected-product-row td:first-child {
  box-shadow: inset 3px 0 0 var(--blue);
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.product-facts.compact {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.product-facts div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfc;
  padding: 10px 12px;
}

.product-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-facts dd {
  margin: 4px 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-detail-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdff;
  padding: 14px;
}

.product-inline-form {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.product-option-editor {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.product-option-editor .sub-heading {
  align-items: flex-start;
}

.product-option-editor .sub-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-option-rows {
  display: grid;
  gap: 8px;
}

.product-option-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 8px;
}

.product-option-remove {
  min-height: 42px;
}

.product-inline-note,
.product-permission-note {
  margin: 14px 0 0;
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--muted);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

.product-rank-access-note {
  border: 1px solid #f2c48d;
  background: #fff7ed;
  color: #8a4b08;
}
.product-permission-note {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-permission-note p {
  margin: 0;
}

.product-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.product-checkbox input {
  width: auto;
  min-height: auto;
}

.product-checkbox span {
  color: var(--text);
}

.product-ranking-page {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.product-ranking-heading,
.product-ranking-filter-panel,
.product-ranking-latest-panel,
.product-ranking-history-panel,
.product-ranking-error-panel,
.product-rank-targets-panel {
  min-width: 0;
}

.product-ranking-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
}

.product-ranking-title .eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.product-ranking-title h2,
.product-rank-settings-summary strong {
  margin: 0;
  letter-spacing: 0;
}

.product-ranking-title h2 {
  font-size: 22px;
}

.product-ranking-title > p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-ranking-schedule {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.product-ranking-schedule > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.product-ranking-schedule strong {
  font-size: 14px;
  white-space: nowrap;
}

.product-ranking-schedule small {
  color: var(--muted);
  font-size: 12px;
}

.product-ranking-heading-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.product-ranking-heading-actions .admin-only-badge {
  margin-left: auto;
}
.product-rank-run-market-picker {
  position: relative;
  width: min(260px, 100%);
  min-width: 220px;
}

.product-rank-run-market-picker > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 10px;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  list-style: none;
}

.product-rank-run-market-picker > summary::-webkit-details-marker {
  display: none;
}

.product-rank-run-market-picker > summary::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.product-rank-run-market-picker[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}

.product-rank-run-market-picker > summary span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.product-rank-run-market-picker > summary strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-rank-run-market-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 280px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(15 23 42 / 16%);
}

.product-rank-run-market-menu label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 4px;
  cursor: pointer;
}

.product-rank-run-market-menu label:hover {
  background: #f5f7fa;
}

.product-rank-run-market-menu input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--primary);
}

.product-rank-run-market-menu span {
  font-size: 13px;
  font-weight: 700;
}

.product-ranking-kpis {
  margin-bottom: 0;
}

.product-ranking-kpis .kpi {
  min-height: 92px;
  padding: 14px 16px;
  box-shadow: none;
}

.product-ranking-kpis .kpi strong {
  margin-top: 7px;
  font-size: 24px;
}

.product-rank-progress-panel {
  padding: 0;
  overflow: hidden;
  border-left: 4px solid var(--line);
}

.product-rank-progress-panel.is-active {
  border-left-color: var(--blue);
}

.product-rank-progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 10px;
}

.product-rank-progress-heading > div {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.product-rank-progress-heading h2 {
  margin: 0;
  font-size: 17px;
}

.product-rank-progress-heading small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.product-rank-live-indicator {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--line);
}

.product-rank-live-indicator.is-active {
  background: var(--blue);
  animation: product-rank-live-pulse 1.4s ease-in-out infinite;
}

@keyframes product-rank-live-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.78);
  }
}

.product-rank-overall-progress {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 10px 16px 14px;
  background: #f8fafc;
  border-top: 1px solid var(--line);
}

.product-rank-overall-progress > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.product-rank-overall-progress strong {
  font-size: 22px;
}

.product-rank-overall-progress span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.product-rank-progress-panel progress {
  display: block;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: #e2e8f0;
  color: var(--blue);
}

.product-rank-progress-panel progress::-webkit-progress-bar {
  background: #e2e8f0;
  border-radius: 5px;
}

.product-rank-progress-panel progress::-webkit-progress-value {
  background: var(--blue);
  border-radius: 5px;
  transition: width 0.35s ease;
}

.product-rank-progress-panel progress::-moz-progress-bar {
  background: var(--blue);
  border-radius: 5px;
}

.product-rank-progress-list {
  max-height: 420px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}

.product-rank-progress-job {
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) minmax(280px, 1.55fr) minmax(210px, 0.8fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.product-rank-progress-job:last-child {
  border-bottom: 0;
}

.product-rank-progress-identity,
.product-rank-progress-message,
.product-rank-progress-meter {
  min-width: 0;
}

.product-rank-progress-identity {
  display: grid;
  gap: 2px;
}

.product-rank-progress-identity strong,
.product-rank-progress-identity small,
.product-rank-progress-message > span:last-child {
  overflow-wrap: anywhere;
}

.product-rank-progress-identity small,
.product-rank-progress-meter time {
  color: var(--muted);
  font-size: 12px;
}

.product-rank-progress-message {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}

.product-rank-progress-message .status-pill {
  flex: 0 0 auto;
}

.product-rank-progress-meter {
  display: grid;
  gap: 6px;
}

.product-rank-progress-meter > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}

.product-rank-progress-meter progress {
  height: 7px;
}

.product-ranking-filter-panel {
  padding-top: 14px;
  padding-bottom: 14px;
}

.product-ranking-filter-panel .panel-heading {
  margin-bottom: 10px;
}

.product-ranking-filter-form {
  display: grid;
  grid-template-columns: minmax(170px, 0.65fr) minmax(280px, 1.7fr) minmax(120px, 160px);
  align-items: end;
  gap: 10px;
}

.product-ranking-empty {
  min-height: 82px;
}

.product-rank-table-wrap table {
  min-width: 820px;
}

.product-rank-table-wrap tbody tr:hover td {
  background: #f8fafc;
}

.product-rank-table-wrap td {
  vertical-align: middle;
}

.product-rank-item {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.product-rank-item small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.product-rank-position {
  color: var(--blue);
  font-size: 17px;
}

.product-rank-change {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.product-rank-change.rank-up {
  color: var(--green);
}

.product-rank-change.rank-down {
  color: var(--rose);
}

.product-ranking-errors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.product-ranking-errors > div {
  min-width: 0;
  border-left: 4px solid var(--rose);
  background: rgba(194, 65, 90, 0.06);
  padding: 10px 12px;
}

.product-ranking-errors span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.product-ranking-errors p {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.product-ranking-settings-panel {
  padding: 0;
  overflow: hidden;
}

.product-rank-settings-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.product-rank-settings-summary::-webkit-details-marker {
  display: none;
}

.product-rank-settings-summary::after {
  content: "";
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.product-ranking-settings-panel[open] .product-rank-settings-summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.product-rank-settings-summary-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.product-rank-settings-summary-copy strong {
  color: var(--text);
  font-size: 18px;
}

.product-rank-settings-summary-copy small,
.product-rank-settings-summary-meta > span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-rank-settings-summary-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  white-space: nowrap;
}

.product-rank-settings-body {
  padding: 18px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}

.product-rank-target-form {
  min-width: 0;
}

.product-rank-form-fields {
  display: grid;
  grid-template-columns: minmax(150px, 0.65fr) minmax(260px, 1.7fr) minmax(140px, 0.65fr);
  align-items: end;
  gap: 12px;
}

.product-rank-items-fieldset {
  min-width: 0;
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.product-rank-items-fieldset legend {
  padding: 0 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.product-rank-picker-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 520px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.product-rank-item-search {
  min-width: 0;
}

.product-rank-picker-counts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 42px;
}

.product-rank-picker-counts strong,
.product-rank-picker-counts span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.product-rank-picker-counts strong {
  background: rgba(37, 99, 235, 0.10);
  color: var(--blue);
}

.product-rank-picker-counts span {
  background: var(--surface-muted);
  color: var(--muted);
}

.product-rank-item-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
  max-height: 520px;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.product-rank-item-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 8px 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 11px 12px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.product-rank-item-choice[hidden] {
  display: none;
}

.product-rank-item-choice:hover {
  border-color: #b8c4d3;
}

.product-rank-item-choice.selected {
  grid-column: 1 / -1;
  grid-template-columns: minmax(210px, 0.7fr) minmax(260px, 1.25fr) minmax(260px, 1.25fr);
  align-items: end;
  border-color: rgba(37, 99, 235, 0.45);
  background: #f4f7ff;
}

.product-rank-item-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}

.product-rank-item-check input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
}

.product-rank-item-check > span,
.product-rank-item-check strong,
.product-rank-item-check small {
  display: block;
  min-width: 0;
}

.product-rank-item-check strong {
  font-size: 13px;
}

.product-rank-item-check small {
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.product-rank-item-identity {
  display: none;
  min-width: 0;
}

.product-rank-item-choice.selected .product-rank-item-identity {
  display: grid;
}

.product-rank-item-identity > span {
  font-size: 12px;
}

.product-rank-mapping-status {
  margin: 0;
  color: #157f56;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.product-rank-item-choice.selected .product-rank-mapping-status {
  grid-column: 2 / -1;
}

.product-rank-mapping-status.warning {
  color: #a26404;
}

.product-rank-settings-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.product-rank-advanced {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 10px 12px;
}

.product-rank-advanced summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.product-rank-advanced label {
  margin-top: 10px;
}

.product-rank-active-field {
  align-self: center;
  white-space: nowrap;
}

.product-rank-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.product-rank-match-value {
  display: block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .product-management-layout,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .product-rank-progress-job {
    grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.2fr);
  }

  .product-rank-progress-meter {
    grid-column: 1 / -1;
  }

  .product-rank-form-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-rank-form-fields label:nth-child(2) {
    grid-column: span 2;
    grid-row: 1;
  }

  .product-ranking-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-ranking-filter-form button {
    grid-column: span 2;
  }

  .product-rank-item-choice.selected {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-rank-item-choice.selected .product-rank-item-check,
  .product-rank-item-choice.selected .product-rank-mapping-status {
    grid-column: 1 / -1;
  }

  .product-rank-settings-footer {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .product-rank-advanced {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .product-rank-progress-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 12px;
  }

  .product-rank-progress-heading > div {
    flex-wrap: wrap;
  }

  .product-rank-overall-progress {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px 12px;
  }

  .product-rank-overall-progress > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .product-rank-progress-list {
    max-height: 460px;
  }

  .product-rank-progress-job {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 12px;
  }

  .product-rank-progress-message {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .product-rank-progress-meter {
    grid-column: auto;
  }

  .product-filter-form,
  .product-facts,
  .product-option-row {
    grid-template-columns: 1fr;
  }

  .product-option-remove {
    justify-self: start;
  }

  .product-ranking-title-row,
  .product-rank-form-fields,
  .product-ranking-filter-form,
  .product-rank-picker-toolbar,
  .product-rank-settings-footer,
  .product-rank-form-actions {
    grid-template-columns: 1fr;
  }

  .product-ranking-schedule {
    justify-items: start;
    text-align: left;
  }

  .product-ranking-schedule > div {
    justify-content: flex-start;
  }

  .product-ranking-heading-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .product-rank-run-market-picker {
    width: 100%;
    min-width: 0;
  }

  .product-rank-run-market-picker > summary {
    width: 100%;
  }

  .product-rank-run-market-menu {
    position: static;
    margin-top: 6px;
  }

  .product-ranking-heading-actions > button,
  .product-ranking-heading-actions > a,
  .product-ranking-filter-form > button,
  .product-rank-form-actions > button {
    width: 100%;
  }

  .product-ranking-heading-actions .admin-only-badge {
    justify-self: start;
    margin-left: 0;
  }

  .product-rank-form-fields label:nth-child(2),
  .product-ranking-filter-form button,
  .product-rank-advanced {
    grid-column: auto;
    grid-row: auto;
  }

  .product-rank-settings-summary {
    align-items: flex-start;
    padding: 14px 12px;
  }

  .product-rank-settings-summary-meta {
    align-items: flex-end;
    flex-direction: column;
    gap: 5px;
  }

  .product-rank-settings-body {
    padding: 12px;
  }

  .product-rank-items-fieldset {
    padding: 10px;
  }

  .product-rank-picker-counts {
    justify-content: flex-start;
    min-height: 0;
  }

  .product-rank-item-picker,
  .product-rank-item-choice.selected {
    grid-template-columns: 1fr;
  }

  .product-rank-item-picker {
    max-height: 420px;
  }

  .product-rank-item-choice.selected .product-rank-item-check,
  .product-rank-item-choice.selected .product-rank-mapping-status {
    grid-column: auto;
  }

  .product-rank-form-actions {
    display: grid;
    width: 100%;
  }

  .product-rank-table-wrap {
    overflow-x: visible;
  }

  .product-rank-responsive-table {
    width: 100%;
    min-width: 0 !important;
    border-collapse: separate;
    border-spacing: 0 8px;
  }

  .product-rank-responsive-table thead {
    display: none;
  }

  .product-rank-responsive-table tbody,
  .product-rank-responsive-table tbody tr,
  .product-rank-responsive-table tbody td {
    display: block;
  }

  .product-rank-responsive-table tbody tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px;
  }

  .product-rank-responsive-table tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: auto !important;
    border: 0;
    padding: 6px 0;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .product-rank-responsive-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 78px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-align: left;
  }

  .product-rank-responsive-table .product-rank-item {
    justify-items: end;
  }

  .product-rank-match-value {
    max-width: 56vw;
  }

  .product-ranking-errors {
    grid-template-columns: 1fr;
  }
}
.meeting-report-page {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.meeting-report-header,
.meeting-domain-section {
  min-width: 0;
}

.meeting-report-title-row {
  align-items: flex-start;
}

.meeting-report-title-row h2,
.meeting-domain-heading h2,
.meeting-comparison-heading h3,
.meeting-insights h3,
.meeting-detail-table-section h3 {
  margin: 0;
}

.meeting-report-title-row .eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
}

.meeting-report-controls {
  display: grid;
  grid-template-columns: minmax(180px, 260px) auto auto;
  align-items: end;
  gap: 10px;
  margin-top: 16px;
}

.meeting-period-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.meeting-period-guide > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 14px;
}

.meeting-period-guide > div + div {
  border-left: 1px solid var(--line);
}

.meeting-period-guide span,
.meeting-period-guide small,
.meeting-comparison-heading span {
  color: var(--muted);
  font-size: 12px;
}

.meeting-period-guide strong {
  overflow-wrap: anywhere;
}

.meeting-domain-section {
  display: grid;
  gap: 16px;
  border-top: 4px solid var(--blue);
}

.meeting-domain-production {
  border-top-color: var(--green);
}

.meeting-domain-work {
  border-top-color: var(--rose);
}

.meeting-domain-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.meeting-domain-heading > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: #243447;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.meeting-domain-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.meeting-period-comparisons,
.meeting-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.meeting-comparison-block,
.meeting-detail-table-section {
  min-width: 0;
}

.meeting-comparison-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.meeting-comparison-heading h3,
.meeting-insights h3,
.meeting-detail-table-section h3 {
  font-size: 15px;
}

.meeting-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.meeting-metric-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
}

.meeting-metric-card:nth-child(even) {
  border-left: 1px solid var(--line);
}

.meeting-metric-card:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.meeting-metric-card > span,
.meeting-metric-card small {
  color: var(--muted);
  font-size: 12px;
}

.meeting-metric-card strong {
  overflow-wrap: anywhere;
  font-size: 22px;
  line-height: 1.15;
}

.meeting-metric-card > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
}

.meeting-metric-card em {
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.meeting-trend-up {
  background: #e7f6ef;
  color: #08734c;
}

.meeting-trend-down {
  background: #fff0f1;
  color: #b4233e;
}

.meeting-trend-flat {
  background: #eef2f6;
  color: #516173;
}

.meeting-insights {
  border-left: 4px solid var(--amber);
  background: #fffaf0;
  padding: 12px 14px;
}

.meeting-insights ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  margin: 9px 0 0;
  padding-left: 22px;
}

.meeting-insights li {
  padding-left: 2px;
  line-height: 1.55;
}

.meeting-detail-table-section {
  display: grid;
  align-content: start;
  gap: 8px;
}

.meeting-detail-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.meeting-detail-table {
  width: 100%;
  min-width: 680px;
  table-layout: auto;
  font-size: 12px;
}

.meeting-detail-table th,
.meeting-detail-table td {
  padding: 9px 10px;
  vertical-align: middle;
}

.meeting-detail-table th:first-child,
.meeting-detail-table td:first-child {
  min-width: 130px;
  white-space: normal;
}

.meeting-data-error {
  margin: 0;
}

.meeting-report-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.meeting-notes-workspace {
  display: grid;
  gap: 16px;
  min-width: 0;
  border-top: 4px solid var(--amber);
}

.meeting-notes-heading,
.meeting-note-feed-header,
.meeting-note-entry > header,
.meeting-note-editor-actions,
.meeting-editor-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meeting-notes-heading h2,
.meeting-note-feed-header h3,
.meeting-note-entry h4 {
  margin: 0;
}

.meeting-notes-heading .eyebrow {
  margin: 0 0 3px;
  color: #9a6700;
}

.meeting-notes-heading-actions,
.meeting-notes-view-tabs,
.meeting-history-summary,
.meeting-history-day > header,
.meeting-history-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meeting-notes-heading-actions {
  justify-content: flex-end;
}

.meeting-notes-view-tabs {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f2f5f8;
  padding: 3px;
}

.meeting-notes-view-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  padding: 6px 11px;
  font-weight: 800;
}

.meeting-notes-view-tabs button.active {
  background: var(--navy);
  color: #fff;
}

.meeting-note-count,
.meeting-note-mine {
  border-radius: 4px;
  background: #fff4d6;
  color: #805500;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 900;
}

.meeting-notes-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr);
  gap: 20px;
  min-width: 0;
}

.meeting-note-editor-pane {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.meeting-note-title-field {
  display: grid;
  gap: 6px;
}

.meeting-note-title-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.meeting-editor-shell {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.meeting-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fb;
}

.meeting-editor-toolbar select {
  width: 92px;
  min-height: 34px;
  padding: 4px 7px;
}

.meeting-editor-toolbar button {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  padding: 0;
  font-weight: 800;
}

.meeting-editor-toolbar button:hover,
.meeting-editor-toolbar button:focus-visible {
  border-color: var(--line);
  background: #fff;
}

.meeting-editor {
  min-height: 260px;
  padding: 14px;
  outline: 0;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.meeting-editor:focus {
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.meeting-editor:empty::before {
  content: attr(data-placeholder);
  color: #8a98a8;
  pointer-events: none;
}

.meeting-editor h2,
.meeting-editor h3,
.meeting-note-content h2,
.meeting-note-content h3 {
  margin: 12px 0 6px;
}

.meeting-editor p,
.meeting-note-content p {
  margin: 6px 0;
}

.meeting-editor blockquote,
.meeting-note-content blockquote {
  margin: 10px 0;
  border-left: 4px solid var(--line);
  padding: 4px 12px;
  color: var(--muted);
}

.meeting-editor img,
.meeting-note-content img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 520px;
  margin: 10px 0;
  object-fit: contain;
}

.meeting-image-upload-placeholder {
  display: block;
  margin: 8px 0;
  border: 1px dashed var(--line);
  padding: 12px;
  color: var(--muted);
  text-align: center;
}

.meeting-editor-meta {
  min-height: 30px;
  border-top: 1px solid var(--line);
  padding: 5px 9px;
  color: var(--muted);
  font-size: 11px;
}

.meeting-editor-meta [data-status="success"] {
  color: #08734c;
}

.meeting-editor-meta [data-status="error"] {
  color: #b4233e;
}

.meeting-note-files-editor {
  display: grid;
  gap: 8px;
}

.meeting-file-picker {
  width: max-content;
  min-height: 36px;
  cursor: pointer;
}

.meeting-file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.meeting-file-list,
.meeting-note-downloads {
  display: grid;
  gap: 6px;
}

.meeting-file-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 8px;
}

.meeting-file-chip a,
.meeting-note-downloads a {
  min-width: 0;
  color: var(--blue);
  overflow-wrap: anywhere;
  text-decoration: none;
}

.meeting-file-chip small,
.meeting-note-downloads small,
.meeting-note-entry > header span,
.meeting-note-entry > header time,
.meeting-note-feed-header span {
  color: var(--muted);
  font-size: 11px;
}

.meeting-file-chip button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 4px;
  background: #fff0f1;
  color: #b4233e;
  padding: 0;
  font-size: 18px;
}

.meeting-note-feed {
  min-width: 0;
}

.meeting-note-feed-header {
  min-height: 40px;
  padding-bottom: 8px;
}

.meeting-note-entry {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.meeting-note-entry > header {
  align-items: flex-start;
}

.meeting-note-entry > header > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
}

.meeting-note-entry h4 {
  margin-top: 10px;
  font-size: 16px;
}

.meeting-note-content {
  min-width: 0;
  margin-top: 10px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.meeting-note-content ul,
.meeting-note-content ol,
.meeting-editor ul,
.meeting-editor ol {
  padding-left: 24px;
}

.meeting-note-downloads {
  margin-top: 12px;
}

.meeting-note-downloads a {
  border-left: 3px solid var(--blue);
  background: #f5f8ff;
  padding: 8px 10px;
}

.meeting-history-workspace {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.meeting-history-filters {
  display: grid;
  grid-template-columns: minmax(140px, 0.72fr) minmax(140px, 0.72fr) minmax(180px, 0.9fr) minmax(220px, 1.5fr) auto;
  align-items: end;
  gap: 10px;
  min-width: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f7f9fb;
  padding: 14px 0;
}

.meeting-history-filters label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.meeting-history-filters label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.meeting-history-filters button {
  min-width: 104px;
}

.meeting-history-results {
  min-width: 0;
  scroll-margin-top: 20px;
}

.meeting-history-summary {
  justify-content: space-between;
  min-height: 44px;
  padding-bottom: 10px;
}

.meeting-history-summary > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

.meeting-history-summary span,
.meeting-history-summary small,
.meeting-history-day > header span {
  color: var(--muted);
  font-size: 11px;
}

.meeting-history-day {
  min-width: 0;
  border-top: 1px solid var(--line);
}

.meeting-history-day > header {
  justify-content: space-between;
  min-height: 52px;
  background: #f7f9fb;
  padding: 9px 12px;
}

.meeting-history-day > header > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.meeting-history-day-notes {
  min-width: 0;
  padding: 0 12px;
}

.meeting-history-day-notes .meeting-note-entry:last-child {
  padding-bottom: 20px;
}

.meeting-history-pagination {
  justify-content: center;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.meeting-history-pagination span {
  min-width: 112px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1100px) {
  .meeting-period-comparisons,
  .meeting-detail-grid,
  .meeting-notes-layout {
    grid-template-columns: 1fr;
  }

  .meeting-note-editor-pane {
    padding-right: 0;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .meeting-history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meeting-history-keyword,
  .meeting-history-filters button {
    grid-column: span 2;
  }

  .meeting-history-filters button {
    width: 100%;
  }

  .meeting-insights ol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .meeting-report-controls,
  .meeting-period-guide,
  .meeting-metric-grid {
    grid-template-columns: 1fr;
  }

  .meeting-report-controls button {
    width: 100%;
  }

  .meeting-notes-heading,
  .meeting-note-entry > header {
    align-items: flex-start;
  }

  .meeting-notes-heading,
  .meeting-notes-heading-actions {
    flex-direction: column;
  }

  .meeting-notes-heading-actions,
  .meeting-notes-view-tabs {
    width: 100%;
  }

  .meeting-notes-view-tabs button {
    flex: 1 1 0;
  }

  .meeting-history-filters {
    grid-template-columns: 1fr;
  }

  .meeting-history-keyword,
  .meeting-history-filters button {
    grid-column: auto;
  }

  .meeting-history-day > header {
    align-items: stretch;
    flex-direction: column;
  }

  .meeting-history-day > header button {
    width: 100%;
  }

  .meeting-history-day-notes {
    padding: 0 4px;
  }

  .meeting-note-entry > header {
    flex-direction: column;
  }

  .meeting-note-editor-actions > button {
    flex: 1 1 0;
  }

  .meeting-file-picker {
    width: 100%;
  }

  .meeting-period-guide > div + div,
  .meeting-metric-card:nth-child(even),
  .meeting-metric-card:nth-child(n + 3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .meeting-detail-table {
    min-width: 0;
  }

  .meeting-metric-card strong {
    font-size: 20px;
  }

  .meeting-detail-table thead {
    display: none;
  }

  .meeting-detail-table tbody,
  .meeting-detail-table tr,
  .meeting-detail-table td {
    display: block;
  }

  .meeting-detail-table tr {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 8px 10px;
  }

  .meeting-detail-table tr + tr {
    margin-top: 8px;
  }

  .meeting-detail-table td,
  .meeting-detail-table td.right {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    border: 0;
    padding: 6px 0;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .meeting-detail-table td:first-child {
    min-width: 0;
  }

  .meeting-detail-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-align: left;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 8mm;
  }

  body.meeting-print-mode {
    background: #fff;
  }

  .meeting-print-mode .topbar,
  .meeting-print-mode .tabbar,
  .meeting-print-mode .content > :not(.meeting-report-page),
  .meeting-print-mode .meeting-report-controls,
  .meeting-print-mode .meeting-notes-view-tabs,
  .meeting-print-mode .meeting-history-filters,
  .meeting-print-mode .meeting-history-pagination,
  .meeting-print-mode .meeting-note-editor-pane,
  .meeting-print-mode .admin-only-badge,
  .meeting-print-mode .meeting-report-footnote {
    display: none !important;
  }

  .meeting-print-mode .content,
  .meeting-print-mode .meeting-report-page {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .meeting-print-mode .panel {
    border-color: #b8c2ce;
    box-shadow: none;
  }

  .meeting-print-mode .meeting-report-header,
  .meeting-print-mode .meeting-notes-workspace,
  .meeting-print-mode .meeting-domain-section {
    margin: 0;
    padding: 10px 12px;
  }

  .meeting-print-mode .meeting-notes-layout {
    display: block;
  }

  .meeting-print-mode .meeting-note-entry {
    break-inside: avoid;
    padding: 10px 0;
  }

  .meeting-print-mode .meeting-domain-section + .meeting-domain-section {
    break-before: page;
  }

  .meeting-print-mode .meeting-period-comparisons,
  .meeting-print-mode .meeting-period-guide,
  .meeting-print-mode .meeting-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .meeting-print-mode .meeting-detail-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .meeting-print-mode .meeting-period-guide > div + div,
  .meeting-print-mode .meeting-metric-card:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .meeting-print-mode .meeting-metric-card {
    padding: 7px 9px;
  }

  .meeting-print-mode .meeting-metric-card strong {
    font-size: 17px;
  }

  .meeting-print-mode .meeting-insights {
    margin: 8px 0;
    padding: 8px 10px;
  }

  .meeting-print-mode .meeting-insights ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 18px;
    font-size: 10px;
  }

  .meeting-print-mode .meeting-detail-table-wrap {
    overflow: visible;
  }

  .meeting-print-mode .meeting-detail-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 8px;
  }

  .meeting-print-mode .meeting-detail-table thead {
    display: table-header-group;
  }

  .meeting-print-mode .meeting-detail-table tbody {
    display: table-row-group;
  }

  .meeting-print-mode .meeting-detail-table tr {
    display: table-row;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .meeting-print-mode .meeting-detail-table th,
  .meeting-print-mode .meeting-detail-table td {
    display: table-cell;
    padding: 4px 5px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .meeting-print-mode .meeting-detail-table td::before {
    display: none;
  }

  .meeting-print-mode .meeting-comparison-block,
  .meeting-print-mode .meeting-insights,
  .meeting-print-mode .meeting-detail-table-section,
  .meeting-print-mode .meeting-detail-table tr {
    break-inside: avoid;
  }
}

/* Digital business cards */
.business-card-page {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.business-card-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
}

.business-card-page-header > div {
  min-width: 0;
}

.business-card-page-header h1 {
  margin: 2px 0 5px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.business-card-page-header p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.business-card-eyebrow {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.business-card-page-header .primary-button {
  flex: 0 0 auto;
}

.business-card-kpi-grid {
  margin-bottom: 0;
}

.business-card-kpi-grid .kpi {
  min-height: 102px;
  box-shadow: none;
}

.business-card-kpi-grid .kpi strong {
  font-size: 23px;
}

.business-card-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.65fr) minmax(0, 1.6fr);
  align-items: start;
  gap: 16px;
  min-width: 0;
}

.business-card-list-panel,
.business-card-editor-panel {
  min-width: 0;
  padding: 18px;
}

.business-card-list {
  display: grid;
  gap: 9px;
}

.business-card-list-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.business-card-list-item:hover,
.business-card-list-item.selected {
  border-color: rgba(37, 99, 235, 0.55);
}

.business-card-list-item.selected {
  box-shadow: inset 3px 0 0 var(--blue);
}

.business-card-list-main {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 12px;
  text-align: left;
}

.business-card-list-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--business-card-accent) 30%, white);
  border-radius: 50%;
  background: color-mix(in srgb, var(--business-card-accent) 12%, white);
  color: var(--business-card-accent);
  font-size: 17px;
  font-weight: 900;
}

.business-card-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-card-list-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.business-card-list-copy strong,
.business-card-list-copy span,
.business-card-list-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-card-list-copy strong {
  font-size: 14px;
}

.business-card-list-copy span {
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}

.business-card-list-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.business-card-list-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.business-card-editor-heading {
  align-items: flex-start;
}

.business-card-editor-heading > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.business-card-open-link {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 12px;
}

.business-card-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
  align-items: start;
  gap: 22px;
  min-width: 0;
}

.business-card-form {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.business-card-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.business-card-field {
  min-width: 0;
}

.business-card-field > span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.business-card-color-input {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 7px;
}

.business-card-color-input input[type="color"] {
  padding: 4px;
}

.business-card-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 2px;
}

.business-card-image-field {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  grid-template-areas:
    "preview copy copy"
    "preview select delete";
  align-items: center;
  gap: 7px 9px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.business-card-image-field > div {
  grid-area: copy;
  display: grid;
  min-width: 0;
}

.business-card-image-field > div strong {
  color: var(--text);
  font-size: 12px;
}

.business-card-image-field > div span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.business-card-image-field > img,
.business-card-image-placeholder {
  grid-area: preview;
  width: 62px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.business-card-image-placeholder {
  display: grid;
  place-items: center;
  padding: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.business-card-file-button {
  grid-area: select;
  min-height: 31px;
  padding: 5px 9px;
  font-size: 11px;
  cursor: pointer;
}

.business-card-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.business-card-image-field > .small-button {
  grid-area: delete;
}

.business-card-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.business-card-visibility-options,
.business-card-save-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.business-card-visibility-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  white-space: nowrap;
}

.business-card-visibility-options input {
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.business-card-url-guide {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.business-card-preview-panel {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 10px;
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.business-card-preview-label {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.business-card-preview-label strong {
  font-size: 13px;
}

.business-card-preview-label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  text-align: right;
}

.business-card-preview-card {
  width: min(100%, 390px);
  min-width: 0;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--business-card-accent) 24%, #d9e0e7);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(24, 32, 42, 0.13);
}

.business-card-preview-brand {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 48px;
  border-top: 5px solid var(--business-card-accent);
  padding: 10px 18px 4px;
}

.business-card-preview-brand img {
  max-width: 118px;
  max-height: 34px;
  object-fit: contain;
}

.business-card-preview-brand span {
  color: var(--business-card-accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.business-card-preview-person {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 14px 18px 18px;
}

.business-card-preview-avatar {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  overflow: hidden;
  border: 3px solid color-mix(in srgb, var(--business-card-accent) 24%, white);
  border-radius: 50%;
  background: color-mix(in srgb, var(--business-card-accent) 12%, white);
  color: var(--business-card-accent);
  font-size: 28px;
  font-weight: 900;
}

.business-card-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-card-preview-person p,
.business-card-preview-person h3,
.business-card-preview-person small,
.business-card-preview-person strong {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
}

.business-card-preview-person p {
  color: var(--business-card-accent);
  font-size: 11px;
  font-weight: 850;
}

.business-card-preview-person h3 {
  margin-top: 2px;
  font-size: 22px;
  line-height: 1.25;
}

.business-card-preview-person small {
  color: var(--muted);
  font-size: 10px;
}

.business-card-preview-person strong {
  margin-top: 5px;
  font-size: 12px;
}

.business-card-preview-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.business-card-preview-actions span {
  background: #f8fafc;
  color: var(--business-card-accent);
  padding: 9px 4px;
  font-size: 10px;
  font-weight: 850;
  text-align: center;
}

.business-card-preview-message {
  margin: 0;
  padding: 15px 18px;
  color: #394454;
  font-size: 11px;
  font-weight: 650;
  white-space: pre-line;
}

.business-card-preview-contacts {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 4px 18px 12px;
}

.business-card-preview-contacts > div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid #edf1f5;
}

.business-card-preview-contacts dt,
.business-card-preview-contacts dd {
  margin: 0;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.business-card-preview-contacts dt {
  color: var(--muted);
  font-weight: 800;
}

.business-card-preview-contacts dd {
  color: var(--text);
  font-weight: 700;
}

.business-card-preview-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
  color: var(--business-card-accent);
  padding: 11px 18px;
  font-size: 10px;
  font-weight: 850;
}

@media (max-width: 1180px) {
  .business-card-workspace {
    grid-template-columns: 1fr;
  }

  .business-card-editor-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  }
}

@media (max-width: 820px) {
  .business-card-editor-layout {
    grid-template-columns: 1fr;
  }

  .business-card-preview-panel {
    position: static;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 18px;
    padding-left: 0;
  }
}

@media (max-width: 720px) {
  .business-card-page {
    gap: 10px;
  }

  .business-card-page-header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .business-card-page-header h1 {
    font-size: 21px;
  }

  .business-card-page-header .primary-button {
    width: 100%;
  }

  .business-card-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .business-card-kpi-grid .kpi {
    min-height: 84px;
    padding: 12px;
  }

  .business-card-kpi-grid .kpi strong {
    font-size: 19px;
  }

  .business-card-list-panel,
  .business-card-editor-panel {
    padding: 13px;
  }

  .business-card-editor-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .business-card-open-link {
    width: 100%;
  }

  .business-card-form-grid,
  .business-card-image-grid {
    grid-template-columns: 1fr;
  }

  .business-card-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .business-card-save-actions > * {
    flex: 1 1 0;
  }

  .business-card-preview-label {
    align-items: flex-start;
    flex-direction: column;
  }

  .business-card-preview-label span {
    text-align: left;
  }
}

@media (max-width: 440px) {
  .business-card-list-main {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .business-card-list-main .status-pill {
    grid-column: 2;
    justify-self: start;
  }

  .business-card-list-avatar {
    width: 40px;
    height: 40px;
  }

  .business-card-list-actions > * {
    flex: 1 1 0;
  }

  .business-card-image-field {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .business-card-image-field > img,
  .business-card-image-placeholder {
    width: 54px;
    height: 54px;
  }

  .business-card-preview-person {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
    padding-inline: 14px;
  }

  .business-card-preview-avatar {
    width: 66px;
    height: 66px;
  }
}

/* Digital business cards - premium editor and public preview */
.business-card-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.business-card-create-button,
.business-card-open-link,
.business-card-list-actions .small-button,
.business-card-save-actions .primary-button,
.business-card-save-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.business-card-page-header {
  min-height: 118px;
  border-top: 3px solid #17211f;
  background: #fff;
}

.business-card-page-header h1 {
  font-size: 26px;
}

.business-card-eyebrow,
.business-card-editor-kicker {
  display: block;
  color: #176b5b;
  font-size: 10px;
  font-weight: 900;
}

.business-card-workspace {
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
}

.business-card-list-panel {
  position: sticky;
  top: 92px;
}

.business-card-list-item {
  background: #fff;
}

.business-card-list-item.selected {
  border-color: #176b5b;
  box-shadow: inset 3px 0 0 #176b5b;
}

.business-card-list-avatar {
  border-radius: 6px;
}

.business-card-list-actions .business-card-icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

.business-card-editor-heading h2 {
  margin-top: 2px;
}

.business-card-editor-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 26px;
}

.business-card-form {
  gap: 20px;
}

.business-card-form-section {
  min-width: 0;
  margin: 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.business-card-form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.business-card-form-section legend {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  color: var(--text);
}

.business-card-form-section legend span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: #17211f;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.business-card-form-section legend strong {
  font-size: 15px;
}

.business-card-field {
  display: grid;
  gap: 6px;
}

.business-card-field > span:first-child {
  color: #52605d;
}

.business-card-field input,
.business-card-field select,
.business-card-field textarea {
  background: #fff;
}

.business-card-design-fields {
  margin-top: 12px;
}

.business-card-design-fields .business-card-field.full {
  grid-column: 1 / -1;
}

.business-card-image-field {
  min-height: 94px;
  border-color: #d9e2df;
  background: #f7f9f8;
}

.business-card-image-field > img {
  object-fit: cover;
}

.business-card-save-feedback {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #cfd9d6;
  border-radius: 6px;
  background: #f7f9f8;
  color: #24322f;
  font-size: 12px;
  font-weight: 750;
}

.business-card-save-feedback.success {
  border-color: #a8d5c2;
  background: #eef8f3;
  color: #12634f;
}

.business-card-save-feedback.error {
  border-color: #efb7bd;
  background: #fff5f6;
  color: #a52638;
}

.business-card-saving-spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: business-card-spin .75s linear infinite;
}

@keyframes business-card-spin {
  to { transform: rotate(360deg); }
}

.business-card-form-footer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin: 0 -4px -4px;
  padding: 14px 4px 4px;
  background: rgba(255, 255, 255, .96);
}

.business-card-save-button {
  min-width: 142px;
}

.business-card-preview-panel {
  top: 92px;
  gap: 12px;
}

.business-card-preview-card {
  width: min(100%, 382px);
  border-color: #cfd8d5;
  background: #f9faf8;
  box-shadow: 0 24px 52px rgba(20, 31, 29, .16);
}

.business-card-preview-identity {
  position: relative;
  overflow: hidden;
  background: #17211f;
  color: #fff;
}

.business-card-preview-identity::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 4px;
  background: var(--business-card-accent);
}

.business-card-preview-brand {
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  gap: 10px;
  min-height: 60px;
  border: 0;
  padding: 13px 18px 8px;
}

.business-card-preview-brand img {
  max-width: 92px;
  max-height: 34px;
  padding: 3px;
  border-radius: 4px;
  background: #fff;
}

.business-card-preview-brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  background: var(--business-card-accent);
  color: #fff;
  font-size: 11px;
}

.business-card-preview-brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.business-card-preview-brand-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-card-preview-brand-copy small {
  color: #aebbb7;
  font-size: 8px;
  font-weight: 750;
}

.business-card-preview-person {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr) 100px;
  align-items: end;
  gap: 18px;
  min-height: 154px;
  padding: 14px 18px 22px;
}

.business-card-preview-person-copy {
  min-width: 0;
  padding-bottom: 4px;
}

.business-card-preview-person p {
  color: color-mix(in srgb, var(--business-card-accent) 72%, white);
  font-size: 9px;
}

.business-card-preview-person h3 {
  margin-top: 7px;
  color: #fff;
  font-size: 28px;
  line-height: 1.14;
}

.business-card-preview-person small {
  margin-top: 5px;
  color: #b8c3c0;
  font-size: 10px;
}

.business-card-preview-person strong {
  margin-top: 12px;
  color: #fff;
  font-size: 11px;
}

.business-card-preview-avatar {
  width: 100px;
  height: 126px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 6px;
  background: #26322f;
  color: #fff;
  font-size: 32px;
}

.business-card-preview-actions {
  border: 0;
  background: #fff;
}

.business-card-preview-actions span {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 68px;
  border-right: 1px solid #e7ecea;
  background: #fff;
  color: #17211f;
  padding: 10px 4px;
}

.business-card-preview-actions span:last-child {
  border-right: 0;
}

.business-card-preview-actions .business-card-icon {
  color: var(--business-card-accent);
}

.business-card-preview-actions small {
  font-size: 9px;
  font-weight: 800;
}

.business-card-preview-body {
  padding: 18px;
  border-top: 1px solid #e3e9e7;
  background: #f9faf8;
}

.business-card-preview-message {
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid #dfe6e3;
  color: #384541;
}

.business-card-preview-message span {
  display: block;
  margin-bottom: 7px;
  color: var(--business-card-accent);
  font-size: 8px;
  font-weight: 900;
}

.business-card-preview-message p {
  margin: 0;
  font-size: 11px;
  font-weight: 680;
  line-height: 1.65;
  white-space: pre-line;
}

.business-card-preview-contacts {
  padding: 0;
}

.business-card-preview-contacts > div {
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 0;
}

.business-card-preview-contacts dt {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: #e9efec;
  color: var(--business-card-accent);
}

.business-card-preview-contacts dt .business-card-icon {
  width: 14px;
  height: 14px;
}

.business-card-preview-contacts dd {
  display: grid;
  gap: 2px;
}

.business-card-preview-contacts dd small {
  color: #77837f;
  font-size: 8px;
  font-weight: 750;
}

.business-card-preview-contacts dd strong {
  color: #17211f;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.business-card-preview-footer {
  align-items: center;
  background: #17211f;
  color: #fff;
  padding: 13px 18px;
}

.business-card-preview-footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.business-card-preview-footer .business-card-icon {
  width: 14px;
  height: 14px;
}

@media (max-width: 1320px) {
  .business-card-workspace {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  }

  .business-card-editor-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
}

@media (max-width: 1120px) {
  .business-card-workspace,
  .business-card-editor-layout {
    grid-template-columns: 1fr;
  }

  .business-card-list-panel,
  .business-card-preview-panel {
    position: static;
  }

  .business-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-card-preview-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 20px;
    padding-left: 0;
  }
}

@media (max-width: 720px) {
  .business-card-page-header {
    min-height: 0;
  }

  .business-card-list {
    grid-template-columns: 1fr;
  }

  .business-card-form-section {
    padding-top: 16px;
  }

  .business-card-form-footer {
    position: static;
    margin: 0;
    padding: 14px 0 0;
  }

  .business-card-save-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .business-card-save-actions:has(> :only-child) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .business-card-preview-person {
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 12px;
    padding-inline: 14px;
  }

  .business-card-preview-avatar {
    width: 86px;
    height: 112px;
  }

  .business-card-preview-person h3 {
    font-size: 24px;
  }

  .business-card-preview-body,
  .business-card-preview-brand,
  .business-card-preview-footer {
    padding-inline: 14px;
  }
}

/* Digital business cards - editorial v3 */
.business-card-preview-card {
  --business-card-ink: #111a22;
  --business-card-paper: #f5f2ea;
  --business-card-signal: #ef6b4e;
  --business-card-mist: #dce8ec;
  overflow: hidden;
  border: 1px solid #cbd6d2;
  border-radius: 8px;
  background: #fbfcfa;
  box-shadow: 0 26px 64px rgba(17, 26, 34, .2);
}

.business-card-preview-identity {
  background: var(--business-card-ink);
}

.business-card-preview-identity::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 5px;
  height: 68%;
  background: var(--business-card-signal);
}

.business-card-preview-identity::after {
  right: 5px;
  width: 34%;
  height: 5px;
}

.business-card-preview-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 68px;
  gap: 10px;
  padding: 12px 16px;
  background: #fbf9f4;
  color: var(--business-card-ink);
}

.business-card-preview-brand img {
  max-width: 112px;
  max-height: 40px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.business-card-preview-brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid var(--business-card-ink);
  border-radius: 0;
  background: transparent;
  color: var(--business-card-ink);
}

.business-card-preview-brand-copy strong {
  color: var(--business-card-ink);
  font-size: 12px;
}

.business-card-preview-brand-copy small {
  color: #718079;
}

.business-card-preview-edition {
  align-self: stretch;
  display: grid;
  align-content: center;
  min-width: 50px;
  padding-left: 9px;
  border-left: 1px solid #ced7d3;
  color: var(--business-card-accent);
  font-size: 7px;
  font-weight: 900;
  text-align: right;
}

.business-card-preview-person {
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: end;
  gap: 18px;
  min-height: 194px;
  padding: 24px 18px 22px 22px;
}

.business-card-preview-person-copy {
  padding-bottom: 5px;
}

.business-card-preview-person p {
  color: #ff8b73;
  font-size: 8px;
}

.business-card-preview-person h3 {
  margin-top: 9px;
  font-size: 31px;
  line-height: 1.04;
}

.business-card-preview-person small {
  margin-top: 7px;
  color: #c1cac7;
}

.business-card-preview-role {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, .07);
}

.business-card-preview-role > span {
  width: 3px;
  background: var(--business-card-accent);
}

.business-card-preview-role strong {
  margin: 0;
  color: #fff;
  font-size: 10px;
}

.business-card-preview-avatar {
  position: relative;
  width: 118px;
  height: 156px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 0;
  background: var(--business-card-accent);
  box-shadow: 6px 6px 0 var(--business-card-signal);
  color: #fff;
}

.business-card-preview-avatar::before {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, .48);
  pointer-events: none;
}

.business-card-preview-avatar > span {
  position: relative;
  z-index: 2;
  font-size: 36px;
  font-weight: 900;
}

.business-card-preview-avatar > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-position: center top;
}

.business-card-preview-avatar > small {
  position: absolute;
  right: 13px;
  bottom: 12px;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 6px;
  font-weight: 900;
  line-height: 1.3;
  text-align: right;
}

.business-card-preview-motto {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 22px 22px;
}

.business-card-preview-motto > span {
  width: 42px;
  height: 2px;
  background: var(--business-card-signal);
}

.business-card-preview-motto small {
  color: #94a49f;
  font-size: 7px;
  font-weight: 800;
}

.business-card-preview-actions {
  box-shadow: 0 7px 18px rgba(17, 26, 34, .08);
}

.business-card-preview-actions span {
  min-height: 72px;
  background: #fff;
}

.business-card-preview-actions .business-card-icon {
  width: 18px;
  height: 18px;
  padding: 1px;
  color: var(--business-card-accent);
}

.business-card-preview-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 8px;
  padding: 13px 15px;
  border-bottom: 1px solid #d9e0de;
  background: var(--business-card-paper);
}

.business-card-preview-command > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid #abbcb6;
  border-radius: 4px;
  background: #fff;
  color: var(--business-card-ink);
  font-size: 10px;
}

.business-card-preview-command > span:first-child {
  border-color: var(--business-card-accent);
  background: var(--business-card-accent);
  color: #fff;
}

.business-card-preview-body {
  padding: 0;
}

.business-card-preview-message {
  position: relative;
  min-height: 148px;
  padding: 26px 18px 26px 76px;
  border: 0;
  background: var(--business-card-mist);
}

.business-card-preview-message::before {
  content: "01";
  position: absolute;
  left: 17px;
  top: 27px;
  color: var(--business-card-signal);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.business-card-preview-message span {
  color: #657b82;
}

.business-card-preview-message h4 {
  margin: 8px 0 10px;
  color: var(--business-card-ink);
  font-size: 20px;
}

.business-card-preview-message p {
  color: #263940;
  font-size: 11px;
  line-height: 1.75;
}

.business-card-preview-contact-heading {
  display: grid;
  gap: 7px;
  padding: 26px 18px 12px;
  background: #fff;
}

.business-card-preview-contact-heading span {
  color: var(--business-card-signal);
  font-size: 8px;
  font-weight: 900;
}

.business-card-preview-contact-heading strong {
  color: var(--business-card-ink);
  font-size: 18px;
}

.business-card-preview-contacts {
  gap: 0;
  padding: 0 18px 22px;
  background: #fff;
}

.business-card-preview-contacts > div {
  min-height: 62px;
  padding: 10px 0;
}

.business-card-preview-contacts dt {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  background: var(--business-card-paper);
}

.business-card-preview-contacts dd strong {
  color: var(--business-card-ink);
}

.business-card-preview-footer {
  padding: 14px 16px;
  border-top: 1px solid #d9e0de;
  background: #fff;
}

.business-card-preview-footer span {
  min-height: 40px;
  border: 1px solid #b9c6c2;
  border-radius: 4px;
  background: #fff;
  color: var(--business-card-ink);
}

@media (max-width: 440px) {
  .business-card-preview-brand {
    padding-inline: 14px;
  }

  .business-card-preview-edition {
    display: none;
  }

  .business-card-preview-person {
    grid-template-columns: minmax(0, 1fr) 102px;
    padding-left: 18px;
  }

  .business-card-preview-avatar {
    width: 102px;
    height: 142px;
  }

  .business-card-preview-person h3 {
    font-size: 27px;
  }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.work-schedule-page {
  display: grid;
  gap: 16px;
}

.work-schedule-header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 20px 22px;
}

.work-schedule-title-block {
  min-width: 0;
}

.work-schedule-title-block .eyebrow {
  color: var(--blue);
}

.work-schedule-title-block h1 {
  font-size: 26px;
  line-height: 1.2;
  margin: 4px 0 6px;
}

.work-schedule-title-block > p:last-child {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.work-schedule-month-controls {
  align-items: end;
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.work-schedule-month-controls label {
  width: 160px;
}

.work-schedule-month-controls input {
  font-weight: 800;
  min-height: 38px;
}

.work-schedule-month-controls .small-button {
  min-height: 38px;
  white-space: nowrap;
}

.work-schedule-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-schedule-kpis .kpi {
  min-height: 92px;
}

.work-schedule-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.work-schedule-layout.can-edit {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
}

.work-schedule-calendar-panel,
.work-schedule-editor-panel {
  min-width: 0;
}

.work-schedule-calendar-panel {
  overflow: hidden;
  padding: 0;
}

.work-schedule-calendar-heading {
  align-items: center;
  margin: 0;
  padding: 18px 20px;
}

.work-schedule-calendar-heading h2 {
  font-size: 20px;
  margin: 0 0 3px;
}

.work-schedule-calendar-heading span {
  color: var(--muted);
  font-size: 12px;
}

.work-schedule-calendar-heading .button-row {
  align-items: center;
}

.work-schedule-weekdays,
.work-schedule-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.work-schedule-weekdays {
  background: #f7f9fb;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.work-schedule-weekdays span {
  color: #536173;
  font-size: 12px;
  font-weight: 900;
  padding: 9px 8px;
  text-align: center;
}

.work-schedule-weekdays .sunday,
.work-schedule-month-grid > .work-schedule-day:nth-child(7n + 1) .work-schedule-day-number {
  color: var(--rose);
}

.work-schedule-weekdays .saturday,
.work-schedule-month-grid > .work-schedule-day:nth-child(7n) .work-schedule-day-number {
  color: var(--blue);
}

.work-schedule-day {
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 142px;
  min-width: 0;
  padding: 7px;
  position: relative;
}

.work-schedule-day:nth-child(7n) {
  border-right: 0;
}

.work-schedule-day.is-empty {
  background: #f8fafc;
}

.work-schedule-day.is-selected {
  background: #f1f8f5;
  box-shadow: inset 0 0 0 2px rgba(22, 136, 90, 0.45);
}

.work-schedule-day.is-today {
  background: #fffbea;
  box-shadow: inset 0 0 0 3px var(--blue);
  z-index: 1;
}

.work-schedule-day.is-today.is-selected {
  background: #fffbea;
  box-shadow: inset 0 0 0 3px var(--blue), inset 0 -6px 0 rgba(22, 136, 90, 0.35);
}

.work-schedule-day.can-copy {
  cursor: grab;
  transition: background-color 140ms ease, opacity 140ms ease, outline-color 140ms ease;
}

.work-schedule-day.can-copy:active {
  cursor: grabbing;
}

.work-schedule-day.is-dragging {
  opacity: 0.42;
}

.work-schedule-day.is-drop-target {
  background: #e9f8f1;
  outline: 3px solid #16885a;
  outline-offset: -3px;
  z-index: 2;
}

.work-schedule-day-select {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  display: flex;
  gap: 6px;
  justify-content: flex-start;
  min-height: 28px;
  padding: 0 2px 5px;
  width: 100%;
}

.work-schedule-day-number {
  font-size: 14px;
  font-weight: 900;
}

.work-schedule-today-badge,
.work-schedule-mobile-count {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  padding: 4px 6px;
}

.work-schedule-today-badge {
  background: var(--blue);
  color: #fff;
}

.work-schedule-mobile-count {
  background: #e8eef7;
  color: #34445a;
  display: none;
  margin-left: auto;
}

.work-schedule-day-events {
  display: grid;
  gap: 7px;
}

.work-schedule-site-group {
  min-width: 0;
}

.work-schedule-site-group + .work-schedule-site-group {
  border-top: 1px dashed #d8e0ea;
  padding-top: 6px;
}

.work-schedule-site-heading {
  align-items: center;
  display: flex;
  font-size: 10px;
  font-weight: 900;
  gap: 5px;
  line-height: 1.2;
  margin: 0 2px 4px;
}

.work-schedule-site-heading::before {
  border-radius: 2px;
  content: "";
  flex: 0 0 4px;
  height: 12px;
}

.work-schedule-site-group.site-daeryun .work-schedule-site-heading {
  color: #775018;
}

.work-schedule-site-group.site-daeryun .work-schedule-site-heading::before {
  background: #d69725;
}

.work-schedule-site-group.site-duksung .work-schedule-site-heading {
  color: #285185;
}

.work-schedule-site-group.site-duksung .work-schedule-site-heading::before {
  background: #4a82cf;
}

.work-schedule-site-rows {
  display: grid;
  gap: 3px;
}

.work-schedule-event-chip,
.work-schedule-more {
  border-radius: 5px;
  min-width: 0;
  text-align: left;
  width: 100%;
}

.work-schedule-event-chip {
  align-items: center;
  border: 1px solid transparent;
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
  min-height: 26px;
  padding: 4px 6px;
}

.work-schedule-event-shift-time {
  align-items: center;
  display: flex;
  gap: 4px;
  min-width: 0;
}

.work-schedule-shift-label {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.work-schedule-event-chip span,
.work-schedule-event-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-schedule-event-chip .work-schedule-event-time {
  font-size: 9px;
  font-weight: 800;
}

.work-schedule-event-chip .work-schedule-event-worker {
  font-size: 11px;
  text-align: right;
}

.work-schedule-event-chip.site-duksung {
  background: #edf4ff;
  border-color: #c9dbfb;
  color: #24466f;
}

.work-schedule-event-chip.site-daeryun {
  background: #fff4df;
  border-color: #ecd1a1;
  color: #6f4b13;
}

.work-schedule-event-chip.shift-morning {
  background: #edf7ff;
  border-color: #bddcf2;
  color: #234b67;
}

.work-schedule-event-chip.shift-afternoon {
  background: #fff0f3;
  border-color: #efc4ce;
  color: #6f3544;
}

.shift-morning .work-schedule-shift-label {
  color: #0875a5;
}

.shift-afternoon .work-schedule-shift-label {
  color: #ba3656;
}

.work-schedule-more {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
}

.work-schedule-agenda {
  padding: 20px;
}

.work-schedule-agenda-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
}

.work-schedule-agenda-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.work-schedule-agenda-heading h3 {
  font-size: 17px;
  margin: 2px 0 0;
}

.work-schedule-agenda-actions > strong {
  background: #eef2f5;
  border-radius: 999px;
  font-size: 12px;
  padding: 5px 9px;
}

.work-schedule-agenda-actions,
.work-schedule-agenda-copy {
  align-items: center;
  display: flex;
  gap: 7px;
}

.work-schedule-agenda-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.work-schedule-agenda-copy label {
  margin: 0;
}

.work-schedule-agenda-copy input {
  font-weight: 800;
  min-height: 34px;
  width: 145px;
}

.work-schedule-agenda-copy .small-button {
  min-height: 34px;
  white-space: nowrap;
}

.work-schedule-delete-date {
  min-height: 34px;
  white-space: nowrap;
}

.work-schedule-agenda-list {
  display: grid;
}

.work-schedule-agenda-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1.8fr) auto;
  padding: 13px 4px 13px 12px;
  position: relative;
}

.work-schedule-agenda-row::before {
  background: var(--blue);
  border-radius: 3px;
  content: "";
  height: calc(100% - 24px);
  left: 0;
  position: absolute;
  top: 12px;
  width: 3px;
}

.work-schedule-agenda-row.site-daeryun::before {
  background: var(--amber);
}

.work-schedule-agenda-time,
.work-schedule-agenda-body {
  display: grid;
  min-width: 0;
}

.work-schedule-agenda-time .work-schedule-shift-label {
  margin-bottom: 3px;
  width: max-content;
}

.work-schedule-agenda-time strong {
  font-size: 13px;
}

.work-schedule-agenda-time span,
.work-schedule-agenda-body span,
.work-schedule-agenda-body small {
  color: var(--muted);
  font-size: 11px;
}

.work-schedule-agenda-body > strong,
.work-schedule-agenda-body > span,
.work-schedule-agenda-body > small {
  overflow-wrap: anywhere;
}

.work-schedule-agenda-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 26px 4px 8px;
  text-align: center;
}

.work-schedule-editor-panel {
  position: sticky;
  top: 16px;
}

.work-schedule-editor-panel .panel-heading {
  align-items: flex-start;
}

.work-schedule-editor-panel .panel-heading h2 {
  margin-bottom: 2px;
}

.work-schedule-editor-panel .panel-heading span {
  color: var(--muted);
  font-size: 11px;
}

.work-schedule-form {
  gap: 12px;
}

.work-schedule-worker-field {
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 0;
  min-width: 0;
  padding: 12px;
}

.work-schedule-worker-field legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 0 5px;
}

.work-schedule-worker-summary {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 10px;
}

.work-schedule-individual-worker {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 3px 8px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 11px 12px;
}

.work-schedule-individual-worker .work-schedule-shift-label {
  border: 1px solid currentColor;
  border-radius: 999px;
  grid-row: 1 / span 2;
  padding: 4px 6px;
}

.work-schedule-individual-worker strong {
  color: var(--text);
  font-size: 14px;
}

.work-schedule-individual-worker small {
  color: var(--muted);
  font-size: 11px;
}

.work-schedule-worker-list {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 260px;
  overflow-y: auto;
}

.work-schedule-worker-list label {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 8px;
  min-height: 48px;
  padding: 7px 8px;
}

.work-schedule-worker-list label:has(input:checked) {
  background: #eff6ff;
  border-color: #9bbcf4;
}

.work-schedule-worker-list input {
  flex: 0 0 auto;
  min-height: 0;
  width: auto;
}

.work-schedule-worker-list label > span {
  display: grid;
  min-width: 0;
}

.work-schedule-worker-list strong {
  color: var(--text);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-schedule-worker-list small {
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-schedule-form textarea {
  min-height: 90px;
}

.work-schedule-form-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

@media (max-width: 1180px) {
  .work-schedule-layout.can-edit {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .work-schedule-day {
    min-height: 126px;
  }
}

@media (max-width: 980px) {
  .work-schedule-layout.can-edit {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-schedule-editor-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .dashboard-week-schedule-heading {
    align-items: stretch;
    display: grid;
    gap: 10px;
    padding: 15px;
  }

  .dashboard-week-schedule-heading .small-button {
    width: 100%;
  }

  .dashboard-week-schedule-scroll {
    scroll-snap-type: x proximity;
  }

  .dashboard-week-schedule-list {
    grid-template-columns: repeat(7, minmax(160px, 1fr));
    min-width: 1120px;
  }

  .dashboard-week-schedule-day {
    scroll-snap-align: start;
  }

  .dashboard-week-schedule-entries {
    min-height: 100px;
  }

  .work-schedule-page {
    gap: 12px;
  }

  .work-schedule-header {
    align-items: stretch;
    display: grid;
    gap: 14px;
    padding: 16px;
  }

  .work-schedule-title-block h1 {
    font-size: 23px;
  }

  .work-schedule-month-controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .work-schedule-month-controls label {
    width: auto;
  }

  .work-schedule-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-schedule-kpis .kpi {
    min-height: 76px;
    padding: 11px 12px;
  }

  .work-schedule-kpis .kpi strong {
    font-size: 20px;
  }

  .work-schedule-calendar-heading {
    align-items: flex-start;
    display: grid;
    gap: 10px;
    padding: 15px;
  }

  .work-schedule-calendar-heading .button-row {
    justify-content: space-between;
    width: 100%;
  }

  .work-schedule-weekdays span {
    font-size: 11px;
    padding: 7px 2px;
  }

  .work-schedule-day {
    min-height: 56px;
    padding: 4px;
  }

  .work-schedule-day.is-today,
  .work-schedule-day.is-today.is-selected {
    box-shadow: inset 0 0 0 2px var(--blue);
  }

  .work-schedule-day-select {
    align-items: center;
    display: grid;
    gap: 1px;
    justify-items: center;
    min-height: 46px;
    padding: 2px;
  }

  .work-schedule-day-number {
    font-size: 12px;
  }

  .work-schedule-today-badge {
    border-radius: 3px;
    font-size: 8px;
    padding: 2px 3px;
  }

  .work-schedule-mobile-count {
    display: block;
    font-size: 8px;
    margin: 0;
    padding: 2px 4px;
  }

  .work-schedule-day-events {
    display: none;
  }

  .work-schedule-agenda {
    padding: 15px;
  }

  .work-schedule-agenda-row {
    align-items: start;
    gap: 8px 12px;
    grid-template-columns: minmax(105px, 0.75fr) minmax(0, 1.25fr) auto;
    padding-block: 12px;
  }

  .work-schedule-worker-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }
}

@media (max-width: 440px) {
  .work-schedule-month-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work-schedule-month-controls label {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .work-schedule-month-controls .small-button {
    padding-inline: 6px;
  }

  .work-schedule-agenda-heading {
    align-items: start;
    display: grid;
    gap: 10px;
  }

  .work-schedule-agenda-actions,
  .work-schedule-agenda-copy {
    width: 100%;
  }

  .work-schedule-agenda-actions {
    align-items: stretch;
    display: grid;
    justify-items: start;
  }

  .work-schedule-agenda-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .work-schedule-agenda-copy label,
  .work-schedule-agenda-copy input {
    width: 100%;
  }

  .work-schedule-delete-date {
    width: 100%;
  }

  .work-schedule-agenda-row {
    grid-template-columns: 1fr auto;
  }

  .work-schedule-agenda-time {
    grid-column: 1;
  }

  .work-schedule-agenda-body {
    grid-column: 1;
  }

  .work-schedule-agenda-row > .small-button {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .work-schedule-worker-list {
    grid-template-columns: 1fr;
  }
}
