/* Go Dashboard · Request History on the Go app's LIVE screen (G40-594 RH = A:
   component/home/GoHistory.js + historyModel.js, Go production 10/27).
   Owner pick 10/27 7:49 PM, picker slide 18 = A: the app's cards, a job's page in a
   centred pop-up. The app's own classes (css/goHistory.css and the parts of
   css/goJob.css a job's page uses), scoped under .gh-x with the app's tokens; the
   Urbanist faces are already loaded on gopher-go.html by rq-app-signup.css. */
.gh-x, .ghm{ --gg-navy:#002461; --gg-ink-soft:#3a4d74; --gg-paper:#fbf7ef; --gg-line:#eae3d5;
  --gg-shamrock:#33d975; --gg-meadow:#1cb061; --gg-green-text:#127a45; --gg-red:#c44257;
  --gg-sh:0 1px 2px rgba(0,36,97,.05),0 6px 16px rgba(0,36,97,.08);
  color:var(--gg-navy); font-family:"Urbanist-Regular","DM Sans",system-ui,sans-serif; }
.gh-x *{ box-sizing:border-box; }
.gh-x .panel-head h2{ margin:0 0 14px; }
/* tabs + search (GoHistory.js:299-322); on a desktop they share one row */
.gh-bar{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-bottom:14px; }
.gh-x .gh-tabs{ display:flex; gap:8px; }
.gh-x .gh-tabs button{ border:1.5px solid var(--gg-navy); background:#fff; color:var(--gg-navy); border-radius:99px;
  padding:6px 16px; font-family:"Urbanist-Bold",sans-serif; font-size:15px; cursor:pointer; }
