.labor-section{margin:24px 0;padding:20px;border:1px solid #d8e4f1;border-radius:12px;background:#f8fbff}.labor-section h3,.labor-entry h3{margin:0}.labor-section p,.labor-entry p{margin:8px 0}.labor-section .section-heading{gap:14px;flex-wrap:wrap}.labor-total{display:flex;gap:12px;flex-wrap:wrap}.labor-total span{color:#60758d}.labor-stage-list{margin:16px 0}.labor-stage,.labor-person{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #dce6f1}.labor-stage small,.labor-person small{display:block;margin-top:6px;line-height:1.7;color:#526b86}.labor-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.labor-kpis>div{background:#edf3fb;padding:15px;border-radius:9px}.labor-kpis span{display:block;color:#526b86;font-size:12px}.labor-kpis strong{display:block;font-size:20px;margin-top:7px;font-variant-numeric:tabular-nums}.labor-notice{padding:12px 14px;border-radius:8px;border:1px solid #ecd69d;background:#fffaf0;color:#76561c;line-height:1.6}.labor-entries{display:grid;gap:14px;margin:20px 0}.labor-entry{border:1px solid #dce6f1;padding:18px;border-radius:10px;background:#fff}.labor-entry-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.labor-entry-values span{display:flex;flex-direction:column;gap:5px;color:#526b86;font-size:12px}.labor-entry-values b{color:#21354d;font-size:16px}.labor-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.labor-payouts{margin-top:30px}.labor-voided{opacity:.7}.labor-voided strong{text-decoration:line-through}.labor-fieldset{border:0;margin:0;padding:0;min-width:0}.labor-hours-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.labor-preview{display:grid;gap:8px;border-left:3px solid #3578eb;background:#f0f5ff;padding:16px;margin:18px 0}.labor-preview b{font-size:20px}.labor-check{display:flex;align-items:flex-start;gap:10px;line-height:1.6;margin:20px 0}.labor-check input{margin-top:5px;min-width:18px;min-height:18px}#labor-dialog{width:min(860px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;border:0;border-radius:14px;padding:0;color:#21354d}#labor-dialog .drawer-body{max-height:calc(100dvh - 200px);overflow:auto;padding:24px}#labor-dialog .field{margin-bottom:14px}#labor-dialog .field-grid{gap:16px}#labor-dialog .drawer-footer{gap:14px}#labor-dialog .section-heading{gap:16px;flex-wrap:wrap}#labor-dialog .control{width:100%}#labor-dialog .button{min-height:44px}#labor-dialog summary{cursor:pointer;padding:14px 0}#labor-error{overflow-wrap:anywhere}#labor-error .link-button{display:block;text-align:left;margin-top:10px}.labor-team{margin-top:24px}.labor-team td:not(:first-child){white-space:nowrap}.labor-team td:first-child{min-width:150px}
@media(max-width:640px){#labor-dialog{width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}#labor-dialog .drawer-header{padding:18px 16px;padding-top:max(18px,env(safe-area-inset-top))}#labor-dialog .drawer-body{padding:16px;max-height:calc(100dvh - 210px)}#labor-dialog .drawer-footer{padding:14px 16px;padding-bottom:max(14px,env(safe-area-inset-bottom));flex-wrap:wrap}#labor-dialog .drawer-footer small{max-width:68%}#labor-dialog .control{font-size:16px}#labor-dialog .field-grid,.labor-hours-grid{grid-template-columns:1fr}.labor-section{padding:16px}.labor-kpis{grid-template-columns:1fr}.labor-kpis>div{display:flex;justify-content:space-between;align-items:center;gap:12px}.labor-kpis strong{font-size:18px;margin:0}.labor-stage,.labor-person{align-items:flex-start;flex-direction:column;gap:10px}.labor-actions .button{flex:1}.labor-entry{padding:14px}.labor-entry .section-heading{align-items:flex-start}.labor-preview{font-size:13px}.labor-preview b{font-size:18px}.labor-check{font-size:14px}.labor-section .button{min-height:44px}}
#labor-dialog[open]{display:flex;flex-direction:column;overflow:hidden}#labor-dialog .drawer-header,#labor-dialog .drawer-footer{flex-shrink:0}#labor-dialog .drawer-body{flex:1;min-height:0;max-height:none}#labor-dialog .drawer-footer{border-top:1px solid #dce6f1;background:#fff}.labor-footer-actions{display:flex;gap:10px;flex-wrap:wrap}.labor-rate-control{display:flex;gap:8px;align-items:center}.labor-rate-control .control{min-width:0;flex:1}.labor-rate-control .button{white-space:nowrap}.labor-timestamps{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.labor-timestamps span{display:flex;flex-direction:column;gap:5px;color:#526b86;font-size:14px}.labor-timestamps b{font-size:14px;color:#21354d}.labor-clock{background:#eef5ff;padding:14px;border-radius:8px;font-variant-numeric:tabular-nums}.labor-clock small{display:block;margin-top:6px}.labor-state-running{background:#e3f5ee;color:#176846}.labor-state-submitted,.labor-state-requested{background:#fff3d4;color:#795814}.labor-entry-values span,.labor-kpis span{font-size:14px}.labor-preview{font-size:14px}#labor-dialog input[readonly]{background:#f1f5fa;color:#526b86}
@media(max-width:640px){.labor-timestamps{grid-template-columns:1fr}#labor-dialog .drawer-body{max-height:none}#labor-dialog .drawer-footer small{max-width:none;width:100%}.labor-footer-actions{width:100%}.labor-footer-actions .button{flex:1}.labor-rate-control .button{padding:9px;font-size:14px}}

.labor-start-policy{margin:16px 0;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.labor-start-policy .labor-check{margin:0;align-items:center;font-weight:600}
.labor-start-policy input{width:18px;height:18px;flex-shrink:0}
.labor-start-policy small{display:block;margin-top:8px;font-size:14px;line-height:1.5;color:var(--muted)}

.production-plan-warning{margin-top:8px;padding:8px 10px;border-left:3px solid #cc8b1d;background:#fff5df;border-radius:5px;color:#76561c;font-size:14px;line-height:1.5;max-width:360px}
.production-plan-warning strong{font-size:14px;font-weight:600}.production-plan-warning small{display:block;font-size:13px;margin-top:2px}
.stage-plan-state{margin:12px 0;color:#946414;font-size:14px}.stage-plan-state.is-ready{color:#167559}
#stage-plan-dialog{width:min(780px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;border:0;border-radius:14px;padding:0;color:#21354d}
#stage-plan-dialog[open]{display:flex;flex-direction:column;overflow:hidden}#stage-plan-dialog .drawer-header,#stage-plan-dialog .drawer-footer{flex-shrink:0}
#stage-plan-dialog .drawer-body{overflow:auto;min-height:0;padding:24px}#stage-plan-dialog .field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
#stage-plan-dialog .control{width:100%;min-height:44px;font-size:16px}#stage-plan-dialog .drawer-footer{border-top:1px solid var(--line);background:#fff}
#stage-plan-dialog .assignee-chip{font-size:14px;padding:8px}#stage-plan-dialog .stage-plan-hours{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(max-width:640px){#stage-plan-dialog{width:100%;height:100dvh;max-height:100dvh;border-radius:0}#stage-plan-dialog .drawer-body{padding:16px}#stage-plan-dialog .field-grid,#stage-plan-dialog .stage-plan-hours{grid-template-columns:1fr}#stage-plan-dialog .drawer-footer{gap:12px;padding:16px}}
