/* ===== Post a Job layout ===== */
/* Right column: map fills whatever is left above the calendar, calendar pinned to the bottom
   so its lower edge lands level with the dumpster toggle opposite it. */
.post-job-col-right{ justify-content:flex-start; }
.req-map-wrap{
  position:relative; flex:1; min-height:220px; margin-bottom:20px;
  border:1.5px solid var(--line); border-radius:12px; overflow:hidden; background:var(--paper);
}
.req-map{ position:absolute; inset:0; }
.req-map-empty{
  position:absolute; inset:0; margin:0; display:flex; align-items:center; justify-content:center;
  text-align:center; padding:20px; font-size:13px; color:var(--ink-soft); line-height:1.6;
}
.req-map-wrap.has-map .req-map-empty{ display:none; }

/* The toggle was stretching the full column width with a long empty tail to its right. */
.post-job-col-left .req-toggle-row{ width:fit-content; max-width:100%; }

/* .post-job-push-bottom sets margin-bottom:0 but ties with .field on specificity and loses,
   leaving 16px that held the calendar above the dumpster toggle opposite it. */
.post-job-col-right .post-job-push-bottom{ margin-bottom:0; }

/* Sits just below the columns rather than hard against them. */
.post-job-next{ margin-top:18px; }

.post-job-col-left,.post-job-col-right{display:flex;flex-direction:column;}
.post-job-push-bottom{margin-top:auto;margin-bottom:0;}

/* Custom dropdown UI for location selects — the real <select> stays in the DOM (invisible,
   pointer-events:none) so every existing onchange/value code path keeps working untouched;
   this trigger+panel is the only thing the user actually sees or clicks. Needed because a
   native <select>'s OPEN option list is OS-rendered and can't be restyled with CSS. */
/* Same expand-in-place mechanic as the profile pill (.account-wrap/.account-panel): the
   wrap's own box height never changes (so it never disturbs sibling layout), while the
   surface inside it is absolutely positioned and pinned to the top, so it only ever grows
   straight down as a seamless extension of the trigger — no separate floating menu, no
   sideways push, matching the account dropdown's animation exactly. */
