/* Read-only crew work order projected from the approved proposal and production job. */
.premium-app .crew-work-order-backdrop{
  position:fixed;
  inset:0;
  z-index:10000;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(1,6,12,.86);
  backdrop-filter:blur(6px);
}

.premium-app .crew-work-order-dialog{
  width:min(980px,calc(100vw - 48px));
  max-height:calc(100dvh - 48px);
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  overflow:hidden;
  color:#f4f7fb;
  background:#07111c;
  border:1px solid #35506a;
  border-top:4px solid #d65300;
  border-radius:16px;
  box-shadow:0 28px 80px rgba(0,0,0,.68);
}

.premium-app .crew-work-order-dialog:focus{
  outline:2px solid #ed6500;
  outline-offset:3px;
}

.premium-app .crew-work-order-header,
.premium-app .crew-work-order-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px;
  background:#091725;
}

.premium-app .crew-work-order-header{
  border-bottom:1px solid #294158;
}

.premium-app .crew-work-order-heading{
  min-width:0;
  display:flex;
  align-items:center;
  gap:14px;
}

.premium-app .crew-work-order-icon,
.premium-app .crew-work-order-avatar{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:999px;
  color:#ff841f;
  border:1px solid #d65300;
  background:rgba(214,83,0,.12);
}

.premium-app .crew-work-order-icon{
  width:46px;
  height:46px;
}

.premium-app .crew-work-order-icon svg{
  width:22px;
  height:22px;
}

.premium-app .crew-work-order-heading>div{
  min-width:0;
}

.premium-app .crew-work-order-kicker,
.premium-app .crew-work-order-section header span,
.premium-app .crew-work-order-identity>div>span,
.premium-app .crew-work-order-facts span{
  margin:0;
  color:#ff9438;
  font-size:13px;
  line-height:1.25;
  font-weight:800;
  letter-spacing:0;
  text-transform:none;
}

.premium-app .crew-work-order-heading h2{
  margin:3px 0 2px;
  color:#fff;
  font-size:clamp(21px,2vw,28px);
  line-height:1.15;
  font-weight:850;
}

.premium-app .crew-work-order-heading>div>span{
  color:#b9c8d8;
  font-size:14px;
}

.premium-app .crew-work-order-close{
  width:46px;
  height:46px;
  flex:0 0 46px;
  display:grid;
  place-items:center;
  padding:0;
  color:#dce8f4;
  background:#102235;
  border:1px solid #38536d;
  border-radius:12px;
  cursor:pointer;
}

.premium-app .crew-work-order-close:hover,
.premium-app .crew-work-order-close:focus-visible{
  color:#fff;
  border-color:#ed6500;
  outline:2px solid rgba(237,101,0,.32);
  outline-offset:2px;
}

.premium-app .crew-work-order-body{
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  padding:20px;
  background:#050d16;
}

.premium-app .crew-work-order-identity{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  padding:16px;
  border:1px solid #28435b;
  border-left:4px solid #d65300;
  border-radius:12px;
  background:#0a1825;
}

.premium-app .crew-work-order-avatar{
  width:50px;
  height:50px;
  font-size:16px;
  font-weight:850;
}

.premium-app .crew-work-order-identity strong,
.premium-app .crew-work-order-identity small{
  display:block;
}

.premium-app .crew-work-order-identity strong{
  margin-top:3px;
  color:#fff;
  font-size:19px;
  line-height:1.2;
}

.premium-app .crew-work-order-identity small{
  margin-top:4px;
  color:#c1cfdd;
  font-size:14px;
}

.premium-app .crew-work-order-stage{
  padding:8px 11px;
  color:#ffd0aa;
  background:rgba(214,83,0,.12);
  border:1px solid #d65300;
  border-radius:9px;
  font-size:13px;
  font-weight:800;
}

.premium-app .crew-work-order-facts{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}

.premium-app .crew-work-order-facts>section{
  min-width:0;
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  align-items:start;
  gap:10px;
  padding:14px;
  background:#091724;
  border:1px solid #294158;
  border-radius:11px;
}

.premium-app .crew-work-order-facts>section>svg{
  width:22px;
  height:22px;
  color:#29c7f6;
}

.premium-app .crew-work-order-facts strong,
.premium-app .crew-work-order-facts small{
  display:block;
  overflow-wrap:anywhere;
}

.premium-app .crew-work-order-facts strong{
  margin-top:5px;
  color:#fff;
  font-size:15px;
  line-height:1.3;
}

.premium-app .crew-work-order-facts small{
  margin-top:4px;
  color:#b7c6d5;
  font-size:13px;
  line-height:1.4;
}

.premium-app .crew-work-order-facts .crew-work-order-weather.medium>svg{
  color:#f4c400;
}

.premium-app .crew-work-order-facts .crew-work-order-weather.high>svg{
  color:#ff5364;
}

.premium-app .crew-work-order-section{
  margin-top:14px;
  padding:17px;
  background:#091724;
  border:1px solid #294158;
  border-radius:12px;
}

.premium-app .crew-work-order-section>header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.premium-app .crew-work-order-section h3{
  margin:4px 0 0;
  color:#fff;
  font-size:18px;
  line-height:1.25;
}

