/* Jobs Calendar: keep the scheduling queue visible and move scheduled-job detail into a compact quick check. */
body.job-calendar-quick-open{
  overflow:hidden;
  overscroll-behavior:none;
}

.premium-app .job-calendar-quick-backdrop{
  position:fixed;
  inset:0;
  z-index:9600;
  display:grid;
  place-items:center;
  padding:72px 340px 72px 96px;
  background:rgba(1,6,12,.32);
  backdrop-filter:blur(1.5px);
}

.premium-app .job-calendar-quick-popover{
  width:min(480px,100%);
  max-height:calc(100dvh - 144px);
  overflow:auto;
  overscroll-behavior:contain;
  color:#f4f8fb;
  background:#07111c;
  border:1px solid #35506a;
  border-top:4px solid #3da7ff;
  border-radius:15px;
  box-shadow:0 26px 70px rgba(0,0,0,.7);
  font-family:"Segoe UI",Arial,sans-serif;
  text-shadow:none;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.premium-app .job-calendar-quick-popover[aria-busy="true"]{
  cursor:progress;
}

.premium-app .job-calendar-quick-popover.job-preview-pending{border-top-color:#d65300;}
.premium-app .job-calendar-quick-popover.job-preview-progress{border-top-color:#28d878;}
.premium-app .job-calendar-quick-popover.job-preview-complete{border-top-color:#a96cff;}

.premium-app .job-calendar-quick-popover:focus{
  outline:2px solid #ed6500;
  outline-offset:3px;
}

.premium-app .job-calendar-quick-header{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  padding:17px 18px;
  background:#091725;
  border-bottom:1px solid #294158;
}

.premium-app .job-calendar-quick-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  color:#54b7ff;
  background:rgba(38,153,238,.11);
  border:1px solid #2d9fe9;
  border-radius:999px;
}

.premium-app .job-calendar-quick-icon svg{
  width:21px;
  height:21px;
}

.premium-app .job-calendar-quick-header>div{min-width:0;}

.premium-app .job-calendar-quick-header p{
  margin:0 0 3px;
  color:#ff9a45;
  font-size:13px;
  font-weight:750;
  line-height:1.25;
  letter-spacing:0;
  text-transform:none;
}

.premium-app .job-calendar-quick-header h2{
  margin:0;
  color:#fff;
  font-size:22px;
  font-weight:760;
  line-height:1.18;
  overflow-wrap:anywhere;
}

.premium-app .job-calendar-quick-header>div>span{
  display:block;
  margin-top:4px;
  color:#b5c5d2;
  font-size:14px;
  font-weight:600;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.premium-app .job-calendar-quick-close{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  padding:0;
  color:#d8e5ef;
  background:#101f2e;
  border:1px solid #3a5268;
  border-radius:999px;
  cursor:pointer;
}

.premium-app .job-calendar-quick-close:hover,
.premium-app .job-calendar-quick-close:focus-visible{
  color:#fff;
  border-color:#ed6500;
  outline:2px solid rgba(237,101,0,.34);
  outline-offset:2px;
}

.premium-app .job-calendar-quick-close svg{width:20px;height:20px;}

.premium-app .job-calendar-quick-body{
  display:grid;
  gap:14px;
  padding:17px 18px 19px;
}

.premium-app .job-calendar-quick-status{
  margin:0;
  color:#afc0ce;
  font-size:13px;
  font-weight:600;
  line-height:1.4;
}

.premium-app .job-calendar-quick-weather{
  min-height:62px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:11px;
  padding:12px;
  color:#f7d36d;
  background:rgba(225,171,31,.08);
  border:1px solid rgba(225,171,31,.42);
  border-radius:10px;
}

.premium-app .job-calendar-quick-weather.weather-none{
  color:#54e59b;
  background:rgba(31,197,116,.08);
  border-color:rgba(31,197,116,.42);
}

.premium-app .job-calendar-quick-weather.weather-high{
  color:#ff717b;
  background:rgba(242,72,84,.08);
  border-color:rgba(242,72,84,.45);
}

.premium-app .job-calendar-quick-weather svg{width:22px;height:22px;}
.premium-app .job-calendar-quick-weather span{min-width:0;display:grid;gap:3px;}
.premium-app .job-calendar-quick-weather strong{font-size:15px;line-height:1.25;}
.premium-app .job-calendar-quick-weather small{color:#d0dce5;font-size:13.5px;font-weight:550;line-height:1.4;}

.premium-app .job-calendar-quick-facts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin:0;
}

.premium-app .job-calendar-quick-facts>div{
  min-width:0;
  padding:11px 12px;
  background:#0b1926;
  border:1px solid #2c4357;
  border-radius:9px;
}

.premium-app .job-calendar-quick-facts dt{
  margin:0;
  color:#91a7b9;
  font-size:12px;
  font-weight:650;
  line-height:1.25;
  letter-spacing:0;
  text-transform:none;
}

.premium-app .job-calendar-quick-facts dd{
  margin:5px 0 0;
  color:#f4f8fb;
  font-size:14.5px;
  font-weight:700;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.premium-app .job-calendar-quick-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}

.premium-app .job-calendar-quick-action{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  color:#d9efff;
  background:rgba(24,146,232,.09);
  border:1px solid #238fd9;
  border-radius:9px;
  font-size:14px;
  font-weight:750;
  line-height:1.2;
  cursor:pointer;
}

.premium-app .job-calendar-quick-action.move{
  color:#f1dfff;
  background:rgba(155,87,224,.1);
  border-color:#9458cf;
}

.premium-app .job-calendar-quick-action:hover,
.premium-app .job-calendar-quick-action:focus-visible{
  filter:brightness(1.15);
  outline:2px solid currentColor;
  outline-offset:2px;
}

.premium-app .job-calendar-quick-action svg{width:18px;height:18px;flex:0 0 auto;}

.premium-app .job-calendar-complete-control{
  display:grid;
  gap:9px;
}

.premium-app .job-calendar-complete-row{
  min-height:66px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:11px;
  padding:12px;
  color:#d9fbea;
  background:rgba(31,197,116,.08);
  border:1px solid rgba(31,197,116,.46);
  border-radius:10px;
  cursor:pointer;
}

.premium-app .job-calendar-complete-row input{
  width:22px;
  height:22px;
  margin:0;
  accent-color:#20c979;
}

.premium-app .job-calendar-complete-row:focus-within{
  outline:2px solid #54efa3;
  outline-offset:2px;
}

.premium-app .job-calendar-complete-row>span{display:grid;gap:3px;}
.premium-app .job-calendar-complete-row strong{font-size:15px;line-height:1.25;}
.premium-app .job-calendar-complete-row small{color:#b8cbd7;font-size:13px;font-weight:550;line-height:1.4;}
.premium-app .job-calendar-complete-row.is-complete{cursor:default;}
.premium-app .job-calendar-complete-row.is-complete svg{width:22px;height:22px;color:#48df95;}

.premium-app .job-calendar-complete-unavailable{
  min-height:66px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:11px;
  padding:12px;
  color:#ffd38d;
  background:rgba(214,83,0,.08);
  border:1px solid rgba(214,83,0,.5);
  border-radius:10px;
}

.premium-app .job-calendar-complete-unavailable>svg{
  width:22px;
  height:22px;
  color:#ed6500;
}

.premium-app .job-calendar-complete-unavailable>span{display:grid;gap:3px;}
.premium-app .job-calendar-complete-unavailable strong{font-size:15px;line-height:1.25;}
.premium-app .job-calendar-complete-unavailable small{color:#b8cbd7;font-size:13px;font-weight:550;line-height:1.4;}

.premium-app .job-calendar-complete-confirm{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  color:#04150d;
  background:#39d88b;
  border:1px solid #54efa3;
  border-radius:9px;
  font-size:14.5px;
  font-weight:800;
  cursor:pointer;
}

.premium-app .job-calendar-complete-confirm[hidden]{display:none!important;}
.premium-app .job-calendar-complete-confirm:hover,
.premium-app .job-calendar-complete-confirm:focus-visible{background:#54efa3;outline:2px solid #8dffc4;outline-offset:2px;}
.premium-app .job-calendar-complete-confirm:disabled{opacity:.72;cursor:wait;}

.premium-app .job-calendar-complete-saving{
  width:15px;
  height:15px;
  border:2px solid rgba(4,21,13,.35);
  border-top-color:#04150d;
  border-radius:999px;
  animation:job-calendar-quick-spin .7s linear infinite;
}

.premium-app .job-calendar-hover{
  width:min(360px,calc(100vw - 24px))!important;
  padding:14px!important;
  font-family:"Segoe UI",Arial,sans-serif!important;
  text-shadow:none!important;
  -webkit-font-smoothing:antialiased!important;
  text-rendering:optimizeLegibility!important;
}

.premium-app .job-calendar-hover>strong{font-size:17px!important;}
.premium-app .job-calendar-hover-hint{display:block;margin-top:3px;color:#ffad52;font-size:12.5px;font-weight:700;}
.premium-app .job-calendar-hover dt{font-size:11px!important;text-transform:none!important;letter-spacing:0!important;}
.premium-app .job-calendar-hover dd{font-size:13.5px!important;font-weight:650!important;}

.premium-app [data-open-job-calendar-quick][aria-expanded="true"]{
  outline:2px solid #ed6500!important;
  outline-offset:1px!important;
}

@keyframes job-calendar-quick-spin{to{transform:rotate(360deg);}}

@media(max-width:1150px){
  .premium-app .job-calendar-quick-backdrop{
    place-items:end center;
    padding:16px;
    background:rgba(1,6,12,.7);
    backdrop-filter:blur(4px);
  }

  .premium-app .job-calendar-quick-popover{
    width:min(560px,100%);
    max-height:min(82dvh,760px);
  }
}

@media(max-width:620px){
  .premium-app .job-calendar-quick-backdrop{padding:0;}
  .premium-app .job-calendar-quick-popover{
    width:100%;
    max-height:86dvh;
    border-right:0;
    border-bottom:0;
    border-left:0;
    border-radius:16px 16px 0 0;
    padding-bottom:env(safe-area-inset-bottom);
  }
  .premium-app .job-calendar-quick-header{padding:15px 16px;}
  .premium-app .job-calendar-quick-body{padding:15px 16px 18px;}
  .premium-app .job-calendar-quick-facts{grid-template-columns:1fr;}
  .premium-app .job-calendar-quick-actions{grid-template-columns:1fr;}
  .premium-app .job-calendar-quick-action,
  .premium-app .job-calendar-complete-confirm{min-height:50px;font-size:15px;}
}

@media(hover:none){
  .premium-app .job-calendar-hover{display:none!important;}
}

@media(prefers-reduced-motion:reduce){
  .premium-app .job-calendar-complete-saving{animation:none;}
}