.native-select-wrap{position:relative;display:inline-block;width:190px;height:38px;}
.native-select-wrap select{position:absolute;inset:0;opacity:0;pointer-events:none;width:100%;height:100%;}
.native-select-surface{
  position:absolute;top:0;left:0;right:0;
  display:flex;flex-direction:column;overflow:hidden;
  background:#fff;border:1.5px solid var(--line);border-radius:19px;
  height:38px;box-sizing:border-box;
  box-shadow:0 10px 30px rgba(17,20,24,0), 0 2px 8px rgba(17,20,24,0);
  transition:height .32s cubic-bezier(.22,.9,.3,1.1), border-radius .32s ease, border-color .15s ease, box-shadow .28s ease;
  z-index:20;
}
.native-select-wrap:hover .native-select-surface{border-color:#185fa5;}
.native-select-wrap.open .native-select-surface{
  height:var(--ns-open-h, 200px);border-radius:16px;border-color:#185fa5;
  box-shadow:0 10px 30px rgba(17,20,24,0.14), 0 2px 8px rgba(17,20,24,0.08);
}
.native-select-trigger{
  display:flex;align-items:center;gap:8px;background:none;border:none;
  padding:8px 14px;font-size:13px;font-weight:600;color:var(--ink);font-family:inherit;
  flex-shrink:0;height:36px;box-sizing:border-box;width:100%;cursor:pointer;
}
.native-select-trigger .ns-value{flex:1;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.native-select-trigger .ns-chevron{flex-shrink:0;color:var(--ink-soft);transition:transform .28s ease;}
.native-select-wrap.open .ns-chevron{transform:rotate(180deg);}
.native-select-panel{
  padding:2px 8px 8px;opacity:0;overflow-y:auto;transition:opacity .16s ease;
}
.native-select-wrap.open .native-select-panel{opacity:1;transition:opacity .2s ease .12s;}
.native-select-option{
  display:block;width:100%;text-align:left;padding:9px 10px;font-size:13.5px;font-weight:500;
  font-family:inherit;background:none;border:none;border-radius:10px;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;transition:background .12s ease;
}
.native-select-option:hover{background:var(--paper-dim);}
.native-select-option.selected{color:#185fa5;font-weight:700;}

.card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow);}
.card + .card{margin-top:20px;}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.field{margin-bottom:16px;}
.field label{display:block;font-size:12.5px;font-weight:600;color:var(--ink-soft);margin-bottom:6px;text-transform:uppercase;letter-spacing:0.03em;}
.password-wrap{position:relative;}
.password-wrap input{padding-right:42px;}
.password-toggle{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);
  background:none;border:none;padding:6px;color:var(--ink-soft);cursor:pointer;
  display:flex;align-items:center;justify-content:center;border-radius:4px;
}
.password-toggle:hover{color:var(--ink);background:var(--paper-dim);}
input,select,textarea{
  width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius);
  font-family:'Inter';font-size:14px;background:#fff;color:var(--ink);
}
input:focus,select:focus,textarea:focus{outline:2px solid var(--steel);outline-offset:1px;border-color:var(--steel);}
textarea{resize:vertical;min-height:70px;}
.chip-row{display:flex;flex-wrap:wrap;gap:8px;}
.chip{border:1px solid var(--line);border-radius:20px;padding:7px 14px;font-size:13px;background:#fff;color:var(--ink-soft);user-select:none;}
.chip.selected{background:var(--ink);color:var(--paper);border-color:var(--ink);}
.tabbar{display:flex;gap:6px;margin-bottom:24px;border-bottom:1px solid var(--line);flex-wrap:wrap;}
.tab{padding:10px 18px;font-size:14px;font-weight:600;color:var(--ink-soft);border-bottom:2px solid transparent;background:none;border-top:none;border-left:none;border-right:none;}
.tab.active{color:var(--ink);border-bottom-color:var(--safety);}

.req-item, .list-item{border:1px solid var(--line);border-radius:14px;padding:16px 18px;margin-bottom:12px;background:#fff;}
.req-item .top-row, .list-item .top-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;}
.req-item h4, .list-item h4{font-family:'Inter',sans-serif;font-weight:600;font-size:15px;margin:0 0 4px;color:var(--ink);}
/* Matching-jobs card + job detail header, before a crew accepts: address shown is city/state
   only (crewSafeLocation), with a small lock cue so it reads as intentionally withheld rather
   than an incomplete address. */
.jobcard-location{margin-top:8px;display:flex;align-items:center;gap:6px;}
.jobcard-location-lock{display:inline-flex;color:var(--ink-soft);flex-shrink:0;}
.jobcard-location-lock svg{width:14px;height:14px;}
.jobcard-location-note{margin-top:2px;}
.meta-row{display:flex;gap:14px;flex-wrap:wrap;font-size:13px;color:var(--ink-soft);margin-top:8px;}
.meta-row span{display:flex;align-items:center;gap:5px;}
.empty-state{
  text-align:center;padding:48px 24px;color:var(--ink-soft);border:1px dashed var(--line);border-radius:var(--radius);
  font-size:14px;background:#fff;
}
.small-note{font-size:12.5px;color:var(--ink-soft);margin-top:4px;}
.toast{
  position:fixed;bottom:24px;right:24px;background:var(--ink);color:var(--paper);padding:14px 20px;border-radius:var(--radius);
  font-size:14px;box-shadow:var(--shadow);z-index:200;
  opacity:0;visibility:hidden;pointer-events:none;transform:translateY(12px);
  transition:opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.toast.show{
  opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0);
  transition:opacity .25s ease, transform .25s ease;
}
.push-banner{
  position:fixed;left:16px;right:16px;bottom:16px;max-width:480px;margin:0 auto;
  background:var(--steel);color:#fff;border-radius:12px;padding:14px 16px;
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  box-shadow:0 10px 30px rgba(17,20,24,0.25);font-size:13.5px;z-index:200;
}
.push-banner-actions{display:flex;gap:8px;flex-shrink:0;}

/* change confirmation modal */
#confirm-changes-modal{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;padding:20px;}
#confirm-changes-modal .modal-backdrop{position:absolute;inset:0;background:rgba(20,22,20,0.55);}
#confirm-changes-modal .modal-box{
  position:relative;background:#fff;border-radius:8px;padding:28px;max-width:420px;width:100%;
  box-shadow:0 12px 40px rgba(0,0,0,0.25);animation:modalPop .18s ease;
}
@keyframes modalPop{from{opacity:0;transform:scale(.96);}to{opacity:1;transform:scale(1);}}
/* Job detail opened "through" the schedule (openJobDetailOverlay) instead of navigating away
   from it — the underlying dashboard is left visible/unhidden, and this just turns the
   otherwise-full-page #view-jobdetail into a dimmed modal floating above it. */
