/* ============================================================================
   Night Console - visual theme layer (v2026.09.10)
   Sites: jia.night2026.com / fu.night2026.com
   Scope: presentation only. No copy, markup, or behaviour changes.
   ========================================================================= */

/* ---------------------------------------------------------------- 1. Tokens */
:root {
  /* Palette ported from ip.xlh2026.com (--ip-* tokens) */
  --nc-bg: #EEF3F7;
  --nc-surface: #FFFFFF;
  --nc-surface-2: #F3F7F9;
  --nc-surface-3: #EAF0F4;

  --nc-ink: #15293B;
  --nc-ink-body: #263B4D;
  --nc-ink-2: #52697B;
  --nc-ink-3: #8A9DAC;

  --nc-line: #DBE5EC;
  --nc-line-2: #D2DFE8;

  --nc-primary: #115E8A;
  --nc-primary-deep: #0B496D;
  --nc-primary-soft: #E7F0F6;
  --nc-primary-soft-2: #DCEAF3;
  --nc-accent: #1EA59B;

  --nc-danger: #B3402F;
  --nc-danger-soft: #FBEDEB;

  --nc-r-lg: 18px;
  --nc-r: 12px;
  --nc-r-sm: 10px;
  --nc-r-xs: 6px;

  --nc-shadow-1: 0 2px 4px rgba(21, 41, 59, .04), 0 24px 56px rgba(21, 41, 59, .075);
  --nc-shadow-2: 0 18px 48px -18px rgba(21, 41, 59, .30), 0 2px 8px rgba(21, 41, 59, .06);
  --nc-focus: 0 0 0 3px rgba(17, 94, 138, .14);

  --nc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/* ------------------------------------------------------------------ 2. Base */
html { color-scheme: light; -webkit-text-size-adjust: 100%; }

body {
  margin: 0 !important;
  background-color: var(--nc-bg) !important;
  background-image:
    linear-gradient(rgba(17, 94, 138, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 94, 138, .035) 1px, transparent 1px) !important;
  background-size: 28px 28px, 28px 28px !important;
  background-attachment: fixed;
  color: var(--nc-ink) !important;
  font-family: var(--nc-font) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app { min-height: 100vh; background: var(--nc-bg); }
#app > div { background: transparent !important; padding: 20px !important; box-sizing: border-box; }

::selection { background: rgba(43, 74, 203, .16); }

/* Quiet, consistent scrollbars */
body ::-webkit-scrollbar { width: 10px; height: 10px; }
body ::-webkit-scrollbar-track { background: transparent; }
body ::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 35, .18);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
}
body ::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 35, .30); background-clip: content-box; }

/* ---------------------------------------------------- 3. Working sheet shell */
body .vben-basic-table-form-container {
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  background: var(--nc-surface) !important;
  border: 1px solid rgba(210, 223, 232, .92) !important;
  border-radius: var(--nc-r-lg) !important;
  box-shadow: var(--nc-shadow-1) !important;
  overflow: hidden;
}

