/* Shared presentation for the two entry pages only; dashboards keep their own styles. */
#multimediaPromotionDataView,
#multimediaStationDataView {
  width: 100%;
  min-width: 0;
  padding: 0;
}

.multimedia-entry-page {
  --entry-border: #dfe6ec;
  --entry-muted: #6b7c88;
  --entry-ink: #172a35;
  --entry-accent: #ff405d;
  --entry-input: #fff0f1;
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--entry-ink);
  font-size: 13px;
  line-height: 1.5;
}

.multimedia-entry-page :is(.promotion-control-panel, .promotion-data-panel, .station-data-control-card, .station-data-card) {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--entry-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(28, 48, 60, 0.06);
}

.multimedia-entry-page :is(.promotion-control-panel, .station-data-control-card) {
  padding: 18px 20px;
}

.multimedia-entry-page :is(.promotion-page-heading, .station-data-heading) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 18px;
}

.multimedia-entry-page :is(.promotion-page-heading, .station-data-heading) > div:first-child {
  min-width: 0;
}

.multimedia-entry-page :is(.promotion-page-heading, .station-data-heading) h3 {
  margin: 0;
  color: var(--entry-ink);
  font-size: 20px;
  line-height: 1.35;
}

.multimedia-entry-page :is(.promotion-page-heading > div > span, .station-data-heading p) {
  display: block;
  margin: 5px 0 0;
  color: var(--entry-muted);
  font-size: 13px;
  line-height: 1.5;
}

.multimedia-entry-page :is(.promotion-save-area, .station-save-area) {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
}

.multimedia-entry-page :is(.promotion-save-area, .station-save-area) > span {
  color: var(--entry-muted);
  font-size: 13px;
}

.multimedia-entry-page :is(.promotion-save-area, .station-save-area) > span.dirty {
  color: #db2744;
  font-weight: 700;
}

.multimedia-entry-page :is(.promotion-save-area, .station-save-area, .promotion-dialog-actions, .station-unsaved-dialog footer) button {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--entry-accent);
  border-radius: 9px;
  color: #fff;
  background: var(--entry-accent);
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.multimedia-entry-page :is(.promotion-save-area, .station-save-area, .promotion-dialog-actions, .station-unsaved-dialog footer) button:not(:disabled):hover {
  border-color: #df2d49;
  background: #df2d49;
}

.multimedia-entry-page :is(.promotion-save-area, .station-save-area) button:disabled {
  border-color: var(--entry-border);
  color: #8c9aa4;
  background: #eef1f3;
  opacity: 1;
  cursor: not-allowed;
}


.multimedia-entry-page :is(.promotion-channel-tabs, .station-monthly-tabs) {
  display: flex;
  align-items: stretch;
  gap: 26px;
  min-width: 0;
  min-height: 54px;
  padding: 0 20px;
  overflow-x: auto;
  border-bottom: 1px solid var(--entry-border);
}

.multimedia-entry-page :is(.promotion-channel-tabs, .station-monthly-tabs) button {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 54px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  color: var(--entry-muted);
  background: transparent !important;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.multimedia-entry-page :is(.promotion-channel-tabs, .station-monthly-tabs) button:is(.active, :hover) {
  color: var(--entry-accent);
  box-shadow: none;
}

.multimedia-entry-page :is(.promotion-channel-tabs, .station-monthly-tabs) button.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--entry-accent);
}

.multimedia-entry-page :is(button, summary):focus-visible {
  outline: 2px solid var(--entry-accent);
  outline-offset: -3px;
}

.multimedia-entry-page :is(.promotion-data-content, .station-monthly-products) {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
}

.multimedia-entry-page .station-monthly-intro {
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 16px 16px 0;
  color: var(--entry-muted);
  font-size: 12px;
}

.multimedia-entry-page .station-monthly-intro strong {
  color: var(--entry-ink);
  font-size: 14px;
}

.multimedia-entry-page :is(.promotion-product-section, .station-monthly-product) {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--entry-border);
  border-radius: 10px;
  background: #fff;
}

.multimedia-entry-page :is(.promotion-product-section, .station-monthly-product) > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  min-height: 48px;
  padding: 7px 16px;
  border: 0;
  background: #fafbfc;
  list-style: none;
  cursor: pointer;
}

.multimedia-entry-page :is(.promotion-product-section, .station-monthly-product) > summary::before {
  content: "›";
  flex: none;
  color: #7c8b94;
  font-size: 20px;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 0.16s ease;
}

.multimedia-entry-page :is(.promotion-product-section, .station-monthly-product):not([open]) > summary::before {
  transform: rotate(0deg);
}

