/* Demand Segmentation (modules/segmentation.js). Re-scopes the shared Filters clause builder / popover rules to the segmentation root. */
    #production-planning-2-root .mui-tf {
      position: relative; display: inline-flex; align-items: center;
      height: 40px; background: #fff; cursor: pointer; width: 100%;
    }
    #production-planning-2-root .mui-tf .notch {
      position: absolute; inset: 0; border-radius: 4px;
      border: 1px solid rgba(0,0,0,0.23); pointer-events: none;
      transition: border-color .15s, border-width .15s;
    }
    #production-planning-2-root .mui-tf:hover .notch { border-color: rgba(0,0,0,0.87); }
    #production-planning-2-root .mui-tf .notch-label {
      position: absolute; top: -7px; left: 10px; background: #fff; padding: 0 4px;
      font-size: 0.75rem; line-height: 1; color: rgba(0,0,0,0.6); pointer-events: none;
    }
    #production-planning-2-root .mui-tf .tf-inner { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 12px; height: 100%; color: rgba(0,0,0,0.87); font-size: 0.875rem; min-width: 0; overflow: hidden; }
    #production-planning-2-root .mui-tf .tf-value { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 4px; }
    #production-planning-2-root .mui-tf .tf-end-adorn { display: inline-flex; align-items: center; color: rgba(0,0,0,0.54); }
    #production-planning-2-root .mui-tf .tf-end-adorn svg { width: 24px; height: 24px; fill: currentColor; }

    #production-planning-2-root .mui-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 64px; height: 36px; padding: 4px 14px; border-radius: 4px; font-size: 0.875rem; font-weight: 500; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background-color .15s, border-color .15s; background: transparent; }
    #production-planning-2-root .mui-button.variant-outlined { border-color: rgba(56,151,182,0.5); color: #3897B6; }
    #production-planning-2-root .mui-button.variant-outlined:hover { border-color: #3897B6; background: rgba(56,151,182,.08); }
    #production-planning-2-root .mui-button.variant-text { color: #3897B6; border: none; }
    #production-planning-2-root .mui-button.variant-text:hover { background: rgba(56,151,182,.08); }
    #production-planning-2-root .mui-iconbtn { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: none; background: transparent; cursor: pointer; color: rgba(0,0,0,0.54); display: inline-flex; align-items: center; justify-content: center; padding: 8px; transition: background-color .15s; }
    #production-planning-2-root .mui-iconbtn:hover { background: rgba(0,0,0,0.04); }
    #production-planning-2-root .mui-iconbtn:disabled { cursor: default; }
    #production-planning-2-root .mui-iconbtn:disabled:hover { background: transparent; }
    #production-planning-2-root .mui-iconbtn svg { width: 24px; height: 24px; fill: currentColor; }

    #production-planning-2-root .popover-paper.fc-filter-pop {
      position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; width: 100%; min-width: 480px;
      background: #fff; border-radius: 4px;
      box-shadow: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12);
      padding: 16px;
    }
    #production-planning-2-root .fc-filter-def-label { font-size: 0.75rem; color: rgba(0,0,0,0.6); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
    #production-planning-2-root fieldset.fc-filter-fieldset { border: 1px solid rgba(0,0,0,0.12); border-radius: 4px; padding: 12px; margin: 0; min-width: 0; }
    #production-planning-2-root .filter-clauses { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
    #production-planning-2-root .filter-clause { display: flex; align-items: center; gap: 8px; min-width: 0; }
    #production-planning-2-root .filter-clause select { height: 40px; padding: 0 12px; border: 1px solid rgba(0,0,0,0.23); border-radius: 4px; font: inherit; font-size: 0.875rem; background: #fff; outline: none; color: rgba(0,0,0,0.87); }
    #production-planning-2-root .filter-clause select:focus { border: 2px solid #3897B6; padding: 0 11px; }
    #production-planning-2-root .filter-clause .fc-attr { width: 200px; flex-shrink: 0; }
    #production-planning-2-root .filter-clause .fc-attr optgroup { font-style: normal; color: #3897B6; font-size: 0.72rem; font-weight: 600; }
    #production-planning-2-root .filter-clause .fc-attr option { color: rgba(0,0,0,0.87); font-size: 0.875rem; }
    #production-planning-2-root .filter-clause .fc-op { width: 160px; flex-shrink: 0; }
    #production-planning-2-root .filter-clause .fc-val { flex: 1; min-width: 0; }
    #production-planning-2-root .fc-ms { flex: 1; position: relative; display: inline-flex; align-items: center; height: 36px; background: #fff; min-width: 150px; border: 1px solid rgba(0,0,0,0.23); border-radius: 4px; cursor: pointer; }
    #production-planning-2-root .fc-ms:hover { border-color: rgba(0,0,0,0.87); }
    #production-planning-2-root .fc-ms-val { flex: 1; min-width: 0; padding: 0 6px 0 10px; font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(0,0,0,0.87); user-select: none; }
    #production-planning-2-root .fc-ms-val.muted { color: rgba(0,0,0,0.38); }
    #production-planning-2-root .fc-ms-arrow { width: 28px; display: flex; align-items: center; justify-content: center; color: rgba(0,0,0,0.54); flex-shrink: 0; }
    #production-planning-2-root .fc-ms-arrow svg { width: 20px; height: 20px; fill: currentColor; }
    #production-planning-2-root .fc-ms-panel { position: absolute; top: calc(100% + 2px); left: 0; min-width: 100%; z-index: 45; background: #fff; border-radius: 4px; box-shadow: 0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12); max-height: 260px; overflow-y: auto; }
    #production-planning-2-root .fc-ms-item { padding: 8px 14px; font-size: 0.875rem; cursor: pointer; white-space: nowrap; color: rgba(0,0,0,0.87); display: flex; align-items: center; gap: 10px; }
    #production-planning-2-root .fc-ms-item:hover { background: #f5f5f5; }
    #production-planning-2-root .fc-ms-item.sel { background: #ebf5f8; color: rgba(0,0,0,0.87); }
    #production-planning-2-root .fc-ms-check { width: 16px; height: 16px; flex-shrink: 0; border-radius: 2px; border: 2px solid rgba(0,0,0,0.23); position: relative; box-sizing: border-box; }
    #production-planning-2-root .fc-ms-item.sel .fc-ms-check { background: #3897B6; border-color: #3897B6; }
    #production-planning-2-root .fc-ms-item.sel .fc-ms-check::after { content: ''; position: absolute; left: 4px; top: 0px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
    #production-planning-2-root .fc-del { width: 40px; height: 40px; border: none; background: none; cursor: pointer; border-radius: 50%; color: rgba(0,0,0,0.54); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
    #production-planning-2-root .fc-del:hover { background: rgba(0,0,0,0.04); color: #CA024F; }
    #production-planning-2-root .fc-del svg { width: 20px; height: 20px; fill: currentColor; }
    #production-planning-2-root .fc-filter-row-2col { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
    #production-planning-2-root .fc-filter-row-2col > div { flex: 1 1 320px; min-width: 280px; position: relative; }

    /* Hierarchy level popover — ported 1:1 from Planner Workbench's own
       Edit Bookmark "Hierarchy level" popover (modules/planner-workbench.css's
       #hierSelPop/.msl-*, scoped there under #planner-workbench-root), so
       this screen's own Hierarchy level control looks and behaves exactly
       the same (an inline popover under the chip with one native <select>
       per entity, floating label inside each box) instead of the old
       centered modal dialog. */
    #production-planning-2-root .popover-paper.fc-hier-pop {
      position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; width: 280px;
      background: #fff; border-radius: 4px;
      box-shadow: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12);
      padding: 16px; display: flex; flex-direction: column; gap: 12px;
    }
    #production-planning-2-root .msl-wrap { position: relative; display: block; }
    #production-planning-2-root .msl-wrap select {
      width: 100%; height: 40px; padding: 0 32px 0 12px;
      border: 1px solid rgba(0,0,0,0.23); border-radius: 4px;
      font-family: inherit; font-size: 0.875rem;
      color: rgba(0,0,0,0.87); background: #fff;
      appearance: none; -webkit-appearance: none;
      cursor: pointer; outline: none;
    }
    #production-planning-2-root .msl-wrap:hover select { border-color: rgba(0,0,0,0.87); }
    #production-planning-2-root .msl-wrap select:focus { border: 2px solid #3897B6; padding-left: 11px; }
    #production-planning-2-root .msl-wrap .msl-arrow {
      position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
      pointer-events: none; color: rgba(0,0,0,0.54);
      display: flex; align-items: center;
    }
    #production-planning-2-root .msl-wrap .msl-arrow svg { width: 24px; height: 24px; fill: currentColor; }
    #production-planning-2-root .msl-field { position: relative; }
    #production-planning-2-root .msl-field .msl-floating-label {
      position: absolute; top: -7px; left: 10px; z-index: 1;
      background: #fff; padding: 0 4px;
      font-size: 0.75rem; line-height: 1; color: rgba(0,0,0,0.6);
      pointer-events: none;
    }
    #production-planning-2-root .msl-wrap select optgroup { font-style: normal; color: #3897B6; font-size: 0.72rem; }
    #production-planning-2-root .msl-wrap select option { color: rgba(0,0,0,0.87); }

