:root{--radar-navy:#102a43;--radar-blue:#1769e0;--radar-sky:#eaf3ff;--radar-ink:#172b4d;--radar-muted:#60738a;--radar-line:#dce5ef;--radar-surface:#fff;--radar-canvas:#f4f7fb;--radar-success:#087f5b;--radar-radius:14px;--radar-shadow:0 8px 24px rgba(16,42,67,.08)}
html{min-height:100%;font-size:15px}body{min-height:100vh;margin:0;color:var(--radar-ink);background:var(--radar-canvas);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.45}a{color:var(--radar-blue)}a:hover{color:#0e56ba}
.app-topbar{min-height:42px;background:var(--radar-navy);color:#dbeafe;font-size:.84rem}.app-topbar .user-name{color:#fff;font-weight:650}.app-topbar .role-chip{color:#b9d5ff}.app-topbar .btn-logout{border-color:rgba(255,255,255,.35);color:#fff}.app-topbar .btn-logout:hover{background:#fff;color:var(--radar-navy)}
.radar-navbar{min-height:68px;background:rgba(255,255,255,.96)!important;border:0!important;box-shadow:0 1px 0 var(--radar-line),0 4px 12px rgba(16,42,67,.04)}.radar-brand{display:inline-flex;align-items:center;gap:.65rem;color:var(--radar-navy)!important;font-weight:800;letter-spacing:-.04em;font-size:1.35rem}.radar-brand img{width:38px;height:38px;object-fit:cover;border-radius:10px;box-shadow:0 4px 10px rgba(16,42,67,.18)}.radar-navbar .nav-link{border-radius:9px;color:#486078!important;font-size:.91rem;font-weight:600;padding:.5rem .7rem!important}.radar-navbar .nav-link:hover,.radar-navbar .nav-link:focus{color:var(--radar-blue)!important;background:var(--radar-sky)}.radar-navbar .dropdown-menu{padding:.5rem;border:1px solid var(--radar-line);border-radius:12px;box-shadow:var(--radar-shadow)}.radar-navbar .dropdown-item{border-radius:8px;padding:.55rem .7rem;font-size:.9rem}.radar-navbar .dropdown-item:hover{background:var(--radar-sky);color:var(--radar-blue)}.nav-utility{margin-right:.75rem;border-color:var(--radar-line);color:var(--radar-muted)}
.radar-main{flex:1 0 auto;padding:2rem 0 3rem}.radar-content{max-width:1440px}h1,h2,h3,h4,h5{color:var(--radar-navy);font-weight:750;letter-spacing:-.025em}h1{font-size:clamp(1.65rem,3vw,2.3rem)}h2{font-size:clamp(1.35rem,2vw,1.75rem)}h3{font-size:1.3rem}
.card,.modal-content{border:1px solid var(--radar-line);border-radius:var(--radar-radius);box-shadow:var(--radar-shadow);background:var(--radar-surface)}.card-body{padding:1.25rem}.card-header,.card-footer{border-color:var(--radar-line);background:transparent;padding:.9rem 1.25rem}.alert{border:0;border-radius:12px;box-shadow:0 2px 8px rgba(16,42,67,.04)}
.btn{border-radius:9px;font-weight:650;padding:.48rem .9rem;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}.btn:hover{transform:translateY(-1px)}.btn-primary{background:var(--radar-blue);border-color:var(--radar-blue);box-shadow:0 3px 8px rgba(23,105,224,.18)}.btn-primary:hover,.btn-primary:focus{background:#105bc6;border-color:#105bc6}.btn-success{background:var(--radar-success);border-color:var(--radar-success)}.btn-outline-primary{border-color:#b8d2fa;color:var(--radar-blue)}.btn-outline-secondary{border-color:#c8d4e1;color:#486078}.btn:focus,.btn:active:focus,.btn-link.nav-link:focus,.form-control:focus,.form-select:focus,.form-check-input:focus{box-shadow:0 0 0 .22rem rgba(23,105,224,.16)}
.form-control,.form-select{min-height:42px;border-color:#cdd9e5;border-radius:9px;color:var(--radar-ink)}.form-control::placeholder{color:#91a1b2}.form-control:focus,.form-select:focus{border-color:#7babef}.form-label{color:#40566f;font-size:.86rem;font-weight:650;margin-bottom:.38rem}.form-check-input:checked{background-color:var(--radar-blue);border-color:var(--radar-blue)}
.table-responsive{border:1px solid var(--radar-line);border-radius:var(--radar-radius);background:#fff;box-shadow:var(--radar-shadow)}table.table{margin:0;color:#314861}.table>:not(caption)>*>*{padding:.72rem .8rem;border-color:#e6edf4;vertical-align:middle}.table thead th,.table-dark th{background:#eef4fa!important;color:#3b546f!important;border-bottom-width:1px;border-color:var(--radar-line)!important;font-size:.75rem;font-weight:750;letter-spacing:.045em;text-transform:uppercase;white-space:nowrap}.table-hover>tbody>tr:hover>*{background:#f4f8fd;color:inherit}.table-striped>tbody>tr:nth-of-type(odd)>*{background:#fbfcfe}.table-warning>*{--bs-table-bg:#fff6dd!important}.table-sm>:not(caption)>*>*{padding:.5rem .6rem}
.home-hero{position:relative;overflow:hidden;padding:clamp(1.5rem,4vw,3rem);border-radius:20px;color:#fff;background:linear-gradient(120deg,#102a43 0%,#134e91 65%,#2076dc 100%);box-shadow:0 18px 40px rgba(16,42,67,.2)}.home-hero:after{content:"";position:absolute;width:360px;height:360px;border-radius:50%;right:-130px;top:-210px;background:rgba(255,255,255,.09)}.home-hero h1{color:#fff;margin:0}.home-hero p{max-width:660px;color:#d9e9ff;margin:.55rem 0 0}.home-module{height:100%;text-decoration:none;color:inherit;overflow:hidden}.home-module .card-body{display:flex;align-items:flex-start;gap:1rem}.home-module:hover{border-color:#a5c8f6;box-shadow:0 13px 28px rgba(16,42,67,.13);color:inherit}.module-icon{display:grid;flex:0 0 auto;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--radar-sky);color:var(--radar-blue);font-size:1.2rem}.module-title{font-weight:750;color:var(--radar-navy)}.module-description{margin:.25rem 0 0;color:var(--radar-muted);font-size:.9rem}
.login-page .radar-main{display:grid;place-items:center;min-height:calc(100vh - 68px);padding:2rem 1rem}.login-page .radar-content{width:min(100%,440px)}.login-card{overflow:hidden}.login-card .card-body{padding:2rem}.login-mark{display:grid;place-items:center;width:48px;height:48px;margin-bottom:1.25rem;border-radius:14px;background:linear-gradient(135deg,#2789ff,#1254b8);color:#fff;font-size:1.3rem;font-weight:800}
.operational-page{max-width:1440px;margin:0 auto}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin:0 0 1.5rem}.page-heading h1{margin:0}.page-heading p{max-width:700px;margin:.35rem 0 0;color:var(--radar-muted)}.eyebrow{display:block;margin-bottom:.3rem;color:var(--radar-blue);font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.page-actions{display:flex;flex-wrap:wrap;gap:.5rem}.page-count{display:flex;min-width:94px;align-items:center;justify-content:center;flex-direction:column;padding:.65rem .9rem;border:1px solid #cfe0f6;border-radius:12px;background:var(--radar-sky);color:var(--radar-blue);line-height:1}.page-count strong{font-size:1.45rem}.page-count span{margin-top:.2rem;font-size:.72rem;font-weight:700;text-transform:uppercase}.workflow-card{padding:1.2rem;border:1px solid var(--radar-line);border-radius:var(--radar-radius);background:var(--radar-surface);box-shadow:var(--radar-shadow)}.operator-card{display:flex;align-items:end;gap:1rem;justify-content:space-between}.operator-card form{min-width:min(100%,350px)}.recognition-card{display:flex;align-items:center;gap:1.25rem;justify-content:space-between;background:linear-gradient(120deg,#fff 0%,#f3f8ff 100%)}.recognition-card .form-control{width:min(100%,300px)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.section-heading h2{color:var(--radar-navy)}.operations-table{overflow:auto}.operations-table table{min-width:850px}.operations-table td,.operations-table th{white-space:nowrap}.operations-table td:nth-child(5),.operations-table td:nth-child(6),.operations-table td:nth-child(7){white-space:normal}.operations-table .btn{white-space:nowrap}.orders-page #status-filters{gap:.35rem}.orders-page #status-filters .form-check{height:100%;padding:.48rem .7rem .48rem 2rem;border:1px solid var(--radar-line);border-radius:9px;background:#fbfdff}.orders-page #status-filters .form-check:has(.form-check-input:checked){border-color:#a7c9f6;background:var(--radar-sky)}.orders-dashboard .card{height:100%}.orders-dashboard .display-6{color:var(--radar-blue);font-size:2rem}.marcatempo-page .bg-warning{--bs-table-bg:#fff8e6}.acceptance-page .form-control,.acceptance-page .form-select{min-width:110px}.acceptance-page .operations-table td:last-child{min-width:240px}.acceptance-page .operations-table .btn{margin:.12rem}.orders-page .collapse>.card{border-radius:var(--radar-radius)}
.whatsapp-conversation .min-w-0{min-width:0}.whatsapp-thread{min-height:320px;max-height:60vh;overflow-y:auto;background:#efeae2}.whatsapp-bubble{max-width:min(75%,620px);padding:.65rem .8rem;border-radius:.75rem;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 1px .5px rgba(11,20,26,.13)}.whatsapp-bubble-inbound{color:#111b21;background:#fff}.whatsapp-bubble-outbound{color:#111b21;background:#d9fdd3}.whatsapp-image-preview{display:block;max-width:220px;max-height:220px;border-radius:.45rem;object-fit:cover}.whatsapp-attachment-preview{cursor:pointer;text-align:left}.whatsapp-pdf-preview{overflow:hidden;width:220px;border-radius:.45rem;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.16)}.whatsapp-pdf-preview iframe{display:block;width:220px;height:150px;border:0;pointer-events:none}.whatsapp-pdf-preview span{display:block;padding:.4rem;font-size:.75rem}.whatsapp-document-preview{width:100%;height:min(70vh,720px);border:0}.whatsapp-preview-dialog{width:min(96vw,1100px);max-width:1100px;max-height:92vh;padding:0;border:0;border-radius:14px;box-shadow:0 24px 80px rgba(0,0,0,.45)}.whatsapp-preview-dialog::backdrop{background:rgba(0,0,0,.68)}.whatsapp-preview-header,.whatsapp-preview-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;background:#fff}.whatsapp-preview-content{max-height:calc(92vh - 132px);overflow:auto;padding:1rem;text-align:center;background:#202c33}.whatsapp-preview-content img{max-width:100%;max-height:calc(92vh - 165px)}.loader-overlay{background:rgba(244,247,251,.7)!important;backdrop-filter:blur(3px)}.loader-box{border-radius:14px!important;box-shadow:var(--radar-shadow)!important}.qp-panel{border-radius:16px!important;border-color:var(--radar-line)!important;box-shadow:0 22px 65px rgba(16,42,67,.25)!important}
@media(max-width:1199.98px){.radar-navbar{min-height:60px}.radar-navbar .navbar-collapse{margin-top:.75rem;padding:.6rem;max-height:calc(100dvh - 145px);overflow-y:auto;border-radius:12px;background:#f7faff}.radar-navbar .nav-link{padding:.65rem .7rem!important}.radar-navbar .dropdown-menu{position:static!important;transform:none!important;width:100%;box-shadow:none;margin:.25rem 0 .5rem}}
@media(max-width:767.98px){html{font-size:14px}.radar-main{padding-top:1.15rem}.table-responsive{border-radius:10px}.table>:not(caption)>*>*{padding:.55rem .6rem}.page-heading,.recognition-card,.operator-card{align-items:stretch;flex-direction:column}.page-actions,.page-actions .btn{width:100%}.page-count{align-self:flex-start;flex-direction:row;gap:.45rem}.operator-card form,.recognition-card .form-control{min-width:0;width:100%}.recognition-card>div:last-child{width:100%;align-items:stretch;flex-direction:column}.workflow-card{padding:1rem}.operations-table table{min-width:720px}}.workshop-print-title{display:none}@media print{.app-topbar,header,.btn,.navbar,.toast-container,.no-print{display:none!important}.workshop-print-title{display:block!important;margin:0 0 14px;border-bottom:2px solid #1b365d;padding-bottom:8px}.workshop-print-title h1{font-size:20pt;margin:0}.workshop-print-title p{font-size:10pt;margin:4px 0 0}body{background:#fff}.radar-main{padding:0}.card,.table-responsive{box-shadow:none}.workflow-card{break-inside:avoid}.table-responsive{overflow:visible!important}.table{font-size:8.5pt}.table td,.table th{padding:.28rem .35rem!important}.workshop-analysis-page a{color:#000!important;text-decoration:none}}
.whatsapp-message-link { color: inherit; text-decoration: underline; overflow-wrap: anywhere; }
.whatsapp-special-message { display: flex; align-items: flex-start; gap: .55rem; min-width: 190px; padding: .15rem 0; }
.whatsapp-special-message > span { font-size: 1.35rem; line-height: 1.2; }
.whatsapp-location-link { color: inherit; text-decoration: none; cursor: pointer; }
.whatsapp-location-link:hover { color: inherit; text-decoration: none; filter: brightness(.96); }

/* Marcatempo: dati operativi leggibili senza rinunciare ai dettagli */
.marcatempo-results td{vertical-align:middle}.marcatempo-results details summary{cursor:pointer;color:var(--radar-blue)}.marcatempo-results .badge{font-weight:700}.empty-state{display:flex;flex-direction:column;gap:.3rem;align-items:flex-start;padding:2rem 1rem;text-align:center;color:var(--radar-muted)}
@media(max-width:767.98px){.marcatempo-results table{min-width:690px}.marcatempo-results td{white-space:normal}.marcatempo-results td:nth-child(3){min-width:155px}.marcatempo-results td:nth-child(5){min-width:170px}}
.marcatempo-detail-page{margin-bottom:1.25rem}.marcatempo-detail-heading{margin-bottom:1rem}.marcatempo-detail-heading h1{font-size:2rem}.marcatempo-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--radar-line);border-radius:var(--radar-radius);overflow:hidden;background:var(--radar-surface);box-shadow:var(--radar-shadow)}.marcatempo-summary>div{padding:1rem 1.2rem;border-right:1px solid var(--radar-line)}.marcatempo-summary>div:last-child{border-right:0}.marcatempo-summary span{display:block;font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--radar-muted)}.marcatempo-summary strong{display:block;margin-top:.3rem;color:var(--radar-navy)}.marcatempo-detail-content{max-width:1440px;margin-left:auto;margin-right:auto}.marcatempo-detail-content #galleria{padding:1.15rem;border:1px solid var(--radar-line);border-radius:var(--radar-radius);background:var(--radar-surface);box-shadow:var(--radar-shadow)}.marcatempo-detail-content #sezione2 .table td{vertical-align:middle}@media(max-width:767.98px){.marcatempo-summary{grid-template-columns:1fr}.marcatempo-summary>div{border-right:0;border-bottom:1px solid var(--radar-line)}.marcatempo-summary>div:last-child{border-bottom:0}.marcatempo-detail-heading h1{font-size:1.6rem}}

/* Elenco ordini: griglia compatta e interamente visibile sui monitor desktop */
@media (min-width: 992px) {
  .orders-page .operations-table table#ordini-table { width: 100%; min-width: 0; table-layout: fixed; font-size: .7rem; line-height: 1.25; }
  .orders-page #ordini-table > :not(caption) > * > * { padding: .3rem .32rem; white-space: normal; overflow-wrap: anywhere; }
  .orders-page #ordini-table thead th { font-size: .61rem; letter-spacing: .015em; }
  .orders-page #ordini-table th:nth-child(1) { width: 3%; }
  .orders-page #ordini-table th:nth-child(2) { width: 9%; }
  .orders-page #ordini-table th:nth-child(3) { width: 6%; }
  .orders-page #ordini-table th:nth-child(4) { width: 7%; }
  .orders-page #ordini-table th:nth-child(5) { width: 14%; }
  .orders-page #ordini-table th:nth-child(6) { width: 4%; }
  .orders-page #ordini-table th:nth-child(7) { width: 6%; }
  .orders-page #ordini-table th:nth-child(8) { width: 6%; }
  .orders-page #ordini-table th:nth-child(9),
  .orders-page #ordini-table th:nth-child(10) { width: 7%; }
  .orders-page #ordini-table th:nth-child(11) { width: 8%; }
  .orders-page #ordini-table th:nth-child(12) { width: 7%; }
  .orders-page #ordini-table th:nth-child(13) { width: 16%; }
  .orders-page #ordini-table td:last-child .btn { margin: .08rem; padding: .25rem .38rem; font-size: .64rem; }
}

/* Radar Media Studio */
.media-studio-page { max-width: 1320px; margin: 0 auto; padding: 1rem 0 2rem; }
.media-studio-page h1 { color: #102f57; font-weight: 750; }
.media-studio-page .card { border-radius: 1rem; }
.media-studio-markdown pre { white-space: pre-wrap; font-family: inherit; font-size: .95rem; line-height: 1.6; background: #f7f9fc; padding: 1.25rem; border-radius: .75rem; }
.media-photo-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.media-photo-guide > div { padding: .65rem .75rem; border: 1px solid #d8e3f0; border-radius: .6rem; background: #f7fbff; }
.media-photo-guide strong { display: block; color: #102f57; font-size: .88rem; }
.media-photo-guide span { display: block; color: #596577; font-size: .8rem; line-height: 1.25; }
@media (max-width: 575.98px) { .media-photo-guide { grid-template-columns: 1fr; } }
.media-roadmap li { display:flex; gap:.7rem; padding:.65rem 0; border-bottom:1px solid #e8edf3; }
.media-roadmap li:last-child { border-bottom:0; }
.media-roadmap li > span { width:1.7rem; height:1.7rem; display:grid; place-items:center; border-radius:50%; background:#e5ebf3; color:#294a70; font-weight:700; flex:0 0 auto; }
.media-roadmap li.done > span { background:#198754; color:#fff; }
.media-roadmap small { display:block; color:#657283; margin-top:.15rem; line-height:1.25; }
.media-capture-card { border:1px dashed #b8c9dc; border-radius:.75rem; padding:.85rem; height:100%; background:#fbfdff; }
.media-capture-card.captured { border-style:solid; border-color:#8cc9a5; background:#f5fcf7; }
.media-capture-card img { width:100%; height:150px; object-fit:cover; }
.media-template-card { border-left: 4px solid #0d6efd !important; }
.media-template-summary { display: grid; gap: .2rem; padding: .8rem 1rem; background: #f5f8fc; border-radius: .5rem; }
.media-template-summary span { color: #495057; }
.media-template-summary small { color: #6c757d; }
.marketing-page { max-width: 1500px; margin: 0 auto; }
.marketing-page .display-6 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
.marketing-audience-list { max-height: 570px; overflow-y: auto; }
.marketing-audience-list .list-group-item { cursor: pointer; }
.marketing-audience-list .list-group-item:hover { background: #f4f8ff; }
.mail-center-page .mail-row{padding:.8rem 1rem}.mail-center-page .mail-unread{border-left:4px solid var(--radar-blue);background:#f5f9ff}.mail-center-page .mail-unread strong{font-weight:800}.mail-message-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}

/* Marcatempo: inconvenienti, marcature e ricambi */
.incident-panel,
.marking-panel { background: #fff; border: 1px solid #dce6f1; border-radius: 1rem; box-shadow: 0 .35rem 1.1rem rgba(16,47,87,.08); overflow: hidden; }
.incident-panel-header,
.marking-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.25rem; border-bottom: 1px solid #e6edf5; background: linear-gradient(135deg,#fff,#f6f9fd); }
.incident-count { display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .7rem; border-radius: 999px; background: #0d6efd; color: #fff; font-weight: 800; }
.incident-table thead th,
.marking-table thead th { padding: .78rem 1rem; border-bottom: 1px solid #dce6f1; background: #f5f8fc; color: #44566c; font-size: .76rem; letter-spacing: .045em; text-transform: uppercase; }
.incident-table tbody td,
.marking-table tbody td { padding: .9rem 1rem; border-color: #e8eef5; vertical-align: middle; }
.incident-table tbody tr { transition: background-color .16s ease, box-shadow .16s ease; }
.incident-table tbody tr:hover { background: #f6f9fd; }
.incident-item.is-active { background: #edf5ff !important; box-shadow: inset 4px 0 0 #0d6efd; }
.incident-code { display: inline-flex; align-items: center; min-height: 1.75rem; padding: .2rem .55rem; border-radius: .45rem; background: #e8f1ff; color: #084a9f; font-size: .82rem; font-weight: 800; }
.incident-charge { display: block; margin-top: .28rem; color: #6c7b8d; font-size: .76rem; }
.incident-description { color: #1d2f44; line-height: 1.4; overflow-wrap: anywhere; }
.incident-marks { display: inline-flex; align-items: center; justify-content: center; min-height: 1.7rem; padding: .15rem .5rem; border-radius: 999px; background: #edf1f5; color: #35485e; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.assigned-time { display: block; color: #123b67; font-size: .94rem; }
.incident-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.incident-actions .btn { white-space: nowrap; }
.marking-loading,
.ricambi-loading { display: flex; align-items: center; justify-content: center; gap: .8rem; min-height: 8rem; color: #52657a; }
.marking-status { display: inline-flex; align-items: center; padding: .28rem .62rem; border-radius: 999px; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.status-ready { background: #e8f1ff; color: #084a9f; }
.status-running { background: #d9f5e7; color: #087443; }
.status-paused { background: #fff0c9; color: #875b00; }
.status-complete { background: #e9ecef; color: #46515c; }
.marking-table td > span:not(.marking-status) { display: block; color: #6a7889; font-size: .78rem; }
.marking-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .55rem; padding: 1rem 1.25rem; border-top: 1px solid #e6edf5; background: #f8fafc; }
.marking-primary-action { margin: 1.1rem 1.25rem; min-height: 3rem; min-width: 12rem; }
.parts-table td:nth-child(3) { min-width: 13rem; }
.parts-mobile-list { display: grid; gap: .8rem; margin-bottom: 1rem; }
.part-card { padding: 1rem; border: 1px solid #dce6f1; border-radius: .8rem; background: #fff; box-shadow: 0 .2rem .65rem rgba(16,47,87,.06); }
.part-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.part-card-heading h3 { margin: .35rem 0 0; color: #19334f; font-size: .95rem; line-height: 1.35; }
.part-code { color: #0b5fbe; font-size: .78rem; font-weight: 800; }
.part-status { padding: .25rem .5rem; border-radius: 999px; background: #edf1f5; color: #4d5d6e; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.part-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin: .85rem 0; }
.part-metrics > div { padding: .55rem; border-radius: .5rem; background: #f5f8fc; }
.part-metrics dt { color: #6c7b8d; font-size: .7rem; font-weight: 600; }
.part-metrics dd { margin: .16rem 0 0; color: #243b53; font-size: .84rem; font-weight: 750; }
.part-request-panel { background: #f8fafc; }

@media (max-width: 767.98px) {
  .incident-panel,
  .marking-panel { border-radius: .85rem; }
  .incident-panel-header,
  .marking-panel-header { padding: 1rem; }
  .incident-panel-header p,
  .marking-panel-header p { font-size: .86rem; }
  .incident-mobile-list,
  .marking-mobile-list { display: grid; gap: .8rem; padding: .8rem; background: #f4f7fb; }
  .incident-mobile-card,
  .marking-card { padding: 1rem; border: 1px solid #dce6f1; border-radius: .8rem; background: #fff; box-shadow: 0 .2rem .65rem rgba(16,47,87,.06); }
  .incident-mobile-card.is-active { border-color: #77aeed; }
  .incident-mobile-card .incident-description { margin: .9rem 0; font-size: .96rem; }
  .incident-mobile-metrics { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; padding: .6rem .7rem; border-radius: .55rem; background: #f5f8fc; }
  .incident-mobile-metrics span { color: #66778a; font-size: .8rem; }
  .incident-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .incident-actions .btn,
  .marking-actions .btn { min-height: 3rem; padding: .65rem .75rem; }
  .marking-card-times { display: grid; gap: .55rem; margin-top: .75rem; }
  .marking-card-times > div { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .5rem; border-top: 1px solid #edf1f5; }
  .marking-card-times span { color: #6c7b8d; font-size: .78rem; }
  .marking-card-times strong { text-align: right; font-size: .86rem; }
  .marking-actions { display: grid; grid-template-columns: 1fr; padding: .8rem; }
  .marking-primary-action { display: block; width: calc(100% - 1.6rem); margin: .8rem; min-height: 3.25rem; }
  #ricambiModal .modal-body { padding: .8rem; overflow-x: hidden; }
  #ricambiModal .table-responsive { font-size: .82rem; }
  .part-request-panel .row > div { width: 100%; }
  .part-request-panel .btn-success { min-width: 3rem; min-height: 3rem; }
}

@media (max-width: 420px) {
  .incident-actions { grid-template-columns: 1fr; }
}
.incident-operations-row td {
  padding-top: 0 !important;
  border-top: 0;
}

.incident-operation-list {
  margin-top: .65rem;
  padding: .75rem;
  border: 1px solid #dbe5ef;
  border-radius: .75rem;
  background: #f7f9fc;
}

.incident-operation-heading {
  margin-bottom: .45rem;
  color: #53677d;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.incident-operation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem 0;
  border-top: 1px solid #e1e8f0;
}

.incident-operation-item:first-of-type { border-top: 0; }
.incident-operation-code { display: block; color: #0f3d64; font-weight: 800; }
.incident-operation-description { display: block; color: #334155; font-size: .88rem; }
.incident-operation-time { display: inline-block; margin-top: .15rem; color: #64748b; font-size: .78rem; }

@media (max-width: 767.98px) {
  .incident-operation-item { align-items: stretch; flex-direction: column; }
}

.repair-procedure-page { max-width: 1120px; }
.repair-step-list { counter-reset: repair-step; list-style: none; padding: 0; }
.repair-step-list li {
  position: relative;
  min-height: 2.3rem;
  margin-bottom: .65rem;
  padding: .55rem .7rem .55rem 3rem;
  border-left: 3px solid #2374d8;
  border-radius: .35rem;
  background: #f7f9fc;
}
.repair-step-list li::before {
  counter-increment: repair-step;
  content: counter(repair-step);
  position: absolute;
  top: .45rem;
  left: .65rem;
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border-radius: 50%;
  background: #0f5fb7;
  color: white;
  font-size: .78rem;
  font-weight: 800;
}
.repair-image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.repair-section-images { padding-top: 1rem; border-top: 1px solid #e5edf5; }
.repair-image-card { margin: 0; overflow: hidden; border: 1px solid #dbe5ef; border-radius: .75rem; background: #fff; }
.repair-image-card > a { display: grid; min-height: 240px; place-items: center; padding: .75rem; background: #f7f9fc; }
.repair-image-card img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: contain; image-rendering: auto; }
.repair-image-card figcaption { display: grid; gap: .2rem; padding: .75rem; font-size: .82rem; }
.repair-image-card figcaption span { color: #243b53; font-weight: 700; }
.repair-image-card figcaption small { color: #6b7d90; }
.repair-image-card figcaption a { justify-self: start; }
@media (max-width: 767.98px) {
  .repair-image-grid { grid-template-columns: 1fr; }
  .repair-image-card > a { min-height: 180px; }
}
