/* Inline journal uses the existing b0ad-derived finance/card tokens. */
.prototype-payroll-journal{min-width:0;width:100%;color:inherit}
.prototype-payroll-journal .drawer-header{padding:0 0 16px;border:0;position:static;background:transparent}
.prototype-payroll-journal .drawer-header h2{font-size:18px;font-weight:600}
.prototype-payroll-journal .drawer-body{padding:0;overflow:visible}
.prototype-payroll-journal .drawer-footer{padding:16px 0;border:0;background:transparent}
.prototype-payroll-journal .pi-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.prototype-payroll-journal .pi-card{border-radius:8px;box-shadow:none;min-width:0}
.prototype-payroll-journal .pi-list{display:grid;gap:12px}
.prototype-payroll-journal .pi-card h3{font-size:16px;font-weight:600}
.prototype-payroll-journal input,.prototype-payroll-journal select{max-width:100%;min-width:0}
.prototype-payroll-journal a,.prototype-payroll-journal code{overflow-wrap:anywhere}
@media(max-width:600px){.prototype-payroll-journal .pi-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.prototype-payroll-journal .pi-toolbar .button{min-height:44px}.prototype-payroll-journal .pi-card dl{grid-template-columns:repeat(2,minmax(0,1fr))}.prototype-payroll-journal .pi-toolbar label{max-width:100%}}
@media print{.prototype-payroll-journal{display:none}}
/* Inline cards are narrower than the former full-screen payment dialog.
   Grid's automatic min-content track must not be sized by a file input,
   select option or a long payment action. Wrap content; never clip it. */
.prototype-payroll-journal :is(.pi-action-form,.pi-scan-form,#pi-close,#pi-recall,#pi-create,#pi-employee){grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%}
.prototype-payroll-journal :is(.pi-action-form,.pi-scan-form,#pi-close,#pi-recall,#pi-create,#pi-employee)>*{min-width:0;max-width:100%;box-sizing:border-box}
.prototype-payroll-journal :is(.field,.pi-document,details,summary,.pi-card dl>div){min-width:0;max-width:100%;overflow-wrap:anywhere}
.prototype-payroll-journal :is(input,select,textarea){box-sizing:border-box}
.prototype-payroll-journal :is(input[type=file],select){width:100%}
.prototype-payroll-journal :is(button,.button,.link-button){min-width:0;max-width:100%;height:auto;min-height:44px;white-space:normal;overflow-wrap:anywhere;line-height:1.4;box-sizing:border-box}
/* Keep Russian toolbar words readable instead of shrinking three actions into
   narrow columns. The existing wrapping toolbar may use two rows on phones. */
@media(max-width:479px){.prototype-payroll-journal .pi-toolbar>.button{flex:1 1 110px;overflow-wrap:normal}}
/* Payroll-lab b0ad employee → grounds grouping and three-step instruction. */
.pi-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.prototype-payroll-journal .pi-journal-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:12px;border:1px solid var(--lv-border);border-radius:8px}
.prototype-payroll-journal .pi-journal-filters .field{min-width:0;margin:0}
.prototype-payroll-journal .pi-journal-filters .control{min-height:44px}
.prototype-payroll-journal .pi-grounds{border:1px solid var(--lv-border);border-radius:6px;margin-top:12px}
.prototype-payroll-journal .pi-ground{padding:8px;min-width:0}.prototype-payroll-journal .pi-ground+.pi-ground{border-top:1px solid var(--lv-border)}
.prototype-payroll-journal .pi-ground p{font-size:12px;line-height:1.5}
.prototype-payroll-journal .pi-money-movement{list-style:none;padding:0}.prototype-payroll-journal .pi-money-movement li{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:6px 0;border-top:1px solid var(--lv-border);font-size:14px}
.prototype-payroll-journal .pi-steps{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;font-size:14px;text-align:center}
.prototype-payroll-journal .pi-steps li{padding:8px;border-radius:6px;background:var(--lv-muted);overflow-wrap:anywhere}
.prototype-payroll-journal .pi-steps [aria-current]{background:var(--lv-primary);color:var(--lv-primary-foreground,#fff)}
.prototype-payroll-journal [data-pi-step][hidden]{display:none!important}
.prototype-payroll-journal .pi-wizard-actions{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px}.prototype-payroll-journal .pi-wizard-actions button{min-height:48px}
.prototype-payroll-journal .pi-queue-group h4{font-size:12px;text-transform:uppercase;letter-spacing:.05em}
@media(min-width:640px){.prototype-payroll-journal .pi-journal-filters{grid-template-columns:minmax(0,1fr) auto auto}}
/* Frozen group sheets use the same contained form layout at 320px. */
#prototype-payroll-journal #pi-group-create{display:grid;gap:12px;min-width:0}
#prototype-payroll-journal #pi-group-create fieldset{min-width:0;display:grid;gap:10px;margin:0}
#prototype-payroll-journal #pi-group-create fieldset label{display:flex;align-items:flex-start;gap:8px;overflow-wrap:anywhere;min-width:0}
#prototype-payroll-journal #pi-group-create input[type=checkbox]{flex:0 0 auto}