/* Search band sits on the same sheet as the table */
body .vben-basic-table-form-container > .ant-form,
body .vben-basic-table-form-container > .vben-basic-form {
  margin: 0 !important;
  padding: 16px 18px 14px !important;
  background: var(--nc-surface) !important;
  border: none !important;
  border-bottom: 1px solid var(--nc-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
}

body .vben-basic-form .ant-form-item { margin-bottom: 0 !important; }
body .vben-basic-form .ant-form-item-label { padding: 0 12px 0 0 !important; }
body .vben-basic-form .ant-form-item-label > label {
  height: auto !important;
  color: var(--nc-ink-2) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  letter-spacing: .04em;
}
body .vben-basic-form .ant-form-item-label > label::after { margin: 0 !important; }
body .vben-basic-form .ant-form-item-control-input { min-height: 40px; }

/* ------------------------------------------------------------- 4. Controls */
body .ant-btn {
  font-family: inherit !important;
  font-weight: 500 !important;
  border-radius: var(--nc-r-sm) !important;
  box-shadow: none !important;
  letter-spacing: .01em;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
body .ant-btn:focus-visible { box-shadow: var(--nc-focus) !important; }
body .ant-btn[disabled], body .ant-btn:disabled { opacity: .5 !important; }

body .ant-btn-primary {
  height: 36px !important;
  padding: 0 20px !important;
  color: #fff !important;
  font-weight: 600 !important;
  background: var(--nc-primary) !important;
  border: 1px solid var(--nc-primary) !important;
  box-shadow: 0 8px 18px rgba(17, 94, 138, .18) !important;
}
body .ant-btn-primary:not(:disabled):hover,
body .ant-btn-primary:not(:disabled):focus-visible {
  background: var(--nc-primary-deep) !important;
  border-color: var(--nc-primary-deep) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(17, 94, 138, .24) !important;
}
body .ant-btn-primary:not(:disabled):active {
  background: var(--nc-primary-deep) !important;
  border-color: var(--nc-primary-deep) !important;
  box-shadow: 0 4px 10px rgba(17, 94, 138, .2) !important;
}

body .ant-btn-default {
  height: 34px !important;
  padding: 0 16px !important;
  color: var(--nc-ink) !important;
  background: var(--nc-surface) !important;
  border: 1px solid var(--nc-line-2) !important;
}
body .ant-btn-default:not(:disabled):hover {
  color: var(--nc-ink) !important;
  background: var(--nc-surface-2) !important;
  border-color: var(--nc-ink-3) !important;
}

body .ant-btn-link {
  height: 34px !important;
  padding: 0 10px !important;
  color: var(--nc-ink-2) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
}
body .ant-btn-link:not(:disabled):hover { color: var(--nc-ink) !important; background: var(--nc-surface-3) !important; }
body .ant-btn-link a { color: inherit !important; text-decoration: none !important; }
body .ant-btn-link.ant-btn-dangerous { color: var(--nc-danger) !important; }
body .ant-btn-link.ant-btn-dangerous:not(:disabled):hover { color: #8F2E1F !important; background: var(--nc-danger-soft) !important; }
body .ant-btn-sm { height: 30px !important; padding: 0 12px !important; }

body .ant-input,
body .ant-input-affix-wrapper,
body .ant-input-number,
body .ant-picker {
  color: var(--nc-ink) !important;
  background: var(--nc-surface) !important;
  border: 1px solid var(--nc-line-2) !important;
  border-radius: var(--nc-r-sm) !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 14px !important;
}
body .ant-input { height: 40px !important; padding: 0 12px !important; }
body .ant-input-affix-wrapper { padding: 0 10px !important; }
body .ant-input-affix-wrapper > .ant-input { height: 34px !important; padding: 0 !important; border: none !important; }
body .ant-input::placeholder { color: var(--nc-ink-3) !important; }
body .ant-input:not([disabled]):hover,
body .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover { border-color: var(--nc-ink-3) !important; }
body .ant-input:focus,
body .ant-input-focused,
body .ant-input-affix-wrapper-focused {
  border-color: var(--nc-primary) !important;
  box-shadow: var(--nc-focus) !important;
}
body .ant-form-item-has-error .ant-input { border-color: var(--nc-danger) !important; }
body .ant-form-item-explain-error { color: var(--nc-danger) !important; font-size: 12.5px !important; }

body .ant-checkbox-inner {
  width: 17px !important;
  height: 17px !important;
  border-radius: var(--nc-r-xs) !important;
  border-color: var(--nc-line-2) !important;
}
body .ant-checkbox-wrapper:hover .ant-checkbox-inner,
body .ant-checkbox:hover .ant-checkbox-inner { border-color: var(--nc-primary) !important; }
body .ant-checkbox-checked .ant-checkbox-inner { background: var(--nc-primary) !important; border-color: var(--nc-primary) !important; }
body .ant-checkbox-checked::after { border-color: var(--nc-primary) !important; }
body .ant-checkbox-disabled .ant-checkbox-inner { background: var(--nc-surface-3) !important; border-color: var(--nc-line-2) !important; }
body .ant-checkbox-indeterminate .ant-checkbox-inner::after { background: var(--nc-primary) !important; }

/* --------------------------------------------------------------- 5. Toolbar */
body .vben-basic-table .ant-table-wrapper { padding: 0 !important; border-radius: 0 !important; background: transparent !important; }

body .vben-basic-table .ant-table-wrapper .ant-table-title,
body .vben-basic-table .ant-table-title {
  display: block !important;
  min-height: 0 !important;
  padding: 14px 18px 16px !important;
  margin: 0 !important;
  background: var(--nc-surface) !important;
  border-bottom: 1px solid var(--nc-line) !important;
}
body .ant-table-title div[style*="width: 100%"] { width: 100% !important; }
body .ant-table-title div[style*="margin: 5px"] { margin: 0 0 12px !important; }
body .ant-table-title .flex.items-center { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; align-items: center !important; }
body .ant-table-title button { margin: 0 !important; }

/* Selection / status strip replaces the default blue alert */
body .vben-table-select-bar {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  width: auto !important;
  min-height: 28px;
  height: auto !important;
  padding: 2px 0 !important;
  color: var(--nc-ink-2) !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 12.5px !important;
}
body .vben-table-select-bar .ant-alert-icon { color: var(--nc-ink-3) !important; font-size: 14px !important; margin: 0 !important; }
body .vben-table-select-bar .ant-alert-message { display: flex; align-items: center; gap: 8px; color: inherit !important; font-size: 12.5px !important; }
body .vben-table-select-bar .ant-btn-link { height: 24px !important; padding: 0 8px !important; font-size: 12.5px !important; }

/* ---------------------------------------------------------------- 6. Table */
body .ant-table { background: transparent !important; font-family: inherit !important; }
body .ant-table-cell { word-break: break-word; }

body .ant-table-thead > tr > th {
  height: 46px !important;
  padding: 0 16px !important;
  color: var(--nc-ink-2) !important;
  background: var(--nc-surface-2) !important;
  border-bottom: 1px solid var(--nc-line) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .06em;
  text-align: left !important;
  white-space: nowrap;
}

body .ant-table-thead > tr > th.ant-table-cell::before { display: none !important; }

body .ant-table-tbody > tr > td {
  height: 52px !important;
  padding: 0 14px !important;
  color: var(--nc-ink-body) !important;
  background: transparent;
  border-bottom: 1px solid var(--nc-line) !important;
  font-size: 13.5px !important;
  text-align: left !important;
  font-variant-numeric: tabular-nums;
  transition: background-color .14s ease;
}
body .ant-table-tbody > tr:last-child > td { border-bottom: none !important; }
body .ant-table-tbody > tr.ant-table-row:hover > td { background: var(--nc-surface-2) !important; }
body .ant-table-tbody > tr.ant-table-row-selected > td { background: var(--nc-primary-soft) !important; }
body .ant-table-tbody > tr.ant-table-row-selected:hover > td { background: var(--nc-primary-soft-2) !important; }
body .ant-table-tbody > tr.ant-table-row-selected > td:first-child { box-shadow: inset 3px 0 0 var(--nc-primary); }

body .ant-table-thead > tr > th.ant-table-selection-column,
body .ant-table-tbody > tr > td.ant-table-selection-column { text-align: center !important; padding: 0 8px !important; }

body .ant-table-header { border-radius: 0 !important; }
body .ant-table-body { border-radius: 0 !important; overscroll-behavior: contain; }
body .ant-table-measure-row { visibility: collapse; }

body .default-header-cell, body .edit-header-cell { font-weight: 600 !important; letter-spacing: .06em; }
body .edit-header-cell .anticon { margin-left: 6px; color: var(--nc-ink-3) !important; font-size: 12px; cursor: pointer; transition: color .16s ease; }
body .edit-header-cell:hover .anticon { color: var(--nc-primary) !important; }

body .ant-empty { margin: 56px 0 !important; }
body .ant-empty-image { display: none !important; }
body .ant-empty-description { color: var(--nc-ink-3) !important; font-size: 13px !important; }

/* ----------------------------------------------------------- 7. Pagination */
body .vben-basic-table .ant-table-wrapper .ant-pagination,
body .ant-table-wrapper .ant-pagination {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 12px 18px !important;
  border-top: 1px solid var(--nc-line);
  background: var(--nc-surface);
}
body .ant-pagination-total-text { margin-right: auto !important; color: var(--nc-ink-3) !important; font-size: 12.5px !important; }
body .ant-pagination-item,
body .ant-pagination-prev,
body .ant-pagination-next,
body .ant-pagination-jump-prev,
body .ant-pagination-jump-next {
  border-radius: var(--nc-r-sm) !important;
  border-color: transparent !important;
  background: transparent !important;
  min-width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
}
body .ant-pagination-item a { color: var(--nc-ink-2) !important; }
body .ant-pagination-item:hover { background: var(--nc-surface-3) !important; }
body .ant-pagination-item-active { background: var(--nc-ink) !important; border-color: var(--nc-ink) !important; }
body .ant-pagination-item-active a { color: #fff !important; }
body .ant-pagination-disabled { opacity: .35; }
body .ant-pagination-options { margin: 0 !important; }

body .ant-select:not(.ant-select-customize-input) .ant-select-selector {
  height: 32px !important;
  border-radius: var(--nc-r-sm) !important;
  border-color: var(--nc-line-2) !important;
  background: var(--nc-surface) !important;
  color: var(--nc-ink) !important;
  box-shadow: none !important;
  font-size: 13px !important;
}
body .ant-select-focused:not(.ant-select-disabled) .ant-select-selector {
  border-color: var(--nc-primary) !important;
  box-shadow: var(--nc-focus) !important;
}
body .ant-select-arrow { color: var(--nc-ink-3) !important; }

body .ant-select-dropdown,
body .ant-dropdown-menu,
body .ant-picker-dropdown .ant-picker-panel-container {
  border-radius: var(--nc-r) !important;
  box-shadow: var(--nc-shadow-2) !important;
  border: 1px solid var(--nc-line);
  padding: 6px !important;
  background: var(--nc-surface) !important;
}
body .ant-select-item { border-radius: var(--nc-r-xs) !important; font-size: 13px !important; }
body .ant-select-item-option-active:not(.ant-select-item-option-disabled) { background: var(--nc-surface-2) !important; }
body .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
  background: var(--nc-primary-soft) !important;
  color: var(--nc-primary-deep) !important;
  font-weight: 500;
}
body .ant-dropdown-menu-item { border-radius: var(--nc-r-xs) !important; font-size: 13px !important; }
body .ant-dropdown-menu-item:hover { background: var(--nc-surface-2) !important; }

/* -------------------------------------------------- 8. Overlays and dialogs */
body .ant-modal-mask,
body .ant-drawer-mask { background: rgba(15, 23, 35, .42) !important; }
body .ant-modal-wrap { -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); }

body .ant-modal-content {
  padding: 0 !important;
  border-radius: var(--nc-r-lg) !important;
  box-shadow: var(--nc-shadow-2) !important;
  border: 1px solid var(--nc-line);
  overflow: hidden;
  background: var(--nc-surface) !important;
}
body .ant-modal-header {
  padding: 16px 20px !important;
  background: var(--nc-surface) !important;
  border-bottom: 1px solid var(--nc-line) !important;
  margin: 0 !important;
}
body .ant-modal-title { color: var(--nc-ink) !important; font-size: 15px !important; font-weight: 600 !important; }
body .ant-modal-body { color: var(--nc-ink) !important; }
body .ant-modal .ant-modal-body > .scrollbar { padding: 18px 20px !important; }
body .ant-modal-footer {
  padding: 12px 20px !important;
  margin: 0 !important;
  background: var(--nc-surface-2) !important;
  border-top: 1px solid var(--nc-line) !important;
}
body .ant-modal-footer button + button { margin-left: 10px !important; }
body .ant-modal-close { color: var(--nc-ink-3) !important; border-radius: var(--nc-r-sm); }
body .ant-modal-close:hover { color: var(--nc-ink) !important; background: var(--nc-surface-3) !important; }
body .vben-basic-title { color: var(--nc-ink) !important; font-size: 15px !important; font-weight: 600 !important; }
body .vben-basic-title-show-span::before { background-color: var(--nc-primary) !important; border-radius: 2px; }

body .ant-modal-confirm .ant-modal-body { padding: 24px !important; }
body .ant-modal-confirm-title { color: var(--nc-ink) !important; font-size: 15px !important; font-weight: 600 !important; }
body .ant-modal-confirm-content { color: var(--nc-ink-2) !important; font-size: 13.5px !important; }
body .ant-modal-confirm-body > .anticon { font-size: 20px !important; }
body .modal-icon-warning, body .ant-modal-confirm-confirm.warning .ant-modal-confirm-body > .anticon { color: var(--nc-danger) !important; }

body .ant-popover .ant-popover-inner {
  border-radius: var(--nc-r) !important;
  box-shadow: var(--nc-shadow-2) !important;
  border: 1px solid var(--nc-line);
  padding: 2px;
}
body .ant-popover-inner-content { padding: 10px 12px !important; }
body .ant-popover-arrow-content { background: var(--nc-surface) !important; }
body .ant-popconfirm-message-title { color: var(--nc-ink) !important; font-size: 13.5px !important; }
body .ant-popconfirm-message-icon .anticon { color: var(--nc-danger) !important; }
body .ant-popconfirm-buttons button + button { margin-left: 8px !important; }

body .ant-tooltip .ant-tooltip-inner {
  border-radius: var(--nc-r-sm) !important;
  background: var(--nc-ink) !important;
  color: #fff !important;
  font-size: 12.5px !important;
  padding: 6px 10px !important;
  box-shadow: none !important;
}
body .ant-tooltip .ant-tooltip-arrow-content { background: var(--nc-ink) !important; }

body .ant-message-notice-content {
  border-radius: var(--nc-r-sm) !important;
  box-shadow: var(--nc-shadow-2) !important;
  border: 1px solid var(--nc-line);
  padding: 8px 14px !important;
  font-size: 13px !important;
}
body .ant-spin-dot-item { background-color: var(--nc-primary) !important; }
body .ant-spin-text { color: var(--nc-ink-2) !important; }

/* --------------------------------------------------------- 9. Activity log */
body .ant-list { background: var(--nc-surface) !important; border: 1px solid var(--nc-line); border-radius: var(--nc-r-lg); overflow: hidden; }
body .ant-list-item {
  padding: 12px 18px !important;
  border-block-end: 1px solid var(--nc-line) !important;
  transition: background-color .14s ease;
}
body .ant-list-item:last-child { border-block-end: none !important; }
body .ant-list-item:hover { background: var(--nc-surface-2) !important; }
body .ant-list-item-meta { margin-block-end: 0 !important; align-items: flex-start !important; }
body .ant-list-item-meta-content { width: 100% !important; }
body .ant-list-item-meta-description {
  color: var(--nc-ink-2) !important;
  font-size: 13.5px !important;
  line-height: 1.65 !important;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

body .ant-input-search .ant-input { height: 40px !important; border-radius: var(--nc-r-sm) 0 0 var(--nc-r-sm) !important; }
body .ant-input-search .ant-input-group-addon .ant-btn {
  height: 40px !important;
  border-radius: 0 var(--nc-r-sm) var(--nc-r-sm) 0 !important;
  padding: 0 18px !important;
}
body .ant-input-search .ant-input-group-addon { background: transparent !important; }

/* ---------------------------------------- 10. Enhancer overlays (inline CSS) */
body #scheduled-delete-modal,
body #add-line-modal {
  background: rgba(15, 23, 35, .42) !important;
  font-family: var(--nc-font) !important;
  padding: 16px;
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
}
body #scheduled-delete-modal > div,
body #add-line-modal > div {
  width: 460px !important;
  max-width: 100% !important;
  padding: 24px !important;
  color: var(--nc-ink) !important;
  background: var(--nc-surface) !important;
  border: 1px solid var(--nc-line) !important;
  border-radius: var(--nc-r-lg) !important;
  box-shadow: var(--nc-shadow-2) !important;
}
body #scheduled-delete-modal > div > div:first-child,
body #add-line-modal > div > div:first-child {
  margin: 0 0 10px !important;
  color: var(--nc-ink) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: .01em;
}
body #scheduled-delete-modal > div > div:nth-child(2),
body #add-line-modal > div > div:nth-child(2) { color: var(--nc-ink-2) !important; font-size: 13px !important; line-height: 1.6 !important; }
body #scheduled-delete-modal label,
body #add-line-modal label {
  margin: 0 0 6px !important;
  color: var(--nc-ink-2) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  letter-spacing: .04em;
}
body #scheduled-delete-modal input,
body #add-line-modal input {
  height: 40px !important;
  padding: 0 12px !important;
  color: var(--nc-ink) !important;
  background: var(--nc-surface) !important;
  border: 1px solid var(--nc-line-2) !important;
  border-radius: var(--nc-r-sm) !important;
  font-family: inherit !important;
  font-size: 14px !important;
}
body #scheduled-delete-modal input:focus,
body #add-line-modal input:focus { border-color: var(--nc-primary) !important; box-shadow: var(--nc-focus) !important; outline: none !important; }
body #scheduled-delete-modal button,
body #add-line-modal button {
  height: 36px !important;
  padding: 0 16px !important;
  border-radius: var(--nc-r-sm) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
