/* Commission Work — matched to the product video (dark gold command UI) */
.cw-body {
  margin: 0;
  min-height: 100vh;
  background: #070b14;
  color: #e8edf5;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.cw-app {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}
.cw-sidebar {
  background: #080d18;
  border-right: 1px solid rgba(215, 170, 88, 0.12);
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cw-sidebar .dash-logo {
  display: flex;
  align-items: center;
  padding: 4px 8px 16px;
  text-decoration: none;
}
.cw-sidebar .dash-logo-img {
  height: 38px;
  max-width: 188px;
}
.cw-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cw-nav button,
.cw-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #9aa3b5;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
.cw-nav button:hover,
.cw-nav a:hover,
.cw-nav button[aria-current="page"],
.cw-nav a[aria-current="page"] {
  background: #121a2c;
  color: #f3d08a;
}
.cw-nav button[aria-current="page"],
.cw-nav a[aria-current="page"] {
  box-shadow: inset 3px 0 0 #d7aa58;
}
.cw-nav svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.cw-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #d7aa58;
  color: #171009;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cw-sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
}
.cw-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(215, 170, 88, 0.28);
  border-radius: 12px;
  background: #0c1220;
}
.cw-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d7aa58;
  color: #171009;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.cw-user strong,
.cw-chip-user strong {
  display: block;
  font-size: 13px;
  color: #f7f3ea;
}
.cw-user span,
.cw-chip-user span {
  display: block;
  font-size: 12px;
  color: #9aa3b5;
}
.cw-signout {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  color: #9aa3b5;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}
.cw-signout:hover { color: #f3d08a; }
.cw-main {
  min-width: 0;
  padding: 20px 28px 36px;
}
.cw-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin-bottom: 8px;
}
.cw-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(215, 170, 88, 0.22);
  background: #0c1220;
  color: #d7aa58;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cw-icon-btn svg { width: 18px; height: 18px; }
.cw-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0 12px;
  border-left: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
  color: #cfd6e4;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.cw-search {
  flex: 1;
  max-width: 520px;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0c1220;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 8px 12px;
  color: #9aa3b5;
  font-size: 13px;
}
.cw-search kbd {
  margin-left: auto;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
}
.cw-chip-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cw-eyebrow {
  color: #d7aa58;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 6px;
}
.cw-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 0 0 18px;
}
.cw-title-row h1,
.cw-form-head h1,
.cw-success-card h2 {
  margin: 0;
  color: #f7f3ea;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}
.cw-title-row h1 {
  border-bottom: 3px solid #d7aa58;
  display: inline-block;
  padding-bottom: 8px;
}
.cw-link {
  background: none;
  border: 0;
  color: #d7aa58;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.cw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #d7aa58;
  background: linear-gradient(145deg, #f3d08a, #b9802b);
  color: #171009;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.cw-btn.ghost {
  background: transparent;
  color: #f3d08a;
}
.cw-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0 20px;
}
.cw-stat {
  background: #0d1422;
  border: 1px solid rgba(215, 170, 88, 0.16);
  border-radius: 14px;
  padding: 18px 16px 16px;
}
.cw-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(215, 170, 88, 0.35);
  color: #d7aa58;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.cw-stat-icon svg { width: 20px; height: 20px; }
.cw-stat p {
  margin: 0 0 8px;
  color: #9aa3b5;
  font-size: 13px;
}
.cw-stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: #f7f3ea;
  margin-bottom: 8px;
}
.cw-delta { font-size: 12px; font-weight: 700; }
.cw-delta.up { color: #34d399; }
.cw-delta.flat { color: #9aa3b5; }
.cw-panel {
  background: #0d1422;
  border: 1px solid rgba(215, 170, 88, 0.16);
  border-radius: 14px;
  padding: 18px 18px 8px;
}
.cw-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cw-panel-head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #f7f3ea;
}
.cw-table {
  width: 100%;
  border-collapse: collapse;
}
.cw-table th {
  text-align: left;
  color: #8b93a7;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cw-table td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #d5dbe6;
  font-size: 14px;
}
.cw-table td:first-child { color: #f7f3ea; font-weight: 700; }
.cw-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d7aa58;
  color: #f3d08a;
  font-size: 12px;
  font-weight: 700;
}
.cw-insight {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(215, 170, 88, 0.35);
  background: rgba(215, 170, 88, 0.06);
}
.cw-insight strong { color: #f3d08a; }
.cw-insight p { margin: 4px 0 0; color: #cfd6e4; font-size: 14px; }
.cw-insight .cw-btn { margin-left: auto; flex: none; }
.cw-crumb {
  color: #8b93a7;
  font-size: 13px;
  margin: 0 0 10px;
}
.cw-crumb b { color: #f3d08a; font-weight: 700; }
.cw-sub {
  margin: 8px 0 22px;
  color: #9aa3b5;
}
.cw-form-card {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
}
.cw-form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.cw-form-label b {
  color: #f3d08a;
  letter-spacing: 0.1em;
  font-size: 12px;
  text-transform: uppercase;
}
.cw-form-card h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
}
.cw-form-card > p { color: #9aa3b5; margin: 0 0 22px; }
.cw-field { margin: 0 0 18px; }
.cw-field label {
  display: block;
  margin: 0 0 8px;
  color: #f7f3ea;
  font-weight: 700;
}
.cw-field .req { color: #d7aa58; }
.cw-field input,
.cw-field select,
.cw-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 0;
  border-bottom: 1px solid rgba(215, 170, 88, 0.35);
  background: transparent;
  color: #f7f3ea;
  font: inherit;
}
.cw-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23d7aa58' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.cw-budget {
  display: flex;
  align-items: stretch;
}
.cw-budget span {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #d7aa58;
  font-weight: 800;
  border-bottom: 1px solid rgba(215, 170, 88, 0.35);
}
.cw-budget input { border-left: 0; }
.cw-help { margin: 6px 0 0; color: #8b93a7; font-size: 12px; }
.cw-count { float: right; color: #8b93a7; font-size: 12px; }
.cw-post {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  border-radius: 10px;
  letter-spacing: 0.04em;
}
.cw-lock {
  margin: 12px 0 0;
  color: #8b93a7;
  font-size: 13px;
}
.cw-notice {
  margin: 12px 0 0;
  color: #ff7c7c;
  font-size: 14px;
  font-weight: 600;
}
.cw-notice[hidden] { display: none !important; }
.cw-success-card,
.cw-detail-card,
.cw-next {
  background: #0d1422;
  border: 1px solid rgba(215, 170, 88, 0.22);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
}
.cw-success-top,
.cw-detail-top,
.cw-next {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.cw-success-card p { color: #9aa3b5; }
.cw-detail-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}
.cw-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #cfd6e4;
  font-size: 14px;
  margin: 0 0 14px;
}
.cw-scope { color: #d5dbe6; line-height: 1.55; margin: 0 0 16px; }
.cw-posted { color: #8b93a7; font-size: 13px; }
[hidden] { display: none !important; }
@media (max-width: 980px) {
  .cw-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .cw-app { grid-template-columns: 1fr; }
  .cw-sidebar { border-right: 0; border-bottom: 1px solid rgba(215, 170, 88, 0.12); }
  .cw-stats { grid-template-columns: 1fr; }
  .cw-table { display: block; overflow-x: auto; }
  .cw-insight, .cw-success-top, .cw-detail-top, .cw-next { flex-direction: column; }
  .cw-insight .cw-btn { margin-left: 0; }
}

.cw-pill.proposal { border-color: #f0a0a8; color: #ffb4ba; }
.cw-pill.qualification { border-color: #6b7280; color: #9aa3b5; }
.cw-pill.open { position: relative; padding-left: 18px; }
.cw-pill.open::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #f87171;
}
.cw-more {
  background: none;
  border: 0;
  color: #9aa3b5;
  font: inherit;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.cw-check {
  display: inline-flex;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 50%;
  background: #166534;
  color: #86efac;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  vertical-align: -4px;
}


/* —— Delivery Partner opportunities & proposal —— */
.job-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 16px;
}
.job-select, .job-search {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(215,170,88,0.22);
  background: #0c1220;
  color: #e8edf5;
  padding: 8px 12px;
  font: inherit;
}
.job-search { flex: 1; min-width: 180px; }
.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-card {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 16px;
  align-items: center;
  background: #0d1422;
  border: 1px solid rgba(215,170,88,0.16);
  border-radius: 14px;
  padding: 16px 18px;
}
.job-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #d7aa58;
  color: #171009;
  display: flex;
  align-items: center;
  justify-content: center;
}
.job-icon svg { width: 26px; height: 26px; }
.job-card h2 { margin: 0 0 4px; font-size: 1.05rem; color: #f7f3ea; }
.job-loc { margin: 0 0 6px; color: #d7aa58; font-size: 13px; font-weight: 600; }
.job-card p { margin: 0; color: #9aa3b5; font-size: 13px; line-height: 1.45; max-width: 52ch; }
.job-money { text-align: right; min-width: 120px; }
.job-money span { display: block; color: #8b93a7; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.job-money strong { display: block; color: #f7f3ea; margin: 4px 0; }
.job-money em { display: block; font-style: normal; color: #9aa3b5; font-size: 13px; }
.job-note { margin: 16px 0 0; color: #d7aa58; font-size: 13px; }
.job-pages { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.job-pages button {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid rgba(215,170,88,0.22);
  background: #0c1220; color: #d7aa58; cursor: pointer; font: inherit;
}
.job-pages button[aria-current="page"] {
  background: #d7aa58; color: #171009; border-color: #d7aa58; font-weight: 800;
}
.tagline { display: block; color: #d7aa58; font-size: 11px; padding: 0 8px 10px; }
.secure-line { color: #8b93a7; font-size: 12px; padding: 8px 12px 0; }

.prop-wrap { max-width: 980px; }
.prop-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 22px; }
.prop-summary {
  min-width: 240px;
  background: #0d1422;
  border: 1px solid rgba(215,170,88,0.22);
  border-radius: 12px;
  padding: 14px 16px;
}
.prop-summary span { display: block; color: #d7aa58; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.prop-summary strong { display: block; color: #f7f3ea; margin-bottom: 4px; }
.prop-summary em { color: #9aa3b5; font-style: normal; font-size: 13px; }
.prop-label { color: #d7aa58; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.prop-row { display: flex; flex-wrap: wrap; gap: 10px; }
.prop-row .grow { flex: 1; min-width: 180px; }
.prefix-input { display: flex; align-items: stretch; flex: 1; min-width: 220px; }
.prefix-input span, .prefix-input input, .cw-field select.mini {
  min-height: 48px; border: 0; border-bottom: 1px solid rgba(215,170,88,0.35);
  background: transparent; color: #f7f3ea; font: inherit;
}
.prefix-input span { display: flex; align-items: center; padding: 0 10px; color: #d7aa58; font-weight: 800; }
.prefix-input input { flex: 1; padding: 12px 14px; }
.dropzone {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px dashed rgba(215,170,88,0.4);
  border-radius: 12px; padding: 16px 18px; color: #9aa3b5;
}
.form-end { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.legal { text-align: center; color: #8b93a7; font-size: 13px; margin-top: 18px; }
.legal a { color: #d7aa58; }

/* —— Executive Command —— */
.cmd-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 16px; }
.cmd-kpi {
  background: #0d1422; border: 1px solid rgba(215,170,88,0.16);
  border-radius: 16px; padding: 18px 18px 16px;
}
.cmd-kpi .label { color: #8b93a7; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.cmd-kpi .num { font-size: 2.1rem; font-weight: 750; color: #f7f3ea; margin: 8px 0 6px; }
.cmd-kpi .up { color: #34d399; font-size: 13px; font-weight: 700; }
.cmd-kpi .down { color: #f87171; font-size: 13px; font-weight: 700; }
.cmd-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cmd-panel {
  background: #0d1422; border: 1px solid rgba(215,170,88,0.16);
  border-radius: 16px; padding: 16px 18px 14px;
}
.cmd-panel-h { display: flex; justify-content: space-between; align-items: center; color: #8b93a7; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.cmd-panel-h select { background: #0c1220; color: #d7aa58; border: 1px solid rgba(215,170,88,0.22); border-radius: 8px; padding: 4px 8px; }
.cmd-big { font-size: 2rem; font-weight: 750; margin: 0; }
.cmd-split { display: flex; gap: 16px; align-items: center; }
.donut {
  width: 118px; height: 118px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.donut::after {
  content: ""; position: absolute; inset: 22px; border-radius: 50%; background: #0d1422;
}
.donut b { position: relative; z-index: 1; text-align: center; font-size: 22px; line-height: 1.1; }
.donut b small { display: block; font-size: 11px; color: #8b93a7; font-weight: 600; }
.legend { list-style: none; margin: 0; padding: 0; color: #cfd6e4; font-size: 13px; }
.legend li { display: flex; gap: 8px; margin: 0 0 8px; align-items: flex-start; }
.swatch { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; }
.cmd-link { color: #d7aa58; text-decoration: none; font-weight: 700; font-size: 13px; display: inline-block; margin-top: 8px; background: none; border: 0; font: inherit; font-weight: 700; color: #d7aa58; cursor: pointer; }
.cmd-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.cmd-row { display: grid; grid-template-columns: 140px 1fr auto auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.06); font-size: 13px; }
.cmd-row:first-of-type { border-top: 0; }
.cmd-id { color: #f7f3ea; font-weight: 700; }
.cmd-sub { display: block; color: #8b93a7; font-size: 12px; font-weight: 500; }
.pri { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pri.high { background: rgba(248,113,113,0.15); color: #fca5a5; }
.pri.med { background: rgba(251,191,36,0.15); color: #fbbf24; }
.pri.low { background: rgba(148,163,184,0.15); color: #94a3b8; }
.pri.pending { border: 1px solid #d7aa58; color: #f3d08a; }
.bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; background: #d7aa58; }
.cmd-vrow { padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.cmd-vrow:first-of-type { border-top: 0; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; display: inline-block; margin-left: 8px; }
.cmd-locked { max-width: 520px; padding: 24px 0; }

@media (max-width: 1100px) {
  .job-card { grid-template-columns: 52px 1fr; }
  .job-money, .job-card .cw-btn { grid-column: 2; justify-self: start; text-align: left; }
  .cmd-kpis, .cmd-panels, .cmd-lower { grid-template-columns: 1fr; }
  .prop-head { flex-direction: column; }
}
