/* Service — "My vehicles", vehicle history (inside the theme) and the digital service report (stand-alone) */

/* ---------- Account pages ---------- */
.svc-plate { display: inline-block; border: 2px solid #222; border-radius: 4px; padding: 2px 8px; font-family: "Courier New", monospace; font-weight: 700; font-size: 18px; letter-spacing: 2px; background: #fff; color: #111; line-height: 1.3; }
.svc-vehicles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 10px 0 25px; }
.svc-vcard { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid #e3e3e3; border-radius: 6px; color: inherit; text-decoration: none !important; background: #fff; transition: box-shadow .15s, border-color .15s; }
.svc-vcard:hover { border-color: #bbb; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); color: inherit; }
.svc-vcard .svc-plate { align-self: flex-start; }
.svc-vcard-title { font-size: 16px; font-weight: 600; }
.svc-vcard-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.svc-vcard-facts small { display: block; color: #888; font-size: 11px; text-transform: uppercase; letter-spacing: .3px; }
.svc-next { font-size: 13px; color: #31708f; }
.svc-vcard-link { margin-top: auto; font-weight: 600; font-size: 13px; }

.svc-vehicle-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 5px 0 20px; }
.svc-next-alert { margin-bottom: 20px; }
.svc-timeline-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 25px; }
.svc-visit { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid #e3e3e3; border-radius: 6px; color: inherit; text-decoration: none !important; background: #fff; }
.svc-visit:hover { border-color: #bbb; color: inherit; box-shadow: 0 3px 10px rgba(0, 0, 0, .06); }
.svc-visit-date { flex: 0 0 92px; font-weight: 600; }
.svc-visit-date small { display: block; color: #888; font-weight: 400; }
.svc-visit-body { flex: 1; min-width: 0; }
.svc-visit-top { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.svc-visit-km { color: #888; font-size: 13px; }
.svc-visit-summary { display: block; font-size: 13px; color: #555; }
.svc-visit-total { flex: 0 0 auto; text-align: right; font-weight: 700; }
.svc-visit-total small { display: block; font-weight: 400; color: #1e91cf; font-size: 12px; }
@media (max-width: 600px) {
  .svc-visit { flex-wrap: wrap; }
  .svc-visit-body { flex-basis: 100%; order: 3; }
}

/* ---------- My garage ---------- */
.svc-garage-intro { color: #555; margin-bottom: 18px; }
.svc-vcard.is-main { border-color: #e39b2b; box-shadow: 0 0 0 1px #e39b2b inset; }
.svc-vcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; min-height: 30px; }
.svc-vcard-title { color: inherit; text-decoration: none !important; }
a.svc-vcard-title:hover { text-decoration: underline !important; }
.svc-main-badge { font-size: 12px; font-weight: 700; color: #a66d00; background: #fff4e0; border-radius: 12px; padding: 2px 10px; }
.svc-link-btn { background: none; border: 0; padding: 0; color: #1e6fb8; font-size: 13px; cursor: pointer; text-decoration: none; }
.svc-link-btn:hover { text-decoration: underline; }
.svc-danger { color: #c9403b; }
.svc-muted { color: #888; font-size: 13px; }
.svc-fits { font-size: 13px; color: #2e7d32; }
.svc-vcard-actions { display: flex; align-items: center; gap: 14px; margin-top: auto; flex-wrap: wrap; }
.svc-vcard-actions .svc-vcard-link { margin-top: 0; margin-right: auto; }
.svc-garage-add { margin: 10px 0 30px; }
.svc-garage-form { max-width: 640px; border: 1px solid #e3e3e3; border-radius: 6px; padding: 18px 20px; background: #fff; }
.svc-garage-form h2 { font-size: 18px; margin: 0 0 14px; }
.svc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.svc-form-row[hidden] { display: none; }
.svc-form-row label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; margin: 0; }
.svc-form-row label small { font-weight: 400; }
.svc-plate-input { text-transform: uppercase; font-family: "Courier New", monospace; font-weight: 700; letter-spacing: 1px; }
.svc-form-error { margin: 0 0 10px; }
.svc-form-buttons { display: flex; gap: 10px; }
@media (max-width: 600px) { .svc-form-row { grid-template-columns: 1fr; } }

.svc-head-edit { margin-left: auto; }
.svc-section-title { font-size: 18px; margin: 26px 0 12px; }
.svc-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 14px; }
.svc-product { display: flex; flex-direction: column; gap: 6px; border: 1px solid #eee; border-radius: 6px; padding: 10px; color: inherit; text-decoration: none !important; background: #fff; }
.svc-product:hover { border-color: #bbb; box-shadow: 0 3px 10px rgba(0, 0, 0, .06); color: inherit; }
.svc-product img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.svc-product-name { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.svc-product-price { margin-top: auto; font-size: 14px; }
.svc-product-price s { color: #999; font-size: 12px; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.svc-chip { border: 1px solid #ddd; border-radius: 16px; padding: 4px 12px; font-size: 13px; color: inherit; text-decoration: none !important; background: #fff; }
.svc-chip:hover { border-color: #999; color: inherit; }
.svc-chip small { color: #888; margin-left: 4px; }
.svc-purchases { padding-left: 18px; margin-bottom: 10px; }
.svc-purchases li { margin-bottom: 4px; }

/* Home page block (filled with AJAX) and "save to your garage?" */
[data-svc-garage-block]:empty { display: none; }
.svc-gblock { margin: 20px 0; }
.svc-gblock-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.svc-gblock-head h3 { margin: 0; font-size: 20px; }
.svc-gblock-links { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.svc-gprompt { position: fixed; z-index: 9999; right: 16px; bottom: 16px; max-width: 340px; background: #fff; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 8px 30px rgba(0, 0, 0, .18); padding: 14px 16px; font-size: 14px; }
.svc-gprompt p { margin: 0 0 10px; }
.svc-gprompt-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 480px) { .svc-gprompt { left: 16px; max-width: none; } }

/* ---------- Digital service report (stand-alone page) ---------- */
.svr-body { margin: 0; background: #eef0f2; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #222; font-size: 14px; line-height: 1.5; }
.svr-toolbar { max-width: 860px; margin: 0 auto; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.svr-toolbar a { color: #1e6fb8; text-decoration: none; }
.svr-toolbar button { border: 1px solid #ccc; background: #fff; border-radius: 4px; padding: 6px 14px; cursor: pointer; font-size: 14px; }
.svr-page { max-width: 860px; margin: 0 auto 40px; background: #fff; padding: 32px 36px; border-radius: 6px; box-shadow: 0 2px 16px rgba(0, 0, 0, .07); box-sizing: border-box; }
.svr-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 3px solid #222; margin-bottom: 22px; }
.svr-logo { max-height: 60px; max-width: 220px; display: block; margin-bottom: 8px; }
.svr-store-name { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.svr-store-info { font-size: 12px; color: #666; }
.svr-title { text-align: right; }
.svr-title h1 { margin: 0 0 8px; font-size: 22px; }
.svr-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; color: #fff; background: #777; }
.svr-badge-info { background: #31a5c8; } .svr-badge-warning { background: #e39b2b; } .svr-badge-primary { background: #2c6db0; }
.svr-badge-success { background: #3e9b46; } .svr-badge-danger { background: #c9403b; } .svr-badge-default { background: #777; }
.svr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.svr-box { border: 1px solid #e3e3e3; border-radius: 6px; padding: 14px 16px; }
.svr-body h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: #888; margin: 0 0 8px; font-weight: 700; }
.svr-plate { display: inline-block; border: 2px solid #222; border-radius: 4px; padding: 1px 8px; font-family: "Courier New", monospace; font-weight: 700; font-size: 18px; letter-spacing: 2px; margin-bottom: 6px; }
.svr-strong { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.svr-box dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: 13px; }
.svr-box dt { color: #888; }
.svr-box dd { margin: 0; }
.svr-section { margin-bottom: 18px; }
.svr-text { white-space: pre-line; margin: 0; }
.svr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.svr-table th { text-align: left; border-bottom: 2px solid #222; padding: 6px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #555; }
.svr-table td { padding: 6px; border-bottom: 1px solid #eee; vertical-align: top; }
.svr-table td small { display: block; color: #888; font-size: 11px; }
.svr-table .svr-num { text-align: right; white-space: nowrap; }
.svr-group td { background: #f6f7f8; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #666; }
.svr-table tfoot td { border-bottom: none; text-align: right; padding: 3px 6px; }
.svr-table tfoot tr:first-child td { border-top: 2px solid #222; padding-top: 8px; }
.svr-grand td { font-size: 17px; font-weight: 700; }
.svr-vat td { color: #888; font-size: 12px; }
.svr-approval { border: 2px solid #e39b2b; background: #fff8ec; border-radius: 6px; padding: 16px 18px; margin-bottom: 18px; }
.svr-approval h2 { color: #a66d00; font-size: 14px; }
.svr-approval p { margin: 0 0 10px; }
.svr-approval textarea { width: 100%; box-sizing: border-box; border: 1px solid #ddd; border-radius: 4px; padding: 8px; font: inherit; margin-bottom: 10px; }
.svr-approval-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.svr-btn { border: none; border-radius: 4px; padding: 11px 22px; font-size: 15px; font-weight: 600; cursor: pointer; color: #fff; }
.svr-btn-ok { background: #3e9b46; }
.svr-btn-no { background: #fff; color: #c9403b; border: 1px solid #c9403b; }
.svr-alert { padding: 10px 14px; border-radius: 4px; margin: 0 0 18px; }
.svr-alert-success { background: #e8f5e9; color: #2e6b32; border: 1px solid #c3e2c5; }
.svr-alert-danger { background: #fdecea; color: #a12f2b; border: 1px solid #f3c4c1; }
.svr-next { background: #eef6fb; border: 1px solid #cfe5f3; border-radius: 6px; padding: 10px 14px; margin-bottom: 18px; }
.svr-timeline { list-style: none; padding: 0; margin: 0; }
.svr-timeline li { padding: 6px 0 6px 14px; border-left: 2px solid #e3e3e3; margin-left: 4px; }
.svr-muted { color: #888; font-size: 12px; margin-left: 6px; }
.svr-footer { border-top: 1px solid #e3e3e3; padding-top: 14px; margin-top: 10px; font-size: 12px; color: #666; }
.svr-footer p { margin: 0 0 6px; }

@media (max-width: 640px) {
  .svr-page { padding: 20px 16px; border-radius: 0; }
  .svr-grid { grid-template-columns: 1fr; }
  .svr-title { text-align: left; }
}

@media print {
  .svr-body { background: #fff; }
  .svr-toolbar, .svr-no-print { display: none !important; }
  .svr-page { box-shadow: none; padding: 0; max-width: none; margin: 0; }
  .svr-badge { border: 1px solid #555; color: #000; background: #fff !important; }
}

/* Warranty, QR */
.svr-badge-warranty { background: #6f42c1; margin-left: 4px; }
.svr-strike { text-decoration: line-through; color: #999; }
.svr-table .svr-num small { color: #6f42c1; font-weight: 600; }
.svr-warranty td { color: #6f42c1; }
.svr-qr { width: 76px; height: 76px; margin: 10px 0 0 auto; }
.svr-qr svg { width: 100%; height: 100%; display: block; }
.svr-qr:empty { display: none; }
@media (max-width: 640px) { .svr-qr { margin-left: 0; } }

/* Attachments */
.svr-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.svr-file { display: flex; flex-direction: column; border: 1px solid #e3e3e3; border-radius: 6px; overflow: hidden; color: inherit; text-decoration: none; background: #fff; }
.svr-file:hover { border-color: #bbb; }
.svr-file img { width: 100%; height: 120px; object-fit: cover; display: block; background: #f3f3f3; }
.svr-file-icon { height: 120px; display: flex; align-items: center; justify-content: center; background: #fbeaea; color: #c9403b; font-weight: 800; font-size: 22px; letter-spacing: 1px; }
.svr-file-name { padding: 8px 10px; font-size: 13px; word-break: break-word; }
.svr-file-name small { display: block; color: #888; font-size: 11px; }
@media print { .svr-file:not(.svr-file-image) { display: none; } .svr-file img { height: 160px; } }