body #scheduled-delete-modal button[data-role="cancel"],
body #add-line-modal > div > div:last-child > button:first-child {
  color: var(--nc-ink) !important;
  background: var(--nc-surface) !important;
  border: 1px solid var(--nc-line-2) !important;
}
body #scheduled-delete-modal button[data-role="cancel"]:hover,
body #add-line-modal > div > div:last-child > button:first-child:hover { background: var(--nc-surface-2) !important; border-color: var(--nc-ink-3) !important; }
body #scheduled-delete-modal button[data-role="confirm"],
body #add-line-modal > div > div:last-child > button:last-child {
  color: #fff !important;
  background: var(--nc-danger) !important;
  border: 1px solid var(--nc-danger) !important;
}
body #add-line-modal > div > div:last-child > button:last-child { background: var(--nc-ink) !important; border-color: var(--nc-ink) !important; }
body #scheduled-delete-modal button[data-role="confirm"]:hover { background: #8F2E1F !important; border-color: #8F2E1F !important; }
body #add-line-modal > div > div:last-child > button:last-child:hover { background: #1B2433 !important; border-color: #1B2433 !important; }
body #scheduled-delete-modal button:disabled,
body #add-line-modal button:disabled { opacity: .55 !important; cursor: default; }

body #scheduled-delete-modal > div > div:nth-child(5) { color: var(--nc-danger) !important; font-size: 12.5px !important; }
body #add-line-modal > div > div:nth-child(5) { color: var(--nc-ink-2) !important; font-size: 13px !important; line-height: 1.65 !important; }
body #add-line-modal > div > div:nth-child(6) { color: var(--nc-danger) !important; font-size: 12.5px !important; }

