/* План производства (/production), «Мои задачи», настройки этапов. Токены — из app.css. */
.pp-sum { color: var(--muted); font-size: 15px; margin-top: 6px; }
.pp-sum b { color: var(--ink); }
.pp-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pp-date { display: flex; gap: 6px; align-items: center; }
.pp-date .input { min-height: 44px; width: auto; }
.pp-wknav { margin-bottom: 14px; }

/* аватары исполнителей */
.av { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 800; color: #fff; flex: none; border: 2px solid var(--paper); }
.av.tone-0 { background: #B4234E; }
.av.tone-1 { background: #2F7A64; }
.av.tone-2 { background: #B5651D; }
.av.tone-3 { background: #5B4B8A; }
.av.tone-4 { background: #2E2530; }
.av.none { background: var(--paper2); color: var(--muted); border-style: dashed; border-color: var(--line); }

/* предупреждения */
.pp-alert { display: flex; gap: 12px; align-items: flex-start; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; font-size: 14.5px; }
.pp-alert.bad { background: var(--bads); color: var(--bad); }
.pp-alert.warn { background: var(--secs); color: var(--secink); }
.pp-alert b { display: block; color: inherit; }
.pp-alert ul { list-style: none; margin: 6px 0; }
.pp-alert a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.pp-alert small { display: block; color: var(--ink2); }

.pp-grid { display: grid; gap: 16px; }
@media (min-width: 1240px) { .pp-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.pp-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 14px; }
.pp-cap h2 { font-size: 18px; }
.pp-cap .muted { font-size: 13.5px; }

/* лента этапов */
.pp-tl { list-style: none; position: relative; }
.pp-lane { position: relative; display: grid; gap: 8px; padding-bottom: 18px; }
.pp-lane:last-child { padding-bottom: 0; }
.pp-at { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.pp-at i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--acc); background: var(--paper); }
.pp-lane:first-child .pp-at i { background: var(--acc); }
@media (min-width: 760px) {
    .pp-tl::before { content: ""; position: absolute; left: 66px; top: 10px; bottom: 10px; width: 2px; background: color-mix(in srgb, var(--acc) 22%, transparent); }
    .pp-lane { grid-template-columns: 74px minmax(0, 1fr); gap: 14px; }
    .pp-at { justify-content: space-between; align-self: start; padding-top: 14px; }
    .pp-at i { position: relative; z-index: 1; margin-right: -1px; }
}
.pp-box { background: var(--paper2); border-radius: 20px; padding: 12px; }
.pp-lh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 2px 2px 10px; }
.pp-lh h3 { font-size: 16.5px; font-weight: 800; }
.pp-si { width: 34px; height: 34px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; color: var(--acc); flex: none; }
.pp-dur, .pp-span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; font-size: 13.5px; }
.pp-first { color: var(--acc); font-weight: 800; font-size: 13.5px; }
.pp-avs { margin-left: auto; display: flex; }
.pp-avs .av + .av { margin-left: -8px; }
.pp-cards { display: grid; gap: 10px; }
@media (min-width: 600px) { .pp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .pp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* карточка задачи */
.pt { background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pt[draggable="true"] { cursor: grab; }
.pt.dragging { opacity: .5; }
.pt.s-inprogress { border-color: var(--sec); box-shadow: 0 0 0 3px var(--secs); }
.pt.s-done { opacity: .72; }
.pt.s-done .pt-ti { text-decoration: line-through; text-decoration-color: var(--muted); }
.pt.conf { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bads); }
.pt-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pt-h .kic { width: 30px; height: 30px; }
.pt-ti { font-weight: 800; font-size: 15px; overflow-wrap: anywhere; }
.pt-no { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.pt-no:hover { color: var(--acc); }
.pt-v { font-size: 14px; color: var(--ink2); overflow-wrap: anywhere; }
.pt-st { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--acc); font-size: 14px; }
.pt-m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pt-m .av { margin-left: auto; }
.pt-time { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 13.5px; }
.pt-time small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.pt-due { font-size: 13px; }
.pt-go { margin-top: 2px; }
.pt-more { border-top: 1px dashed var(--line); padding-top: 6px; }
.pt-more > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); min-height: 32px; list-style: none; }
.pt-more > summary::-webkit-details-marker { display: none; }
.pt-more[open] > summary { color: var(--ink); }
.pt-more form { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.pt-more .input, .pt-more .select { min-height: 44px; flex: 1 1 130px; min-width: 0; width: auto; }
.pt-undo { margin-top: -2px; }

/* правая колонка */
.pp-side { display: grid; gap: 16px; }
.pp-side .card + .card { margin-top: 0; }
.pp-load { list-style: none; margin-top: 8px; }
.pp-load li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.pp-load li:first-child { border-top: 0; }
.pp-load .nm { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pp-load .nm small { color: var(--muted); font-size: 12.5px; }
.pp-load .num { font-weight: 800; font-size: 14px; white-space: nowrap; }
.pp-help { font-size: 14px; margin: 8px 0 6px; }

/* перетаскивание: панель слотов */
.pp-slots { position: fixed; right: 16px; top: 16px; bottom: 16px; width: 120px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 16px; padding: 10px; z-index: 50; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 20px 40px -20px rgba(46, 37, 48, .5); }
.pp-slots[hidden] { display: none; }
.pp-slots b { font-size: 12px; line-height: 1.2; }
.pp-slots div { overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.pp-slots button { min-height: 30px; border-radius: 8px; border: 1px dashed var(--line); background: var(--bg); font-weight: 700; font-variant-numeric: tabular-nums; cursor: copy; }
.pp-slots button.over { background: var(--acc); color: #fff; border-color: var(--acc); }

/* неделя */
.pp-week { display: grid; gap: 12px; }
@media (min-width: 1100px) { .pp-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pp-week .card + .card { margin-top: 0; }
.pp-wd.today { border: 2px solid var(--acc); }
.pp-wdh { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.pp-wdh b { font-size: 16px; }
.pp-wdh > span { grid-column: 1; color: var(--muted); font-size: 13.5px; }
.pp-wdh .go { grid-column: 2; grid-row: 1 / span 3; color: var(--muted); }
.pp-wdc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pp-wl { list-style: none; margin-top: 10px; }
.pp-wl li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pp-wl li .ic { color: var(--acc); }
.pp-wl .tm { font-weight: 800; width: 44px; flex: none; }
.pp-wl .nm { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pp-wl .nm a { font-weight: 700; overflow-wrap: anywhere; }
.pp-wl small { color: var(--muted); font-size: 12.5px; }
.pp-wl li.done { opacity: .6; }
.pp-wl li.warn .tm { color: var(--bad); }
.pp-wl .av { width: 26px; height: 26px; font-size: 10.5px; }
.pp-none { font-size: 14px; margin-top: 8px; }

/* «Мои задачи» */
.my { display: grid; gap: 20px; max-width: 760px; }
.my-day { display: grid; gap: 10px; }
.my-day h2 { font-size: 20px; display: flex; align-items: baseline; gap: 10px; }
.my-day h2 small { font-family: var(--ff-body); font-size: 13.5px; color: var(--muted); font-weight: 700; }
.pt.big { padding: 16px; gap: 8px; border-radius: 20px; }
.pt.big .pt-ti { font-size: 17px; }
.pt.big .pt-v { font-size: 15px; }
.pt.big .btn.block { min-height: 56px; font-size: 17px; }

/* блок в карточке заказа */
.op-list { list-style: none; margin-top: 8px; }
.op-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.op-list li:first-child { border-top: 0; }
.op-list .tm { font-weight: 800; white-space: nowrap; }
.op-list .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.op-list .nm small { color: var(--muted); }
.op-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* настройки этапов */
.ps-list { list-style: none; margin-top: 10px; }
.ps-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.ps-row:first-child { border-top: 0; }
.ps-n { font-weight: 800; color: var(--muted); width: 18px; }
.ps-name { margin: 0; }
.ps-ctl { grid-column: 3; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ps-on { padding: 0; }
.ps-move { display: flex; gap: 4px; }
.ps-name .field-validation-error:empty { display: none; }
@media (min-width: 760px) {
    .ps-row { grid-template-columns: auto auto minmax(0, 1fr) auto; }
    .ps-ctl { grid-column: auto; }
}
