/* DJEEM TRANS | Mechanic mobile work orders (preview development only)
   Visual changes: keep the existing authorized handlers and clock semantics.
   Narrow selectors prevent administrator/desktop forms from changing. */
.mechanic-task-marker{display:none}
@media(max-width:750px){
  #workOrdersSection.mechanic-detail{width:100%;min-width:0}
  #workOrdersSection.mechanic-detail #ordersHeading{display:none}
  #workOrdersSection.mechanic-detail #orderDetailToolbar{
    display:flex;align-items:center;justify-content:flex-start;
    margin:6px 0 11px;padding:0;gap:0;min-height:0
  }
  #workOrdersSection.mechanic-detail #orderDetailTitle{display:none}
  #workOrdersSection.mechanic-detail #orderBackToList{
    width:auto!important;min-width:0;min-height:42px;
    padding:10px 13px;border:1px solid #cfdfed!important;
    background:#e7f1f9!important;color:#1d537e!important;
    font-size:13px!important;font-weight:750;
    box-shadow:none;border-radius:9px
  }
  #workOrdersSection.mechanic-detail #orders{display:block;min-width:0}
  #workOrdersSection.mechanic-detail .mechanic-workspace{
    width:100%;min-width:0;margin:0 0 12px!important;
    padding:0!important
  }
  #workOrdersSection.mechanic-detail .mechanic-workspace .detail-hero{
    border-radius:13px 13px 0 0!important;
    border:1px solid #d1e2ef!important;
    background:linear-gradient(120deg,#ebf4fe,#fff 88%)!important;
    padding:15px 13px 13px!important;gap:10px;
    display:flex;align-items:flex-start;
  }
  #workOrdersSection.mechanic-detail .mechanic-workspace .detail-hero-icon{
    width:37px;height:37px;border-radius:9px;flex:none;
    background:#d7eafb
  }
  #workOrdersSection.mechanic-detail .mechanic-workspace .detail-hero-icon .app-icon{
    width:21px;height:21px
  }
  #workOrdersSection.mechanic-detail .detail-hero-identity{flex:1;min-width:0}
  #workOrdersSection.mechanic-detail .detail-eyebrow{
    margin:0 0 4px;color:#316b9a;font-size:10.5px;font-weight:800;
    letter-spacing:.025em
  }
  #workOrdersSection.mechanic-detail .detail-hero-identity .job-title{
    font-size:20px;line-height:1.18;letter-spacing:-.025em;
    margin:0;overflow-wrap:anywhere;color:#153b5a
  }
  #workOrdersSection.mechanic-detail .detail-hero-identity p{
    margin:6px 0 0;font-size:12.5px;line-height:1.45;color:#62798d
  }
  #workOrdersSection.mechanic-detail .detail-hero>.pill{
    flex:none;max-width:30%;white-space:normal;text-align:center;
    font-size:10px;padding:6px 8px;line-height:1.3
  }
  #workOrdersSection.mechanic-detail .detail-hero-metrics{
    margin:0!important;padding:10px 13px 11px!important;gap:11px 12px;
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    border-left:1px solid #d1e2ef;border-right:1px solid #d1e2ef;
    background:#fff;box-shadow:none
  }
  #workOrdersSection.mechanic-detail .detail-hero-metrics>span{
    margin:0!important;padding:0!important;border:0!important;
    gap:3px;min-width:0
  }
  #workOrdersSection.mechanic-detail .detail-hero-metrics>span:nth-child(3){
    grid-column:1/-1;display:flex;align-items:center;
    justify-content:space-between;flex-direction:row;gap:8px;
    padding-top:8px!important;border-top:1px solid #e6eef5!important
  }
  #workOrdersSection.mechanic-detail .detail-hero-metrics small{
    font-size:11.5px!important;color:#6c8294;line-height:1.35
  }
  #workOrdersSection.mechanic-detail .detail-hero-metrics strong{
    font-size:16px!important;font-weight:850!important;
    color:#173d5d;line-height:1.3;overflow-wrap:anywhere
  }
  #workOrdersSection.mechanic-detail .detail-hero-metrics>span:nth-child(3) strong{
    font-size:13.5px!important;text-align:right
  }
  #workOrdersSection.mechanic-detail .detail-hero-progress{
    height:7px!important;margin:0!important;padding:0 13px!important;
    border-radius:0 0 11px 11px!important;
    box-sizing:content-box
  }
  #workOrdersSection.mechanic-detail .detail-hero-actions,
  #workOrdersSection.mechanic-detail .job-top-actions{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;margin:0!important;padding:11px 12px!important;
    background:#fff;border-radius:0 0 10px 10px
  }
  #workOrdersSection.mechanic-detail .job-top-actions>button{
    min-height:51px!important;max-width:none!important;
    min-width:0!important;width:100%!important;
    padding:10px!important;margin:0!important;white-space:normal;
    line-height:1.2;font-size:14px!important;
    font-weight:800!important;border-radius:10px!important
  }
  #workOrdersSection.mechanic-detail .job-top-actions>button:only-child{
    grid-column:1/-1
  }
  #workOrdersSection.mechanic-detail .compact-order-fold{
    padding:12px 0 10px!important;margin:0!important;
    background:transparent!important;border:0!important;
    box-shadow:none!important
  }
  #workOrdersSection.mechanic-detail .detail-workspace-grid{display:grid;
    grid-template-columns:minmax(0,1fr)!important;gap:10px}
  #workOrdersSection.mechanic-detail .compact-job-section-title{
    margin:0 2px 9px!important;gap:8px;align-items:center
  }
  #workOrdersSection.mechanic-detail .compact-job-section-title strong{
    font-size:17px!important;font-weight:850
  }
  #workOrdersSection.mechanic-detail .compact-job-section-title span{
    font-size:11.5px!important;padding:4px 9px!important
  }
  #workOrdersSection.mechanic-detail .compact-operation-list{
    gap:9px!important;display:grid
  }
  #workOrdersSection.mechanic-detail details.compact-operation{
    margin:0!important;min-width:0;border:1px solid #d9e5ef!important;
    border-radius:12px!important;background:#fff!important;
    box-shadow:0 2px 9px rgba(20,55,84,.055)!important;
    overflow:hidden
  }
  #workOrdersSection.mechanic-detail details.compact-operation.mechanic-assigned{
    border-color:#a4ccec!important
  }
  #workOrdersSection.mechanic-detail details.compact-operation.running{
    border-color:#55a7d8!important;background:#f6fbff!important
  }
  #workOrdersSection.mechanic-detail details.compact-operation.finished{
    border-color:#c8e6d3!important
  }
  #workOrdersSection.mechanic-detail details.compact-operation[open]{
    border-color:#83b7df!important;box-shadow:0 4px 14px rgba(22,95,153,.10)!important
  }
  #workOrdersSection.mechanic-detail .compact-op-summary{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto;
    gap:5px 9px;align-items:center;
    min-height:68px!important;padding:11px 12px!important;
    cursor:pointer;list-style:none;position:relative
  }
  #workOrdersSection.mechanic-detail .compact-op-summary::after{
    content:"⌄";position:absolute;right:11px;bottom:5px;
    font-size:15px;color:#738b9c
  }
  #workOrdersSection.mechanic-detail details.compact-operation[open]>.compact-op-summary::after{
    content:"⌃"
  }
  #workOrdersSection.mechanic-detail .compact-op-main{
    display:grid;gap:4px;min-width:0;padding-right:3px
  }
  #workOrdersSection.mechanic-detail .compact-op-main strong{
    font-size:15.5px!important;line-height:1.25;
    color:#173d5d;font-weight:850;overflow-wrap:anywhere
  }
  #workOrdersSection.mechanic-detail .mechanic-task-marker{
    display:inline-flex;align-items:center;justify-self:start;
    max-width:100%;width:max-content;padding:2px 6px;border-radius:5px;
    background:#e5f2ff;color:#1a6095;font-size:10px;font-weight:850;
    line-height:1.4;letter-spacing:.035em;white-space:normal;overflow-wrap:anywhere
  }
  #workOrdersSection.mechanic-detail .mechanic-task-marker.is-invitation{
    background:#fff0d3;color:#85580a
  }
  #workOrdersSection.mechanic-detail .compact-op-team{
    font-size:12px!important;color:#657f92;
    overflow-wrap:anywhere;line-height:1.4
  }
  #workOrdersSection.mechanic-detail .compact-op-side{
    display:flex;align-items:flex-end;justify-content:center;
    flex-direction:column;gap:5px;padding-right:14px;
    font-size:12px;color:#687d8e;white-space:nowrap
  }
  #workOrdersSection.mechanic-detail .compact-op-side .pill{
    font-size:11px!important;font-weight:750;padding:4px 8px;
    line-height:1.35;max-width:105px;white-space:normal
  }
  #workOrdersSection.mechanic-detail .compact-op-body{
    padding:10px 11px 12px!important;min-width:0;
    border-top:1px solid #e5edf5;background:#fff
  }
  #workOrdersSection.mechanic-detail .compact-op-body>.actions.compact-work-actions{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px!important;margin:1px 0 10px
  }
  #workOrdersSection.mechanic-detail .compact-op-body>.actions.compact-work-actions>button{
    min-height:54px!important;width:100%!important;min-width:0!important;
    max-width:none!important;margin:0!important;flex:none!important;
    padding:11px 9px!important;
    font-size:14px!important;font-weight:850!important;
    line-height:1.25;border-radius:9px!important;
    text-align:center;white-space:normal
  }
  #workOrdersSection.mechanic-detail .compact-op-body>.actions.compact-work-actions>button:only-child{
    grid-column:1/-1
  }
  #workOrdersSection.mechanic-detail .compact-op-body button[data-action="startService"],
  #workOrdersSection.mechanic-detail .compact-op-body button[data-action="resumeService"],
  #workOrdersSection.mechanic-detail .compact-op-body button[data-action="finishService"],
  #workOrdersSection.mechanic-detail .compact-op-body button[data-action="finishRunningService"]{
    background:#1874b7!important;border:1px solid #17679f!important;color:#fff!important;
    box-shadow:0 2px 7px rgba(19,101,172,.17)
  }
  #workOrdersSection.mechanic-detail .compact-op-body button[data-action="finishService"],
  #workOrdersSection.mechanic-detail .compact-op-body button[data-action="finishRunningService"]{
    background:#178459!important;border-color:#16734c!important
  }
  #workOrdersSection.mechanic-detail .compact-op-body button[data-action="pauseService"]{
    background:#f8edda!important;color:#815817!important;
    border:1px solid #e3cc9f!important
  }
  #workOrdersSection.mechanic-detail .compact-op-body .team-members-panel{
    margin:9px 0!important;padding:9px 10px!important;border-radius:9px!important;
    border:1px solid #d0e6f6!important;background:#f5faff!important;
  }
  #workOrdersSection.mechanic-detail .team-members-panel>p.small{
    margin:0 0 8px;font-size:12.5px
  }
  #workOrdersSection.mechanic-detail .team-worker-row{
    padding:10px 0!important;border-top:1px solid #e1edf6;
    font-size:12.5px!important;line-height:1.55
  }
  #workOrdersSection.mechanic-detail .team-worker-row strong{font-size:14px!important}
  #workOrdersSection.mechanic-detail .team-worker-row>.actions{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;margin:9px 0 2px
  }
  #workOrdersSection.mechanic-detail .team-worker-row>.actions>button,
  #workOrdersSection.mechanic-detail .compact-op-body [data-cowork-action],
  #workOrdersSection.mechanic-detail .compact-op-body [data-share-action],
  #workOrdersSection.mechanic-detail .compact-op-body [data-team-accept]{
    min-height:51px!important;min-width:0!important;
    padding:10px 8px!important;width:100%!important;
    font-weight:800!important;font-size:13px!important;
    border-radius:9px!important;white-space:normal
  }
  #workOrdersSection.mechanic-detail .team-worker-row>.actions>button:only-child{
    grid-column:1/-1
  }
  #workOrdersSection.mechanic-detail .compact-op-body>.group-panel{
    margin:9px 0!important;
    border:1px solid #e0eaf2!important;border-radius:9px!important;
    background:#f9fbfd!important;
  }
  #workOrdersSection.mechanic-detail .compact-op-body>.group-panel>summary,
  #workOrdersSection.mechanic-detail .compact-op-body details.group-panel>summary{
    min-height:44px;font-size:12.5px!important;
    font-weight:750!important;color:#37617f!important;
  }
  #workOrdersSection.mechanic-detail .compact-op-body input,
  #workOrdersSection.mechanic-detail .compact-op-body select,
  #workOrdersSection.mechanic-detail .compact-op-body textarea{
    min-height:44px;max-width:100%;font-size:16px
  }
  #workOrdersSection.mechanic-detail .detail-workspace-sidebar{
    display:grid;grid-template-columns:minmax(0,1fr)!important;gap:9px
  }
  #workOrdersSection.mechanic-detail .detail-side-card{
    padding:12px!important;margin:0!important;
    border-radius:11px!important;
  }
  #workOrdersSection.mechanic-detail .detail-side-card h4{
    font-size:14px!important;margin:0 0 8px
  }
  #workOrdersSection.mechanic-detail .detail-vehicle-field{
    font-size:12.5px!important;padding:7px 0
  }
  #workOrdersSection.mechanic-detail .detail-timeline-preview{
    gap:9px;margin-top:10px
  }
  #workOrdersSection.mechanic-detail .detail-timeline-item strong{
    font-size:12px!important
  }
  #workOrdersSection.mechanic-detail .detail-timeline-item>div>span{
    font-size:11px!important
  }
  #workOrdersSection.mechanic-detail .compact-job-section:not(.detail-side-manage-more)>summary{
    min-height:46px
  }
  /* Keep navigation usable with one thumb and without covering the last action. */
  body:has(#workOrdersSection.mechanic-detail) #mobileNav:not(.hidden){
    padding-top:7px;padding-bottom:calc(7px + env(safe-area-inset-bottom));
    gap:5px;background:#fff;
    box-shadow:0 -4px 20px rgba(15,48,81,.16)
  }
  body:has(#workOrdersSection.mechanic-detail) #mobileNav button{
    min-height:56px!important;background:#edf3f8;color:#365772;
    border:1px solid #e3ebf2;border-radius:10px;
    font-size:11.5px;font-weight:750
  }
  body:has(#workOrdersSection.mechanic-detail) #mobileNav button[aria-current="page"],
  body:has(#workOrdersSection.mechanic-detail) #mobileNav button[aria-expanded="true"]{
    color:#155e9c;background:#ddecf9;border-color:#c7e0f3
  }
  body:has(#workOrdersSection.mechanic-detail){
    padding-bottom:calc(94px + env(safe-area-inset-bottom))!important
  }
}
@media(max-width:390px){
  #workOrdersSection.mechanic-detail .detail-hero-identity .job-title{
    font-size:18px!important
  }
  #workOrdersSection.mechanic-detail .detail-hero-identity p{
    font-size:11.5px!important
  }
  #workOrdersSection.mechanic-detail .compact-op-main strong{
    font-size:14px!important
  }
  #workOrdersSection.mechanic-detail .compact-op-summary{
    padding:10px!important;gap:5px
  }
  #workOrdersSection.mechanic-detail .compact-op-body>.actions.compact-work-actions>button{
    font-size:13px!important
  }
}
@media(prefers-reduced-motion:reduce){
  #workOrdersSection.mechanic-detail button{transition:none!important}
}