#view-jobdetail.overlay-mode{
  position:fixed; inset:0; z-index:300; padding:40px 20px; overflow-y:auto;
  background:rgba(20,22,20,0.55); display:flex; align-items:flex-start; justify-content:center;
}
#view-jobdetail.overlay-mode .page.container{
  background:#fff; border-radius:16px; max-width:720px; width:100%; margin:0;
  padding:32px; box-shadow:0 20px 60px rgba(0,0,0,0.3); animation:modalPop .18s ease;
}
.modal-checkbox-row{display:flex;align-items:center;gap:10px;margin-bottom:18px;font-size:14px;font-weight:600;cursor:pointer;}
.modal-checkbox-row input{width:18px;height:18px;accent-color:var(--safety);cursor:pointer;}
#confirm-changes-close-btn:disabled{opacity:0.4;cursor:not-allowed;box-shadow:none;transform:none;}

/* payment option modal (Request Crew form's "Next" button) */
#payment-modal{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;padding:20px;}
#payment-modal .modal-backdrop{position:absolute;inset:0;background:rgba(20,22,20,0.55);}
#payment-modal .modal-box{
  position:relative;background:#fff;border-radius:20px;padding:32px;max-width:420px;width:100%;
  box-shadow:0 20px 60px rgba(0,0,0,0.3);animation:modalPop .18s ease;
}
.payment-toggle{display:flex;background:var(--paper-dim);border-radius:12px;padding:4px;gap:4px;margin-bottom:20px;}
.payment-toggle-option{flex:1;border:none;background:transparent;padding:10px;border-radius:9px;font-weight:700;font-size:14px;cursor:pointer;color:var(--ink-soft);font-family:inherit;transition:background .15s ease,color .15s ease,box-shadow .15s ease;}
.payment-toggle-option.active{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(17,20,24,0.15);}
.payment-placeholder{border:1.5px dashed var(--line);border-radius:16px;padding:26px 20px;text-align:center;color:var(--ink-soft);font-weight:700;font-size:14px;margin-bottom:20px;}
.payment-placeholder svg{display:block;margin:0 auto 10px;}
.payment-modal-actions{display:flex;gap:12px;margin-top:4px;}
.payment-modal-actions .btn{flex:1;}
#payment-confirm-btn:disabled{opacity:0.4;cursor:not-allowed;box-shadow:none;transform:none;}

.doc-list{display:flex;flex-direction:column;gap:8px;margin-top:10px;}
.doc-item{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:4px;padding:9px 12px;font-size:13px;background:#fff;}
.doc-item .doc-name{display:flex;align-items:center;gap:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.doc-remove{background:none;border:none;color:var(--danger);font-size:15px;line-height:1;padding:3px 7px;border-radius:4px;}
.doc-remove:hover{background:var(--danger-bg);}
.match-box{background:var(--paper-dim);border-radius:var(--radius);padding:14px 16px;margin-top:14px;}
.match-box .match-title{font-family:'IBM Plex Mono';font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--ink-soft);margin-bottom:10px;}
.match-crew-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-top:1px solid var(--line);font-size:13.5px;}
.match-crew-row:first-of-type{border-top:none;}