.gh-x .gh-tabs button.gh-on{ background:var(--gg-navy); color:#fff; }
.gh-x .gh-search{ flex:1 1 260px; display:flex; align-items:center; gap:8px; background:#fff; border:1.5px solid var(--gg-navy);
  border-radius:99px; padding:8px 14px; box-shadow:0 2px 8px rgba(0,36,97,.06); color:#8a93a6; }
.gh-x .gh-search input{ flex:1; min-width:0; border:0; outline:0; background:transparent; font:inherit; font-size:15px; color:var(--gg-navy); }
/* the list on the app's sand */
.gh-sand{ background:var(--gg-paper); border-radius:14px; padding:12px; }
.gh-x .gh-list{ display:flex; flex-direction:column; gap:10px; }
/* the card (GoHistory.js:80-112) */
.gh-x .gh-card{ display:flex; gap:12px; align-items:flex-start; text-align:left; width:100%; background:#fff;
  border:1.5px solid var(--gg-line); border-radius:16px; padding:12px; box-shadow:0 2px 8px rgba(0,36,97,.06);
  color:var(--gg-navy); font:inherit; cursor:pointer; }
.gh-x .gh-card:hover{ border-color:#d8cdb6; }
.gh-x .gh-card > img, .gh-x .gh-ph{ width:56px; height:56px; border-radius:12px; object-fit:cover; flex:none; }
.gh-x .gh-ph{ display:grid; place-items:center; background:repeating-linear-gradient(135deg,#f1ece1 0 6px,#f7f3ea 6px 12px);
  border:1.5px dashed #d6ccb8; color:#8b8170; font-family:"Urbanist-Bold",sans-serif; font-size:9px; letter-spacing:.06em; text-align:center; line-height:1.15; }
.gh-x .gh-main{ flex:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:3px; }
.gh-x .gh-main b{ font-family:"Urbanist-Bold",sans-serif; font-weight:normal; font-size:16px; line-height:1.25; overflow:hidden;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.gh-x .gh-sub{ font-family:"Urbanist-SemiBold",sans-serif; font-size:13.5px; color:var(--gg-ink-soft); }
.gh-x .gh-amt{ flex:none; display:flex; flex-direction:column; align-items:flex-end; }
.gh-x .gh-amt small{ font-family:"Urbanist-Black",sans-serif; font-size:10px; letter-spacing:.06em; color:var(--gg-ink-soft); text-transform:uppercase; }
.gh-x .gh-amt b{ font-family:"Urbanist-Black",sans-serif; font-weight:normal; font-size:19px; }
.gh-x .gh-amt i, .gh-x .gh-chev{ font-style:normal; color:var(--gg-ink-soft); font-size:18px; line-height:1; margin-top:4px; }
.gh-x .gh-pill{ display:inline-block; font-family:"Urbanist-Black",sans-serif; font-size:11px; letter-spacing:.05em; border-radius:6px; padding:2px 8px; white-space:nowrap; }
.gh-x .gh-paid{ background:#e8f5ee; color:var(--gg-green-text); }
.gh-x .gh-wait{ background:#e7eefa; color:var(--gg-navy); }
.gh-x .gh-bad{ background:var(--gg-red); color:#fff; }
.gh-x .gh-grey{ background:#f1efea; color:#5d5a52; }
.gh-x .gh-stars{ color:var(--gg-meadow); letter-spacing:1px; font-size:15px; }
.gh-x .gh-rate{ border:0; background:var(--gg-shamrock); color:var(--gg-navy); border-radius:8px; padding:5px 12px;
  font-family:"Nunito","Urbanist-ExtraBold",sans-serif; font-weight:800; font-size:13px; box-shadow:0 0 0 3px rgba(51,217,117,.25); cursor:pointer; margin-top:2px; }
/* a job's page (GoHistory.js:114-216 + goJob.css) */
.gh-x .gj-page{ display:flex; flex-direction:column; gap:12px; }
.gh-x .gj-hd{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; min-height:34px; }
.gh-x .gj-hd .gh-pill{ justify-self:center; }
.gh-x .gj-x{ justify-self:end; width:34px; height:34px; border:0; border-radius:8px; background:transparent; color:var(--gg-ink-soft); font-size:24px; line-height:1; cursor:pointer; }
.gh-x .gj-x:hover{ background:#efe9dc; }
.gh-x .gj-hero{ background:linear-gradient(160deg,var(--gg-navy),#0a1f47); color:#fff; border-radius:18px; padding:14px 16px; }
.gh-x .gj-hero small{ font-family:"Nunito","Urbanist-ExtraBold",sans-serif; font-weight:700; font-size:12px; letter-spacing:.16em; text-transform:uppercase; opacity:.9; }
.gh-x .gj-e{ font-family:"Urbanist-Black",sans-serif; font-size:34px; line-height:1.1; color:var(--gg-shamrock); }
.gh-x .gj-s{ font-family:"Urbanist-SemiBold",sans-serif; font-size:13.5px; opacity:.92; }
.gh-x .gj-card{ background:#fff; border:1.5px solid var(--gg-line); border-radius:16px; padding:12px 14px; box-shadow:var(--gg-sh); }
.gh-x .gh-rate-row{ display:flex; justify-content:space-between; align-items:center; }
.gh-x .gh-rate-row b{ font-family:"Urbanist-Bold",sans-serif; font-weight:normal; font-size:16px; }
.gh-x .gh-rate-row .gh-stars{ font-size:20px; }
.gh-x .gj-h{ font-family:"Nunito","Urbanist-ExtraBold",sans-serif; font-weight:700; font-size:12px; letter-spacing:.16em; color:var(--gg-ink-soft); margin-bottom:6px; text-transform:uppercase; }
.gh-x .gh-job{ display:block; font-family:"Urbanist-Bold",sans-serif; font-weight:normal; font-size:16px; margin-bottom:4px; line-height:1.3; }
.gh-x .gh-log{ display:flex; gap:10px; padding:4px 0; font-family:"Urbanist-SemiBold",sans-serif; font-size:14px; }
.gh-x .gh-log span:first-child{ flex:none; width:118px; color:var(--gg-ink-soft); }
.gh-x .gh-log.gh-logbad{ color:var(--gg-red); font-weight:700; }
.gh-x .gj-photos{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.gh-x .gj-photos img{ width:96px; height:96px; border-radius:11px; object-fit:cover; display:block; }

/* the job's page in a centred pop-up (owner: web pop-ups open centred) */
.ghm-overlay{ position:fixed; inset:0; z-index:9500; background:rgba(13,26,62,.55); display:flex; align-items:center; justify-content:center; padding:24px; }
.ghm-overlay[hidden]{ display:none; }
.ghm{ width:100%; max-width:480px; max-height:calc(100vh - 48px); overflow-y:auto; overscroll-behavior:contain;
  background:var(--gg-paper); border-radius:18px; padding:12px 16px 18px; box-shadow:0 30px 80px rgba(0,0,0,.35); }
@media (max-width:560px){ .ghm-overlay{ padding:12px; } .ghm{ max-height:calc(100vh - 24px); padding:10px 12px 14px; } }

.gh-x .ghm{ max-width:520px; }
.gh-x .gh-pill{ max-width:100%; overflow:hidden; text-overflow:ellipsis; }
.gh-x .gh-rated{ white-space:nowrap; }
@media (max-width:560px){
  .panel.gh-x{ padding:18px 12px; }
  .gh-sand{ background:transparent; padding:0; }
  .gh-x .gh-card{ gap:10px; padding:11px; }
  .gh-x .gh-card > img, .gh-x .gh-ph{ width:48px; height:48px; }
  .gh-x .gh-ph{ font-size:8px; }
  .gh-x .gh-main b{ font-size:15px; }
  .gh-x .gh-amt b{ font-size:17px; }
}

/* loading, empty and error lines (GoHistory.js:326-350, the app's .gg-empty) */
.gh-x .gh-empty{ margin:6px 2px; font-family:"Urbanist-SemiBold",sans-serif; font-size:15px; color:var(--gg-ink-soft); text-align:center; padding:18px 0; }
.gh-x .gh-empty.gh-err{ color:var(--gg-red); }
.gh-x .gh-link{ border:0; background:none; padding:0; font:inherit; color:var(--gg-navy); text-decoration:underline; cursor:pointer; }
.gh-x .gh-loading{ text-align:center; padding:8px 0; }
.gh-x .gh-card:focus-visible, .gh-x .gj-x:focus-visible, .gh-x .gh-rate:focus-visible{ outline:3px solid var(--gg-shamrock); outline-offset:2px; }
body.ghm-open{ overflow:hidden; }

/* Rate now: the app's rating page in place of the list (Go production c6106b460
   component/grating.js + css/goJob.css .gj-back/.gj-tick/.gj-who/.gj-av/.gj-holes/
   .gj-center; slide 24 = A, John 10/28). Holes: the app's assets_1/noRating.svg
   (empty) and the gopher up (full). Done = the page's G40-604 kit .gc-modal-btn. */
.gh-x.gj-rating .gh-bar, .gh-x.gj-rating .gh-sand{ display:none; }
.gh-x .gj-rate{ background:var(--gg-paper); border-radius:14px; padding:14px 16px 22px; }
.gh-x .gj-rate[hidden]{ display:none; }
.gh-x .gj-col{ max-width:560px; margin:0 auto; display:flex; flex-direction:column; gap:10px; }
.gh-x .gj-back{ justify-self:start; background:none; border:0; padding:6px 0; font-family:"Urbanist-Bold",sans-serif; font-size:16px; color:var(--gg-meadow); cursor:pointer; }
.gh-x .gj-back:hover{ text-decoration:underline; }
.gh-x .gj-rate .gj-hero{ position:relative; }
.gh-x .gj-rate .gj-hero .gj-s{ max-width:calc(100% - 40px); }
.gh-x .gj-tick{ position:absolute; top:14px; right:14px; width:30px; height:30px; border-radius:50%; background:var(--gg-shamrock); color:var(--gg-navy);
  display:grid; place-items:center; font-family:"Urbanist-Black",sans-serif; }
.gh-x .gj-who{ display:flex; align-items:center; gap:10px; }
.gh-x .gj-av{ width:42px; height:42px; border-radius:50%; background:#e8f5ee; color:var(--gg-meadow); display:grid; place-items:center;
  font-family:"Urbanist-Black",sans-serif; font-size:17px; flex:none; overflow:hidden; }
.gh-x .gj-av img{ width:100%; height:100%; object-fit:cover; }
.gh-x .gj-who b{ display:block; font-family:"Nunito","Urbanist-ExtraBold",sans-serif; font-weight:800; font-size:16px; color:var(--gg-navy); }
.gh-x .gj-who span{ font-family:"Urbanist-SemiBold",sans-serif; font-size:13px; color:var(--gg-ink-soft); }
.gh-x .gj-holes{ display:flex; justify-content:center; gap:10px; margin:8px 0 2px; }
.gh-x .gj-holes button{ width:54px; height:54px; border:0; padding:0; cursor:pointer;
  background:transparent url(../img/go-rate-hole-empty.svg) center bottom / contain no-repeat; }
.gh-x .gj-holes button.gj-on{ background-image:url(../img/rate-hole-full.png); }
.gh-x .gj-holes button:focus-visible, .gh-x .gj-back:focus-visible{ outline:3px solid var(--gg-shamrock); outline-offset:2px; border-radius:10px; }
.gh-x .gj-center{ text-align:center; font-family:"Urbanist-SemiBold",sans-serif; font-size:13px; color:var(--gg-ink-soft); }
.gh-x .gj-in{ display:block; margin-top:10px; width:100%; border:1.5px solid var(--gg-navy); border-radius:10px; padding:10px 12px;
  font-family:"Urbanist-Regular",sans-serif; font-size:15px; color:var(--gg-navy); background:#fff; resize:vertical; min-height:84px; }
.gh-x .gj-in::placeholder{ color:#8a93a6; }
.gh-x .gj-in:focus{ outline:none; box-shadow:0 0 0 3px rgba(51,217,117,.3); }
/* Done: kit green with navy words; grey until a hole is filled (the page's .btn-save:disabled grey) */
.gh-x .gj-done.gc-modal-btn{ display:block; width:100%; margin:0; }
.gh-x .gj-done.gc-modal-btn:disabled{ background:#d3d8e0; color:#fff; cursor:not-allowed; box-shadow:none; }
.gh-x .gj-done.gc-modal-btn.gj-sending:disabled{ background:#33d975; color:#002461; opacity:.7; cursor:progress; }
@media (max-width:560px){ .gh-x .gj-rate{ background:transparent; padding:0; } }
