/* Workforce forecasting and scheduling (module 30). Prefix wm-. */
.wm-saved { margin: 0; }
.wm-bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid #e0e7ed; }
.wm-bulk select, .wm-bulk input { max-width: 300px; min-width: 0; }
.wm-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.wm-btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.wm-btnrow form { margin: 0; }
.wm-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.wm-grid2 > * { min-width: 0; }
.wm-fieldset { border: 0; margin: 0 0 10px; padding: 0; min-width: 0; }
.wm-fieldset legend { font-weight: 700; font-size: 12.5px; margin-bottom: 6px; color: #334e68; }
.wm-fieldset .hint { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.wm-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.wm-inline { margin-top: 12px; display: grid; gap: 8px; }
.wm-help { color: var(--muted); font-size: 12.5px; margin: 0; }
.wm-note { margin-top: 4px; color: #334e68; overflow-wrap: anywhere; }
.wm-wrap { white-space: normal; overflow-wrap: anywhere; min-width: 140px; }
.wm-link { display: inline-flex; gap: 4px; align-items: center; margin-top: 8px; font-size: 12.5px; font-weight: 700; }
.wm-steps { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; }
.wm-example { margin-top: 12px; padding: 10px 12px; background: #f3f8fd; border: 1px solid #d3e0ec; border-radius: 6px; font-size: 13px; line-height: 1.5; }
.wm-pick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wm-pick select { max-width: 100%; min-width: 0; }
.wm-up { color: #0d7a5c; }
.wm-down { color: #b4283c; }
.wm-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.wm-rowform { display: flex; gap: 6px; align-items: center; }
.wm-rowform input { width: 140px; min-width: 0; }
.wm-breakrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px; margin-bottom: 6px; }
.wm-breakrow > * { min-width: 0; }
.wm-agentform { padding: 8px 2px; }

/* Forecast and history tables with many columns. */
.wm-matrix th, .wm-matrix td { padding: 5px 8px; font-size: 12px; white-space: nowrap; }
.wm-matrix td .sub { display: block; color: #7048c8; font-size: 10.5px; }
.wm-matrix td.wm-ev { background: #fff6e0; }
.wm-matrix td.wm-out { text-decoration: line-through; color: #a3283d; background: #fbeef0; }
.wm-matrix tr.total td, .wm-matrix tr.total th { border-top: 2px solid #c9d6e3; }

/* Coverage heatmap. */
.wm-heatwrap { overflow-x: auto; position: relative; }
.wm-heat { border-collapse: separate; border-spacing: 2px; font-size: 10.5px; }
.wm-heat th { font-weight: 600; color: var(--muted); padding: 0 2px; text-align: left; white-space: nowrap; }
.wm-heat thead th { font-size: 10px; }
.wm-heat td { width: 22px; min-width: 22px; height: 22px; text-align: center; border-radius: 3px; color: #123d72; }
.wm-c { background: #f1f4f8; }
.wm-c.under { background: #f3b3bc; color: #7a1626; font-weight: 700; }
.wm-c.short { background: #fbe1a6; color: #6b4a00; }
.wm-c.ok { background: #bfe8d8; color: #0b5a43; }
.wm-c.over { background: #c9dcf5; color: #123d72; }
.wm-c.none { background: #f6f8fa; }
.wm-heatkey { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12px; color: var(--muted); align-items: center; }
.wm-heatkey i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.wm-heatkey .mut { flex-basis: 100%; }

/* Shift bars and the week grid. */
.wm-bar { position: relative; height: 8px; background: #edf2f7; border-radius: 3px; margin-top: 4px; overflow: hidden; }
.wm-bar.big { height: 18px; }
.wm-bar i { position: absolute; top: 0; bottom: 0; }
.wm-week th, .wm-week td { vertical-align: top; min-width: 96px; }
.wm-shift { display: block; padding: 4px 6px; border: 1px solid #d3e0ec; border-radius: 5px; background: #f8fbfe; color: inherit; text-decoration: none; }
.wm-shift:hover { border-color: #1a7fe0; }
.wm-shift .sub { display: block; font-size: 11px; color: var(--muted); }
.wm-off { display: inline-block; padding: 2px 6px; border-radius: 4px; background: #eef0f3; color: #5b6b7f; font-size: 12px; }
.wm-free { color: #a0aec0; }
.wm-daylist { display: none; padding: 10px 12px; }
.wm-daylist h4 { margin: 12px 0 6px; font-size: 13px; }
.wm-daylist .wm-shift { margin-bottom: 6px; }

/* Adherence timeline. */
.wm-tl { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 10px; align-items: center; }
.wm-tl-l { font-size: 12px; color: var(--muted); }
tr.wm-bad td { background: #fdf2f4; }

/* My schedule. */
.wm-mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.wm-myday { border: 1px solid #e0e7ed; border-radius: 6px; padding: 10px 12px; min-width: 0; }
.wm-myday.today { border-color: #1a7fe0; box-shadow: 0 0 0 2px #e3f0fd; }
.wm-myday h4 { margin: 0 0 6px; font-size: 13.5px; }
.wm-myshift { font-size: 13px; }
.wm-acts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; font-size: 12.5px; }
.wm-acts .sub { color: var(--muted); }
.wm-mini { display: grid; gap: 10px; font-size: 13px; }

@media (max-width: 760px) {
    .wm-grid2 { grid-template-columns: minmax(0, 1fr); }
    .wm-week { display: none; }
    .wm-daylist { display: block; }
    .wm-tl { grid-template-columns: 70px minmax(0, 1fr); }
    .wm-rowform { flex-wrap: wrap; }
}

/* Polish: dashboard panels */
.wm-dheat { width: 100%; table-layout: fixed; }
.wm-dheat td { width: auto; min-width: 0; height: 24px; font-size: 10px; }
.wm-dheat th[scope=row] { width: 44px; font-size: 11px; }
.wm-dheat th[scope=row] a { color: inherit; text-decoration: none; }
.wm-dheat tr.today th[scope=row] { color: #0b5fb8; }
.wm-gaps { display: flex; flex-direction: column; gap: 4px; }
.wm-gap { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 8px; background: #fff6f4; color: #7a2a14; font-size: 12.5px; text-decoration: none; }
.wm-gap span { flex: 1; min-width: 0; }
.wm-gap b { white-space: nowrap; }
.wm-gauge { display: flex; justify-content: center; }
.wm-tohead { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; border-top: 1px solid #eef2f6; padding-top: 10px; }
.wm-torow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: #f6f9fc; color: inherit; text-decoration: none; font-size: 13px; min-width: 0; }
.wm-torow span { min-width: 0; }
.wm-torow small { display: block; color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
.wm-torow:hover { background: #eef4fb; }
.ct-tbl td .ct-code { white-space: nowrap; }
@media (max-width: 640px) { .wm-dheat td { font-size: 0; } }