/* My orders: legible, full-card touch targets without adding a second action. */
@media(max-width:750px){
  #workOrdersSection.mechanic-list .orders-heading-bar{
    margin:7px 0 12px;gap:8px
  }
  #workOrdersSection.mechanic-list .orders-heading-bar h2{
    font-size:21px!important;line-height:1.25
  }
  #workOrdersSection.mechanic-list .orders-heading-subtitle{
    font-size:12px!important;line-height:1.45
  }
  #workOrdersSection.mechanic-list .order-list-card{
    margin:9px 0!important;border-radius:12px!important;
    border-color:#d6e5f1!important
  }
  #workOrdersSection.mechanic-list .order-list-card .order-list-open{
    display:grid;grid-template-columns:minmax(0,1fr) 83px;
    width:100%;min-height:102px!important;
    padding:13px 11px!important;gap:6px 9px!important;
    text-align:left;background:#fff!important
  }
  #workOrdersSection.mechanic-list .order-list-main{
    min-width:0;min-height:52px;padding-left:42px;
    grid-area:1/1/2/2;gap:5px!important
  }
  #workOrdersSection.mechanic-list .order-list-title{
    font-size:14.5px!important;line-height:1.35;
    color:#183b5a;font-weight:850
  }
  #workOrdersSection.mechanic-list .order-list-meta{
    font-size:11.5px!important;line-height:1.4
  }
  #workOrdersSection.mechanic-list .order-list-services{
    font-size:11.5px!important;line-height:1.35
  }
  #workOrdersSection.mechanic-list .order-list-bottom{
    min-width:0;max-width:100%;flex-wrap:wrap;gap:5px 7px
  }
  #workOrdersSection.mechanic-list .order-list-hint{
    max-width:100%;overflow-wrap:anywhere;white-space:normal;
    font-size:11.5px;line-height:1.4
  }
  #workOrdersSection.mechanic-list .order-list-vehicle-icon{
    width:33px;height:33px;border-radius:9px
  }
  #workOrdersSection.mechanic-list .order-list-mechanic-slot{
    grid-area:2/1/3/2;font-size:12px;line-height:1.3;
    padding-left:2px;color:#4e6e86
  }
  #workOrdersSection.mechanic-list .order-list-progress-cell{
    grid-area:3/1/4/3;gap:8px;align-items:center;
    grid-template-columns:auto minmax(45px,1fr) auto
  }
  #workOrdersSection.mechanic-list .order-list-progress{
    grid-column:1;font-size:11.5px!important
  }
  #workOrdersSection.mechanic-list .order-list-progress-track{
    grid-column:2;height:8px
  }
  #workOrdersSection.mechanic-list .order-list-progress-percent{
    grid-column:3;font-size:12px!important
  }
  #workOrdersSection.mechanic-list .order-list-right{
    grid-area:1/2/3/3;align-items:flex-end;
    gap:10px;justify-content:space-between
  }
  #workOrdersSection.mechanic-list .order-list-status{
    max-width:82px;font-size:11px!important;
    padding:5px 7px;overflow-wrap:anywhere;text-align:center
  }
  #workOrdersSection.mechanic-list .order-list-open-action{
    font-size:12px;font-weight:850
  }
}
