.worksheet-panel{margin-bottom:16px;padding:16px}
.worksheet-panel .panel-heading{margin-bottom:10px}
.worksheet-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:.84rem}
.worksheet-table th,.worksheet-table td{padding:10px 8px;border-bottom:1px solid #e1e6ea;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.worksheet-table th{background:#f5f7f9;color:#5e6b77;font-size:.78rem}
.worksheet-table small{display:block;color:#647180;margin-top:3px}
.worksheet-table input[type=checkbox]{width:18px;height:18px;accent-color:#245b8a;cursor:pointer}
.selection-table tr:has(input:checked){background:#fff8dc}
.worksheet-link{color:#245b8a!important;font-weight:700;text-decoration:none}
.worksheet-link:hover{text-decoration:underline}
.worksheet-create-action{margin:5px 0 0}
.worksheet-create-action .link-button{font-size:.74rem;text-align:left;overflow-wrap:anywhere}
.order-table .worksheet-link{font-size:.74rem}
.worksheet-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.worksheet-actions form{margin:0}
.worksheet-actions button{cursor:pointer}
.worksheet-change-note{background:#fff8dc;border:1px solid #d9bd62;border-radius:8px;padding:10px 13px;font-size:.86rem;line-height:1.5}
.worksheet-paper{page:worksheet;box-sizing:border-box;width:210mm;max-width:100%;min-height:297mm;margin:0 auto;background:#fff;color:#111827;border:1px solid #dfe4e8;box-shadow:0 5px 18px #18202a0a;padding:40mm 18mm 32mm;font-family:Arial,sans-serif;font-size:9pt;line-height:1.35}
.worksheet-paper *{box-sizing:border-box;overflow-wrap:anywhere}
.worksheet-document-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:10mm;border-bottom:.7mm solid #2962ed;padding-bottom:1.5mm;margin-bottom:1.5mm;break-inside:avoid}
.worksheet-document-heading h2{margin:0;font-size:19pt;line-height:1.12;letter-spacing:-.3pt}
.worksheet-paper .worksheet-document-heading{height:auto;padding-left:0;padding-right:0;background:transparent}
.worksheet-document-heading>div:first-child{display:grid;gap:1mm}
.worksheet-document-heading>div>span{color:#64748b;font-size:8pt}
.worksheet-reference{text-align:right;max-width:50%;display:grid;gap:1mm}
.worksheet-reference>span{text-transform:uppercase;font-size:7.5pt!important}
.worksheet-reference strong{font-size:14pt}
.worksheet-customer{border:1px solid #d7dfeb;border-radius:2.5mm;background:#f5f7fa;padding:2mm 4mm;margin-bottom:2mm;break-inside:avoid}
.worksheet-customer-top{display:grid;grid-template-columns:1.4fr 1fr;gap:4mm;padding-bottom:1mm}
.worksheet-customer-top>div,.worksheet-customer-bottom>div{display:grid;align-content:start;gap:.75mm;min-width:0}
.worksheet-customer span{font-size:7pt;text-transform:uppercase;color:#64748b}
.worksheet-customer strong{font-size:11pt}
.worksheet-customer-bottom{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4mm;border-top:1px solid #d7dfeb;padding-top:1mm}
.worksheet-customer-bottom b{font-size:8pt}
.worksheet-descriptions{border:1px solid #d7dfeb;border-radius:2.5mm;padding:1.5mm 4mm;margin-bottom:1.5mm}
.worksheet-descriptions>h3{font-size:7.5pt;text-transform:uppercase;color:#64748b;margin:0 0 1mm;break-after:avoid}
.worksheet-service+.worksheet-service{border-top:1px solid #d7dfeb;margin-top:.75mm;padding-top:.75mm}
.worksheet-service-heading{display:flex;gap:1mm 4mm;flex-wrap:wrap;font-size:8pt;break-after:avoid}
.worksheet-event{font-size:7pt;color:#64748b}
.worksheet-route{font-size:8pt;margin-top:1mm;break-after:avoid}
.worksheet-description{white-space:pre-wrap;line-height:1.4;margin:1mm 0 0;orphans:3;widows:3}
.worksheet-service-date{color:#334155;white-space:nowrap}
.worksheet-source{font-size:8pt;color:#245b8a;display:inline-block;margin-top:1mm}
.worksheet-section-heading{display:flex;align-items:center;gap:2.5mm;font-size:10pt;margin:2mm 0 1mm;break-after:avoid}
.worksheet-section-heading>span{border-radius:2mm;background:#2962ed;color:#fff;padding:.7mm 2mm;font-size:8pt}
.worksheet-print-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:8pt}
.worksheet-print-table thead{display:table-header-group}
.worksheet-print-table tr{break-inside:avoid}
.worksheet-print-table th{background:#111b30;color:#fff;text-align:left;font-size:7.5pt;padding:1mm 2mm;text-transform:uppercase}
.worksheet-print-table td{border-bottom:1px solid #d7dfeb;padding:1.1mm 2mm;vertical-align:top}
.worksheet-print-table td small{display:inline;color:#64748b;font-size:6.5pt;white-space:nowrap}
.worksheet-print-table td small::before{content:' · '}
.worksheet-print-table tbody tr:nth-child(even){background:#f5f7fa}
.worksheet-print-table .worksheet-blank-row{height:4.5mm}
.worksheet-capacity-table tbody tr{height:4.5mm}
.worksheet-capacity-table td{padding:.4mm 1.5mm;line-height:1.15}
.worksheet-capacity-table .worksheet-blank-row{height:4.5mm}
.worksheet-confirmation{border:1px solid #d7dfeb;border-radius:2.5mm;padding:2.5mm 4mm;margin-top:2mm;break-inside:avoid}
.worksheet-confirmation p{font-size:8pt;color:#475569;margin:0}
.worksheet-signatures{display:grid;grid-template-columns:1fr 2fr;gap:7mm;margin-top:2.5mm;margin-left:35%;color:#64748b;font-size:7pt;text-transform:uppercase}
.worksheet-signatures>div{border-top:1px solid #64748b;padding-top:1.5mm}
.worksheet-staff-table th:nth-child(3),.worksheet-staff-table th:nth-child(4),.worksheet-staff-table th:nth-child(5),.worksheet-staff-table td:nth-child(3),.worksheet-staff-table td:nth-child(4),.worksheet-staff-table td:nth-child(5),.worksheet-vehicles-table th:nth-child(3),.worksheet-vehicles-table th:nth-child(4),.worksheet-vehicles-table th:nth-child(5),.worksheet-vehicles-table td:nth-child(3),.worksheet-vehicles-table td:nth-child(4),.worksheet-vehicles-table td:nth-child(5){text-align:center}
.worksheet-panel .status-pill{max-width:100%;width:auto;white-space:normal}
@media screen and (max-width:1000px){.worksheet-paper:not(.worksheet-print-layout){width:100%;min-height:0;padding:32px 22px}}
@media screen and (max-width:600px){.worksheet-paper:not(.worksheet-print-layout){padding:24px 12px}.worksheet-paper:not(.worksheet-print-layout) .worksheet-document-heading{gap:8px}.worksheet-paper:not(.worksheet-print-layout) .worksheet-document-heading h2{font-size:15pt}.worksheet-paper:not(.worksheet-print-layout) .worksheet-reference strong{font-size:11pt}.worksheet-paper:not(.worksheet-print-layout) .worksheet-customer-top{grid-template-columns:1fr}.worksheet-table{font-size:.75rem}.worksheet-table th,.worksheet-table td{padding:8px 4px}}
@page worksheet{size:A4;margin:40mm 18mm 32mm}
@media print{
    :root,body:has(.worksheet-paper){background:#fff;color:#111827;font-size:9pt}
    body:has(.worksheet-paper) .nav,body:has(.worksheet-paper) main>header,.worksheet-screen-only{display:none!important}
    body:has(.worksheet-paper) .shell{display:block;min-height:0}
    body:has(.worksheet-paper) main{min-width:0}
    body:has(.worksheet-paper) .content{padding:0;max-width:none}
    .worksheet-paper{width:auto;max-width:none;min-height:0;border:0;border-radius:0;box-shadow:none;padding:0;margin:0;print-color-adjust:exact;-webkit-print-color-adjust:exact}
    .worksheet-document-heading{break-after:avoid}
    .worksheet-descriptions{box-decoration-break:clone;-webkit-box-decoration-break:clone}
    .worksheet-section-heading{break-inside:avoid}
}