.multimedia-entry-page :is(.promotion-product-section, .station-monthly-product) > summary strong {
  min-width: 90px;
  color: var(--entry-ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.multimedia-entry-page :is(.promotion-product-section, .station-monthly-product) > summary :is(span, b) {
  color: var(--entry-muted);
  font-size: 12px;
  font-weight: 400;
}

.multimedia-entry-page .station-monthly-product > summary b {
  margin-left: auto;
}

.multimedia-entry-page :is(.promotion-table-scroll, .station-table-scroll) {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--entry-border);
}

.multimedia-entry-page :is(.promotion-data-table, .station-monthly-table) {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.multimedia-entry-page :is(.promotion-data-table, .station-monthly-table) :is(th, td) {
  height: 43px;
  border-color: var(--entry-border);
  text-align: right;
}

.multimedia-entry-page :is(.promotion-data-table, .station-monthly-table) th {
  padding: 8px 12px;
  color: #5c6e79;
  background: #f7f9fa;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.multimedia-entry-page .promotion-data-table :is(th, td):nth-child(-n + 2) {
  text-align: left;
}

.multimedia-entry-page .station-monthly-table .station-monthly-group-head th {
  height: 34px;
  padding: 6px 12px;
  color: #354c58;
  background: #fff;
  font-weight: 600;
  text-align: center;
}

.multimedia-entry-page .station-monthly-table .station-monthly-field-head th {
  background: #edf7fa;
  text-align: center;
}

.multimedia-entry-page .station-monthly-table .station-monthly-month-column {
  width: 120px;
}

.multimedia-entry-page .station-monthly-table .station-monthly-month-cell {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 120px;
  color: #354c58;
  background: #f7f9fa;
  text-align: center;
  white-space: nowrap;
  box-shadow: 1px 0 0 var(--entry-border);
}

.multimedia-entry-page .promotion-data-table td.promotion-dimension-cell {
  background: #f7f9fa !important;
}

.multimedia-entry-page :is(.promotion-data-table td.promotion-editable-cell, .station-monthly-table td.station-input-cell) {
  background: var(--entry-input) !important;
}

.multimedia-entry-page :is(.promotion-data-table td.promotion-computed-cell, .station-monthly-table td.station-computed) {
  color: #1b2d37;
  background: #fff !important;
  font-weight: 700;
}

.multimedia-entry-page :is(.promotion-editable-cell, .station-input-cell) input {
  height: 42px;
  border-radius: 0;
  color: var(--entry-ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.multimedia-entry-page :is(.promotion-editable-cell input, .station-input-cell input, .promotion-product-price input):focus {
  border-color: var(--entry-accent);
  box-shadow: inset 0 0 0 1px var(--entry-accent);
}

.multimedia-entry-page :is(.promotion-editable-cell input, .station-input-cell input, .promotion-product-price input).invalid {
  border-color: #d72845;
  background: #ffe1e5;
}

.multimedia-entry-page :is(.promotion-empty-state, .station-empty) {
  padding: 40px 16px !important;
  color: var(--entry-muted);
  text-align: center;
}

.multimedia-entry-page .station-validation {
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 16px 16px 0;
  font-size: 13px;
}

.multimedia-entry-page :is(.promotion-unsaved-dialog, .station-unsaved-dialog) {
  width: min(440px, calc(100vw - 32px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  color: var(--entry-ink);
  box-shadow: 0 22px 60px rgba(17, 33, 43, 0.24);
}

.multimedia-entry-page :is(.promotion-unsaved-dialog, .station-unsaved-dialog)::backdrop {
  background: rgba(20, 34, 43, 0.38);
}

.multimedia-entry-page :is(.promotion-dialog-body, .station-unsaved-dialog > div) {
  padding: 24px;
}

.multimedia-entry-page :is(.promotion-unsaved-dialog, .station-unsaved-dialog) h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.multimedia-entry-page :is(.promotion-unsaved-dialog, .station-unsaved-dialog) p {
  margin: 0 0 20px;
  color: var(--entry-muted);
  font-size: 13px;
  line-height: 1.65;
}

.multimedia-entry-page :is(.promotion-dialog-actions, .station-unsaved-dialog footer) {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}

.multimedia-entry-page :is(.promotion-dialog-actions, .station-unsaved-dialog footer) button.secondary {
  border-color: #d7dfe4;
  color: #415864;
  background: #f5f7f8;
}

.multimedia-entry-page :is(.promotion-dialog-actions, .station-unsaved-dialog footer) button.secondary:hover {
  border-color: #c8d2d9;
  background: #e9eef1;
}

.multimedia-entry-page :is(.promotion-dialog-actions, .station-unsaved-dialog footer) button.ghost {
  border-color: transparent;
  color: #60737e;
  background: transparent;
}

.multimedia-entry-page :is(.promotion-dialog-actions, .station-unsaved-dialog footer) button.ghost:hover {
  border-color: transparent;
  background: #f5f7f8;
}

@media (max-width: 1100px) {
  .multimedia-entry-page :is(.promotion-page-heading, .station-data-heading) {
    flex-wrap: wrap;
    gap: 12px;
  }

}

@media (max-width: 760px) {
  .multimedia-entry-page :is(.promotion-control-panel, .station-data-control-card) {
    padding: 16px;
  }

  .multimedia-entry-page :is(.promotion-save-area, .station-save-area) {
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
  }

  .multimedia-entry-page :is(.promotion-channel-tabs, .station-monthly-tabs) {
    gap: 20px;
    padding: 0 16px;
  }

  .multimedia-entry-page :is(.promotion-data-content, .station-monthly-products) {
    padding: 12px;
  }

  .multimedia-entry-page :is(.promotion-product-section, .station-monthly-product) > summary {
    gap: 6px 12px;
    padding: 10px 12px;
  }

  .multimedia-entry-page :is(.promotion-product-price, .station-monthly-product > summary b) {
    margin-left: 0;
  }
}