/* calendar picker */
.calendar{border:1px solid var(--line);border-radius:var(--radius);padding:14px;background:#fff;max-width:400px;}
.cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;}
.cal-month{font-family:'IBM Plex Mono',monospace;font-size:12.5px;text-transform:uppercase;letter-spacing:0.06em;color:var(--ink-soft);}
.cal-nav{background:none;border:1px solid var(--line);border-radius:4px;width:26px;height:26px;font-size:15px;line-height:1;color:var(--ink-soft);}
.cal-nav:hover{border-color:var(--ink);color:var(--ink);}
.cal-dow{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:10.5px;color:var(--ink-soft);margin-bottom:4px;font-family:'IBM Plex Mono',monospace;}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;}
.cal-cell{
  border:none;background:none;border-radius:4px;color:var(--ink);
  min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:4px 2px;
}
.cal-cell .cal-daynum{font-size:12px;font-weight:600;font-family:'Inter',sans-serif;}
.cal-cell .cal-icon{font-size:13px;line-height:1;}
.cal-icon-sun{color:#C98A1F;}
.cal-icon-cloudy{color:#8A93A3;}
.cal-icon-rain{color:var(--safety);}
.cal-icon-snow{color:#5FA8C9;}
.cal-icon-windy{color:#5B8A7D;}
.cal-cell .cal-temp{font-size:8.5px;color:var(--ink-soft);font-family:'IBM Plex Mono',monospace;letter-spacing:-0.02em;}
.cal-cell.empty{visibility:hidden;}
.cal-cell:not(.empty):not(.past):hover{background:var(--paper-dim);}
.cal-cell.past{opacity:0.4;cursor:not-allowed;}
.cal-cell.selected{background:var(--safety);}
.cal-cell.selected .cal-daynum,.cal-cell.selected .cal-temp{color:#fff;}
.calendar.blue .cal-cell.selected{background:var(--steel);}
/* The date already on the table (counteroffer / rematch pickers) shows black until the user
   actually picks something else — once they do, the NEW pick takes over the normal blue
   .selected treatment and this cell just goes back to unhighlighted. */
.cal-cell.original-date{background:var(--ink);}
.cal-cell.original-date .cal-daynum,.cal-cell.original-date .cal-temp{color:#fff;}
.cal-status{margin-top:10px;}
.calendar-page-head{margin-bottom:20px;max-width:640px;margin-left:auto;margin-right:auto;text-align:center;}
.calendar-page-head h3{font-size:20px;margin-bottom:6px;}
.calendar.large{max-width:640px;margin:0 auto;padding:22px;border-radius:16px;}
.calendar.large .cal-cell{min-height:70px;}
.calendar.large .cal-month{font-size:14px;}
.calendar.large .cal-nav{width:32px;height:32px;font-size:17px;}
.cal-status-center{text-align:center;max-width:640px;margin:10px auto 0;}
/* availability legend: the same three swatches the calendar itself draws */
.cal-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 26px;max-width:640px;margin:16px auto 0;}
.cal-legend-item{display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:600;color:var(--ink-soft);}
.cal-legend-swatch{width:16px;height:16px;border-radius:4px;flex:none;box-sizing:border-box;}
.cal-legend-swatch.available{background:#fff;border:1.5px solid var(--line);}
.cal-legend-swatch.unavailable{background:var(--steel);}
.cal-legend-swatch.booked{background:var(--safety);}
.cal-cell.booked:disabled{background:var(--safety);opacity:1;cursor:default;}
.cal-cell.booked .cal-daynum,.cal-cell.booked .cal-temp,.cal-cell.booked .cal-icon{color:#fff;}

/* signup type cards */
.type-card-row{display:flex;gap:16px;margin-bottom:28px;flex-wrap:wrap;}
.type-card{
  flex:1;min-width:220px;text-align:left;background:#fff;border:1.5px solid var(--line);border-radius:var(--radius);
  padding:20px;display:flex;flex-direction:column;gap:6px;
}
.type-card:hover{border-color:var(--ink-soft);}
.type-card h4{font-family:'Oswald';font-size:16px;text-transform:uppercase;margin:0;}
.type-card p{margin:0;font-size:13px;color:var(--ink-soft);}
.type-card.selected-orange{border-color:var(--safety);box-shadow:inset 0 0 0 1px var(--safety);}
.type-card.selected-blue{border-color:var(--steel);box-shadow:inset 0 0 0 1px var(--steel);}

/* logo upload */
.logo-upload-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap;}
.logo-preview{
  width:64px;height:64px;border-radius:50%;background:var(--paper-dim);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;font-family:'Oswald';font-weight:600;color:var(--ink-soft);overflow:hidden;flex-shrink:0;
}
.logo-preview img{width:100%;height:100%;object-fit:cover;}

/* read-only stat display */
.stat-readonly{
  padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper-dim);
  font-size:14px;font-weight:600;color:var(--ink);
}

/* sidebar layout — reused by Settings and the crew dashboard */
.sidebar-layout{display:grid;grid-template-columns:200px 1fr;gap:32px;align-items:start;}
.sidebar-nav{display:flex;flex-direction:column;gap:2px;position:sticky;top:88px;}
.sidebar-nav-item{
  text-align:left;padding:11px 14px;border-radius:var(--radius);font-size:14px;font-weight:600;color:var(--ink-soft);
  background:none;border:none;display:flex;align-items:center;gap:9px;
}
.sidebar-nav-item:hover{background:var(--paper-dim);}
.sidebar-nav-item.active{background:var(--ink);color:var(--paper);}
.admin-host .oauth-stack, .admin-host .oauth-divider, .admin-host #view-login .auth-link,
.admin-host #view-login .small-note, .admin-host .lang-switch{display:none !important;}

