:root{font-family:Segoe UI,Arial,sans-serif;color:#17283d;background:#f2f6fb}*{box-sizing:border-box}body{margin:0}header{background:#205aca;color:white;padding:20px 5%;display:flex;gap:24px;align-items:center}header strong{font-size:24px}main{max-width:1180px;margin:24px auto;padding:0 20px 50px}aside{background:#fff2cb;padding:16px;border-radius:10px;color:#664c00}section{background:white;padding:24px;border-radius:16px;margin-top:20px;box-shadow:0 4px 20px #16345c08}h1,h2{margin:0 0 18px}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.toolbar h1,.toolbar h2{margin-right:auto;margin-bottom:0}label{display:flex;flex-direction:column;gap:7px;font-weight:600;margin-bottom:16px}input,select,textarea,button{font:inherit;border:1px solid #c5d2e3;border-radius:8px;padding:12px;min-height:48px;max-width:100%}input,select,textarea{width:100%;background:white;color:#17283d}button{background:#205aca;color:white;cursor:pointer;font-weight:600;border-color:transparent}button.secondary{background:#eaf0f8;color:#23456e}button:disabled{opacity:.55;cursor:wait}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #86b4ff;outline-offset:2px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 18px}.filters{display:grid;grid-template-columns:2fr 1fr;gap:18px;margin-top:24px}.card{border:1px solid #dce5f1;border-radius:12px;padding:18px;margin:12px 0;display:flex;gap:18px;align-items:center}.card div{flex:1;min-width:0;overflow-wrap:anywhere}.card h3{margin:0 0 8px}.card p{margin:5px 0;color:#536880}.badge{background:#eaf0f8;padding:6px 12px;border-radius:20px;display:inline-block}.line{background:#f4f7fb;padding:16px;border-radius:12px;margin:12px 0;display:grid;grid-template-columns:3fr 1fr 1fr 1.5fr 1fr auto;gap:10px;align-items:end}.line label{margin:0}#saveStatus,#connection{white-space:pre-wrap}#saveStatus{color:#942a20;font-weight:600}#total{font-size:20px;font-weight:700}#login{max-width:540px}#updated{color:#536880;font-size:14px}[hidden]{display:none!important}@media(max-width:900px){.line{grid-template-columns:repeat(3,minmax(0,1fr))}.line label:first-child{grid-column:1/-1}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){header{flex-direction:column;align-items:flex-start;gap:5px}main{padding:0 12px 30px}section{padding:18px}.grid,.filters{grid-template-columns:1fr}.card{flex-wrap:wrap}.card div{flex-basis:100%}.toolbar button{flex:1}button{min-height:50px}.line{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Portrait-first home shared by tablet and phone. */
main{max-width:880px}.subject-label{font-size:13px;margin:0;max-width:240px}.global-search{margin-top:26px}.global-search>label{font-size:20px}.global-search>input{font-size:18px;min-height:58px}.global-search p{color:#536880;font-size:14px}.global-search .demo-switch{flex-direction:row;align-items:center;font-size:14px;font-weight:400;margin:16px 0;gap:10px}.demo-switch input{width:22px;min-height:22px;height:22px;flex:none}.home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:26px 0}.home-action{min-height:116px;text-align:left;padding:22px;display:flex;flex-direction:column;justify-content:center;gap:10px}.home-action strong{font-size:21px}.home-action span{font-size:14px;font-weight:400}.orders-heading{padding-top:20px;border-top:1px solid #dce5f1}.search-result{width:100%;display:flex;flex-direction:column;text-align:left;gap:5px;margin:10px 0;overflow-wrap:anywhere}.result-kind{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#516d91}.search-result>span:last-child{font-size:14px;font-weight:400}dialog{border:1px solid #dce5f1;border-radius:16px;width:min(620px,94vw);padding:24px}dialog::backdrop{background:#17283d77}.demo-note{background:#fff2cb;padding:12px;font-size:14px}dt{color:#536880;margin-top:14px}dd{margin:5px 0;overflow-wrap:anywhere}body.green header,body.green button:not(.secondary){background:#147d54}body.green button.secondary{background:#e5f3eb;color:#185b40}@media(max-width:550px){.home-actions{gap:10px}.home-action{padding:15px;min-height:120px}.home-action strong{font-size:18px}.home-action span{font-size:12px}.subject-label{max-width:100%;width:100%;margin:12px 0}.toolbar h1{width:100%}.global-search>input{font-size:16px}.grid{grid-template-columns:1fr}}
/* Same palette as the Windows home screen. */
body{background:#f5f7fb;font-family:Arial,sans-serif;color:#172033}header{background:#14253f;max-width:none;justify-content:space-between;padding:20px max(20px,calc((100vw - 840px)/2));gap:16px}header .subject-label{color:white;max-width:none;min-width:260px;font-size:14px}header select{color:#172033;background:white;font-size:18px}main{margin-top:0}#workspace{margin-top:0;border-radius:0 0 16px 16px;padding-top:22px}.home-actions{margin:0 0 18px;gap:16px}.home-actions .home-action{color:white;border-radius:14px;min-height:140px;padding:24px 20px;box-shadow:0 5px 16px #14253f18}.home-actions .home-action strong{font-size:25px}.home-actions #newStorage{background:#2563eb}.home-actions #newInvoice{background:#168052}.home-actions #newOrder{background:#2563eb}.home-actions #newCustomer{background:#334969}body.green{background:#f2f8f4}body.green header{background:#123b2c}body.green header select{border-color:#86efac}body.green .home-actions #newStorage,body.green .home-actions #newOrder{background:#15803d}body.green .home-actions #newInvoice{background:#166534}body.green .home-actions #newCustomer{background:#2d5944}.home-action:hover{filter:brightness(.94)}.global-search{margin-top:24px}.test-info{font-size:14px;color:#64748b;margin:20px 0}.test-info summary{cursor:pointer;padding:8px 0}.test-info .toolbar{margin-top:12px}#connection{font-size:13px;color:#64748b;padding:0 4px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@media(max-width:550px){header{padding:18px 26px;align-items:stretch;gap:12px}header .subject-label{margin:0;min-width:0;width:100%}.home-actions{gap:12px}.home-actions .home-action{min-height:130px;padding:20px 14px}.home-actions .home-action strong{font-size:20px}.home-actions .home-action span{font-size:12px}#workspace{padding:18px 14px}}
/* Single column launcher in the requested order, on both portrait sizes. */
#workspace>.global-search{margin:0 0 20px}.home-actions{grid-template-columns:minmax(0,1fr);gap:12px}.home-actions .home-action{min-height:104px;padding:20px 24px;gap:7px}.home-actions #newOrder,body.green .home-actions #newOrder{background:#2563eb}.home-actions #newStorage,body.green .home-actions #newStorage{background:#7c3aed}.home-actions #newInvoice,body.green .home-actions #newInvoice{background:#168052}.home-actions #newCustomer,body.green .home-actions #newCustomer{background:#334969}.test-info .demo-switch{display:flex;flex-direction:row;align-items:center;font-size:14px;font-weight:400;margin:16px 0;gap:10px}@media(max-width:550px){.home-actions .home-action{min-height:96px;padding:18px 20px}.home-actions .home-action strong{font-size:22px}.home-actions .home-action span{font-size:13px}}
.home-actions .home-action{align-items:center;text-align:center;justify-content:center}.home-actions .home-action strong{font-family:Arial,Helvetica,sans-serif;font-size:28px;font-weight:700;line-height:1.25;letter-spacing:.2px}#featureInfo:empty{display:none}@media(max-width:550px){.home-actions .home-action strong{font-size:25px}}
.customer-hint{font-size:14px;color:#52667c;line-height:1.5}.customer-lookup{margin-bottom:20px}.customer-option{display:flex;flex-direction:column;gap:8px;align-items:flex-start;width:100%;text-align:left;margin:8px 0;padding:16px}.customer-option span{font-size:14px;font-weight:400;overflow-wrap:anywhere}#customerSuggestions{border:1px solid #c5d2e3;border-radius:12px;padding:8px;max-height:360px;overflow:auto}#customerStatus{white-space:pre-wrap;font-weight:600;line-height:1.5}#customerEditor .toolbar{margin-bottom:24px}#customerForm>.toolbar{margin-top:20px}@media(max-width:550px){#customerForm>.toolbar{flex-direction:column;align-items:stretch}}
.card-navigation{position:sticky;top:0;background:white;z-index:2;padding:12px 0;margin-bottom:18px;flex-wrap:nowrap}.card-navigation button{flex:0 0 auto;white-space:nowrap}.card-navigation h2{font-size:23px;margin:0;overflow-wrap:anywhere}
.order-submit-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}.order-submit-actions button{min-height:54px;padding:12px 8px;font-size:16px}
.wheel-detail{border:1px solid #d6e1ee;border-radius:12px;margin:12px 0;padding:16px}.wheel-detail>summary{cursor:pointer;font-size:18px;font-weight:700;padding:6px 0}.wheel-detail .grid{padding-top:18px}.storage-suggestions{border:1px solid #c5d2e3;border-radius:12px;padding:8px;max-height:360px;overflow:auto}#storageStatus{font-weight:600;white-space:pre-wrap}#saveStorage{margin-top:16px;min-height:54px}
.storage-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}.storage-actions button{margin:0!important;min-height:54px;padding:12px 8px;font-size:16px}.storage-actions #storageEmail{grid-column:1/-1}#storageDocumentFrame{display:block;width:100%;height:55vh;border:1px solid #d5dfeb;border-radius:8px;margin:16px 0;background:white}#storageDocumentDialog{width:min(760px,96vw);max-height:94vh;overflow:auto}#storageDocumentStatus{white-space:pre-wrap;line-height:1.5}
.wheel-photos{border-top:1px solid #e0e7ef;padding-top:18px;margin-top:10px}.photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.photo-grid figure{margin:0 0 18px;min-width:0}.photo-view{display:block;width:100%;padding:0!important;overflow:hidden}.photo-view img{display:block;width:100%;height:140px;object-fit:cover}.photo-grid figcaption{font-size:13px;color:#52667c;padding:6px 0}.photo-grid figure>button:last-child{font-size:13px;min-height:40px;padding:8px 12px}#wheelPhotoDialog{width:min(800px,96vw);max-height:94vh;overflow:auto}#wheelPhotoLarge{display:block;max-width:100%;max-height:75vh;object-fit:contain;margin:16px auto 0}
#exchangeStorage{width:100%;min-height:54px;margin:20px 0 0}#storageHistory:empty,#storageExchangeInfo:empty{display:none}#storageExchangeInfo:not(:empty){background:#edf5ff;padding:14px;border-radius:10px}#customerStorages{border-top:1px solid #dce5f1;margin-top:28px;padding-top:10px}
#customerStorages .storage-set{padding:18px;gap:12px}.set-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;flex-wrap:wrap}.set-heading strong{font-size:20px;padding:7px 12px;border-radius:8px}.season-summer{background:#fff0c2;color:#794b00}.season-winter{background:#dbeafe;color:#1d4ed8}.season-allseason{background:#d5f3ec;color:#126451}.season-unknown{background:#e4e9ef;color:#40536c}.set-state{font-size:13px;font-weight:700}#customerStorages .storage-set-issued{background:#fff1f2;color:#8b2636}
.invoice-line{border:1px solid #d9e2ef;border-radius:12px;padding:16px;margin:14px 0}.invoice-line label:first-child{grid-column:1/-1}.invoice-line label{margin-bottom:8px}#invoiceForm>label{margin-top:24px}#invoiceTotal{font-size:22px;font-weight:700}#invoiceStatus{white-space:pre-wrap;line-height:1.5}#invoicePrintDialog{width:min(800px,96vw);max-height:94vh;overflow:auto}#invoicePrintFrame{width:100%;height:65vh;border:1px solid #d9e2ef;margin:16px 0}#saveInvoice,#printInvoice{min-height:54px}

.home-actions #openOrders,body.green .home-actions #openOrders{background:#2563eb}.home-actions #openStorages,body.green .home-actions #openStorages{background:#7c3aed}.home-actions #openInvoices,body.green .home-actions #openInvoices{background:#168052}.home-actions #openCustomers,body.green .home-actions #openCustomers{background:#334969}
#sectionSearch{width:100%;min-height:54px;font-size:18px;margin:4px 0 16px}#sectionCreate{margin-bottom:16px}#sectionCreate button{min-height:48px}.record-table{display:table;width:100%;table-layout:fixed;border-collapse:collapse}.record-table th,.record-table td{text-align:left;padding:14px 9px;border-bottom:1px solid #dce5f1;vertical-align:top;overflow-wrap:anywhere;font-size:14px}.record-table th{background:#edf2f9;font-size:13px}.record-table th:first-child{width:39%}.record-table th:nth-child(2){width:31%}.record-table th:last-child{width:30%}.record-table tbody tr:nth-child(even){background:#f5f8fc}.record-table .record-open{background:none!important;color:#175cb6!important;font-size:15px;font-weight:700;padding:6px 0;min-height:44px;text-align:left;margin:0;width:100%;border-radius:0}.record-customer{display:block;font-size:13px;margin-top:4px}.record-table .record-issued{background:#fff0f1!important}#sectionCount{color:#52667c;font-size:14px}@media(max-width:550px){.record-table th,.record-table td{padding:12px 6px;font-size:12px}.record-table .record-open{font-size:13px}.record-customer{font-size:12px}}

#customerForm .customer-identity{grid-column:1/-1}.customer-ares{display:flex;gap:12px;align-items:end;margin-bottom:16px}.customer-ares label{flex:1;margin:0}.customer-ares button{flex:0 0 auto;min-height:48px}@media(max-width:420px){.customer-ares{flex-wrap:wrap}.customer-ares label{flex-basis:100%}.customer-ares button{width:100%}}

.plate-camera{font-size:14px;min-height:44px}.plate-hint{font-size:12px;font-weight:400;color:#52667c;line-height:1.4}#plateDialog{max-height:94vh;overflow:auto}#platePhoto{display:block;width:100%;max-height:35vh;object-fit:contain;margin-bottom:16px}#platePhoto:not([src]){display:none}#plateStatus{white-space:pre-wrap;line-height:1.5}#plateValue{text-transform:uppercase;font-size:24px;letter-spacing:2px}#plateOptions{margin:12px 0}

.technical-button{font-size:14px;min-height:44px}#technicalDialog{max-height:94vh;overflow:auto}#technicalDialog>.toolbar{margin-bottom:16px}#technicalDialog h2{font-size:22px}#technicalHint{font-size:14px;line-height:1.5;color:#52667c}#technicalLinks{display:grid;gap:12px;margin-top:20px}.technical-link{display:block;padding:16px;background:#eaf0f8;border:1px solid #c5d2e3;border-radius:9px;color:#175cb6;text-decoration:none;font-weight:600}.technical-link:focus-visible{outline:3px solid #86b4ff;outline-offset:2px}

#vehicleOptions{margin:0 0 20px;gap:8px}#vehicleOptions button{font-size:14px;padding:10px;min-height:42px}#vehicleValue{font-size:19px}

#orderPricing{margin-top:24px}#orderPricing h3{margin-bottom:8px}#lines .order-work-line{grid-template-columns:minmax(0,1fr) 86px 44px;padding:12px;gap:10px}#lines .order-work-line label:first-child{grid-column:auto}#lines .order-work-line>button{padding:6px;font-size:25px;min-height:48px}#lines .order-work-line input{padding:10px;font-size:16px}#orderNoteDetails{margin-top:22px;border-top:1px solid #dce5f1;padding-top:16px}#orderNoteDetails summary{cursor:pointer;font-weight:600;margin-bottom:12px}@media(max-width:550px){#lines .order-work-line{grid-template-columns:minmax(0,1fr) 70px 38px;gap:6px;padding:10px}#lines .order-work-line label{font-size:12px}#lines .order-work-line input{padding:8px;font-size:15px}}

.invoice-actions{gap:12px;margin:20px 0}.invoice-actions button{min-height:54px}#invoiceQrDialog{width:min(540px,95vw);max-height:94vh;overflow:auto}#invoiceQrImage{display:block;width:min(100%,360px);height:auto;margin:14px auto;background:white}#invoiceQrDetails{display:grid;grid-template-columns:1fr 2fr;gap:10px;font-size:15px}#invoiceQrDetails dt{font-weight:600}#invoiceQrDetails dd{margin:0;overflow-wrap:anywhere}#invoiceEmailDialog{width:min(800px,96vw);max-height:94vh;overflow:auto}#invoiceEmailFrame{width:100%;height:45vh;border:1px solid #d9e2ef}#invoiceEmailStatus{white-space:pre-wrap;line-height:1.5}
.home-actions #openCalendar,body.green .home-actions #openCalendar{background:#b45309}
.calendar-day{margin:22px 0;padding:16px;border:1px solid #d9e2ef;border-radius:12px;background:#fff}.calendar-day h3{margin-top:0;text-transform:capitalize}.calendar-booking{display:flex;flex-direction:column;gap:8px;width:100%;text-align:left;margin:10px 0;white-space:normal;overflow-wrap:anywhere}.calendar-booking span{font-weight:400;font-size:14px}.calendar-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}.calendar-slots button{min-height:44px;padding:10px 4px}#calendarCard .toolbar{flex-wrap:wrap}#calendarCard input,#calendarCard select{min-width:0;max-width:100%}#calendarStatus{white-space:pre-wrap}#bookingForm{margin-top:20px}
.booking-quick-mode{display:flex;align-items:center;gap:12px;margin:20px 0;font-size:15px}.booking-quick-mode input{width:22px;height:22px;min-height:22px;flex:0 0 22px;margin:0}
#bookingLinesSection{margin:24px 0}.booking-work-line{display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:10px;border:1px solid #d9e2ef;border-radius:10px;padding:12px;margin:12px 0}.booking-work-line label{margin:0}.booking-work-line .storage-suggestions,.booking-work-line .customer-hint{grid-column:1/-1}.booking-work-line input{min-width:0;width:100%}#addBookingLine{min-height:46px}
.booking-work-line>label:first-child{grid-column:1/-1}.booking-work-line>label:nth-of-type(3){grid-column:1/-1}.booking-work-line>label:nth-of-type(5){grid-column:1/-1}.booking-work-line select{width:100%}.booking-work-line [data-booking-line-price-info]{grid-column:1/-1}.booking-work-line [data-booking-line-price-info]:empty{display:none}
.booking-work-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.booking-work-line>label:nth-of-type(3),.booking-work-line>label:nth-of-type(5){grid-column:auto}.booking-work-line label{font-size:14px}.booking-work-line input,.booking-work-line select{padding:10px;font-size:16px}
.calendar-overdue{background:#fff5e6;border:1px solid #f1c784;padding:16px;margin-top:18px}.calendar-overdue h3{margin-top:0;color:#8b4b09}.calendar-task-list{border-bottom:1px solid #dce5f1;padding-bottom:14px;margin-bottom:16px}.calendar-task-list h4{margin:8px 0 12px}.calendar-task{display:flex;align-items:flex-start;gap:8px;margin:8px 0}.calendar-task-check{margin:0;display:flex;align-items:center;justify-content:center;flex:0 0 44px;min-height:48px}.calendar-task-check input{width:24px;height:24px;min-height:24px;margin:0}.calendar-task-open{flex:1;min-width:0;text-align:left;white-space:normal;overflow-wrap:anywhere}.calendar-task-done .calendar-task-open{text-decoration:line-through;color:#65758b;background:#f2f4f7}#calendarTaskDialog{width:min(560px,95vw);max-height:94vh;overflow:auto}#calendarTaskForm{margin-top:18px}#calendarTaskStatus{white-space:pre-wrap}
.home-actions #openStock,body.green .home-actions #openStock{background:#087c88}.stock-pages{margin:20px 0}#stockStatus{white-space:pre-wrap}#stockDetailDialog{width:min(640px,95vw);max-height:94vh;overflow:auto}#stockDetailFields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:12px}#stockDetailFields dt{font-weight:600}#stockDetailFields dd{margin:0;overflow-wrap:anywhere}#stockCard .record-table th:first-child{width:28%}#stockCard .record-table th:nth-child(2){width:40%}#stockCard .record-table th:last-child{width:32%}
#stockCard .record-table th:first-child{width:20%}#stockCard .record-table th:nth-child(2){width:23%}#stockCard .record-table th:nth-child(3){width:22%}#stockCard .record-table th:nth-child(4){width:15%}#stockCard .record-table th:last-child{width:20%}#stockCard .record-table td:last-child{font-weight:700}@media(max-width:550px){#stockCard{padding:18px 10px}#stockCard .record-table th,#stockCard .record-table td{font-size:11px;padding:12px 4px}#stockCard .record-table .record-open{font-size:12px}#stockCard .record-customer{font-size:10px}}
.invoice-stock-button,.invoice-stock-suggestions,.invoice-stock-hint{grid-column:1/-1}.invoice-stock-suggestions{width:100%;min-width:0}.invoice-stock-hint:empty{display:none}.invoice-stock-suggestions .customer-option{white-space:normal;overflow-wrap:anywhere}.invoice-stock-suggestions p{margin:6px}.invoice-stock-button{min-height:44px}