/* Scheduled-delete marker injected into the id column */
body [data-sdpid] {
  display: inline-flex !important;
  align-items: center;
  margin-left: 8px !important;
  padding: 0 8px !important;
  height: 20px !important;
  line-height: 18px !important;
  color: var(--nc-danger) !important;
  background: var(--nc-danger-soft) !important;
  border: 1px solid #EFCFC9 !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  letter-spacing: .01em;
  cursor: pointer !important;
  vertical-align: middle;
}
body [data-sdpid]:hover { background: #F7E3DF !important; }

/* ------------------------------------------------------------ 11. Responsive */
@media (max-width: 991px) {
  #app > div { padding: 14px !important; }
  body #app > div > .vben-basic-table-form-container { max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); }
  body .vben-basic-table-form-container { border-radius: 14px !important; }
  body .ant-table-tbody > tr > td { padding: 0 12px !important; }
  body .ant-table-thead > tr > th { padding: 0 12px !important; }
}

@media (max-width: 767px) {
  #app > div { padding: 10px !important; }
  body #app > div > .vben-basic-table-form-container { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }

  /* Page frame -------------------------------------------------------- */
  body .vben-basic-table-form-container { border-radius: 14px !important; }

  /* Search band stacks: label, full-width field, full-width submit ---- */
  body .vben-basic-table-form-container > .ant-form,
  body .vben-basic-table-form-container > .vben-basic-form { padding: 14px !important; }
  body .vben-basic-form .ant-row { display: block !important; }
  body .vben-basic-form .ant-col,
  body .vben-basic-form .ant-form-item-label,
  body .vben-basic-form .ant-form-item-control {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
    text-align: left !important;
  }
  body .vben-basic-form .ant-form-item { margin-bottom: 10px !important; }
  body .vben-basic-form .ant-form-item-label { margin-bottom: 6px !important; }
  body .vben-basic-form .ant-form-item-label > label { height: auto !important; line-height: 1.4 !important; }
  body .vben-basic-form .ant-input { height: 42px !important; font-size: 15px !important; }
  body .vben-basic-form .ant-btn { width: 100% !important; height: 42px !important; font-size: 15px !important; }

  /* Toolbar: two tidy columns of touch-sized actions ------------------- */
  body .vben-basic-table .ant-table-wrapper .ant-table-title,
  body .vben-basic-table .ant-table-title { padding: 12px 14px 14px !important; }
  body .ant-table-title div[style*="margin: 5px"] { margin: 0 0 10px !important; }
  body .ant-table-title .flex.items-center { gap: 8px !important; }
  body .vben-table-select-bar { font-size: 12px !important; min-height: 24px; }
  body .ant-table-title .flex.items-center > button,
  body .ant-table-title .flex.items-center > .ant-btn {
    flex: 1 1 calc(33.333% - 6px) !important;
    height: 38px !important;
    min-width: 0;
    margin: 0 !important;
    font-size: 14px !important;
    justify-content: center;
  }
  body .ant-table-title button a { display: flex; align-items: center; justify-content: center; height: 100%; width: 100%; }

  /* Table: readable type, visible sideways scroll, pinned id column ---- */
  body .ant-table-thead > tr > th { height: 42px !important; padding: 0 12px !important; font-size: 11.5px !important; letter-spacing: .04em; }
  body .ant-table-tbody > tr > td { height: 50px !important; padding: 0 12px !important; font-size: 13.5px !important; }

  body .ant-table-body { overflow-x: auto !important; -webkit-overflow-scrolling: touch; scrollbar-width: thin !important; }
  body .ant-table-body::-webkit-scrollbar { display: block !important; }
  body .ant-table-body::-webkit-scrollbar:vertical { display: none !important; }
  body .ant-table-body::-webkit-scrollbar:horizontal { display: block !important; height: 6px !important; }
  body .ant-table-body::-webkit-scrollbar-thumb { background: rgba(15, 23, 35, .22) !important; border: none !important; border-radius: 999px !important; }
  body .ant-table-body::-webkit-scrollbar-track { background: transparent !important; }

  body .ant-table-thead > tr > th:nth-child(1),
  body .ant-table-tbody > tr > td:nth-child(1) {
    position: sticky !important;
    left: 0 !important;
    z-index: 3;
    background: var(--nc-surface) !important;
  }
  body .ant-table-thead > tr > th:nth-child(2),
  body .ant-table-tbody > tr > td:nth-child(2) {
    position: sticky !important;
    left: 48px !important;
    z-index: 3;
    background: var(--nc-surface) !important;
    box-shadow: 8px 0 12px -12px rgba(15, 23, 35, .55);
  }
  body .ant-table-thead > tr > th:nth-child(1),
  body .ant-table-thead > tr > th:nth-child(2) { background: var(--nc-surface-2) !important; z-index: 4; }
  body .ant-table-tbody > tr.ant-table-row:hover > td:nth-child(1),
  body .ant-table-tbody > tr.ant-table-row:hover > td:nth-child(2) { background: var(--nc-surface-2) !important; }
  body .ant-table-tbody > tr.ant-table-row-selected > td:nth-child(1),
  body .ant-table-tbody > tr.ant-table-row-selected > td:nth-child(2) { background: var(--nc-primary-soft) !important; }

  /* Pagination -------------------------------------------------------- */
  body .vben-basic-table .ant-table-wrapper .ant-pagination,
  body .ant-table-wrapper .ant-pagination { padding: 12px 14px !important; gap: 6px !important; }
  body .ant-pagination-total-text { flex: 1 1 100%; margin: 0 0 2px !important; text-align: left; }
  body .ant-pagination-options .ant-select-selector { height: 30px !important; }

  /* Dialogs ----------------------------------------------------------- */
  body .ant-modal { max-width: calc(100vw - 20px); margin: 0 auto; top: 24px; }
  body .ant-modal .ant-modal-body > .scrollbar { padding: 16px !important; }
  body .ant-modal-header { padding: 14px 16px !important; }
  body .ant-modal-footer { padding: 12px 16px !important; display: flex !important; gap: 10px; }
  body .ant-modal-footer button { flex: 1 1 0 !important; height: 42px !important; margin: 0 !important; font-size: 15px !important; }
  body .ant-modal-confirm .ant-modal-body { padding: 20px 16px !important; }
  body .ant-modal-confirm-btns { display: flex !important; gap: 10px; margin-top: 16px; }
  body .ant-modal-confirm-btns button { flex: 1 1 0 !important; height: 42px !important; font-size: 15px !important; }
  body .ant-popover { max-width: calc(100vw - 24px); }
  body .ant-popconfirm-buttons button { height: 34px !important; }

  /* Enhancer overlays -------------------------------------------------- */
  body #scheduled-delete-modal > div,
  body #add-line-modal > div { padding: 20px !important; border-radius: 14px !important; }
  body #scheduled-delete-modal button,
  body #add-line-modal button { height: 42px !important; flex: 1 1 0; }
  body #scheduled-delete-modal > div > div:last-child,
  body #add-line-modal > div > div:last-child { display: flex !important; gap: 10px !important; }
  body #scheduled-delete-modal input,
  body #add-line-modal input { height: 44px !important; font-size: 15px !important; }

  /* Activity log ------------------------------------------------------- */
  body .ant-list { border-radius: 14px; }
  body .ant-list-item { padding: 11px 14px !important; }
  body .ant-list-item-meta-description { font-size: 13px !important; line-height: 1.6 !important; }
  body .ant-input-search .ant-input { height: 42px !important; font-size: 15px !important; }
  body .ant-input-search .ant-input-group-addon .ant-btn { height: 42px !important; padding: 0 14px !important; }
}

/* --------------------------------------------------- 12. Accessibility bits */
@media (prefers-reduced-motion: reduce) {
  body *, body *::before, body *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ------------------------------------------- 11b. Console height management */
/* The app fixes its own table height inline and the document itself never
   scrolls; these rules let the sheet shrink to its content and cap itself to
   the viewport so the tray (search + toolbar + header + pagination) is always
   fully visible. */
body #app > div > .vben-basic-table-form-container {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: hidden;
}
body #app > div > .vben-basic-table-form-container > .ant-form,
body #app > div > .vben-basic-table-form-container > .vben-basic-form { flex: 0 0 auto !important; }

body #app > div > .vben-basic-table-form-container > .ant-table-wrapper {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 1 auto !important;
  min-height: 0 !important;
}
body #app > div > .vben-basic-table-form-container .ant-spin-nested-loading {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}
body #app > div > .vben-basic-table-form-container .ant-spin-container {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}
body #app > div > .vben-basic-table-form-container .ant-table {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 1 auto !important;
  min-height: 0 !important;
}
body #app > div > .vben-basic-table-form-container .ant-table > .ant-table-title { flex: 0 0 auto !important; }
body #app > div > .vben-basic-table-form-container .ant-table > .ant-table-container {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 1 auto !important;
  min-height: 0 !important;
}
body #app > div > .vben-basic-table-form-container .ant-table-header { flex: 0 0 auto !important; }
body #app > div > .vben-basic-table-form-container .ant-table-body {
  flex: 0 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
}
body #app > div > .vben-basic-table-form-container .ant-table-wrapper > .ant-spin-nested-loading > .ant-spin-container > .ant-pagination,
body #app > div > .vben-basic-table-form-container .ant-pagination { flex: 0 0 auto !important; }

