/* Till Sunset Handyman — Owner v3 Streamlined Dashboard, Team, Work Board, AZ Tax Vault & Live Alerts */

.top-links { display: flex; gap: 8px; align-items: center; }

/* Auto-pricing type-ahead dropdown */
.ap-wrap { position: relative; width: 100%; }
.ap-sug {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60;
  background: #fff; border: 2px solid #3B2E7A; border-radius: 12px;
  box-shadow: 0 10px 28px rgba(32, 22, 74, 0.22); overflow: hidden;
  max-height: 290px; overflow-y: auto;
}
.ap-item {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 14px; border: 0; border-bottom: 1px solid #ece8f6; background: #fff;
  text-align: left; font: inherit; font-size: 15px; cursor: pointer; min-height: 46px;
}
.ap-item:last-child { border-bottom: 0; }
.ap-item:hover, .ap-item:focus { background: #f3effd; outline: none; }
.ap-name { color: #1f1938; font-weight: 500; }
.ap-price { color: #2d6a4f; font-size: 15px; white-space: nowrap; }

.auto-cust-hint { color: #1f6b47 !important; font-weight: 600; margin-top: -4px !important; }
.az-cap-alert {
  margin: 10px 0 0; padding: 12px 14px; border-radius: 10px;
  background: #fff3cd; border: 2px solid #d97706; color: #7c2d12;
  font-weight: 700; font-size: 14.5px; line-height: 1.4;
}

/* Red pill badges on tabs */
.v3-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px;
  border-radius: 999px; background: #d92d20; color: #fff;
  font-size: 12px; font-weight: 800; line-height: 1;
}

/* Priority Dashboard Strip */
.v3-dash { display: grid; gap: 12px; margin-bottom: 16px; }
.v3-alertbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  background: #f5f2ff; border: 1.5px solid #d7cef5; border-radius: 14px; padding: 12px 14px;
}
.v3-alertbar-txt { font-size: 14.5px; color: #261d52; font-weight: 600; }
.v3-alertbar-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.v3-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 10px;
}
.v3-tile {
  background: #fff; border: 1.5px solid #e3ddf2; border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer;
  min-height: 92px; transition: border-color .15s, transform .1s;
}
.v3-tile:hover { border-color: #3B2E7A; }
.v3-tile.urgent { background: #fff6f2; border-color: #e85d04; }
.v3-tile.cta { background: #3B2E7A; border-color: #3B2E7A; color: #fff; justify-content: center; align-items: center; text-align: center; }
.v3-tile.cta strong { color: #fff; font-size: 18px; }
.v3-tile.cta span { color: #e2dafd; font-size: 13.5px; }
.v3-tile-k { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #5b527a; }
.v3-tile.urgent .v3-tile-k { color: #b54708; }
.v3-tile-v { font-size: 24px; font-weight: 800; color: #1e1640; line-height: 1.15; }
.v3-tile.urgent .v3-tile-v { color: #b42318; }
.v3-tile-s { font-size: 13px; color: #5b527a; }

/* Live notification toast banner */
.v3-ntf-banner {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 9999;
  width: min(520px, calc(100vw - 24px)); background: #261d52; color: #fff;
  border: 2px solid #f4a261; border-radius: 14px; padding: 13px 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .32); display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.v3-ntf-title { font-weight: 800; font-size: 15px; color: #ffd166; margin: 0 0 2px; }
.v3-ntf-body { font-size: 14px; color: #fff; margin: 0; line-height: 1.35; }
.v3-ntf-close {
  background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 10px;
  padding: 8px 12px; font-weight: 700; cursor: pointer; min-height: 40px; flex-shrink: 0;
}

/* Team Review Queue & Roster */
.v3-qcard {
  border: 1.5px solid #e3ddf2; border-radius: 14px; padding: 14px; margin-bottom: 12px; background: #fff;
}
.v3-qcard.pending { border-color: #e85d04; background: #fffaf5; }
.v3-qhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.v3-pill {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
}
.v3-pill.pending { background: #ffedd5; color: #9a3412; }
.v3-pill.approved { background: #dcfce7; color: #166534; }
.v3-pill.needs_changes { background: #fef3c7; color: #92400e; }
.v3-pill.rejected { background: #fee2e2; color: #991b1b; }
.v3-pill.role-1099 { background: #ede9fe; color: #4c1d95; }
.v3-pill.role-w2 { background: #dbeafe; color: #1e40af; }

.v3-splitbox {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0;
  background: #f8f6fe; border: 1px solid #e4dcf7; border-radius: 10px; padding: 10px;
}
.v3-splitbox div { display: flex; flex-direction: column; gap: 2px; }
.v3-splitbox span { font-size: 12px; color: #5b527a; font-weight: 600; }
.v3-splitbox strong { font-size: 17px; color: #1e1640; }

.v3-items { list-style: none; margin: 8px 0; padding: 0; border-top: 1px solid #ece8f6; }
.v3-items li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #ece8f6; font-size: 14.5px; }

.v3-member {
  border: 1.5px solid #e3ddf2; border-radius: 14px; padding: 14px; margin-bottom: 12px; background: #fff;
}
.v3-checks { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.v3-checks label {
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600;
  background: #f7f5fc; border: 1px solid #e3ddf2; border-radius: 10px; padding: 8px 12px; cursor: pointer; min-height: 42px;
}
.v3-checks input[type="checkbox"] { width: 18px; height: 18px; accent-color: #3B2E7A; }

.v3-prog-wrap { margin: 10px 0; }
.v3-prog-bar { height: 12px; background: #ede9f8; border-radius: 999px; overflow: hidden; margin-top: 5px; }
.v3-prog-fill { height: 100%; background: linear-gradient(90deg, #3B2E7A, #e85d04); border-radius: 999px; }
.v3-prog-fill.over { background: #d92d20; }

/* Work Board & Job Dispatch */
.v3-jobcard {
  border: 1.5px solid #e3ddf2; border-radius: 14px; padding: 14px; margin-bottom: 10px; background: #fff;
}
.v3-job-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.v3-job-controls select { min-height: 44px; font-size: 15px; border-radius: 10px; padding: 8px 10px; border: 1.5px solid #ccc4e2; background: #fff; width: 100%; }

.v3-feed {
  display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto;
  padding: 12px; background: #f8f6fe; border: 1px solid #e4dcf7; border-radius: 12px; margin-bottom: 12px;
}
.v3-msg {
  background: #fff; border: 1px solid #e3ddf2; border-radius: 12px; padding: 10px 12px; max-width: 92%;
}
.v3-msg.owner { align-self: flex-end; background: #f0ecff; border-color: #c8bbf5; }
.v3-msg.team { align-self: flex-start; }
.v3-msg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: #5b527a; margin-bottom: 4px; }
.v3-msg-meta strong { color: #1f1938; }
.v3-jobtag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #fff3cd; color: #7c2d12; font-weight: 700; font-size: 11.5px; }
.v3-msg-body { font-size: 15px; color: #1f1938; line-height: 1.4; white-space: pre-wrap; margin: 0; }

/* AZ Tax & Payroll Vault */
.v3-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 10px 0; }
.v3-doclink {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid #dcd4f0; background: #faf9fe; text-decoration: none; color: #1f1938; min-height: 54px;
}
.v3-doclink:hover { border-color: #3B2E7A; background: #f2edff; }
.v3-doclink strong { color: #3B2E7A; font-size: 15px; }
.v3-doclink span { font-size: 13px; color: #5b527a; }

.v3-chklist { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.v3-chklist li {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  border: 1px solid #e3ddf2; border-radius: 10px; background: #fff;
}
.v3-chklist input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; accent-color: #3B2E7A; flex-shrink: 0; }
.v3-chklist a { color: #3B2E7A; font-weight: 700; }

.v3-calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 12px 0; }
.v3-calc-box { background: #f8f6fe; border: 1px solid #e3ddf2; border-radius: 10px; padding: 10px 12px; }
.v3-calc-box span { display: block; font-size: 12.5px; color: #5b527a; font-weight: 600; }
.v3-calc-box strong { font-size: 19px; color: #1f1938; }

.v3-guide-box {
  background: #f8f6fe; border-left: 4px solid #3B2E7A; border-radius: 10px; padding: 12px 14px; margin: 10px 0;
  font-size: 14.5px; line-height: 1.5; color: #1f1938;
}
.v3-guide-box ul { margin: 6px 0 0 18px; padding: 0; }
.v3-guide-box li { margin-bottom: 6px; }

@media (max-width: 560px) {
  .v3-splitbox { grid-template-columns: 1fr; }
  .v3-job-controls { grid-template-columns: 1fr; }
  .v3-strip { grid-template-columns: 1fr 1fr; }
}

.v3-prog { width: 100%; height: 12px; border-radius: 999px; overflow: hidden; border: 0; background: #ede9f8; margin-top: 6px; appearance: none; -webkit-appearance: none; }
.v3-prog::-webkit-progress-bar { background: #ede9f8; border-radius: 999px; }
.v3-prog::-webkit-progress-value { background: linear-gradient(90deg, #3B2E7A, #e85d04); border-radius: 999px; }
.v3-prog.over::-webkit-progress-value { background: #d92d20; }
.v3-prog::-moz-progress-bar { background: linear-gradient(90deg, #3B2E7A, #e85d04); border-radius: 999px; }
.v3-prog.over::-moz-progress-bar { background: #d92d20; }
