:root {
      --bg: #f7f7f8;
      --panel: #ffffff;
      --text: #171717;
      --muted: #6b7280;
      --line: #e5e7eb;
      --soft-line: #f0f1f3;
      --dark: #111827;
      --green-bg: #ecfdf3;
      --green: #027a48;
      --yellow-bg: #fffaeb;
      --yellow: #b54708;
      --red-bg: #fef3f2;
      --red: #b42318;
      --blue-bg: #eff6ff;
      --blue: #1d4ed8;
      --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
      --radius: 16px;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: var(--bg);
      color: var(--text);
      font-size: 14px;
    }

    body.route-loading {
      cursor: progress;
    }

    body.route-loading .nav-item.active {
      opacity: 0.86;
    }

    body.route-loading .content {
      opacity: 0.82;
      transition: opacity 0.12s ease;
    }

    body.route-loading:not(.cdcc-initial-loading) .main::after {
      content: "";
      position: fixed;
      top: 50%;
      left: calc(268px + (100vw - 268px) / 2);
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: conic-gradient(from 0deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.2), var(--dark));
      -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
      mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
      transform: translate3d(-50%, -50%, 0);
      backface-visibility: hidden;
      contain: layout paint style;
      will-change: transform;
      animation: cdcc-loading-spin 1.05s linear infinite;
      z-index: 81;
      pointer-events: none;
    }

    body.cdcc-initial-loading {
      cursor: progress;
    }

    body.cdcc-initial-loading .main::before {
      content: "";
      position: fixed;
      inset: 0 0 0 268px;
      background: rgba(247, 247, 248, 0.72);
      z-index: 80;
      pointer-events: all;
    }

    body.cdcc-initial-loading .main::after {
      content: "";
      position: fixed;
      top: 50%;
      left: calc(268px + (100vw - 268px) / 2);
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: conic-gradient(from 0deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.2), var(--dark));
      -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
      mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
      transform: translate3d(-50%, -50%, 0);
      backface-visibility: hidden;
      contain: layout paint style;
      will-change: transform;
      animation: cdcc-loading-spin 1.05s linear infinite;
      z-index: 81;
      pointer-events: none;
    }

    @keyframes cdcc-loading-spin {
      to {
        transform: translate3d(-50%, -50%, 0) rotate(360deg);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      body.route-loading:not(.cdcc-initial-loading) .main::after,
      body.cdcc-initial-loading .main::after {
        animation: none;
      }
    }

    .app {
      display: flex;
      min-height: 100vh;
    }

    .sidebar {
      width: 268px;
      background: #ffffff;
      border-right: 1px solid var(--line);
      padding: 22px 16px;
      display: flex;
      flex-direction: column;
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 8px 24px;
      border-bottom: 1px solid var(--soft-line);
    }

    .brand-mark {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      background: var(--dark);
      color: #fff;
      display: grid;
      place-items: center;
      font-weight: 800;
      letter-spacing: -0.04em;
    }

    .brand-title {
      font-weight: 750;
      letter-spacing: -0.03em;
      font-size: 15px;
    }

    .brand-subtitle {
      color: var(--muted);
      font-size: 12px;
      margin-top: 2px;
    }

    .nav {
      margin-top: 18px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .nav-item {
      height: 42px;
      width: 100%;
      border: 0;
      padding: 0 12px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      gap: 10px;
      background: transparent;
      color: #374151;
      cursor: pointer;
      font-weight: 520;
      transition: 0.18s ease;
      font: inherit;
      text-align: left;
    }

    .nav-item:hover {
      background: #f4f4f5;
    }

    .nav-item.active {
      background: #111827;
      color: #ffffff;
    }

    .nav-icon {
      width: 20px;
      text-align: center;
      opacity: 0.9;
    }

    .sidebar-footer {
      display: none;
    }

    .main {
      margin-left: 268px;
      width: calc(100% - 268px);
      min-height: 100vh;
    }

    .topbar {
      display: none;
    }

    .search {
      flex: 1;
      max-width: 520px;
      height: 42px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #f9fafb;
      display: flex;
      align-items: center;
      padding: 0 14px;
      gap: 10px;
      color: var(--muted);
    }

    .search input {
      border: 0;
      outline: 0;
      background: transparent;
      width: 100%;
      font-size: 14px;
      color: var(--text);
    }

    .select,
    .btn {
      height: 42px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: #ffffff;
      padding: 0 14px;
      color: #374151;
      font-weight: 560;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      white-space: nowrap;
    }

    .btn.primary {
      background: #111827;
      color: #ffffff;
      border-color: #111827;
    }

    .avatar {
      width: 38px;
      height: 38px;
      border-radius: 999px;
      background: #f3f4f6;
      border: 1px solid var(--line);
      display: grid;
      place-items: center;
      font-weight: 750;
    }

    .content {
      padding: 24px 28px 28px;
    }

    .view {
      display: none;
    }

    .view.active {
      display: block;
    }

    .page-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 20px;
    }

    .eyebrow {
      display: none;
    }

    h1 {
      margin: 0;
      font-size: 30px;
      letter-spacing: -0.05em;
      line-height: 1.1;
    }

    .page-desc {
      display: none;
    }

    .status-strip {
      display: none;
    }

    .pulse {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: #12b76a;
      box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.12);
    }

    .kpi-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 14px;
      margin-bottom: 18px;
    }

    .business-kpi-grid {
      grid-template-columns: repeat(7, 1fr);
    }

    .business-kpi-grid.tender-kpi-grid {
      grid-template-columns: repeat(4, 1fr);
    }

    .inventory-kpi-grid {
      grid-template-columns: repeat(7, 1fr);
    }

    .card {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }

    .kpi-card {
      padding: 16px;
      min-height: 122px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .kpi-label {
      color: var(--muted);
      font-size: 12px;
      font-weight: 650;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .kpi-value {
      margin-top: 12px;
      font-size: 28px;
      letter-spacing: -0.06em;
      font-weight: 780;
      line-height: 1;
    }

    .kpi-note {
      margin-top: 10px;
      color: var(--muted);
      font-size: 12px;
    }

    .kpi-note.negative {
      color: var(--red);
      font-weight: 650;
    }

    .kpi-note.warning {
      color: var(--yellow);
      font-weight: 650;
    }

    .section-grid {
      display: grid;
      grid-template-columns: 1.25fr 0.75fr;
      gap: 18px;
      margin-bottom: 18px;
    }

    .section-card {
      padding: 18px;
    }

    .section-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
      gap: 12px;
    }

    .cdcc-panel-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 12px;
      flex-wrap: wrap;
    }

    .cdcc-month-filter {
      display: flex;
      align-items: end;
      justify-content: flex-end;
      gap: 6px;
      flex-wrap: wrap;
    }

    .cdcc-month-filter label {
      display: grid;
      gap: 4px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
    }

    .cdcc-month-filter input {
      min-height: 34px;
      width: 118px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      padding: 0 8px;
      color: var(--ink);
      font-size: 11px;
      font-weight: 800;
    }

    .btn.compact {
      min-height: 34px;
      padding: 0 10px;
      font-size: 11px;
    }

    .cdcc-year-picker {
      position: relative;
    }

    .cdcc-year-trigger {
      min-height: 34px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      color: #111827;
      padding: 0 12px;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
    }

    .cdcc-year-menu {
      position: absolute;
      top: calc(100% + 6px);
      right: 0;
      z-index: 80;
      display: none;
      min-width: 120px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      box-shadow: var(--shadow);
      padding: 6px;
    }

    .cdcc-year-picker.open .cdcc-year-menu {
      display: grid;
      gap: 4px;
    }

    .cdcc-year-option {
      border: 0;
      border-radius: 6px;
      background: transparent;
      color: #374151;
      min-height: 30px;
      padding: 0 10px;
      text-align: left;
      font-size: 12px;
      font-weight: 750;
      cursor: pointer;
    }

    .cdcc-year-option:hover,
    .cdcc-year-option.active {
      background: #111827;
      color: #fff;
    }

    .cdcc-year-create {
      border: 1px dashed var(--line);
      border-radius: 6px;
      background: #f9fafb;
      color: #111827;
      min-height: 32px;
      padding: 0 10px;
      text-align: left;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
    }

    .cdcc-year-create:hover {
      border-color: #111827;
      background: #eef2ff;
    }

    .section-title {
      margin: 0;
      font-size: 17px;
      letter-spacing: -0.03em;
    }

    .section-subtitle {
      color: var(--muted);
      font-size: 12px;
      margin-top: 3px;
    }

    .mini-link {
      color: #374151;
      font-size: 13px;
      font-weight: 650;
      cursor: pointer;
    }

    .module-actions,
    .filter-row,
    .form-actions,
    .modal-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }

    .tabs {
      display: flex;
      gap: 6px;
      border-bottom: 1px solid var(--line);
      margin-bottom: 18px;
      overflow-x: auto;
    }

    .tab {
      border: 0;
      border-bottom: 2px solid transparent;
      background: transparent;
      padding: 12px 14px;
      color: var(--muted);
      cursor: pointer;
      font-weight: 650;
      white-space: nowrap;
    }

    .tab.active {
      color: var(--text);
      border-bottom-color: var(--dark);
    }

    .inventory-tab-actions,
    .business-tab-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: auto;
      padding: 6px 0;
    }

    .business-contract-expiry-actions {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .business-contract-expiry-btn.active {
      background: #111827;
      border-color: #111827;
      color: #ffffff;
    }

    .product-toolbar {
      align-items: flex-start;
    }

    .filter-card {
      margin-bottom: 18px;
    }

    .filter-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(150px, 1fr));
      gap: 12px;
    }

    .filter-grid label {
      display: grid;
      gap: 7px;
      color: #374151;
      font-size: 12px;
      font-weight: 650;
    }

    .business-filter-hidden {
      display: none !important;
    }

    .business-product-filter,
    .filter-dropdown-host {
      position: relative;
      z-index: 140;
    }

    .filter-input-host {
      display: block;
      min-width: 0;
    }

    .filter-row .filter-input-host {
      display: inline-block;
    }

    .filter-input-host input {
      width: 100%;
      padding-right: 34px;
    }

    .business-product-filter input {
      padding-right: 34px;
    }

    .filter-clear-btn {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      width: 20px;
      height: 20px;
      border: 0;
      border-radius: 999px;
      background: #e5e7eb;
      color: #4b5563;
      cursor: pointer;
      display: none;
      align-items: center;
      justify-content: center;
      font-size: 15px;
      font-weight: 750;
      line-height: 1;
      padding: 0;
      z-index: 2;
    }

    .business-product-filter .filter-clear-btn {
      top: auto;
      bottom: 13px;
      transform: none;
    }

    .filter-clear-btn:hover,
    .filter-clear-btn:focus {
      background: #d1d5db;
      color: #111827;
      outline: 0;
    }

    .filter-input-host.has-filter-value .filter-clear-btn,
    .business-product-filter.has-filter-value .filter-clear-btn {
      display: inline-flex;
    }

    .filter-option-menu {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      right: 0;
      z-index: 180;
      max-height: 280px;
      overflow-y: auto;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
      padding: 6px;
    }

    .filter-option-menu.hidden {
      display: none;
    }

    .filter-option {
      width: 100%;
      min-height: 34px;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: var(--text);
      cursor: pointer;
      display: block;
      font: inherit;
      font-size: 13px;
      line-height: 1.35;
      padding: 8px 10px;
      text-align: left;
    }

    .filter-option:hover,
    .filter-option:focus {
      background: #f3f4f6;
      outline: 0;
    }

    .filter-option.empty {
      color: var(--muted);
      cursor: default;
    }

    .filter-option.empty:hover {
      background: transparent;
    }

    .filter-row input,
    .filter-row select,
    .filter-grid input,
    .filter-grid select,
    .form-grid input,
    .form-grid select,
    .form-grid textarea,
    .modal-body input,
    .modal-body select {
      min-height: 40px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
      padding: 0 12px;
      color: var(--text);
      outline: 0;
      font: inherit;
    }

    .filter-row input {
      min-width: 260px;
    }

    .form-grid textarea {
      padding-top: 10px;
      resize: vertical;
    }

    .form-grid input[readonly],
    .form-grid .computed-field-input {
      background: #f8fafc;
      color: #64748b;
      cursor: not-allowed;
    }

    .computed-field-label {
      color: #64748b;
    }

    .product-form {
      margin-bottom: 18px;
    }

    .form-tabs {
      margin-bottom: 16px;
    }

    .product-form-panel {
      display: none;
    }

    .product-form-panel.active {
      display: block;
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 14px;
    }

    .form-grid label,
    .modal-body label {
      display: grid;
      gap: 7px;
      color: #374151;
      font-size: 12px;
      font-weight: 650;
    }

    .span-2 {
      grid-column: span 2;
    }

    .purchase-arrival-schedule {
      display: grid;
      gap: 10px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #f8fafc;
    }

    .purchase-arrival-row {
      display: grid;
      grid-template-columns: minmax(180px, 1fr) minmax(140px, 180px) minmax(38px, auto);
      gap: 10px;
      align-items: end;
    }

    .purchase-arrival-actions {
      display: flex;
      gap: 8px;
      align-items: center;
      justify-content: flex-start;
    }

    .purchase-arrival-add,
    .purchase-arrival-remove {
      align-self: end;
      width: 38px;
      height: 40px;
      border-radius: 10px;
      font-weight: 800;
    }

    .purchase-arrival-add:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }

    .purchase-arrival-remove {
      color: #b91c1c;
    }

    .business-bulk-create-panel {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
      gap: 14px;
      align-items: end;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #f8fafc;
    }

    .business-bulk-create-panel strong,
    .business-bulk-create-panel span {
      display: block;
    }

    .business-bulk-create-panel span {
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
    }

    .form-actions {
      margin-top: 16px;
    }

    .table-scroll {
      overflow-x: auto;
    }

    .table-scroll table {
      min-width: 1100px;
    }

    .table-scroll thead th {
      position: sticky;
      z-index: 24;
      background: #ffffff;
      box-shadow: 0 1px 0 var(--line);
    }

    .table-scroll thead tr:first-child th {
      top: 0;
    }

    .sticky-table-header-clone {
      position: fixed;
      overflow: hidden;
      z-index: 95;
      pointer-events: none;
      background: #ffffff;
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    .sticky-table-header-clone table {
      border-collapse: collapse;
      min-width: 0;
    }

    .sticky-table-header-clone thead th {
      position: static;
      background: #ffffff;
    }

    .business-table-scroll table {
      min-width: 1500px;
    }

    .inventory-table-scroll table {
      min-width: 1180px;
    }

    .multiline-cell {
      white-space: pre-wrap;
      line-height: 1.45;
      overflow-wrap: anywhere;
    }

    .settings-table-scroll table {
      min-width: 1120px;
    }

    .settings-backup-card {
      margin-bottom: 18px;
    }

    .settings-backup-card .section-head {
      align-items: center;
      gap: 14px;
    }

    .settings-backup-card .import-result {
      margin-top: 12px;
    }

    .cdcc-balance-card {
      margin-bottom: 18px;
    }

    .cdcc-table-scroll table {
      min-width: 1360px;
    }
    .cdcc-detail-kpi-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
      margin-bottom: 18px;
    }

    .cdcc-detail-kpi {
      min-height: 112px;
    }

    .cdcc-detail-kpi .kpi-value {
      font-size: 22px;
      line-height: 1.18;
      letter-spacing: -0.03em;
      overflow-wrap: anywhere;
    }

    .cdcc-detail-kpi .kpi-value .badge {
      font-size: 12px;
      letter-spacing: 0;
    }

    .cdcc-detail-kpi .cdcc-stock-kpi-value {
      font-size: 14px;
      letter-spacing: 0;
      line-height: 1.35;
    }

    .cdcc-stock-total {
      font-size: 24px;
      line-height: 1.15;
      font-weight: 800;
      letter-spacing: -0.03em;
      color: var(--ink);
      margin-bottom: 8px;
    }

    .cdcc-stock-lot-list {
      display: grid;
      gap: 8px;
      max-height: 140px;
      overflow-y: auto;
      padding-right: 4px;
    }

    .cdcc-stock-lot-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      border-top: 1px solid var(--border);
      padding-top: 7px;
    }

    .cdcc-stock-lot-name {
      font-size: 13px;
      font-weight: 750;
      color: var(--ink);
      overflow-wrap: anywhere;
    }

    .cdcc-stock-lot-meta,
    .cdcc-stock-lot-empty {
      font-size: 12px;
      font-weight: 600;
      color: var(--muted);
      letter-spacing: 0;
    }

    .cdcc-stock-lot-qty {
      flex: 0 0 auto;
      font-size: 13px;
      font-weight: 800;
      color: var(--ink);
      white-space: nowrap;
      text-align: right;
    }

    .cdcc-period-controls {
      display: flex;
      align-items: flex-end;
      gap: 12px;
      flex-wrap: wrap;
    }

    .cdcc-source-nav {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 12px;
    }

    .cdcc-source-link {
      min-height: 34px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      padding: 0 12px;
      color: #374151;
      font-size: 12px;
      font-weight: 750;
      text-decoration: none;
    }

    .cdcc-source-link.active {
      border-color: #111827;
      background: #111827;
      color: #fff;
    }

    .cdcc-detail-card {
      margin-bottom: 18px;
    }

    .cdcc-detail-workspace {
      display: grid;
      grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
      gap: 12px;
      align-items: start;
      margin-bottom: 18px;
    }

    body[data-page="cdcc-detail"] .content {
      overflow-x: hidden;
    }

    .cdcc-detail-workspace .card,
    .cdcc-detail-workspace .table-scroll {
      min-width: 0;
      overflow-x: hidden;
    }

    .cdcc-detail-workspace .cdcc-detail-card,
    .cdcc-detail-forecast-column .cdcc-supply-plan-card {
      margin-bottom: 0;
      margin-top: 0;
    }

    .cdcc-detail-forecast-column {
      display: grid;
      gap: 16px;
      min-width: 0;
    }

    .cdcc-detail-forecast-column .business-summary {
      white-space: normal;
    }

    .cdcc-year-static {
      cursor: default;
      pointer-events: none;
    }

    .cdcc-proposal-card {
      margin-bottom: 18px;
    }

    .cdcc-proposal-table-scroll table {
      min-width: 1380px;
    }

    .cdcc-detail-table-scroll table {
      width: 100%;
      min-width: 0;
      table-layout: fixed;
    }

    .cdcc-deal-forecast-scroll table {
      min-width: 720px;
    }

    .cdcc-forecast-panel.forecast .cdcc-deal-forecast-scroll table {
      min-width: 920px;
    }

    .cdcc-product-forecast-card.cdcc-forecast-panel.forecast .cdcc-deal-forecast-scroll table {
      width: 100%;
      min-width: 0;
      table-layout: fixed;
    }

    .cdcc-product-forecast-card .cdcc-deal-forecast-scroll {
      max-height: none;
      overflow-x: hidden;
      overflow-y: visible;
    }

    .cdcc-detail-workspace th,
    .cdcc-detail-workspace td {
      padding: 9px 6px;
      font-size: 11px;
      line-height: 1.25;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .cdcc-detail-workspace .product-name {
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .cdcc-detail-workspace tbody tr {
      height: 58px;
    }

    .cdcc-detail-workspace .total-row,
    .cdcc-detail-workspace .cdcc-forecast-total-row {
      height: 46px;
    }

    .cdcc-product-forecast-card .sticky-col {
      position: sticky;
      left: 0;
      z-index: 2;
      min-width: 280px;
      max-width: 360px;
      background: #fff;
      box-shadow: 1px 0 0 var(--line);
    }

    .cdcc-product-forecast-card thead .sticky-col,
    .cdcc-product-forecast-card .cdcc-forecast-total-row .sticky-col {
      z-index: 3;
      background: #f8fafc;
    }

    .cdcc-product-forecast-card .cdcc-forecast-total-row td {
      background: #f8fafc;
      font-weight: 800;
    }

    .cdcc-product-forecast-card .cdcc-deal-admin-forecast-input {
      width: 58px;
      min-width: 0;
      max-width: 100%;
      padding: 0 6px;
      text-align: right;
    }

    .cdcc-product-forecast-card th.number,
    .cdcc-product-forecast-card td.number {
      white-space: nowrap;
    }

    .cdcc-detail-forecast-column .cdcc-supply-plan-kpis {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cdcc-detail-forecast-column .cdcc-supply-plan-scroll table {
      min-width: 720px;
    }

    .cdcc-forecast-panels {
      display: block;
    }

    .cdcc-forecast-panel {
      border-color: var(--line);
      background: #fff;
    }
    .cdcc-forecast-panel.forecast {
      border-color: var(--line);
      background: #fff;
    }
    .cdcc-detail-table-scroll th:nth-child(2),
    .cdcc-detail-table-scroll td:nth-child(2) {
      width: 8%;
      min-width: 0;
    }

    .cdcc-detail-table-scroll th:nth-child(3),
    .cdcc-detail-table-scroll td:nth-child(3) {
      width: 14%;
      min-width: 0;
    }

    .cdcc-detail-table-scroll th:nth-child(4),
    .cdcc-detail-table-scroll td:nth-child(4) {
      width: 30%;
      min-width: 0;
    }

    .cdcc-detail-table-scroll th:nth-child(7),
    .cdcc-detail-table-scroll td:nth-child(7) {
      width: 9%;
      min-width: 0;
    }

    .cdcc-detail-table-scroll th:nth-child(1),
    .cdcc-detail-table-scroll td:nth-child(1) {
      width: 4%;
    }

    .cdcc-detail-table-scroll th:nth-child(5),
    .cdcc-detail-table-scroll td:nth-child(5),
    .cdcc-detail-table-scroll th:nth-child(6),
    .cdcc-detail-table-scroll td:nth-child(6) {
      width: 8%;
    }

    .cdcc-detail-table-scroll th:nth-child(8),
    .cdcc-detail-table-scroll td:nth-child(8),
    .cdcc-detail-table-scroll th:nth-child(9),
    .cdcc-detail-table-scroll td:nth-child(9),
    .cdcc-detail-table-scroll th:nth-child(10),
    .cdcc-detail-table-scroll td:nth-child(10) {
      width: 6%;
    }

    .cdcc-inventory-balance-scroll table {
      min-width: 920px;
    }

    .cdcc-month-input,
    .cdcc-deal-forecast-input,
    .cdcc-deal-admin-forecast-input {
      width: 92px;
      min-height: 34px;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 0 8px;
      font: inherit;
      font-variant-numeric: tabular-nums;
      text-align: right;
      outline: 0;
      background: #fff;
    }

    .cdcc-month-input:focus,
    .cdcc-deal-forecast-input:focus,
    .cdcc-deal-admin-forecast-input:focus {
      border-color: #9ca3af;
      box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
    }

    .cdcc-month-input::-webkit-outer-spin-button,
    .cdcc-month-input::-webkit-inner-spin-button,
    .cdcc-deal-forecast-input::-webkit-outer-spin-button,
    .cdcc-deal-forecast-input::-webkit-inner-spin-button,
    .cdcc-deal-admin-forecast-input::-webkit-outer-spin-button,
    .cdcc-deal-admin-forecast-input::-webkit-inner-spin-button {
      margin: 0;
      -webkit-appearance: none;
    }

    .cdcc-month-input,
    .cdcc-deal-forecast-input,
    .cdcc-deal-admin-forecast-input {
      -moz-appearance: textfield;
    }

    .cdcc-month-input:disabled,
    .cdcc-deal-forecast-input:disabled,
    .cdcc-deal-admin-forecast-input:disabled {
      background: #f3f4f6;
      color: #6b7280;
      cursor: not-allowed;
    }

    .cdcc-forecast-actions {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
    }

    .row-btn.primary,
    .cdcc-forecast-confirm-btn {
      background: #111827;
      border-color: #111827;
      color: #fff;
    }

    .row-btn.primary:disabled,
    .cdcc-forecast-confirm-btn:disabled {
      background: #e5e7eb;
      border-color: var(--line);
      color: var(--muted);
    }

    .business-summary {
      color: var(--muted);
      font-size: 12px;
      font-weight: 650;
      white-space: nowrap;
    }

    .cdcc-toolbar-actions {
      display: flex;
      align-items: flex-end;
      justify-content: flex-end;
      gap: 12px;
      flex-wrap: wrap;
    }

    .inline-search {
      display: grid;
      gap: 6px;
      color: #374151;
      font-size: 12px;
      font-weight: 650;
      min-width: 260px;
    }

    .inline-search input {
      min-height: 40px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
      padding: 0 12px;
      color: var(--text);
      outline: 0;
      font: inherit;
    }

    input[type="number"]::-webkit-outer-spin-button,
    input[type="number"]::-webkit-inner-spin-button {
      margin: 0;
      -webkit-appearance: none;
    }

    input[type="number"] {
      -moz-appearance: textfield;
    }

    .row-btn {
      height: 32px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: #fff;
      padding: 0 10px;
      color: #374151;
      cursor: pointer;
      font-weight: 650;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
    }

    .row-btn:disabled {
      color: var(--muted);
      cursor: not-allowed;
      opacity: 0.55;
    }

    .row-actions {
      display: inline-flex;
      gap: 6px;
      white-space: nowrap;
    }

    .product-drill-controls {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      white-space: nowrap;
    }

    .product-drill-nav-button {
      min-width: 34px;
      padding: 0 9px;
      font-weight: 800;
    }

    .product-prev-button {
      color: #1f4f7a;
      background: #f8fbff;
      border-color: #d7e2f2;
    }

    .product-drill-row > td {
      padding: 0 10px 14px;
      background: #f8fafc;
      border-bottom: 1px solid var(--line);
    }

    .product-drill-panel {
      display: grid;
      gap: 12px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #ffffff;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    }

    .product-drill-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }

    .product-drill-stage {
      margin-bottom: 4px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .product-drill-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(150px, 1fr));
      gap: 10px 14px;
    }

    .product-drill-field {
      min-width: 0;
    }

    .product-drill-label {
      color: var(--muted);
      font-size: 11px;
      font-weight: 750;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }

    .product-drill-value {
      margin-top: 4px;
      color: var(--text);
      font-size: 13px;
      line-height: 1.45;
      overflow-wrap: anywhere;
    }

    .business-bulk-status-actions {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      position: relative;
      z-index: 60;
    }

    .business-move-menu {
      position: relative;
      display: inline-flex;
      z-index: 70;
    }

    .business-move-menu[open] {
      z-index: 90;
    }

    .business-move-menu.disabled {
      pointer-events: none;
      opacity: 0.55;
    }

    .business-move-menu > summary {
      list-style: none;
    }

    .business-move-menu > summary::-webkit-details-marker {
      display: none;
    }

    .business-move-options {
      position: absolute;
      right: 0;
      top: calc(100% + 6px);
      z-index: 120;
      display: grid;
      gap: 6px;
      min-width: 148px;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
      box-shadow: var(--shadow);
    }

    .business-move-menu:not([open]) .business-move-options {
      display: none;
    }

    .business-move-options .row-btn {
      width: 100%;
      justify-content: flex-start;
      white-space: nowrap;
    }

    .business-bulk-cdcc-button.active {
      border-color: #2f7d64;
      background: #eaf6f1;
      color: #245246;
    }

    .business-bulk-cdcc-button.just-clicked {
      animation: businessBulkCdccClickPulse 0.9s ease-out;
      box-shadow: 0 0 0 4px rgba(47, 125, 100, 0.18);
    }

    .business-bulk-cdcc-button.just-clicked[data-bulk-cdcc-include="false"] {
      border-color: #b45309;
      background: #fff7ed;
      color: #92400e;
      box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.16);
    }

    @keyframes businessBulkCdccClickPulse {
      0% {
        transform: scale(0.96);
      }
      35% {
        transform: scale(1.04);
      }
      100% {
        transform: scale(1);
      }
    }

    .business-row-cdcc-included td {
      background: #eff7ff;
    }

    .business-row-cdcc-included:hover td {
      background: #e4f1ff;
    }

    .business-row-focused {
      background: #fff7d6;
      outline: 2px solid #f2b84b;
      outline-offset: -2px;
      box-shadow: inset 4px 0 0 #d9822b;
    }

    .business-row-focused td {
      background: #fff7d6;
    }

    .business-row-editing td {
      background: #eef6ff;
      box-shadow: inset 4px 0 0 #4f8fd9;
    }

    .business-inline-edit-row > td {
      padding: 10px 12px 14px;
      background: #f8fafc;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .business-inline-form {
      display: grid;
      gap: 12px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
      box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    }

    .business-inline-form .section-head {
      padding: 0;
      margin: 0;
      border: 0;
    }

    .business-inline-form .form-actions {
      margin-top: 0;
      padding-top: 0;
    }

    .business-sale-record-kpi-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .business-sale-record-page-form {
      display: grid;
      gap: 12px;
      margin-bottom: 16px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #f8fafc;
    }

    .business-sale-record-stepper {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .business-sale-record-icon-btn {
      width: 40px;
      height: 40px;
      padding: 0;
      border-radius: 8px;
      display: inline-grid;
      place-items: center;
      font-family: Arial, sans-serif;
      font-size: 24px;
      font-weight: 800;
      line-height: 1;
    }

    .business-sale-record-icon-btn:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }

    .business-sale-record-icon-btn span {
      display: block;
      transform: translateY(-1px);
    }

    .inventory-table-actions {
      align-items: center;
      justify-content: flex-end;
      flex-wrap: wrap;
    }

    .cdcc-supply-plan-card {
      margin-top: 18px;
    }

    .cdcc-supply-plan-kpis {
      display: grid;
      grid-template-columns: repeat(4, minmax(150px, 1fr));
      gap: 10px;
      margin-bottom: 14px;
    }

    .cdcc-supply-plan-mini {
      border: 1px solid var(--soft-line);
      border-radius: 8px;
      background: #f8fafc;
      padding: 12px;
    }

    .cdcc-supply-plan-mini strong {
      display: block;
      font-size: 22px;
      letter-spacing: -0.04em;
      margin-top: 4px;
    }

    .cdcc-supply-plan-scroll table {
      min-width: 920px;
    }

    .cdcc-supply-plan-note {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
      white-space: normal;
    }

    .select-cell {
      width: 42px;
      min-width: 42px;
      text-align: center;
      cursor: pointer;
    }

    .select-cell input {
      width: 18px;
      height: 18px;
      cursor: pointer;
    }

    .table-total-row th {
      border-bottom: 1px solid var(--line);
      background: #f8fafc;
      color: #111827;
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
    }

    .table-total-row .table-total-label {
      color: #374151;
      text-align: left;
    }

    .table-load-more-row td {
      background: #f8fafc;
      text-align: center;
    }

    .table-load-more-row .subtext {
      margin-left: 10px;
      white-space: nowrap;
    }

    .product-section-separator td {
      background: #f3f4f6;
      border-top: 2px solid #111827;
      border-bottom: 1px solid var(--line);
      color: #111827;
      font-weight: 800;
      text-align: left;
    }

    .badge.gray {
      background: #f3f4f6;
      color: #4b5563;
    }

    .hidden {
      display: none !important;
    }

    .auth-gate {
      position: fixed;
      inset: 0;
      z-index: 1000;
      overflow: auto;
      background: var(--bg);
      color: var(--text);
    }

    .auth-shell {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    .auth-topbar {
      min-height: 76px;
      border-bottom: 1px solid var(--line);
      background: #ffffff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 56px;
    }

    .auth-logo {
      font-size: 24px;
      font-weight: 820;
      letter-spacing: 0;
    }

    .auth-top-action {
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #ffffff;
      color: #374151;
      font: inherit;
      font-weight: 750;
      cursor: pointer;
      min-height: 38px;
      padding: 0 14px;
    }

    .auth-stage {
      width: min(930px, calc(100% - 40px));
      margin: 52px auto;
      display: grid;
      gap: 28px;
    }

    .auth-copy {
      max-width: 780px;
    }

    .auth-pill {
      width: max-content;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 9px 18px;
      color: #374151;
      background: #ffffff;
      font-weight: 720;
      margin-bottom: 24px;
    }

    .auth-copy h1 {
      max-width: 780px;
      color: var(--text);
      font-size: 46px;
      line-height: 1.12;
      letter-spacing: 0;
      margin: 0;
    }

    .auth-copy p {
      max-width: 760px;
      margin: 22px 0 0;
      color: var(--muted);
      font-size: 18px;
      line-height: 1.6;
    }

    .auth-card {
      width: min(850px, 100%);
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 16px;
      box-shadow: var(--shadow);
      padding: 24px;
      display: grid;
      gap: 18px;
    }

    .auth-mode-tabs {
      display: flex;
      gap: 8px;
      padding: 4px;
      border-radius: 12px;
      background: #f3f4f6;
      width: max-content;
    }

    .auth-mode-tab {
      min-height: 36px;
      border: 0;
      border-radius: 9px;
      padding: 0 14px;
      background: transparent;
      color: #6b7280;
      font: inherit;
      font-weight: 750;
      cursor: pointer;
    }

    .auth-mode-tab.active {
      background: #111827;
      color: #ffffff;
    }

    .auth-panel {
      display: grid;
      gap: 16px;
    }

    .auth-card h2 {
      margin: 0 0 4px;
      color: var(--text);
      font-size: 24px;
      letter-spacing: 0;
    }

    .auth-card p,
    .auth-hint {
      margin: 0;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.5;
    }

    .auth-card label {
      display: grid;
      gap: 9px;
      color: #374151;
      font-weight: 760;
      font-size: 15px;
    }

    .auth-card input,
    .auth-card select {
      width: 100%;
      min-height: 56px;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 0 16px;
      font: inherit;
      font-weight: 620;
      background: #f9fafb;
      color: var(--text);
      outline: 0;
    }

    .auth-card input:focus,
    .auth-card select:focus {
      border-color: #111827;
      background: #ffffff;
      box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
    }

    .auth-submit {
      min-height: 56px;
      border: 0;
      border-radius: 10px;
      background: #111827;
      color: #ffffff;
      font: inherit;
      font-weight: 820;
      cursor: pointer;
    }

    .auth-switch {
      color: var(--muted);
      font-size: 15px;
    }

    .auth-switch button {
      border: 0;
      background: transparent;
      color: #111827;
      font: inherit;
      font-weight: 820;
      cursor: pointer;
      padding: 0 0 0 8px;
    }

    .auth-chip {
      position: fixed;
      right: 18px;
      bottom: 18px;
      z-index: 900;
      display: flex;
      align-items: center;
      gap: 10px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 12px;
      box-shadow: var(--shadow);
      padding: 10px 12px;
    }

    .auth-chip strong,
    .auth-chip span {
      display: block;
      line-height: 1.25;
    }

    .auth-chip span {
      color: var(--muted);
      font-size: 12px;
    }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 20;
      display: grid;
      place-items: center;
      background: rgba(17, 24, 39, 0.42);
      padding: 20px;
    }

    .modal {
      width: min(560px, 100%);
      border-radius: 18px;
      border: 1px solid var(--line);
      background: #fff;
      box-shadow: 0 20px 50px rgba(17, 24, 39, 0.18);
    }

    .large-modal {
      width: min(720px, 100%);
    }

    .modal-head {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      padding: 18px;
      border-bottom: 1px solid var(--line);
    }

    .modal-body {
      display: grid;
      gap: 14px;
      padding: 18px;
    }

    .modal-actions {
      padding: 16px 18px;
      border-top: 1px solid var(--line);
    }

    .icon-btn {
      width: 34px;
      height: 34px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
      cursor: pointer;
      font-size: 20px;
      line-height: 1;
    }

    .import-note {
      border: 1px dashed var(--line);
      border-radius: 12px;
      padding: 12px;
      color: var(--muted);
      background: #fafafa;
      line-height: 1.5;
    }

    .compact-modal {
      width: min(480px, 100%);
    }

    .compact-import {
      gap: 12px;
    }

    .compact-import .import-note {
      display: none;
    }

    .sheet-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .sheet-pills span {
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 6px 10px;
      background: #fff;
      color: #374151;
      font-size: 12px;
      font-weight: 700;
    }

    .import-result {
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 10px 12px;
      background: #fafafa;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .import-result.syncing {
      display: flex;
      align-items: flex-start;
      gap: 8px;
    }

    .import-result.syncing::before {
      content: "";
      flex: 0 0 auto;
      width: 14px;
      height: 14px;
      margin-top: 2px;
      border: 2px solid currentColor;
      border-right-color: transparent;
      border-radius: 50%;
      animation: importResultSpin 0.75s linear infinite;
      opacity: 0.75;
    }

    @keyframes importResultSpin {
      to {
        transform: rotate(360deg);
      }
    }

    .import-result.success {
      border-color: #bbf7d0;
      background: #f0fdf4;
      color: #166534;
    }

    .import-result.error {
      border-color: #fecaca;
      background: #fef2f2;
      color: #991b1b;
    }

    .import-source-card {
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 12px;
      background: #fcfcfd;
      display: grid;
      gap: 10px;
    }

    .import-option-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px 14px;
    }

    .import-source-title {
      color: #374151;
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .check-row {
      display: flex !important;
      align-items: center;
      gap: 8px !important;
      color: var(--text) !important;
      font-size: 14px !important;
    }

    .check-row input {
      width: 16px;
      height: 16px;
    }

    table {
      width: 100%;
      border-collapse: collapse;
    }

    .empty-state {
      border: 1px dashed var(--line);
      border-radius: 14px;
      padding: 18px;
      color: var(--muted);
      background: #fafafa;
      font-size: 14px;
      line-height: 1.5;
    }

    .empty-cell {
      padding: 22px 18px;
      color: var(--muted);
      text-align: left;
      background: #fafafa;
    }

    th {
      color: var(--muted);
      font-size: 12px;
      text-align: left;
      font-weight: 650;
      padding: 12px 10px;
      border-bottom: 1px solid var(--line);
      white-space: nowrap;
    }

    td {
      padding: 13px 10px;
      border-bottom: 1px solid var(--soft-line);
      vertical-align: middle;
    }

    tr:last-child td {
      border-bottom: 0;
    }

    .product-name {
      font-weight: 700;
      letter-spacing: -0.02em;
    }

    .subtext {
      color: var(--muted);
      font-size: 12px;
      margin-top: 3px;
    }

    .money,
    .number {
      font-variant-numeric: tabular-nums;
      font-weight: 650;
    }

    .negative-number {
      color: var(--red);
    }

    .positive-number {
      color: var(--green);
    }

    .badge {
      display: inline-flex;
      align-items: center;
      padding: 5px 9px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
    }

    .badge.green {
      background: var(--green-bg);
      color: var(--green);
    }

    .badge.yellow {
      background: var(--yellow-bg);
      color: var(--yellow);
    }

    .badge.red {
      background: var(--red-bg);
      color: var(--red);
    }

    .badge.blue {
      background: var(--blue-bg);
      color: var(--blue);
    }

    .timeline {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .timeline-item {
      display: grid;
      grid-template-columns: 90px 1fr;
      gap: 12px;
      padding: 12px;
      border: 1px solid var(--soft-line);
      border-radius: 14px;
      background: #fcfcfd;
    }

    .timeline-month {
      font-weight: 760;
      letter-spacing: -0.03em;
    }

    .timeline-value {
      font-size: 18px;
      font-weight: 780;
      letter-spacing: -0.04em;
      margin-bottom: 4px;
    }

    .progress-list {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .progress-row {
      display: grid;
      gap: 8px;
    }

    .progress-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      font-size: 13px;
    }

    .progress-bar {
      height: 8px;
      border-radius: 999px;
      background: #f3f4f6;
      overflow: hidden;
    }

    .progress-fill {
      height: 100%;
      border-radius: 999px;
      background: #111827;
    }

    .two-column {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
      margin-bottom: 18px;
    }

    .alert-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .alert-item {
      padding: 13px;
      border-radius: 14px;
      border: 1px solid var(--soft-line);
      background: #fcfcfd;
      display: flex;
      align-items: flex-start;
      gap: 11px;
    }

    .alert-dot {
      width: 9px;
      height: 9px;
      border-radius: 999px;
      margin-top: 5px;
      flex: 0 0 auto;
    }

    .alert-dot.red { background: var(--red); }
    .alert-dot.yellow { background: var(--yellow); }
    .alert-dot.green { background: var(--green); }
    .alert-dot.blue { background: var(--blue); }

    .alert-title {
      font-weight: 720;
      letter-spacing: -0.02em;
      margin-bottom: 3px;
    }

    .alert-desc {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .chart {
      height: 250px;
      display: flex;
      align-items: flex-end;
      gap: 12px;
      padding-top: 10px;
    }

    .bar-wrap {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .bar {
      width: 100%;
      max-width: 42px;
      border-radius: 10px 10px 4px 4px;
      background: #111827;
      opacity: 0.92;
      position: relative;
    }

    .bar.supply {
      background: #d1d5db;
      position: absolute;
      bottom: 0;
      left: 52%;
      transform: translateX(-50%);
      width: 42%;
      opacity: 1;
      border: 1px solid #c4c7cc;
    }

    .bar-box {
      height: 180px;
      width: 100%;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      position: relative;
    }

    .bar-label {
      color: var(--muted);
      font-size: 11px;
      white-space: nowrap;
    }

    .legend {
      display: flex;
      gap: 14px;
      color: var(--muted);
      font-size: 12px;
    }

    .legend-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .legend-dot {
      width: 9px;
      height: 9px;
      border-radius: 3px;
      background: #111827;
    }

    .legend-dot.gray {
      background: #d1d5db;
      border: 1px solid #c4c7cc;
    }

    .footer-note {
      color: var(--muted);
      font-size: 12px;
      margin-top: 8px;
    }

    .ratio-cell {
      display: grid;
      grid-template-columns: 44px 86px;
      align-items: center;
      gap: 8px;
      font-variant-numeric: tabular-nums;
      font-weight: 650;
    }

    .mini-progress {
      height: 7px;
      border-radius: 999px;
      background: #eef0f3;
      overflow: hidden;
    }

    .mini-progress div {
      height: 100%;
      border-radius: inherit;
      background: #111827;
    }

    @media (max-width: 1280px) {
      .kpi-grid,
      .business-kpi-grid,
      .inventory-kpi-grid,
      .cdcc-supply-plan-kpis,
      .cdcc-detail-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
      }

      .section-grid,
      .two-column,
      .cdcc-detail-workspace,
      .cdcc-forecast-panels {
        grid-template-columns: 1fr;
      }

      .filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    @media (max-width: 820px) {
      .sidebar {
        display: none;
      }

      body.cdcc-initial-loading .main::before {
        left: 0;
      }

      body.cdcc-initial-loading .main::after {
        left: 50%;
      }

      .main {
        margin-left: 0;
        width: 100%;
      }

      .topbar {
        padding: 0 16px;
        overflow-x: auto;
      }

      .content {
        padding: 20px 16px;
      }

      .page-header {
        align-items: flex-start;
        flex-direction: column;
      }

      .kpi-grid,
      .cdcc-supply-plan-kpis,
      .cdcc-detail-forecast-column .cdcc-supply-plan-kpis,
      .cdcc-detail-kpi-grid {
        grid-template-columns: 1fr;
      }

      .filter-grid,
      .import-option-grid {
        grid-template-columns: 1fr;
      }

      .span-2 {
        grid-column: span 1;
      }

      .purchase-arrival-row {
        grid-template-columns: 1fr;
      }

      .purchase-arrival-actions {
        justify-content: flex-start;
      }

      .auth-topbar {
        padding: 0 20px;
      }

      .auth-logo {
        font-size: 18px;
      }

      .auth-stage {
        width: calc(100% - 32px);
        margin: 32px auto;
      }

      .auth-copy h1 {
        font-size: 34px;
      }

      .auth-copy p {
        font-size: 16px;
      }

      .auth-card {
        border-radius: 16px;
        padding: 18px;
      }

      .auth-mode-tabs {
        width: 100%;
      }

      .auth-mode-tab {
        flex: 1;
      }
    }