/* ------------------------------------------------- 11c. Inline cell editors */
body .vben-editable-cell { display: flex !important; align-items: center; justify-content: center; gap: 6px; min-width: 0; width: 100%; }
body .vben-editable-cell__normal { min-width: 0; }
body .vben-editable-cell .cell-content,
body .vben-editable-cell__normal .ellipsis-cell,
body .vben-editable-cell .ellipsis-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body .vben-editable-cell > .anticon {
  flex: 0 0 auto;
  color: var(--nc-ink-3) !important;
  font-size: 12px;
  cursor: pointer;
  opacity: .55;
  transition: opacity .16s ease, color .16s ease;
}
body .vben-editable-cell:hover > .anticon { opacity: 1; color: var(--nc-primary) !important; }


/* Mobile layout for the player grid. */
#__module_badge[style*="top:0"] { display: none !important; }
@media (max-width: 640px) {
  .ant-table-title .flex.items-center { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; width: 100%; padding: 0 12px 12px; align-items: stretch !important; }
  .ant-table-title .flex.items-center > .ant-btn { width: 100%; min-width: 0; min-height: 40px; margin: 0 !important; padding: 4px 6px; white-space: nowrap !important; font-size: 12px !important; line-height: 1.25; }
  .ant-table-title .flex.items-center > .ant-btn a { display: block; width: 100%; }
  .ant-table-container { max-width: 100%; overflow: hidden; }
  .ant-table-header { overflow: hidden !important; }
  .ant-table-body { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .ant-table-header table, .ant-table-body table { min-width: 760px !important; width: 760px !important; table-layout: fixed !important; }
  .ant-table-header colgroup col:nth-child(1), .ant-table-body colgroup col:nth-child(1) { width: 44px !important; }
  .ant-table-header colgroup col:nth-child(2), .ant-table-body colgroup col:nth-child(2) { width: 120px !important; }
  .ant-table-header colgroup col:nth-child(3), .ant-table-body colgroup col:nth-child(3) { width: 140px !important; }
  .ant-table-header colgroup col:nth-child(4), .ant-table-body colgroup col:nth-child(4) { width: 80px !important; }
  .ant-table-header colgroup col:nth-child(5), .ant-table-body colgroup col:nth-child(5) { width: 100px !important; }
  .ant-table-header colgroup col:nth-child(6), .ant-table-body colgroup col:nth-child(6) { width: 130px !important; }
  .ant-table-header colgroup col:nth-child(7), .ant-table-body colgroup col:nth-child(7) { width: 90px !important; }
  .ant-table-header colgroup col:nth-child(8), .ant-table-body colgroup col:nth-child(8) { width: 10px !important; }
  .ant-table-thead > tr > th, .ant-table-tbody > tr > td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* codex mobile table visibility 20261013 */
@media (max-width: 640px) {
  body .ant-table-header table, body .ant-table-body table { width: 870px !important; min-width: 870px !important; table-layout: fixed !important; }
  body .ant-table-header colgroup col:nth-child(2), body .ant-table-body colgroup col:nth-child(2) { width: 210px !important; }
  body .ant-table-header colgroup col:nth-child(4), body .ant-table-body colgroup col:nth-child(4) { width: 112px !important; }
  body .ant-table-thead > tr > th:nth-child(4) { height: auto !important; padding: 6px 5px !important; white-space: normal !important; text-overflow: clip !important; }
  body #bulk-group-setter { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 3px !important; width: 100% !important; }
  body #bulk-group-setter input, body #bulk-group-setter button { display: block !important; width: 100% !important; min-width: 0 !important; margin: 0 !important; font-size: 11px !important; }
  body .ant-table-tbody > tr:not(.ant-table-measure-row) > td:nth-child(2) { height: auto !important; min-height: 72px !important; overflow: visible !important; white-space: normal !important; text-overflow: clip !important; overflow-wrap: anywhere !important; }
  body .ant-table-tbody > tr:not(.ant-table-measure-row) > td:nth-child(2) [data-scpid], body .ant-table-tbody > tr:not(.ant-table-measure-row) > td:nth-child(2) [data-sdpid] { display: block !important; width: max-content; max-width: 100%; margin: 3px auto 0 !important; font-size: 11px !important; }
}

@media (max-width: 640px) {
  body .ant-pagination-options { display: inline-block !important; margin-left: auto !important; }
  body .ant-pagination-options .ant-select-selector { min-width: 90px !important; }
}

@media (max-width: 640px) { body .ant-table-thead > tr > th:nth-child(2), body .ant-table-tbody > tr > td:nth-child(2) { position: static !important; left: auto !important; box-shadow: none !important; } }

@media (max-width: 640px) { body .ant-table-thead > tr > th:nth-child(1), body .ant-table-tbody > tr > td:nth-child(1) { position: static !important; left: auto !important; box-shadow: none !important; } }
