* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, "Malgun Gothic", "맑은 고딕", sans-serif;
  font-size: 13px;
  color: #333;
  letter-spacing: -0.2px;
}
body {
  background: #f9fafc;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
input,
select,
textarea {
  border: 1px solid #d9dde2;
  border-radius: 3px;
  background: #fff;
  color: #333;
  padding: 11px 12px;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #b4b7bc;
}
textarea {
  resize: vertical;
  min-height: 85px;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: #4d9bbb;
  cursor: pointer;
  margin: 0;
}
input[type="number"] {
  appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 20px;
  font-weight: 500;
}
h2 {
  font-size: 18px;
  font-weight: 500;
}
h3 {
  font-size: 15px;
  font-weight: 500;
}
.hidden {
  display: none !important;
}
.muted {
  color: #959da5;
}
.nowrap {
  white-space: nowrap;
}
.mono {
  font-variant-numeric: tabular-nums;
}
.topbar {
  height: 68px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  background: #26394a;
  color: #f2f5f7;
  display: flex;
  align-items: center;
}
.brand {
  width: 185px;
  flex-shrink: 0;
  height: 68px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #1e3040;
}
.brand svg {
  width: 35px;
  height: 40px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.6px;
  line-height: 11px;
}
.brand strong {
  font-size: 20px;
  letter-spacing: 0;
}
.menu-toggle {
  width: 55px;
  height: 68px;
  background: #1e3040 !important;
  color: #98a8b6;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  gap: 4px;
}
.recent-job {
  margin-left: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.recent-job .icon {
  opacity: 0.7;
}
.header-end {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-left: auto;
  padding: 0 24px;
  white-space: nowrap;
}
.header-source {
  font-size: 11px;
  color: #ccd9e1;
}
.account-button {
  font-weight: 600;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 68px;
  bottom: 0;
  width: 240px;
  background: #eef1f6;
  z-index: 30;
  padding-top: 12px;
  overflow-y: auto;
}
.nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 67px;
  padding: 19px 23px;
  gap: 16px;
  text-align: left;
  color: #4e555b;
}
.nav-link svg {
  flex-shrink: 0;
}
.nav-link.active,
.nav-link:hover {
  color: #43bda9;
}
.nav-link .nav-chevron {
  margin-left: auto;
  transition: transform 0.15s;
  width: 14px;
}
.nav-link[aria-expanded="true"] .nav-chevron {
  transform: rotate(90deg);
}
.nav-children {
  padding: 0 10px 12px 58px;
}
.nav-children a {
  display: block;
  padding: 8px 0;
  font-size: 12px;
}
.nav-children a.active {
  color: #33b9a7;
}
.support-card {
  margin: 25px 16px;
  background: #f0f8f6;
  border: 1px solid #e3efec;
  border-radius: 9px;
  padding: 15px;
  color: #5a9f92;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 11px;
}
.support-card b {
  font-size: 13px;
}
.main-content {
  margin: 68px 0 0 240px;
  padding: 30px 24px 36px;
  min-height: calc(100vh - 68px);
}
.collapsed .sidebar {
  width: 68px;
}
.collapsed .nav-link {
  padding: 20px;
  gap: 0;
}
.collapsed .nav-label,
.collapsed .nav-chevron,
.collapsed .support-card,
.collapsed .nav-children {
  display: none;
}
.collapsed .main-content {
  margin-left: 68px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  margin-bottom: 22px;
}
.page-heading h1 {
  margin: 0;
  white-space: nowrap;
}
.page-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 39px;
  padding: 9px 16px;
  border-radius: 3px;
  white-space: nowrap;
  border: 1px solid transparent;
  background: #fff;
  color: #555;
}
.button.primary {
  background: #1bbdae;
  color: #fff;
  border-radius: 24px;
  padding: 11px 22px;
}
.button.blue {
  background: #549abb;
  color: #fff;
  border-radius: 24px;
  padding: 11px 20px;
}
.button.dark {
  background: #343a3e;
  color: #fff;
  border-radius: 25px;
  padding: 8px 23px;
  min-height: 34px;
  font-size: 12px;
}
.button.search {
  background: #456378;
  color: #fff;
  border: 1px solid #456378;
}
.button.outline {
  border: 1px solid #d6dce2;
  background: #fff;
}
.button.small {
  min-height: 29px;
  padding: 5px 10px;
  font-size: 12px;
}
.button.text {
  background: none;
  color: #638fa3;
  padding: 7px 0;
  min-height: 30px;
}
.button.danger {
  background: #fff2f2;
  border-color: #f0c2c2;
  color: #bc4d4d;
}
.button svg {
  width: 16px;
  height: 16px;
}
.filter-card {
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px #142b3d03;
}
.filter-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.filter-date {
  min-width: 163px;
  border: 1px solid #d8dce1;
  border-radius: 3px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 17px;
}
.channel-select {
  width: 146px;
}
.search-input {
  flex: 1;
  min-width: 130px;
}
.advanced-open {
  border: 1px solid #d8dce1;
  background: #fff;
  padding: 10px 13px;
  min-width: 118px;
  margin-left: -11px;
}
.filter-advanced {
  border-top: 1px solid #edf0f3;
  margin-top: 20px;
  padding-top: 18px;
}
.filter-condition {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 120px minmax(160px, 1fr) 34px;
  gap: 10px;
  margin-bottom: 10px;
}
.filter-note {
  font-size: 11px;
  color: #94a0a9;
  margin-top: 10px;
}
.list-card {
  background: #fff;
  border: 1px solid #e0e5e9;
  border-radius: 4px;
}
.table-scroll {
  overflow-x: auto;
  min-width: 0;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}
