/* IMC-Planer: Darstellung der IMC-Planung (ergänzt app.css) */
/* IMC-Planung (17.11.2026) */
table.plan.imcplan td.iz { cursor: default; min-width: 26px; text-align: center; font-weight: 650; }
table.plan.imcplan td.iz[data-kz] { user-select: none; }
table.plan.imcplan td.imc-f, .k.imc-f, .rleg.imc-f, .rchip.imc-f { background: #bbdefb; color: #0d47a1; }
table.plan.imcplan td.imc-s, .k.imc-s, .rleg.imc-s, .rchip.imc-s { background: #ffcc80; color: #7a3e00; }
table.plan.imcplan td.imc-ik, .k.imc-ik, .rleg.imc-ik, .rchip.imc-ik { background: #ce93d8; color: #4a0072; }
table.plan.imcplan td.imc-op, .k.imc-op, .rleg.imc-op, .rchip.imc-op { background: #b2dfdb; color: #004d40; }
table.plan.imcplan td.imc-b, .k.imc-b, .rleg.imc-b, .rchip.imc-b { background: #e0e0e0; color: #37474f; }
table.plan.imcplan td.auto { opacity: .72; }
table.plan.imcplan td.imc-abw, .rleg.imc-abw { background: #dcedc8; color: #33691e; }
table.plan.imcplan td.imc-pt { color: var(--text-2); }
table.plan.imcplan td.imc-aus { background: repeating-linear-gradient(45deg, transparent, transparent 3px, var(--linie) 3px, var(--linie) 4px); }
table.plan.imcplan td.w-offen { box-shadow: inset 0 0 0 2px var(--wunschfrei, #e65100); }
table.plan.imcplan td.rsel { outline: 2px solid var(--akzent); outline-offset: -2px; }
table.plan.imcplan tr.ich td.pers { background: var(--akzent-2, #e0f2f1); }
table.plan.imcplan td.summe.minus { color: var(--rot); } table.plan.imcplan td.summe.plus { color: var(--orange, #e65100); }
table.plan.imcplan td.ikx { font-size: 10px; cursor: pointer; }
table.plan.imcplan thead th.sum { min-width: 38px; }
.popmenu .k { display: inline-block; min-width: 26px; text-align: center; border-radius: 4px; margin-right: 8px; font-weight: 700; font-size: 11px; padding: 1px 3px; }
table.imcpers tbody tr:hover { background: var(--flaeche-2); }
table.imcpers th { text-align: left; }
table.plan.imcplan td.imc-k { box-shadow: inset 0 -3px 0 #0d47a1; } table.plan.imcplan td sup { font-size: 8px; font-weight: 800; margin-left: 1px; }

/* IMC: Wünsche wie in der Anästhesie (Kalender) */
table.plan.imcwplan td.antrag, .k.antrag { background: #ffb74d; color: #4e2a00; font-weight: 800; outline: 2px solid #e65100; outline-offset: -2px; cursor: pointer; }
table.plan.imcwplan td.sperre-ok, .k.sperre-ok { background: #dcedc8; color: #33691e; font-weight: 700; }
table.plan.imcwplan td.imc-wd, .k.imc-wd { background: #c8e6c9; color: #1b5e20; font-weight: 700; }
table.plan.imcwplan td.waehlbar { cursor: pointer; }
table.plan.imcwplan td.iz { cursor: cell; }
.imcwgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
@media (max-width: 900px) { .imcwgrid { grid-template-columns: 1fr; } }
table.imckal { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.imckal th { font-size: 12px; color: var(--text-2); padding: 4px; text-align: left; }
table.imckal td { border: 1px solid var(--linie); vertical-align: top; height: 84px; padding: 4px 5px; }
table.imckal td.tag { cursor: pointer; background: var(--flaeche); }
table.imckal td.tag:hover { background: var(--flaeche-2); }
table.imckal td.we, table.imckal td.ft { background: var(--flaeche-2); }
table.imckal td.aus { background: transparent; border-color: transparent; }
table.imckal td.gewaehlt { outline: 2px solid var(--akzent); outline-offset: -2px; background: var(--akzent-2, #e0f2f1); }
table.imckal td.vorbei { opacity: .55; }
table.imckal .tnr { display: flex; gap: 6px; align-items: baseline; font-size: 13px; }
table.imckal .tabw { margin-left: auto; font-size: 10.5px; color: var(--text-2); }
table.imckal .tchips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
table.imckal .rchip.wf { background: #ffe0b2; border-left-color: #e65100; } table.imckal .rchip.wd { background: #c8e6c9; border-left-color: #2e7d32; }
table.imckal .rchip.w-offen { font-weight: 700; } table.imckal .rchip.abgelehnt { color: var(--rot); text-decoration: line-through; }
.imcwaktion button { display: block; width: 100%; text-align: left; margin: 3px 0; }
.imcwaktion .pm-titel { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); margin: 10px 0 2px; }
table.plan.imcplan td.kx[data-kx] { cursor: pointer; }
.k.imc-abw { background: #dcedc8; color: #33691e; } .legende .k { display: inline-block; min-width: 24px; text-align: center; border-radius: 4px; padding: 0 4px; margin-right: 4px; font-weight: 700; }

/* IMC: Mitarbeitende und Einstellungen (17.11.2026) */
.imcd { display: inline-block; min-width: 28px; text-align: center; border-radius: 4px; margin-right: 6px; font-weight: 700; font-size: 12px; padding: 2px 4px; }
.imcd.F { background: #bbdefb; color: #0d47a1; } .imcd.S { background: #ffcc80; color: #7a3e00; } .imcd.IK { background: #ce93d8; color: #4a0072; }
.imcd.OP { background: #b2dfdb; color: #004d40; } .imcd.B { background: #e0e0e0; color: #37474f; }
.unterbox { border: 1px solid var(--linie); border-radius: 8px; padding: 10px 12px; margin-top: 12px; }
.wahlzeile { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--linie); border-radius: 8px; padding: 9px 12px; margin-bottom: 8px; cursor: pointer; }
.wahlzeile span { display: flex; flex-direction: column; }
.wahlzeile input { margin-top: 3px; }
table.imcbedarf input.rkz { width: 64px; text-align: right; }
table.liste.imcpers td { vertical-align: middle; }

/* IMC: IPS-Einsatz, Startseite (17.11.2026) */
table.plan.imcplan td.imc-ips, .k.imc-ips, .rleg.imc-ips, .rchip.imc-ips, .imcd.IPS { background: #f8bbd0; color: #880e4f; }
table.plan.imcplan td.imc-ips { font-size: 9px; letter-spacing: -.03em; }
.heuteliste .k sup, .popmenu .k sup { font-size: 8px; }
table.liste.imcklick tbody tr[data-href] { cursor: pointer; }
table.liste.imcklick tbody tr[data-href]:hover { background: var(--flaeche-2); }
table.liste.imcklick td { vertical-align: middle; }
.imceintrag { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; border-top: 1px solid var(--linie); padding: 8px 0 2px; margin-top: 8px; font-size: 13px; }
.imceintrag small { display: block; color: var(--text-2); margin-top: 2px; }
.imceintrag > span:nth-child(2) { white-space: nowrap; }
.imceintrag > span:first-child { min-width: 0; }
.msphase { gap: 12px; flex-wrap: wrap; padding: 5px 0; border-top: 1px solid var(--linie); }
.msphase input[type="date"] { width: 132px; }
.msphase .datumwahl, .msphase label.klein { white-space: nowrap; }