.premium-app .crew-work-order-section>header>small{
  color:#b7c6d5;
  font-size:13px;
  white-space:nowrap;
}

.premium-app .crew-work-order-section>p{
  margin:13px 0 0;
  color:#d9e3ed;
  font-size:15px;
  line-height:1.55;
}

.premium-app .crew-work-order-scope-list{
  display:grid;
  gap:8px;
  margin:14px 0 0;
  padding:0;
  list-style:none;
}

.premium-app .crew-work-order-scope-list li{
  display:grid;
  grid-template-columns:24px minmax(0,1fr) auto;
  align-items:start;
  gap:9px;
  padding:11px 12px;
  background:#06121d;
  border:1px solid #253e54;
  border-radius:9px;
}

.premium-app .crew-work-order-scope-list svg{
  width:19px;
  height:19px;
  color:#2ed47a;
}

.premium-app .crew-work-order-scope-list strong,
.premium-app .crew-work-order-scope-list small{
  display:block;
}

.premium-app .crew-work-order-scope-list strong{
  color:#fff;
  font-size:14px;
}

.premium-app .crew-work-order-scope-list small{
  margin-top:3px;
  color:#b7c6d5;
  font-size:13px;
  line-height:1.4;
}

.premium-app .crew-work-order-scope-list em{
  color:#a9bfd2;
  font-size:12px;
  font-style:normal;
}

.premium-app .crew-work-order-support-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.premium-app .crew-work-order-empty{
  color:#b7c6d5!important;
}

.premium-app .crew-work-order-photo-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:13px;
}

.premium-app .crew-work-order-photo-grid figure{
  min-width:0;
  margin:0;
  overflow:hidden;
  background:#06121d;
  border:1px solid #294158;
  border-radius:9px;
}

.premium-app .crew-work-order-photo-grid img{
  width:100%;
  aspect-ratio:4/3;
  display:block;
  object-fit:cover;
}

.premium-app .crew-work-order-photo-grid figcaption{
  padding:7px 8px;
  color:#dce7f2;
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.premium-app .crew-work-order-footer{
  border-top:1px solid #294158;
}

.premium-app .crew-work-order-footer>span{
  display:flex;
  align-items:center;
  gap:9px;
  color:#bdcad8;
  font-size:13px;
  line-height:1.4;
}

.premium-app .crew-work-order-footer>span svg{
  width:18px;
  height:18px;
  flex:0 0 auto;
  color:#ff841f;
}

.premium-app .crew-work-order-footer .btn{
  min-height:44px;
  padding:10px 17px;
  color:#fff;
  border-color:#d65300;
  background:rgba(214,83,0,.12);
}

.premium-app .crew-work-order-footer .btn:hover,
.premium-app .crew-work-order-footer .btn:focus-visible{
  border-color:#ed6500;
  background:rgba(237,101,0,.2);
  outline:2px solid rgba(237,101,0,.3);
  outline-offset:2px;
}

@media(max-width:900px){
  .premium-app .crew-work-order-facts{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .premium-app .crew-work-order-support-grid{
    grid-template-columns:1fr;
    gap:0;
  }
}

@media(max-width:760px){
  .premium-app .crew-work-order-backdrop{
    place-items:stretch;
    padding:0;
    background:#050d16;
    backdrop-filter:none;
  }

  .premium-app .crew-work-order-dialog{
    width:100%;
    height:100dvh;
    max-height:100dvh;
    border:0;
    border-top:4px solid #d65300;
    border-radius:0;
  }

  .premium-app .crew-work-order-header{
    position:sticky;
    top:0;
    z-index:2;
    padding:14px 15px;
  }

  .premium-app .crew-work-order-icon{
    width:42px;
    height:42px;
  }

  .premium-app .crew-work-order-heading h2{
    font-size:20px;
  }

  .premium-app .crew-work-order-heading>div>span{
    font-size:13px;
  }

  .premium-app .crew-work-order-close{
    width:48px;
    height:48px;
    flex-basis:48px;
  }

  .premium-app .crew-work-order-body{
    padding:14px 14px 20px;
  }

  .premium-app .crew-work-order-identity{
    grid-template-columns:auto minmax(0,1fr);
  }

  .premium-app .crew-work-order-stage{
    grid-column:1/-1;
    justify-self:stretch;
    text-align:center;
  }

  .premium-app .crew-work-order-facts{
    grid-template-columns:1fr;
  }

  .premium-app .crew-work-order-facts>section{
    padding:13px;
  }

  .premium-app .crew-work-order-section{
    padding:15px;
  }

  .premium-app .crew-work-order-section>header{
    align-items:flex-start;
  }

  .premium-app .crew-work-order-scope-list li{
    grid-template-columns:22px minmax(0,1fr);
  }

  .premium-app .crew-work-order-scope-list em{
    grid-column:2;
  }

  .premium-app .crew-work-order-photo-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .premium-app .crew-work-order-footer{
    display:grid;
    padding:13px 14px calc(13px + env(safe-area-inset-bottom,0px));
  }

  .premium-app .crew-work-order-footer .btn{
    width:100%;
    min-height:50px;
  }
}

@media(prefers-reduced-motion:reduce){
  .premium-app .crew-work-order-backdrop,
  .premium-app .crew-work-order-dialog{
    scroll-behavior:auto;
  }
}
