/* Этап 9 · часть 5: «План работ». Только классы с префиксом wpl-. */

.wpl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 10px; }
.wpl-arr { min-height: 40px; padding: 4px 14px; font-size: 20px; line-height: 1; }
.wpl-week { font-size: 18px; min-width: 150px; text-align: center; }
.wpl-sp { flex: 1 1 auto; }
.wpl-last { font-size: 13px; }
.wpl-plate { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: var(--blue-bg); color: var(--blue-ink); font-size: 14.5px; }
.wpl-note:empty { display: none; }

/* таблица недели */
.wpl-scroll { overflow-x: auto; border: 1px solid var(--line-hard); border-radius: 8px; background: var(--card); }
.wpl-grid { width: 100%; min-width: 980px; border-collapse: collapse; table-layout: fixed; }
.wpl-grid th, .wpl-grid td { border: 1px solid var(--line); padding: 5px 6px; vertical-align: top; text-align: left; }
.wpl-grid thead th, .wpl-grid tr:first-child th { background: #f5f6f8; }
.wpl-who, .wpl-name { width: 118px; font-size: 14px; }
.wpl-who { font-size: 11px; color: var(--ink-soft); font-weight: 600; letter-spacing: .02em; }
.wpl-name { font-weight: 600; }
.wpl-day { position: relative; font-size: 14px; font-weight: 600; text-align: center !important; padding-right: 22px !important; }
.wpl-day small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 12px; }
.wpl-day.wk small { color: var(--red); }
.wpl-day.today { background: #fff4d6 !important; color: var(--ink); box-shadow: inset 0 -3px 0 #e0a800; }
.wpl-day.past { color: var(--ink-soft); }
.wpl-freeN { display: block; font-style: normal; font-weight: 400; font-size: 12px; color: var(--green); margin-top: 2px; }
.wpl-day { padding-right: 6px !important; }
.wpl-rp { display: block; margin: 3px auto 0; width: 26px; height: 24px; line-height: 20px; border: 1px solid var(--line-hard); background: #fff; color: var(--ink-soft); cursor: pointer; font-size: 14px; padding: 0; border-radius: 12px; }
.wpl-rp:hover { background: #e3e5e9; color: var(--ink); }

.wpl-cell { min-height: 46px; font-size: 13.5px; }
.wpl-cell.free { background: #fffaea; }
.wpl-cell.free .wpl-free { display: block; }
.wpl-cell.free .wpl-plus { display: block; margin: 4px 0 0; width: auto; height: auto; line-height: 1; border: 0; border-radius: 0; text-align: left; color: var(--ink-soft); font-size: 15px; font-weight: 400; }
.wpl-cell.past { background: #fafafa; }
.wpl-cell.off { background: #f6f6f6; color: var(--ink-soft); }
.wpl-cell.edit { cursor: pointer; }
.wpl-cell.edit:hover { background: #fff2cc; }
.wpl-cell.edit:not(.free):hover { background: #f1f5ff; }
.wpl-cell.sel { outline: 2px solid var(--acc); outline-offset: -2px; background: #eaf0fd; }
.wpl-state { color: var(--ink-soft); font-weight: 600; }
.wpl-free { color: var(--ink-soft); font-size: 12.5px; }
.wpl-plus { text-decoration: none; display: inline-block; margin-left: 4px; width: 20px; height: 20px; line-height: 19px; text-align: center; border-radius: 50%; border: 1px solid var(--line-hard); color: var(--acc); font-size: 14px; font-weight: 700; }
.wpl-call { border: 1px dashed var(--line-hard); background: #fff; color: var(--acc); border-radius: 6px; padding: 3px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.wpl-call:hover { border-color: var(--acc); }
.wpl-lk { border: 0; background: transparent; padding: 0; margin-top: 4px; color: var(--acc); text-decoration: underline; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 400; }

/* чипы задач */
.wpl-chip { display: block; margin: 0 0 4px; padding: 4px 8px; border-radius: 8px; background: #e3e6ea; color: #1c1f26; line-height: 1.3; overflow-wrap: anywhere; }
.wpl-chip-t { font-weight: 600; }
.wpl-chip-n { display: block; font-size: 12px; opacity: .8; }
.wpl-doc { display: block; font-size: 12px; text-decoration: underline; color: #1c1f26; }
.wpl-chip em { display: block; font-style: normal; font-size: 12px; font-weight: 600; }
.wpl-m-ok { color: var(--green); }
.wpl-m-no { color: var(--red); }

/* разовые */
.wpl-casrow td { background: #fcfcf7; }
.wpl-cas { margin: 0 0 6px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.wpl-cas.edit { cursor: pointer; }
.wpl-cas.sel { outline: 2px solid var(--acc); }
.wpl-cas b { font-size: 13.5px; }
.wpl-cas .btn { margin: 2px 4px 0 0; }
.wpl-addcas { width: 100%; }

/* окно задачи */
.wpl-panelbox:empty { display: none; }
.wpl-panel { margin: 10px 0 0; padding: 12px 14px; border: 1px solid var(--line-hard); border-radius: 12px; background: var(--card); }
.wpl-ptitle { font-size: 16px; }
.wpl-none { font-size: 13.5px; margin: 2px 0 6px; }
.wpl-items { margin: 6px 0; }
.wpl-itrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 4px; padding: 3px 4px; border-radius: 8px; }
.wpl-itrow.on { background: var(--blue-bg); }
.wpl-itrow .wpl-chip { margin: 0; flex: 0 1 auto; }
.wpl-move { min-height: 30px; font-size: 13px; padding: 2px 6px; width: auto; }
.wpl-lab { margin: 8px 0 2px; font-size: 12.5px; color: var(--ink-soft); }
.wpl-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.wpl-qchip { border: 1px solid transparent; border-radius: 8px; padding: 5px 12px; font: inherit; font-size: 14px; color: #1c1f26; background: #e3e6ea; cursor: pointer; }
.wpl-qchip:hover { border-color: #6b7280; }
.wpl-qchip.on { border-color: var(--acc); box-shadow: 0 0 0 2px var(--blue-bg); font-weight: 700; }
.wpl-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 12px; }
.wpl-form .field { margin: 0; min-width: 190px; }
.wpl-f { display: contents; }
.wpl-form > .btn { margin-bottom: 0; align-self: flex-end; }
.wpl-pbtn { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wpl-two { display: flex; gap: 12px; }
.wpl-hire { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }

/* справочник типов */
.wpl-refsbox { margin: 12px 0 0; }
.wpl-refs { border: 1px solid var(--line-hard); border-radius: 12px; padding: 8px 14px; background: var(--card); }
.wpl-refs > summary { cursor: pointer; }
.wpl-refbody { margin: 8px 0 4px; }
.wpl-tchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; align-items: center; }
.wpl-tchip { display: inline-flex; align-items: center; border-radius: 8px; background: #e3e6ea; color: #1c1f26; overflow: hidden; }
.wpl-tchip.hid { opacity: .5; text-decoration: line-through; }
.wpl-tname, .wpl-tx { border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; padding: 4px 8px; }
.wpl-tname:hover, .wpl-tx:hover { background: rgba(0, 0, 0, .1); }
.wpl-tx { padding: 4px 9px; font-weight: 700; }
.wpl-hint { font-size: 13px; margin: 4px 0 0; }

@media (max-width: 700px) {
  .wpl-week { min-width: 0; font-size: 16px; }
  .wpl-form .field { min-width: 100%; }
}
