dialog:has(.duty-pdf){width:min(1000px,96vw);max-width:none;max-height:92vh;padding:0;overflow:hidden}
.duty-pdf{display:flex;flex-direction:column;max-height:92vh;padding:20px 22px 0;min-height:0}.duty-pdf h2{font-size:22px;line-height:1.3}.duty-pdf header p{font-size:13px;color:var(--muted);margin-top:4px}.duty-pdf-period{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:14px 0 10px;flex-shrink:0}.duty-pdf-period label{font-size:12px;gap:3px}.duty-pdf-period input{width:155px;padding:7px 9px;font-size:13px}.duty-pdf button{font-size:13px;padding:8px 12px}.duty-pdf-help{font-size:12px;color:var(--muted);margin-bottom:10px;flex-shrink:0}.duty-pdf>.error{margin:0 0 10px;flex-shrink:0}.duty-pdf>.error:empty{display:none}
.duty-pdf-preview{min-height:60px;overflow:auto;padding-right:3px}.duty-pdf-empty{padding:22px 12px;text-align:center;color:var(--muted);font-size:13px;background:var(--paper);border-radius:8px}.duty-pdf-warnings{font-size:13px;border:1px solid #e2c49b;background:#fff8eb;padding:10px 12px;border-radius:8px;margin-bottom:10px}.duty-pdf-warnings ul{margin:5px 0 8px;padding-left:20px}.duty-pdf-warnings p{font-size:12px;color:var(--muted)}.duty-pdf-day{border:1px solid var(--line);border-radius:8px;margin-bottom:8px;overflow:hidden}.duty-pdf-day>summary{background:#f1f5ea;padding:9px 12px;margin:0;font-size:13px;font-weight:600}.duty-pdf-day>summary>.tag{float:right;margin-left:9px;font-size:11px;padding:1px 6px}.duty-pdf-day>summary>span:first-child{overflow-wrap:anywhere}.duty-pdf-table-wrap{overflow:auto}.duty-pdf-table{border-collapse:collapse;width:100%;min-width:660px;table-layout:fixed;font-size:12px}.duty-pdf-table th,.duty-pdf-table td{padding:6px 8px;white-space:normal;overflow-wrap:anywhere;max-width:none;min-width:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);vertical-align:middle}.duty-pdf-table th{text-transform:none;letter-spacing:0;color:var(--ink);font-size:11px;line-height:1.25;background:#fafbf7;text-align:left}.duty-pdf-table th:nth-child(1){width:6%}.duty-pdf-table th:nth-child(2){width:21%}.duty-pdf-table th:nth-child(3){width:14%}.duty-pdf-table th:nth-child(4){width:12%}.duty-pdf-table th:nth-child(5){width:27%}.duty-pdf-table th:nth-child(6){width:20%}.duty-pdf-table th:last-child,.duty-pdf-table td:last-child{border-right:0}.duty-pdf-table tr:last-child td{border-bottom:0}.duty-pdf-table .duty-pdf-reserve{color:var(--muted)}.duty-pdf-day-warnings{font-size:12px;color:var(--red);margin:8px 12px;padding-left:18px}
.duty-pdf footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0 16px;flex-shrink:0;border-top:1px solid var(--line);margin-top:10px;background:#fff}.duty-pdf footer p{font-size:12px;color:var(--muted);max-width:47%}.duty-pdf footer .actions{flex-shrink:0}.duty-pdf footer button{white-space:nowrap}@media(max-width:650px){.duty-pdf{padding:14px 12px 0}.duty-pdf h2{font-size:19px}.duty-pdf-period{gap:7px}.duty-pdf-period input{width:140px}.duty-pdf footer{flex-wrap:wrap}.duty-pdf footer p{max-width:100%}.duty-pdf footer .actions{margin-left:auto;flex-shrink:1}.duty-pdf-day>summary>.tag{float:none;display:inline-block;margin-top:4px}.duty-pdf-day>summary>span:first-child{display:inline}}