.data-table th {
  font-weight: 400;
  background: #f8f8f8;
  min-height: 49px;
  height: 49px;
  padding: 12px 10px;
  text-align: center;
  font-size: 12px;
  border-bottom: 1px solid #e0e3e6;
  white-space: nowrap;
}
.data-table td {
  height: 70px;
  padding: 16px 10px;
  border-bottom: 1px solid #edf0f2;
  vertical-align: middle;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table .cell-left {
  text-align: left;
}
.data-table .cell-center {
  text-align: center;
}
.data-table .cell-right {
  text-align: right;
}
.data-table .cell-select {
  width: 36px;
  text-align: center;
  padding: 10px 8px;
}
.data-table .name-cell {
  line-height: 1.65;
}
.data-table .row-selected {
  background: #f3fbfa;
}
.table-link {
  text-decoration: underline;
  cursor: pointer;
  background: none;
  padding: 0;
  color: #374f5c;
  line-height: 1.6;
}
.table-link.blue-link {
  color: #5894ae;
  text-decoration: none;
}
.sort-button {
  font-size: 11px;
  color: #b7bec5;
  margin-left: 5px;
  padding: 0;
}
.sort-button.active {
  color: #419aaf;
}
.number-cell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.unit {
  font-size: 10px;
  color: #8d959d;
}
.edit-button {
  padding: 2px;
  display: inline-flex;
}
.edit-button svg {
  width: 14px;
  height: 14px;
}
.inline-editor {
  display: flex;
  gap: 5px;
  align-items: center;
}
.inline-editor input {
  width: 70px;
  padding: 5px;
  text-align: center;
}
.inline-editor .save-inline {
  font-size: 10px;
  border: 1px solid #e0e4e8;
  padding: 5px;
  background: #fff;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 4px 5px;
  border-radius: 3px;
  background: #e9e9ed;
  color: #8e949b;
  font-size: 11px;
}
.pill.green {
  background: #e5f7f3;
  color: #44a98e;
  border: 1px solid #d0f1e9;
}
.pill.red {
  background: #fff0ef;
  color: #bd645d;
}
.pill.blue {
  background: #edf5fb;
  color: #588ea8;
}
.pill.amber {
  background: #fff7e8;
  color: #aa8547;
}
.row-more {
  border: 1px solid #d9dce0;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  color: #959da3;
  line-height: 14px;
  padding: 0;
  font-size: 16px;
}
.toggle {
  width: 55px;
  height: 24px;
  border-radius: 20px;
  background: #d9dde3;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  position: relative;
  text-align: left;
  padding: 0 6px;
  line-height: 24px;
}
.toggle::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  right: 3px;
  box-shadow: 0 1px 2px #0001;
}
.toggle.on {
  background: #559aba;
  text-align: right;
  padding-right: 7px;
}
.toggle.on::after {
  left: 3px;
  right: auto;
}
.toggle.pending {
  opacity: 0.5;
  cursor: wait;
}
.bulk-toolbar {
  height: 49px;
  background: #edf8f6;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 15px;
  border-bottom: 1px solid #d9ebe5;
}
.bulk-toolbar .bulk-count {
  font-weight: bold;
  color: #3b9f8d;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 15px;
  color: #8e969c;
  min-height: 69px;
}
.page-size {
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-size select {
  border-radius: 20px;
  padding: 7px 14px;
  min-width: 84px;
  color: #7e878f;
}
.page-numbers {
  display: flex;
  align-items: center;
  gap: 5px;
}
.page-numbers button {
  min-width: 29px;
  height: 29px;
  border-radius: 50%;
  color: #8d969f;
}
.page-numbers button.current {
  background: #28b8a6;
  color: #fff;
}
.page-jump {
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-jump input {
  width: 55px;
  padding: 5px 7px;
}
.source-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -8px 0 18px;
  font-size: 11px;
  color: #84929c;
  flex-wrap: wrap;
}
.source-strip .warning {
  color: #b27e3b;
}
.state-box {
  padding: 55px 24px;
  text-align: center;
  color: #96a0a9;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.state-box.error {
  color: #aa625d;
}
.state-box h3 {
  margin: 0;
  color: inherit;
}
.state-box p {
  max-width: 650px;
  margin: 0;
  line-height: 1.7;
}
.page-loading {
  padding: 70px;
  text-align: center;
  color: #8395a3;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e0e6e9;
  border-top-color: #39b6a5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: #0006;
  z-index: 100;
}
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 70vw;
  background: #fff;
  box-shadow: -3px 0 8px #0001;
  display: flex;
  flex-direction: column;
  z-index: 101;
}
.drawer.width-map {
  width: 80vw;
}
.drawer.width-policy {
  width: 55vw;
}
.drawer.width-form {
  width: 50vw;
}
.drawer-close {
  position: absolute;
  top: 15px;
  left: -66px;
  width: 52px;
  height: 52px;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #343a3f;
  box-shadow: 0 1px 3px #0002;
}
.drawer-close svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.3;
}
.drawer-head {
  height: 79px;
  flex-shrink: 0;
  border-bottom: 1px solid #bfc3c7;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.drawer-head h2 {
  font-size: 18px;
  margin: 0;
}
.accent {
  color: #36b4a2;
}
.drawer-body {
  padding: 26px 20px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid #e0e4e8;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.drawer .data-table td {
  height: 52px;
  padding: 13px 10px;
}
.drawer .data-table {
  border: 1px solid #e3e5e8;
}
.drawer .data-table th {
  height: 50px;
}
.popover {
  position: fixed;
  z-index: 180;
  background: #fff;
  border: 1px solid #dce2e7;
  border-radius: 4px;
  box-shadow: 0 6px 24px #21394b25;
  min-width: 180px;
  padding: 6px 0;
  max-width: min(500px, 95vw);
  max-height: 75vh;
  overflow: auto;
}
.menu-item {
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
.menu-item:hover {
  background: #f3f8f8;
  color: #36a591;
}
.menu-separator {
  height: 1px;
  background: #edf0f3;
  margin: 5px 0;
}
.calendar-popup {
  padding: 20px;
  min-width: 390px;
}
.date-inputs {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}
.date-inputs input {
  width: 170px;
}
.date-presets {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.date-presets button {
  padding: 6px 9px;
  border: 1px solid #dce2e7;
  border-radius: 3px;
  font-size: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field > span {
  font-size: 12px;
  color: #7d8790;
}
.field small,
.help-text {
  font-size: 11px;
  color: #9aa2aa;
  line-height: 1.7;
}
.field.wide {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea {
  width: 100%;
}
.field-error {
  color: #b85555;
  font-size: 11px;
  margin-top: 4px;
}
.form-section {
  padding: 25px 18px;
  background: #fff;
  border: 1px solid #f0f2f4;
  margin-bottom: 22px;
  box-shadow: 0 2px 12px #25374403;
}
.form-section h3:before {
  content: "•";
  color: #27bd9e;
  margin-right: 8px;
}
.form-error {
  color: #bd5c5c;
  line-height: 1.6;
  margin: 12px 0;
  white-space: pre-wrap;
}
.form-error:empty {
  display: none;
}
.notice-box {
  padding: 13px 16px;
  border: 1px solid #e4e9ef;
  background: #f6f9fc;
  border-radius: 4px;
  color: #718696;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.notice-box.warning {
  background: #fffaf0;
  border-color: #efe3c6;
  color: #a1874e;
}
.notice-box.success {
  background: #f0faf7;
  border-color: #cfeee1;
  color: #4b9e83;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title h3 {
  margin: 0;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  margin: 34px 0 27px;
}
.metric-card {
  background: #fff;
  border: 1px solid #f1f2f3;
  border-radius: 17px;
  min-height: 144px;
  padding: 18px 20px;
  position: relative;
}
.metric-value {
  font-size: 26px;
  font-weight: bold;
  color: #0c171c;
  letter-spacing: 0.2px;
}
.metric-label {
  font-size: 11px;
  color: #a5a9ae;
  margin-top: 5px;
}
.metric-mark {
  position: absolute;
  top: 26px;
  right: 20px;
  width: 30px;
  height: 30px;
  background: #e3f1ee;
  border-radius: 10px;
}
.metric-card:nth-child(2) .metric-mark {
  background: #f0e5e5;
}
.metric-card:nth-child(3) .metric-mark {
  background: #fff3db;
}
.metric-card:nth-child(4) .metric-mark {
  background: #e9e7fa;
}
.metric-percent {
  margin-top: 28px;
  color: #9a9c9f;
}
.metric-bar {
  height: 5px;
  border-radius: 3px;
  background: #eee;
  margin-top: 8px;
  overflow: hidden;
}
.metric-bar span {
  display: block;
  height: 100%;
  background: #8c87ad;
}
.dashboard-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.chart-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  min-height: 355px;
}
.chart-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.chart-svg {
  width: 100%;
  height: 270px;
  overflow: visible;
}
.activity-card { margin-bottom: 28px; min-height: 310px; }
.activity-scroll { overflow-x: auto; }
.activity-plot { display: flex; gap: 8px; min-width: 680px; padding: 5px 8px 0; border-bottom: 1px solid #e5e9ee; }
.activity-day { flex: 1; min-width: 36px; color: #6f7c88; text-align: center; text-decoration: none; border-radius: 5px; }
.activity-day:hover, .activity-day:focus-visible { background: #f0f6f8; outline: 2px solid #a8cfce; }
.activity-bars { display: flex; height: 195px; flex-direction: column; align-items: center; justify-content: flex-end; }
.activity-total { font-size: 10px; line-height: 18px; }
.activity-stack { display: flex; flex-direction: column-reverse; width: 68%; max-width: 34px; min-height: 1px; background: #edf0f3; }
.activity-segment { display: block; flex-basis: 0; min-height: 0; }
.activity-date { display: block; padding: 8px 0; font-size: 10px; white-space: nowrap; }
.activity-color { display: inline-block; height: 8px; width: 8px; border-radius: 2px; margin-right: 5px; }
.activity-collect { background: #5eb1b1; }
.activity-send { background: #8d83b0; }
.activity-sync { background: #d0b261; }
.activity-other { background: #abb7c4; }
.chart-svg text {
  font-size: 10px;
  fill: #939a9f;
}
.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 11px;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 5px;
}
.notice-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.notice-table th {
  background: #fff;
  border-radius: 8px;
  color: #b4b8bd;
  font-weight: 400;
  padding: 8px;
  text-align: left;
}
.notice-table td {
  padding: 14px 8px;
  border-bottom: 1px solid #e8ebef;
}
.channel-mark {
  font-weight: 700;
  font-size: 14px;
  display: block;
  margin-bottom: 7px;
  color: #20272a;
  letter-spacing: -0.4px;
}
.channel-meta {
  font-size: 12px;
  line-height: 1.6;
  color: #697079;
}
.component-group td {
  vertical-align: top;
}
.component-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 460px;
}
.component-row {
  display: grid;
  grid-template-columns: 130px minmax(180px, 1fr) 65px 65px 20px;
  gap: 10px;
  align-items: center;
  min-height: 23px;
}
.component-row input {
  padding: 3px 5px;
  text-align: center;
  width: 55px;
  border-color: #aaa;
}
.remove-component {
  color: #e67770;
  font-size: 14px;
  padding: 0;
}
.component-add {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.component-add button {
  border: 1px solid #c6e5cf;
  border-radius: 50%;
  background: #c4e9ce;
  color: #fff;
  width: 17px;
  height: 17px;
  line-height: 14px;
  padding: 0;
}
.sku-picker-results {
  border: 1px solid #e4e8ec;
  margin-top: 16px;
  max-height: 45vh;
  overflow: auto;
}
.sku-picker-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid #edf0f3;
  width: 100%;
  text-align: left;
}
.sku-picker-item:hover {
  background: #eff8f6;
}
.sku-picker-item span:first-child {
  color: #6d9aad;
  min-width: 110px;
}
.channel-policy-table td {
  height: 92px !important;
}
.channel-policy-table .channel-mark {
  font-size: 19px;
  text-align: center;
  letter-spacing: -0.5px;
}
.channel-policy-table .channel-meta {
  text-align: center;
}
.channel-policy-table input {
  width: 100%;
  max-width: 160px;
}
.job-stages {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 18px 0 28px;
}
.job-stage {
  flex: 1;
  border-top: 4px solid #e6e9ec;
  padding: 12px 3px;
  font-size: 11px;
  color: #a0a8ae;
}
.job-stage.done {
  border-color: #56bba8;
  color: #499e8e;
}
.job-stage.current {
  border-color: #4b9abd;
  color: #418bad;
  font-weight: bold;
}
.stat-strip {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 15px 0;
}
.stat-strip span {
  color: #81919e;
}
.stat-strip b {
  color: #3e5567;
  margin-left: 8px;
}
.event-log {
  margin-top: 20px;
  border-top: 1px solid #e8edf0;
}
.event-row {
  display: flex;
  gap: 16px;
  font-size: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef1f4;
}
.event-time {
  color: #96a2ac;
  min-width: 150px;
}
.key-values {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  font-size: 12px;
  line-height: 1.6;
}
.key-values dt {
  color: #89959f;
}
.key-values dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.tab-bar {
  display: flex;
  border-bottom: 1px solid #e1e6e9;
  margin-bottom: 20px;
  gap: 18px;
}
.tab-bar button {
  padding: 12px 4px;
  border-bottom: 2px solid transparent;
}
.tab-bar button.active {
  border-color: #36b6a4;
  color: #36b6a4;
}
.sheet-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.sheet-row-number {
  color: #6b8fa3;
  font-variant-numeric: tabular-nums;
}
.barcode-input {
  width: 100%;
  min-width: 110px;
  font-variant-numeric: tabular-nums;
}
.sheet-raw {
  background: #f7f9fb;
  padding: 16px;
  border: 1px solid #e6ebef;
  line-height: 1.8;
  margin-bottom: 20px;
}
.candidate {
  border: 1px solid #e0e8e9;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 4px;
}
.candidate.selected {
  border-color: #6bc5b4;
  background: #f5fcfa;
}
.candidate-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.candidate h3 {
  margin-bottom: 7px;
}
.candidate-reasons {
  font-size: 12px;
  color: #87959f;
  margin-top: 10px;
  line-height: 1.7;
}
.barcode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.empty-count {
  color: #9da8af;
}
.upload-zone {
  border: 1px dashed #cbd5df;
  border-radius: 5px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
.upload-zone input {
  border: 0;
  max-width: 100%;
}
.toast {
  min-width: 250px;
  max-width: 460px;
  padding: 14px 20px;
  border-radius: 4px;
  background: #344d5d;
  color: #fff;
  box-shadow: 0 3px 20px #0002;
  line-height: 1.6;
  margin-top: 10px;
}
.toast.error {
  background: #a45858;
}
.toast.success {
  background: #438e7d;
}
#toasts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  pointer-events: none;
}
.login-page {
  background: #eef1f6;
  display: grid;
  min-height: 100vh;
  place-items: center;
}
.login-card {
  background: #fff;
  width: min(420px, calc(100vw - 32px));
  padding: 42px;
  border: 1px solid #e3e7ec;
  box-shadow: 0 12px 40px #26394a0b;
  border-radius: 8px;
}
.login-brand {
  color: #26394a;
  margin-bottom: 28px;
}
.login-brand small {
  letter-spacing: 3px;
  font-size: 11px;
}
.login-brand h1 {
  font-size: 28px;
  font-weight: bold;
  margin: 3px 0;
}
.login-card .field {
  margin: 20px 0;
}
.login-submit {
  width: 100%;
  margin-top: 8px;
}
.login-caption {
  margin: 30px 0 0;
  color: #a0a9b0;
  font-size: 11px;
  line-height: 1.7;
}
.table-caption {
  margin-bottom: 8px;
  color: #6a747d;
  font-size: 12px;
}
.split-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}
.inline-message {
  font-size: 12px;
  color: #8d9aa4;
  padding: 12px 0;
}
.action-menu-trigger {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.action-menu-trigger svg {
  width: 12px;
}
.checkbox-cell {
  display: flex;
  justify-content: center;
}
.selectable-row:hover {
  background: #fafdfd;
}
.divider {
  border: 0;
  border-top: 1px solid #e7ebef;
  margin: 24px 0;
}
.file-download {
  color: #548eac;
  text-decoration: underline;
}
.data-table tr.edited td {
  background: #fffdf1;
}
.policy-helpers {
  font-size: 11px;
  line-height: 1.8;
  color: #9a9fa5;
  margin: 16px 0;
}
.policy-helpers b {
  color: #cf7b86;
  font-weight: 400;
}
.disabled-explanation {
  color: #9ba6ad;
  font-size: 11px;
}
.action-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
}
.small-input {
  padding: 5px 8px !important;
}
.page-description {
  line-height: 1.7;
  color: #84929b;
  font-size: 12px;
  margin: -10px 0 20px;
}
@media (max-width: 1200px) {
  .header-source {
    display: none;
  }
  .recent-job {
    max-width: 45vw;
  }
  .metric-grid {
    gap: 15px;
  }
  .dashboard-lower {
    gap: 20px;
  }
  .drawer.width-form {
    width: 65vw;
  }
  .form-grid {
    gap: 16px;
  }
  .header-end {
    gap: 10px;
  }
  .page-actions {
    gap: 8px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    width: 68px;
  }
  .sidebar .nav-label,
  .sidebar .nav-chevron,
  .sidebar .nav-children,
  .support-card {
    display: none;
  }
  .sidebar .nav-link {
    padding: 20px;
  }
  .main-content {
    margin-left: 68px;
    padding: 22px 16px;
  }
  .brand {
    width: 135px;
    padding-left: 10px;
  }
  .brand strong {
    font-size: 15px;
  }
  .brand svg {
    width: 28px;
  }
  .menu-toggle {
    width: 35px;
  }
  .recent-job {
    display: none;
  }
  .header-end {
    padding: 0 14px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-lower {
    grid-template-columns: 1fr;
  }
  .filter-row {
    flex-wrap: wrap;
  }
  .search-input {
    min-width: 160px;
  }
  .drawer,
  .drawer.width-map,
  .drawer.width-policy,
  .drawer.width-form {
    width: calc(100vw - 58px);
  }
  .drawer-close {
    left: -52px;
    width: 45px;
    height: 45px;
  }
  .drawer-head {
    padding: 15px;
  }
  .drawer-body {
    padding: 20px 14px;
  }
  .form-grid,
  .split-two {
    grid-template-columns: 1fr;
  }
  .barcode-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-actions {
    max-width: 65%;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .calendar-popup {
    min-width: 310px;
  }
  .date-inputs input {
    width: 135px;
  }
}

.channel-catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.channel-catalog-card {
  border: 1px solid #e0e5e9;
  border-radius: 6px;
  padding: 20px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}
.channel-catalog-card strong {
  font-size: 16px;
}
.weekday-grid {
  display: flex;
  gap: 25px;
  margin-top: 20px;
}
.recent-job .button {
  color: #d9e4ec;
  font-size: 12px;
}
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.channel-catalog-card .button {
  margin-top: auto;
}
@media (max-width: 1200px) {
  .channel-catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .channel-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
