.service-book-dialog { width: min(1080px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #ccd2d6; border-radius: 8px; color: #20272b; background: #fff; box-shadow: 0 20px 80px #0004; }
.service-book-dialog::backdrop { background: #101b24a6; }
.service-book-dialog > header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid #e1e5e8; position: sticky; top: 0; background: #fff; z-index: 2; }
.service-book-dialog h2 { font-size: 23px; line-height: 1.3; margin: 4px 0 0; overflow-wrap: anywhere; letter-spacing: 0; }
.service-book-dialog [data-close] { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid #cbd3d9; border-radius: 4px; color: #26323b; background: #fff; font-size: 26px; cursor: pointer; }
.service-book-body { padding: 0 24px 24px; }
.service-book-meta { color: #586570; overflow-wrap: anywhere; }
.service-book-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 12px 0 20px; border-bottom: 1px solid #e1e5e8; }
.service-book-overview dt { font-size: 12px; color: #596671; margin-bottom: 6px; }
.service-book-overview dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.service-book-dialog p { white-space: pre-wrap; overflow-wrap: anywhere; }
.service-book-existing-note { border-left: 3px solid #c39134; padding: 8px 12px; }
.service-book-notice { color: #166444; }
.service-book-notice:empty { display: none; }
.service-book-form { padding: 16px 0 22px; }
.service-book-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.service-book-form legend { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.service-book-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service-book-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
.service-book-form input:not([type=checkbox]), .service-book-form textarea { box-sizing: border-box; width: 100%; min-width: 0; border: 1px solid #bec8cf; border-radius: 4px; padding: 9px 11px; background: #fff; color: #20272b; font: inherit; }
.service-book-form textarea { resize: vertical; min-height: 76px; }
.service-book-wide { grid-column: 1 / -1; }
.service-book-save { display: flex; justify-content: flex-end; margin-top: 14px; }
.service-book-correction { padding: 14px 0; color: #922a24; }
.service-book-correction label:first-child { flex-direction: row; align-items: center; margin-bottom: 10px; }
.service-book-correction input[type=checkbox] { width: 18px; height: 18px; }
.service-book-error { color: #a32d25; }
.service-book-tabs { display: flex; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid #e1e5e8; }
.service-book-tabs button { background: #f2f4f5; color: #303e49; border: 1px solid #cdd5da; border-radius: 4px; padding: 9px 16px; font: inherit; cursor: pointer; }
.service-book-tabs button[aria-selected=true] { color: #733c00; background: #fff0db; border-color: #d18a27; font-weight: 700; }
.service-book-event { padding: 18px 0 18px 14px; border-bottom: 1px solid #e1e5e8; border-left: 3px solid #b9c3cb; }
.service-book-event-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.service-book-event time, .service-book-event small { color: #626d75; font-size: 12px; }
.service-book-event p { margin: 8px 0; }
.service-book-service { border-left-color: #25815b; }
.service-book-repair { border-left-color: #cf862e; }
.service-book-issue { border-left-color: #c34a43; }
.service-book-linked { background: #fff8ed; }
.service-book-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; color: #56616a; font-size: 13px; }
.service-book-result { display: inline-block; margin-top: 10px; padding: 5px 10px; border-radius: 4px; font-weight: 600; }
.service-book-ready { background: #e0f3e7; color: #175435; }
.service-book-wait { background: #fbdcda; color: #5d1e1a; }
.service-book-assignments article { display: grid; gap: 5px; padding: 16px 0; border-bottom: 1px solid #e1e5e8; overflow-wrap: anywhere; }
.service-book-assignments small { color: #626d75; }
.service-book-dialog [hidden] { display: none !important; }
.workshop-vehicle-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .service-book-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); } .service-book-dialog > header { padding: 14px; } .service-book-body { padding: 0 14px 16px; } .service-book-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); } .service-book-fields { grid-template-columns: 1fr; } .service-book-tabs button { padding: 9px 10px; font-size: 13px; } }
