/* Advisor Handoff Inbox layout overrides, loaded after the shared dashboard CSS. */
@media (min-width: 1180px) {
  body.dashboard-active .dashboard[data-view="handoffs"] > #handoff-inbox {
    grid-column: 2 / 3 !important;
    grid-row: 3 !important;
    width: auto;
    min-width: 0;
    margin-left: 0;
  }
}

.voice-inspection-picker { margin: 0; padding: 16px; border: 1px solid #c8dedb; border-radius: 14px; background: #f4faf9; }
.voice-inspection-picker legend { padding: 0 8px; font-weight: 800; color: #123247; }
.voice-inspection-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.voice-inspection-photo { display: grid; grid-template-columns: 24px 56px 1fr; align-items: center; gap: 8px; min-width: 0; padding: 8px; border: 1px solid #c8dedb; border-radius: 12px; background: #fff; cursor: pointer; }
.voice-inspection-photo:has(input:checked) { border-color: #0b877d; box-shadow: 0 0 0 2px rgba(11, 135, 125, 0.12); }
.voice-inspection-photo img { width: 56px; height: 48px; object-fit: cover; border-radius: 8px; }
.voice-inspection-photo span { overflow: hidden; color: #27485b; font-size: 0.85rem; font-weight: 700; text-overflow: ellipsis; }
.voice-inspection-summary { margin-top: 10px; padding: 12px; border-left: 4px solid #0b877d; border-radius: 0 10px 10px 0; background: #eef8f6; }
.voice-inspection-summary p { margin: 4px 0 0; }
.voice-memo-photo-strip { display: flex; gap: 8px; margin-top: 10px; }
.voice-memo-photo-strip img { width: 72px; height: 56px; object-fit: cover; border: 1px solid #c8dedb; border-radius: 8px; }
.shop-mode-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:10px 12px; border:1px solid #c8dedb; border-radius:12px; background:#f4faf9; }
.shop-mode-toolbar > span { color:#526b78; font-size:.84rem; font-weight:700; }
.voice-recorder-status {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(80px,260px);
  gap:14px;
  align-items:center;
  width:100%;
  min-width:0;
}
.voice-recorder-status .voice-level-track {
  display:block;
  width:100%;
  min-width:0;
  height:10px;
  padding:0;
  box-sizing:border-box;
  overflow:hidden;
  border-radius:999px;
  background:#dbe8e5;
  box-shadow:inset 0 0 0 1px rgba(11,135,125,.08);
}
.voice-recorder-status .voice-level-track > span {
  display:block;
  width:3%;
  height:100%;
  padding:0;
  border-radius:inherit;
  background:linear-gradient(90deg,#0b877d,#60d3c3,#e3a13b);
  transition:width 100ms linear;
}
.voice-confidence-review { padding:12px 14px; border:1px solid #edcf91; border-radius:12px; background:#fff9e9; color:#62470d; }
.voice-confidence-review p { margin:6px 0 0; line-height:1.7; }
.voice-confidence-review mark { padding:2px 5px; border-radius:5px; background:#ffe3a9; color:#533a08; }
.voice-memo-section.shop-mode-enabled .voice-record-button { min-height:72px; padding-inline:28px; font-size:1.08rem; }
.voice-memo-section.shop-mode-enabled .voice-recorder { padding:20px; border-width:2px; }
.voice-memo-section.shop-mode-enabled .voice-cleanup-row button,
.voice-memo-section.shop-mode-enabled #voice-memo-submit,
.voice-memo-section.shop-mode-enabled #voice-apply-workflow { min-height:58px; font-size:1rem; }

@media (max-width: 520px) {
  .voice-inspection-photos { grid-template-columns: 1fr; }
  .shop-mode-toolbar > button { width:100%; }
  .voice-recorder-status { grid-template-columns:minmax(0,1fr) auto; }
  .voice-recorder-status .voice-level-track { grid-column:1 / -1; }
  .voice-memo-section.shop-mode-enabled .voice-recorder { grid-template-columns:1fr; }
  .voice-memo-section.shop-mode-enabled .voice-record-button { width:100%; min-height:78px; }
}
/* End-of-shift Voice Sweep */
.shift-sweep { display:grid; gap:14px; margin-top:18px; padding:18px; border:1px solid #bfded9; border-radius:16px; background:linear-gradient(145deg,#f3fbf9,#fff); }
.voice-command-center { display:grid; gap:14px; margin-top:18px; padding:18px; border:1px solid #9fd4cc; border-radius:16px; background:linear-gradient(145deg,#e9f8f5,#fff); box-shadow:0 14px 32px rgba(7,95,91,.08); }
.voice-command-center .section-heading,.voice-command-center p { margin:0; }
.voice-command-form { display:grid; grid-template-columns:auto minmax(220px,1fr) auto; gap:12px; align-items:end; }
.voice-command-form label { display:grid; gap:7px; font-weight:800; }
.voice-command-form input { min-height:48px; }
.voice-command-record { min-height:48px; display:inline-flex; align-items:center; justify-content:center; gap:9px; }
.voice-command-record[aria-pressed="true"] { border-color:#d45843; color:#9d321f; background:#fff2ef; }
.voice-command-mic { width:20px; height:20px; background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='2' stroke-linecap='round'%3E%3Crect x='8' y='3' width='8' height='12' rx='4'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3M8 21h8'/%3E%3C/svg%3E"); }
.voice-command-examples { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:8px; }
.voice-command-examples button { padding:6px 9px; border:1px solid #c9dedb; border-radius:999px; background:#fff; }
.voice-command-form .feedback { grid-column:1/-1; }
.voice-command-result { display:grid; gap:12px; padding:15px; border:1px solid #b9d9d4; border-radius:13px; background:#fff; }
.voice-command-result-heading { display:grid; gap:6px; }
.voice-command-result-heading h3,.voice-command-result-heading p { margin:0; }
.voice-command-status { justify-self:start; padding:5px 9px; border-radius:999px; background:#dff3ee; color:#075f5b; font-size:.76rem; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.voice-command-status.review { background:#fff0dd; color:#875918; }
.voice-command-result-actions { display:flex; flex-wrap:wrap; gap:9px; }
.voice-command-job-list { display:grid; gap:8px; }
.voice-command-job { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border:1px solid #d2e3e0; border-radius:11px; background:#f8fbfa; color:#0c2c3d; text-align:left; }
.voice-command-job span:first-child { display:grid; gap:3px; }
.voice-command-job small { color:#5d6d76; }
.voice-command-job span:last-child { color:#087c73; font-weight:800; white-space:nowrap; }
.shift-sweep .section-heading,.shift-sweep p { margin:0; }
.shift-sweep-form { display:grid; gap:12px; }
.shift-sweep-form label { display:grid; gap:7px; font-weight:700; }
.shift-sweep-form textarea { resize:vertical; min-height:112px; }
.shift-sweep-record { justify-self:start; display:inline-flex; align-items:center; gap:9px; }
.shift-sweep-record[aria-pressed="true"] { border-color:#d45843; color:#9d321f; background:#fff2ef; }
.shift-sweep-mic { width:18px; height:18px; background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087c73' stroke-width='2' stroke-linecap='round'%3E%3Crect x='8' y='3' width='8' height='12' rx='4'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3M8 21h8'/%3E%3C/svg%3E"); }
.shift-sweep-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.shift-sweep-summary span { padding:10px; border-radius:10px; background:#e8f5f2; text-align:center; }
.shift-sweep-summary strong { display:block; font-size:1.35rem; color:#075f5b; }
.shift-sweep-card-list { display:grid; gap:10px; margin-top:12px; }
.shift-sweep-card { display:grid; gap:7px; padding:14px; border:1px solid #d6e3e0; border-left:5px solid #d8a12e; border-radius:12px; background:#fff; }
.shift-sweep-card.matched { border-left-color:#159681; }
.shift-sweep-card.missing { border-left-color:#d45843; background:#fff9f7; }
.shift-sweep-card h3,.shift-sweep-card p { margin:0; }
.shift-sweep-status { justify-self:start; padding:4px 8px; border-radius:999px; background:#edf5f3; color:#075f5b; font-size:.76rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.shift-sweep-attention { color:#9a4a1f; }
.shift-sweep-card button { justify-self:start; }
@media (max-width:620px) { .shift-sweep{padding:14px}.shift-sweep-summary{grid-template-columns:1fr}.shift-sweep-record,#shift-sweep-prepare{width:100%;justify-content:center} }
@media (max-width:760px) { .voice-command-center{padding:14px}.voice-command-form{grid-template-columns:1fr}.voice-command-examples,.voice-command-form .feedback{grid-column:1}.voice-command-record,#voice-command-prepare{width:100%}.voice-command-job{align-items:flex-start}.voice-command-job span:last-child{font-size:.84rem} }
