:root {
  --navy:#0f2d52;
  --navy-dark:#071a31;
  --blue:#1565c0;
  --orange:#f47c20;
  --bg:#f3f6fa;
  --card:#ffffff;
  --text:#142033;
  --muted:#66758a;
  --line:#dbe4ee;
  --green:#148a49;
  --red:#b3261e;
  --shadow:0 12px 34px rgba(15,45,82,.12);
}
* { box-sizing:border-box; }
body {
  margin:0;
  min-height:100vh;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  display:grid;
  grid-template-columns:280px 1fr;
}
.sidebar {
  min-height:100vh;
  background:linear-gradient(180deg,var(--navy),var(--navy-dark));
  color:#fff;
  padding:22px 18px;
  position:sticky;
  top:0;
}
.brand { display:flex; align-items:center; gap:12px; margin-bottom:26px; }
.brand-mark {
  width:48px; height:48px; border-radius:16px;
  background:linear-gradient(135deg,var(--orange),#ffad45);
  display:grid; place-items:center; font-size:29px; font-weight:950;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.28);
}
.brand-title { font-weight:950; font-size:1.15rem; letter-spacing:.2px; }
.brand-subtitle { color:#bdd7f6; font-size:.82rem; font-weight:700; }
.nav { display:grid; gap:8px; }
.nav-item {
  border:0; width:100%; text-align:left; border-radius:14px; padding:13px 14px;
  color:#d8e8ff; background:rgba(255,255,255,.08); font-weight:850; cursor:pointer;
}
.nav-item.active, .nav-item:hover { background:#fff; color:var(--navy); }
.sidebar-footer { position:absolute; left:18px; right:18px; bottom:18px; display:grid; gap:8px; }
button, .file-label {
  border:0; border-radius:14px; padding:11px 14px; font-weight:900; cursor:pointer;
  display:inline-flex; justify-content:center; align-items:center; gap:8px;
}
.primary { background:var(--navy); color:#fff; }
.secondary, .ghost { background:#edf3fb; color:var(--navy); }
.orange { background:var(--orange); color:#fff; }
.danger { background:var(--red); color:#fff; }
.full { width:100%; }
.app-shell { padding:24px; min-width:0; }
.topbar { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom:18px; }
h1 { margin:0; font-size:1.85rem; }
h2 { margin:.1rem 0 .8rem; font-size:1.16rem; }
h3 { margin:.1rem 0 .65rem; font-size:1.02rem; }
p { line-height:1.45; }
#pageSubtitle { margin:.25rem 0 0; color:var(--muted); }
.grid { display:grid; grid-template-columns:repeat(12,1fr); gap:16px; }
.card {
  background:var(--card); border:1px solid var(--line); border-radius:22px;
  padding:18px; box-shadow:var(--shadow);
}
.span-12 { grid-column:span 12; } .span-8 { grid-column:span 8; } .span-6 { grid-column:span 6; } .span-4 { grid-column:span 4; } .span-3 { grid-column:span 3; }
.stat { font-size:2.2rem; color:var(--navy); font-weight:950; }
.muted { color:var(--muted); }
.money { color:var(--green); font-weight:950; }
input, select, textarea {
  width:100%; border:1px solid var(--line); border-radius:14px; padding:12px;
  font:inherit; background:#fff;
}
textarea { min-height:86px; resize:vertical; }
label { display:block; font-size:.82rem; color:var(--muted); font-weight:900; margin:9px 0 5px; }
.actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.list { display:grid; gap:10px; }
.item {
  border:1px solid var(--line); border-radius:17px; padding:13px; background:#fff;
  display:flex; justify-content:space-between; align-items:flex-start; gap:14px;
}
.item.clickable { cursor:pointer; }
.item.clickable:hover { border-color:#a9c7eb; transform:translateY(-1px); }
.badge { display:inline-flex; border-radius:999px; padding:4px 9px; background:#edf3fb; color:var(--navy); font-size:.78rem; font-weight:900; }
.badge.open { background:#e7f8ee; color:#126c39; }
.badge.closed { background:#f1f4f8; color:#5b6674; }
.form-grid { display:grid; grid-template-columns:repeat(12,1fr); gap:12px; }
.line-card { border:1px dashed #b9c7d6; border-radius:18px; padding:14px; margin:12px 0; background:#fbfdff; }
.parts-table { width:100%; border-collapse:collapse; font-size:.92rem; }
.parts-table th,.parts-table td { border-bottom:1px solid var(--line); padding:8px; text-align:left; vertical-align:top; }
.parts-table input { padding:8px; border-radius:10px; min-width:95px; }
.photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:10px; margin-top:12px; }
.photo { position:relative; border:1px solid var(--line); border-radius:15px; overflow:hidden; background:#fff; }
.photo img { width:100%; height:110px; object-fit:cover; display:block; }
.photo small { display:block; padding:7px; font-size:.72rem; color:var(--muted); }
.photo .danger { position:absolute; top:6px; right:6px; padding:5px 8px; border-radius:10px; }
.toolbar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:space-between; margin-bottom:12px; }
.search { max-width:520px; }
.toast {
  position:fixed; left:50%; bottom:24px; transform:translateX(-50%);
  background:var(--navy-dark); color:white; padding:12px 16px; border-radius:999px;
  box-shadow:var(--shadow); font-weight:850; z-index:50;
}
.mobile-tabs { display:none; }
@media (max-width:900px) {
  body { display:block; }
  .sidebar { position:static; min-height:auto; padding:14px; }
  .nav { grid-template-columns:repeat(3,1fr); }
  .sidebar-footer { position:static; margin-top:12px; grid-template-columns:1fr 1fr; }
  .app-shell { padding:14px; }
}
@media (max-width:680px) {
  .span-8,.span-6,.span-4,.span-3 { grid-column:span 12; }
  .topbar { align-items:flex-start; }
  .nav { display:flex; overflow:auto; }
  .nav-item { white-space:nowrap; }
  .item { display:block; }
}
@media print {
  .sidebar,.topbar .topbar-actions,.actions,.no-print { display:none!important; }
  body { display:block; background:white; }
  .app-shell { padding:0; }
  .card { box-shadow:none; border:0; padding:0; }
}


.autocomplete-wrap {
  position: relative;
}
.suggestions {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.suggestion {
  width: 100%;
  display: block;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.suggestion:hover {
  background: #edf3fb;
}
.suggestion span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.warning-field {
  border-color: #d98200 !important;
  background: #fff4df !important;
  box-shadow: 0 0 0 3px rgba(244,124,32,.16);
}
.required-note {
  color: #b3261e;
  font-weight: 950;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7,26,49,.58);
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal-card {
  width: min(760px, 96vw);
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}


/* Fix: make sure hidden modals actually stay hidden. */
.modal-backdrop[hidden] {
  display: none !important;
}


.confirm-card {
  max-width: 460px;
  text-align: left;
}
.confirm-card h2 {
  color: var(--red);
}


.input-with-button {
  display: flex;
  gap: 6px;
  align-items: center;
}
.input-with-button input {
  min-width: 0;
}
.compact-btn {
  padding: 10px 11px;
  white-space: nowrap;
}


.line-card.declined-line {
  position: relative;
  background: #f7f7f7;
  color: #666;
}
.line-card.declined-line::after {
  content: "DECLINED";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 42%;
  display: grid;
  place-items: center;
  color: rgba(179,38,30,.18);
  font-size: 48px;
  font-weight: 950;
  letter-spacing: 6px;
  border: 3px solid rgba(179,38,30,.16);
  padding: 10px 0;
  pointer-events: none;
  text-align: center;
}
.history-card {
  width: min(980px, 96vw);
}
.history-ro {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  margin: 12px 0;
  background: #fff;
}
.history-line {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  margin: 8px 0;
}
.history-line-head {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}
.declined-history-line {
  background:#f7f7f7;
  border-color:#e0b4b4;
}


.history-line p {
  margin: 4px 0;
}


@media print {
  .line-card.declined-line::after {
    font-size: 18px;
    letter-spacing: 2px;
    top: 38%;
    padding: 3px 0;
    border-width: 1px;
  }
}


.tech-select {
  min-width: 150px;
}
.line-card .toolbar select {
  width: auto;
}


.inventory-warning {
  border: 1px solid #d98200;
  background: #fff4df;
  color: #5c3900;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-weight: 800;
}
.inventory-low-row {
  border-color: #d98200 !important;
  background: #fffaf0 !important;
}
.danger-badge {
  background: #ffe5e2;
  color: var(--red);
}


.receipt-pay-link {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
}
.receipt-pay-link a {
  color: #0f2d52;
  text-decoration: none;
  word-break: break-all;
}


.receipt-electronic-payment {
  margin-top: 16px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}
.receipt-electronic-payment a {
  color: #0f2d52;
  text-decoration: underline;
}

.save-status {
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  border-radius:999px;
  padding:8px 12px;
  font-size:.82rem;
  font-weight:900;
  white-space:nowrap;
}
.save-status.saved { color:var(--green); border-color:#bfe8d1; background:#f1fbf5; }
.save-status.saving { color:var(--navy); border-color:#b8cff0; background:#f4f8ff; }
.save-status.dirty { color:#9a5a00; border-color:#f5cf8e; background:#fff7e8; }

.user-badge {
  border:1px solid var(--line);
  background:#fff;
  color:var(--navy);
  border-radius:999px;
  padding:8px 12px;
  font-size:.82rem;
  font-weight:900;
  white-space:nowrap;
}
.login-card { max-width: 430px; }
.login-backdrop { z-index: 200; }
.small-note { font-size:.82rem; margin-bottom:0; }
button:disabled, select:disabled, input:disabled, textarea:disabled {
  opacity:.58;
  cursor:not-allowed;
}
.time-clock-panel {
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  padding:10px 12px;
}
.clock-row {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin:4px 0 8px;
}
.time-entry-list { display:grid; gap:6px; margin-top:6px; }
.time-entry {
  border:1px solid var(--line);
  border-radius:12px;
  padding:8px 10px;
  display:grid;
  grid-template-columns:minmax(100px, 160px) 1fr auto;
  gap:8px;
  font-size:.84rem;
  align-items:center;
}
@media (max-width:680px) {
  .time-entry { grid-template-columns:1fr; }
}


/* v4 technician workflow cleanup */
.collapsible-ro-info {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
  padding: 10px 12px 14px;
}
.collapsible-ro-info summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 950;
  padding: 4px 0;
}
.collapsible-ro-info summary span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
  text-align: right;
}
.compact-clock {
  padding: 8px 10px;
}
.horizontal-clock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}
.clock-label {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.clock-stat {
  border: 1px solid var(--line);
  background: #f8fbff;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: .82rem;
  white-space: nowrap;
}
.time-entry-list.compact {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.time-entry.compact {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: .78rem;
  white-space: nowrap;
}
.time-entry.compact span {
  color: var(--muted);
}
@media (max-width:680px) {
  .collapsible-ro-info summary { align-items:flex-start; flex-direction:column; }
  .collapsible-ro-info summary span { text-align:left; }
  .clock-stat, .time-entry.compact { white-space: normal; }
  .horizontal-clock-row > button { flex: 1 1 130px; }
}

/* v5 technician clock strip: wider and shorter */
.tech-clock-strip {
  padding: 6px 8px;
  border-radius: 12px;
}
.clock-strip-row {
  display: grid;
  grid-template-columns: auto auto minmax(110px, auto) minmax(140px, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 38px;
}
.clock-strip-row .clock-label {
  white-space: nowrap;
}
.clock-strip-row .badge {
  padding: 5px 9px;
  font-size: .75rem;
}
.clock-strip-row .clock-stat {
  padding: 5px 8px;
  font-size: .78rem;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}
.clock-running {
  justify-self: stretch;
  justify-content: center;
}
.clock-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.clock-actions .compact-btn {
  padding: 6px 10px;
  font-size: .78rem;
  min-height: 30px;
}
.tech-clock-strip .time-entry-list.compact {
  margin-top: 4px;
  gap: 4px;
}
.tech-clock-strip .time-entry.compact {
  padding: 4px 7px;
  font-size: .72rem;
}
@media (max-width: 760px) {
  .clock-strip-row {
    grid-template-columns: 1fr auto;
  }
  .clock-strip-row .clock-label,
  .clock-strip-row .clock-stat,
  .clock-actions {
    grid-column: 1 / -1;
  }
  .clock-actions .compact-btn {
    flex: 1;
  }
}

.customer-history-card {
  width: min(1100px, 97vw);
  max-height: 92vh;
  overflow: auto;
}
.customer-history-head {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  padding-bottom: 10px;
}
.history-summary-grid .card {
  padding: 12px;
  box-shadow: none;
}
.recommended-history-line {
  background: #fffaf1;
  border-color: #f3c98b;
}
.oil-history-line {
  background: #f3fbff;
  border-color: #a9d8f0;
}
@media print {
  .customer-history-card .actions,
  .customer-history-card .no-print { display:none!important; }
}


.ro-lock-banner {
  margin: 12px 0;
  padding: 11px 13px;
  border: 1px solid #f5b94f;
  background: #fff7e6;
  color: #5b3600;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.ro-lock-banner.ok {
  border-color: #badbcc;
  background: #f0fff4;
  color: #1f5132;
}
.readonly-disabled {
  opacity: .75;
  cursor: not-allowed!important;
}
.readonly-link-disabled {
  opacity: .5;
  pointer-events: none;
}
.save-status.error {
  color: #b42318;
  font-weight: 800;
}


/* v26 RO Communication Center - slim right-side chat tab */
.ro-communication-panel {
  position: fixed;
  right: 18px;
  top: 92px;
  width: min(360px, calc(100vw - 28px));
  max-height: calc(100vh - 120px);
  z-index: 20;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15,45,82,.16);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: width .18s ease, padding .18s ease, box-shadow .18s ease, background .18s ease;
}
.ro-comm-collapsed-tab { display:none; }
.ro-comm-header { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; border-bottom:1px solid var(--line); padding-bottom:8px; }
.ro-comm-header h2 { margin:0; font-size:1rem; }
.ro-comm-header p { margin:2px 0 0; font-size:.78rem; }
.ro-comm-header-actions { display:flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.ro-comm-body-wrap { display:flex; flex-direction:column; gap:10px; min-height:0; }
.ro-communication-panel.collapsed {
  width: 38px;
  min-width: 38px;
  height: 168px;
  max-height: 168px;
  overflow: visible;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.ro-communication-panel.collapsed .ro-comm-header,
.ro-communication-panel.collapsed .ro-comm-body-wrap { display:none; }
.ro-communication-panel.collapsed .ro-comm-collapsed-tab {
  display:flex;
  width: 38px;
  height: 168px;
  border: 1px solid #d67b00;
  border-right: 0;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 14px 34px rgba(15,45,82,.18);
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: 900;
  letter-spacing: .08em;
}
.ro-comm-tab-text { text-transform: uppercase; }
.ro-comm-tab-count {
  display:inline-flex;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background:#fff;
  color:#9a4f00;
  align-items:center;
  justify-content:center;
  font-size:.72rem;
  font-weight:900;
  line-height:1;
}
.ro-communication-panel:not(.collapsed) .ro-comm-collapsed-tab { display:none; }
.ro-comm-pinned { border:1px solid #f5c56d; background:#fff8e9; border-radius:12px; padding:8px; max-height:150px; overflow:auto; }
.ro-comm-pinned h3 { margin:0 0 6px; font-size:.82rem; color:#8a5200; }
.ro-comm-messages { border:1px solid var(--line); border-radius:12px; padding:8px; min-height:180px; max-height:34vh; overflow:auto; background:#f8fafc; }
.ro-comm-message { border:1px solid var(--line); background:#fff; border-radius:12px; padding:8px; margin-bottom:8px; }
.ro-comm-message.mine { border-color:#b7d4ff; background:#f2f7ff; }
.ro-comm-message.system { border-style:dashed; background:#f6f8fb; color:#475569; }
.ro-comm-message.pinned { border-color:#f3bb45; }
.ro-comm-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-size:.72rem; color:#64748b; margin-bottom:4px; }
.ro-comm-meta strong { color:#0f2d52; }
.ro-comm-meta em { font-style:normal; margin-left:auto; }
.ro-comm-body { white-space:pre-wrap; font-size:.88rem; line-height:1.35; }
.ro-comm-compose textarea { width:100%; resize:vertical; min-height:64px; }
.ro-comm-compose .actions { justify-content:flex-end; margin-top:6px; }
.ro-comm-alert { position:fixed; right:24px; bottom:24px; width:min(360px, calc(100vw - 48px)); z-index:80; padding:14px 16px; border-radius:16px; background:#fff4df; border:1px solid #f3b552; color:#4c2b00; box-shadow:0 16px 42px rgba(0,0,0,.18); cursor:pointer; }
.ro-comm-alert strong { color:#2f1a00; }
@media (min-width: 1200px) { .app-shell:has(.ro-communication-panel:not(.collapsed)) { padding-right: 390px; } .app-shell:has(.ro-communication-panel.collapsed) { padding-right: 56px; } }
@media (max-width: 900px) { .ro-communication-panel { position:fixed; right:10px; top:86px; width:min(340px, calc(100vw - 28px)); max-height:calc(100vh - 110px); margin:0; } .ro-communication-panel.collapsed { width:38px; min-width:38px; height:150px; max-height:150px; } .ro-communication-panel.collapsed .ro-comm-collapsed-tab { height:150px; } .ro-comm-alert { left:16px; right:16px; width:auto; } }
@media print { .ro-communication-panel, .ro-comm-alert { display:none!important; } }

/* v27.1 Messaging & Notification Center cleanup */
.notification-wrap { position: relative; }
.notification-bell {
  border: 1px solid var(--line);
  background: #fff;
  color: #0f2d52;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
  min-width: 46px;
}
.notification-bell span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
  font-size: .72rem;
  margin-left: 3px;
}
.notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  max-height: 420px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(15,45,82,.18);
  z-index: 100;
  padding: 10px;
}
.notification-title {
  font-weight: 900;
  color: #0f2d52;
  padding: 6px 8px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.notification-empty {
  color: #64748b;
  padding: 12px;
}
.notification-item {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff8e9;
  border: 1px solid #f5c56d;
  border-radius: 12px;
  padding: 9px 10px;
  margin: 7px 0;
  cursor: pointer;
  color: #2f1a00;
}
.notification-item:hover { background: #ffefd0; }
.notification-item strong {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #0f2d52;
  margin-bottom: 3px;
}
.notification-item strong span {
  background: #f59e0b;
  color: #fff;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
}
.notification-item small {
  display: block;
  color: #5b3600;
  line-height: 1.3;
}
.ro-comm-tab-count[hidden] { display: none!important; }
.ro-comm-tab-count:not([hidden]) { animation: roCommPulse 1.2s ease-in-out infinite alternate; }
@keyframes roCommPulse { from { transform: scale(1); } to { transform: scale(1.1); } }
@media print { .notification-wrap, .notification-panel { display:none!important; } }

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-weight: 600;
}
.check-row input[type="checkbox"] {
  width: auto;
  min-width: 18px;
  height: 18px;
}

/* v28 Workflow Foundation */
.audit-strip { border: 1px solid var(--border, #d8dee8); border-radius: 10px; padding: 10px 12px; background: rgba(0,0,0,0.03); font-size: 0.92rem; }
.badge.warning { background: #fff3cd; color: #7a5200; border-color: #ffe08a; }
.badge.success { background: #d1e7dd; color: #0f5132; border-color: #badbcc; }
.compact-btn { padding: 6px 10px; font-size: 0.85rem; }


/* v28.3 Global Search, Archive Center, and Status Colors */
.global-search-wrap { display:flex; align-items:center; gap:8px; flex:1; max-width:780px; margin-left:18px; }
.global-search { min-width:320px; width:100%; border-radius:999px; padding:10px 14px; border:1px solid var(--line); background:#fff; }
.global-archive-check { display:flex; align-items:center; gap:6px; white-space:nowrap; font-size:.85rem; color:#64748b; }
.global-search-card { width:min(980px, 94vw); max-height:86vh; overflow:auto; }
.search-group { margin-top:16px; }
.search-group h3 { margin:0 0 8px; color:var(--navy); }
.search-result-item { align-items:center; }
.archive-tabs { flex-wrap:wrap; margin-top:12px; }
.status-card { border-left:8px solid #94a3b8; }
.status-open { border-left-color:#4169E1; }
.status-assigned { border-left-color:#2563eb; }
.status-diagnosing { border-left-color:#7c3aed; }
.status-waiting-approval { border-left-color:#f97316; }
.status-waiting-parts { border-left-color:#eab308; }
.status-on-hold { border-left-color:#dc2626; }
.status-in-progress { border-left-color:#16a34a; }
.status-ready-for-pickup { border-left-color:#14b8a6; }
.status-delivered { border-left-color:#166534; }
.status-closed { border-left-color:#4b5563; }
.badge.status-open { background:#dbeafe; color:#1e3a8a; }
.badge.status-assigned { background:#dbeafe; color:#1d4ed8; }
.badge.status-diagnosing { background:#ede9fe; color:#6d28d9; }
.badge.status-waiting-approval { background:#ffedd5; color:#c2410c; }
.badge.status-waiting-parts { background:#fef9c3; color:#854d0e; }
.badge.status-on-hold { background:#fee2e2; color:#b91c1c; }
.badge.status-in-progress { background:#dcfce7; color:#15803d; }
.badge.status-ready-for-pickup { background:#ccfbf1; color:#0f766e; }
.badge.status-delivered { background:#dcfce7; color:#166534; }
.badge.status-closed { background:#e5e7eb; color:#374151; }
.badge.status-deleted { background:#fee2e2; color:#991b1b; }
@media (max-width: 1100px) { .topbar { flex-wrap:wrap; } .global-search-wrap { order:3; width:100%; max-width:none; margin:10px 0 0; } }

/* v30 emergency UI containment */
.brand-logo,
.topbar-logo {
  max-width: 220px !important;
  max-height: 60px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* RO action toolbar dropdown polish */
.ro-action-toolbar {
  align-items: center;
  overflow: visible;
}

.ro-action-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  overflow: visible;
}

.ro-action-btn,
.ro-action-menu > summary.ro-action-btn {
  min-width: 150px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.ro-action-menu {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.ro-action-menu > summary {
  list-style: none;
}

.ro-action-menu > summary::-webkit-details-marker {
  display: none;
}

.ro-action-menu > summary::after {
  content: " ▼";
  font-size: 11px;
  margin-left: 4px;
}

.ro-action-menu[open] > summary::after {
  content: " ▲";
}

.ro-action-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 5000;
  width: 220px;
  background: #ffffff;
  border: 1px solid #d9e3ef;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 12px 30px rgba(15, 45, 82, 0.18);
  display: grid;
  gap: 8px;
}

.ro-action-menu-item {
  width: 100%;
  min-height: 42px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
}


/* RO toolbar final polish */
.ro-action-btn,
.ro-action-menu > summary.ro-action-btn,
.ro-action-menu-item {
  border: 1.5px solid #111827 !important;
  border-radius: 16px !important;
}

.ro-action-menu-panel {
  border: 1.5px solid #111827 !important;
  border-radius: 18px !important;
  overflow: hidden;
}

.ro-action-menu-item {
  border-radius: 14px !important;
}

.ro-action-menu[open] > summary.ro-action-btn {
  box-shadow: 0 0 0 3px rgba(15,45,82,0.12);
}


/* RO screen final visual polish */
.ro-action-menu-panel {
  width: 220px !important;
  border-radius: 20px !important;
}

.ro-action-menu-item {
  min-height: 38px !important;
  font-size: 14px !important;
  padding: 8px 12px !important;
}

.collapsible-ro-info > summary {
  border: 1.5px solid #111827 !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
  background: #ffffff;
}

.ro-summary-card {
  border: 1.5px solid #111827 !important;
  border-radius: 20px !important;
}


/* Safe topbar cleanup pass */
.topbar {
  align-items: flex-start !important;
  gap: 22px !important;
}

.global-search-wrap {
  margin-top: 34px !important;
  align-items: center !important;
}

.topbar-actions {
  display: grid !important;
  grid-template-columns: auto auto;
  grid-template-areas:
    "status bell"
    "user logout"
    "new new";
  gap: 8px 10px !important;
  align-items: center !important;
  justify-content: end !important;
  min-width: 320px !important;
}

#saveStatus {
  grid-area: status;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-wrap {
  grid-area: bell;
}

#notificationBell {
  min-height: 38px;
  min-width: 74px;
}

#currentUserBadge {
  grid-area: user;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#logoutBtn {
  grid-area: logout;
  min-height: 42px;
}

#newROTopBtn {
  grid-area: new;
  min-height: 46px;
  justify-self: center;
  min-width: 160px;
}

#saveStatus,
#notificationBell,
#currentUserBadge,
#logoutBtn,
#newROTopBtn {
  border: 1.5px solid #111827 !important;
  border-radius: 18px !important;
}


/* Header cleanup after removing global New RO button */
.topbar-actions {
  grid-template-areas:
    "status bell"
    "user logout" !important;
  min-width: 300px !important;
}

#newROTopBtn {
  display: none !important;
}


/* Header polish pass after removing global New RO */
.topbar {
  align-items: center !important;
  gap: 24px !important;
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

.topbar > div:first-child {
  min-width: 260px;
}

#pageTitle {
  margin-bottom: 4px !important;
  line-height: 1.05 !important;
}

#pageSubtitle {
  margin-top: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 420px !important;
}

.global-search-wrap {
  margin-top: 10px !important;
  transform: translateY(-6px);
  flex: 1 1 auto !important;
}

.global-search {
  min-width: 430px !important;
  max-width: 560px !important;
}

.topbar-actions {
  grid-template-columns: auto auto !important;
  grid-template-areas:
    "status bell"
    "user logout" !important;
  min-width: 330px !important;
  gap: 8px 10px !important;
}

#saveStatus,
#notificationBell,
#currentUserBadge,
#logoutBtn {
  border: 1px solid #cfd8e3 !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

#saveStatus {
  min-width: 145px !important;
  background: #f1fbf5 !important;
}

#notificationBell {
  min-width: 72px !important;
}

#currentUserBadge {
  min-width: 165px !important;
  max-width: 190px !important;
  min-height: 44px !important;
  padding: 5px 14px !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  line-height: 1.05 !important;
}

.user-badge-name {
  font-weight: 900;
  color: var(--navy);
}

.user-badge-role {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
}

#logoutBtn {
  min-width: 92px !important;
  min-height: 44px !important;
}

#newROTopBtn {
  display: none !important;
}

@media (max-width: 1300px) {
  .topbar {
    flex-wrap: wrap !important;
  }

  .global-search-wrap {
    order: 3;
    width: 100%;
    transform: none;
    margin-top: 8px !important;
  }
}



/* Simplified global search header */
.global-search-wrap {
  justify-content: center !important;
}

.global-search {
  min-width: 520px !important;
  max-width: 680px !important;
}


/* Compact header pass */
.topbar {
  align-items: flex-start !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  min-height: 92px !important;
  gap: 18px !important;
}

.topbar > div:first-child {
  min-width: 300px !important;
  max-width: 430px !important;
}

#pageTitle {
  font-size: 2rem !important;
  line-height: 1 !important;
  margin: 0 0 4px 0 !important;
}

#pageSubtitle {
  max-width: 430px !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  font-size: 0.95rem !important;
  line-height: 1.18 !important;
}

.global-search-wrap {
  margin-top: 4px !important;
  transform: none !important;
  flex: 0 0 auto !important;
  align-self: flex-start !important;
}

.global-search {
  min-width: 330px !important;
  max-width: 380px !important;
  height: 38px !important;
  font-size: 0.95rem !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}

.topbar-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  min-width: unset !important;
  margin-top: 0 !important;
}

#saveStatus,
#notificationBell,
#currentUserBadge,
#logoutBtn {
  min-height: 36px !important;
  height: 36px !important;
  border-radius: 14px !important;
  font-size: 0.82rem !important;
  padding: 0 12px !important;
}

#saveStatus {
  min-width: 94px !important;
}

#notificationBell {
  min-width: 58px !important;
}

#currentUserBadge {
  min-width: 150px !important;
  max-width: 175px !important;
  padding: 3px 12px !important;
}

#logoutBtn {
  min-width: 78px !important;
}

.user-badge-role {
  font-size: 0.66rem !important;
}


/* RO visual compression pass */
.topbar {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  min-height: 72px !important;
}

#pageTitle {
  font-size: 1.85rem !important;
  margin-bottom: 2px !important;
}

#pageSubtitle {
  max-width: 620px !important;
  font-size: 0.88rem !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.global-search {
  min-width: 290px !important;
  max-width: 340px !important;
  height: 34px !important;
  font-size: 0.82rem !important;
}

.global-search-wrap {
  margin-top: 2px !important;
}

.topbar-actions {
  gap: 6px !important;
}

#saveStatus,
#notificationBell,
#currentUserBadge,
#logoutBtn {
  min-height: 34px !important;
  height: 34px !important;
  border-radius: 13px !important;
  font-size: 0.74rem !important;
}

#saveStatus {
  min-width: 86px !important;
}

#notificationBell {
  min-width: 54px !important;
}

#currentUserBadge {
  min-width: 135px !important;
  max-width: 155px !important;
  padding: 3px 10px !important;
}

#logoutBtn {
  min-width: 70px !important;
  padding: 0 10px !important;
}

.user-badge-role {
  font-size: 0.6rem !important;
}

.ro-lock-banner.ok {
  display: none !important;
}

.ro-summary-card {
  padding: 12px 16px !important;
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

.ro-summary-card .grid {
  align-items: center !important;
}

.ro-summary-card .muted {
  font-size: 0.82rem !important;
  margin-bottom: 2px !important;
}

.ro-summary-card strong {
  font-size: 0.94rem !important;
}

.collapsible-ro-info > summary {
  min-height: 42px !important;
  padding: 10px 14px !important;
}

.collapsible-ro-info {
  margin-bottom: 8px !important;
}


/* Header search position + full VIN visibility */
.topbar {
  display: flex !important;
  align-items: flex-start !important;
}

#pageTitle {
  font-size: 2.15rem !important;
}

#pageSubtitle {
  max-width: 900px !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

.global-search-wrap {
  margin-top: -14px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: flex-start !important;
}

.global-search {
  min-width: 250px !important;
  max-width: 300px !important;
}


/* Allow RO header subtitle line break for VIN */
#pageSubtitle br {
  display: block;
}


/* Combined save status + notification pill */
.status-notify-pill {
  grid-area: status;
  height: 34px;
  min-width: 138px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #cfd8e3;
  border-radius: 13px;
  background: #ffffff;
  white-space: nowrap;
}

.status-notify-divider {
  color: #b5c0cc;
  font-weight: 900;
}

.status-notify-pill .save-status {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  min-width: auto !important;
  height: auto !important;
  min-height: 0 !important;
}

.status-notify-pill .notification-bell {
  border: 0 !important;
  background: transparent !important;
  min-width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.status-notify-pill .notification-panel {
  position: absolute;
  top: 42px;
  right: 0;
}


/* Clean combined save/bell pill inner styling */
.status-notify-pill {
  min-width: 150px !important;
  height: 34px !important;
  padding: 0 12px !important;
  gap: 7px !important;
}

.status-notify-pill .save-status,
.status-notify-pill .notification-bell {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.status-notify-pill .save-status {
  color: inherit !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
}

.status-notify-pill .save-status.saved {
  color: var(--green) !important;
}

.status-notify-pill .save-status.dirty {
  color: #b3261e !important;
}

.status-notify-pill .save-status.saving {
  color: var(--navy) !important;
}

.status-notify-pill .save-status.error {
  color: #b3261e !important;
}

.status-notify-pill .notification-bell {
  color: var(--navy) !important;
  font-size: 0.85rem !important;
}


/* Locked combined save/bell pill */
.status-notify-pill {
  width: 172px !important;
  min-width: 172px !important;
  max-width: 172px !important;
  height: 34px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0 10px !important;
  border: 1px solid #cfd8e3 !important;
  border-radius: 13px !important;
  background: #ffffff !important;
}

.status-notify-pill .save-status,
.status-notify-pill .notification-bell {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.status-notify-pill .save-status {
  flex: 0 0 88px !important;
  text-align: left !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
}

.status-notify-pill .notification-bell {
  flex: 0 0 auto !important;
  font-size: 0.86rem !important;
}

.status-notify-pill .save-status.saved {
  color: #138a36 !important;
}

.status-notify-pill .save-status.dirty {
  color: #b3261e !important;
}


/* Remove nested boxes inside status pill */
.status-notify-pill .save-status,
.status-notify-pill .save-status.saved,
.status-notify-pill .save-status.dirty,
.status-notify-pill .save-status.saving,
.status-notify-pill .save-status.error {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  border-radius: 0 !important;
}

.status-notify-pill .notification-bell {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  border-radius: 0 !important;
}

/* Keep green text only */
.status-notify-pill .save-status.saved {
  color: #138a36 !important;
}

/* Red text only */
.status-notify-pill .save-status.dirty {
  color: #c62828 !important;
}


/* Status pill without nested inner button boxes */
.status-notify-pill {
  cursor: pointer !important;
}

.status-notify-pill .save-status,
.status-notify-pill .notification-bell,
.status-notify-pill .notification-bell span {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: none !important;
  background-color: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}


/* Clean status pill inner classes */
.status-notify-pill .status-pill-save,
.status-notify-pill .status-pill-bell {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

.status-notify-pill .status-pill-save {
  width: 88px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-notify-pill .status-pill-save.saved {
  color: #138a36;
}

.status-notify-pill .status-pill-save.dirty,
.status-notify-pill .status-pill-save.error {
  color: #c62828;
}

.status-notify-pill .status-pill-save.saving {
  color: var(--navy);
}

.status-notify-pill .status-pill-bell {
  font-size: 0.86rem;
  cursor: pointer;
}


/* Unified status + notification pill */
.status-notify-pill {
  width: 172px !important;
  min-width: 172px !important;
  max-width: 172px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  padding: 0 12px !important;
  border: 1px solid #cfd8e3 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  cursor: pointer !important;
}

.status-notify-divider {
  display: none !important;
}

.status-notify-pill .status-pill-save {
  width: auto !important;
  min-width: 82px !important;
  justify-content: flex-start !important;
}

.status-notify-pill .status-pill-bell {
  width: auto !important;
  min-width: auto !important;
}


/* Force saved + bell to visually become one single pill */
#statusNotifyPill {
  width: 172px !important;
  min-width: 172px !important;
  max-width: 172px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  padding: 0 12px !important;
  border: 1px solid #cfd8e3 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

#statusNotifyPill #saveStatus,
#statusNotifyPill #notificationBell,
#statusNotifyPill #notificationBadge {
  all: unset !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

#statusNotifyPill #saveStatus {
  color: #138a36 !important;
  font-weight: 900 !important;
  font-size: 0.78rem !important;
}

#statusNotifyPill #saveStatus.dirty {
  color: #c62828 !important;
}

#statusNotifyPill #saveStatus.saving {
  color: #0f2d52 !important;
}

#statusNotifyPill #notificationBell {
  color: #0f2d52 !important;
  font-size: 0.88rem !important;
}

#statusNotifyPill #notificationBadge {
  margin-left: 4px !important;
  color: #f59e0b !important;
  font-weight: 900 !important;
  font-size: 0.82rem !important;
}

#statusNotifyPill .status-notify-divider {
  display: none !important;
}


/* Final status pill shape to match manager/logout header badges */
#statusNotifyPill {
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  min-height: 48px !important;
  height: 48px !important;
  border-radius: 20px !important;
  padding: 0 14px !important;
  gap: 10px !important;
  background: #f8fbf8 !important;
  border: 1px solid #cfd8e3 !important;
}

#statusNotifyPill #saveStatus {
  font-size: 0.82rem !important;
}

#statusNotifyPill #notificationBell {
  font-size: 0.9rem !important;
}


/* Correct status pill height to match user/logout badges */
#statusNotifyPill {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  border-radius: 19px !important;
  padding: 0 12px !important;
  gap: 10px !important;
}

#statusNotifyPill #saveStatus,
#statusNotifyPill #notificationBell,
#statusNotifyPill #notificationBadge {
  line-height: 1 !important;
}


/* FINAL header badge sizing reset */
#statusNotifyPill,
#currentUserBadge,
#logoutBtn {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  border-radius: 21px !important;
  border: 1px solid #cfd8e3 !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

#statusNotifyPill {
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  padding: 0 12px !important;
  gap: 10px !important;
  background: #ffffff !important;
}

#currentUserBadge {
  width: 190px !important;
  min-width: 190px !important;
  max-width: 190px !important;
  padding: 4px 14px !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

#logoutBtn {
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  padding: 0 14px !important;
}


/* Compact RO totals strip */
.ro-totals-strip {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  flex-wrap: wrap !important;
}

.ro-total-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #d7e1ec;
  border-radius: 14px;
  background: #ffffff;
  min-height: 38px;
}

.ro-total-chip span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.ro-total-chip strong {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.ro-total-chip em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.ro-total-chip-final {
  margin-left: auto;
  border-color: #111827;
  background: #f7fbff;
}

.ro-total-chip-final span {
  color: var(--navy);
}

.ro-total-chip-final strong {
  font-size: 1.25rem;
}


/* Match Job Lines toolbar buttons */
.card .toolbar .actions > button.secondary,
.itemized-estimate-menu > summary.ro-action-btn {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 16px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.itemized-estimate-menu > summary.ro-action-btn {
  min-width: 190px !important;
}

.itemized-estimate-menu .ro-action-menu-panel {
  right: 0 !important;
  left: auto !important;
}


/* Match Add Line button to Itemized Estimate button exactly */
.card .toolbar .actions > button.secondary {
  border: 2px solid var(--navy) !important;
  background: #fff !important;
  color: var(--navy) !important;
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 16px !important;
  padding: 0 16px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}


/* Compact technician clock pill */
.clock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 38px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
  padding: 0 14px;
  border: 1px solid var(--line);
  transition: .15s ease;
  white-space: nowrap;
}

.clock-pill:hover {
  transform: translateY(-1px);
}

.clock-in {
  background: #eaf8ef;
  color: #138a36;
}

.clock-out {
  background: #fff4f4;
  color: #c62828;
}

.clock-total {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  color: var(--navy);
  padding: 0 8px;
  white-space: nowrap;
}


/* Compact line time history */
.time-history-btn {
  height: 36px !important;
  border-radius: 999px !important;
  padding: 0 12px !important;
}

.line-time-history {
  border: 1px solid #d7e1ec;
  border-radius: 14px;
  background: #f8fbff;
  padding: 10px 12px;
  margin-top: 4px;
}

.line-time-history[hidden] {
  display: none !important;
}


/* Compact line time history */
.time-history-btn {
  height: 36px !important;
  border-radius: 999px !important;
  padding: 0 12px !important;
}

.line-time-history {
  border: 1px solid #d7e1ec;
  border-radius: 14px;
  background: #f8fbff;
  padding: 10px 12px;
  margin-top: 4px;
}

.line-time-history[hidden] {
  display: none !important;
}


/* Compact line time history */
.time-history-btn {
  height: 36px !important;
  border-radius: 999px !important;
  padding: 0 12px !important;
}

.line-time-history {
  border: 1px solid #d7e1ec;
  border-radius: 14px;
  background: #f8fbff;
  padding: 10px 12px;
  margin-top: 4px;
}

.line-time-history[hidden] {
  display: none !important;
}


/* Small line-level time history button */
.time-history-pill {
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 999px !important;
  padding: 0 12px !important;
  border: 1.5px solid var(--navy) !important;
  color: var(--navy) !important;
  background: #fff !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.line-time-history {
  border: 1px solid #d7e1ec;
  border-radius: 14px;
  background: #f8fbff;
  padding: 10px 12px;
  margin-top: 4px;
}

.line-time-history[hidden] {
  display: none !important;
}


/* Small line-level time history button */
.time-history-pill {
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 999px !important;
  padding: 0 12px !important;
  border: 1.5px solid var(--navy) !important;
  color: var(--navy) !important;
  background: #fff !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.line-time-history {
  border: 1px solid #d7e1ec;
  border-radius: 14px;
  background: #f8fbff;
  padding: 10px 12px;
  margin-top: 4px;
}

.line-time-history[hidden] {
  display: none !important;
}

