:root {
  color-scheme: light;
  --belm-navy: #151d31;
  --belm-navy-soft: #202b45;
  --belm-green: #00a651;
  --belm-green-dark: #008640;
  --belm-yellow: #ffd400;
  --belm-canvas: #f4f7f5;
  --belm-line: #dce6e0;
  --belm-ink: #182235;
}

html {
  accent-color: var(--belm-green);
}

body {
  color: var(--belm-ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(255, 212, 0, .09), transparent 24rem),
    radial-gradient(circle at 96% 5%, rgba(0, 166, 81, .08), transparent 28rem),
    var(--belm-canvas) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 10000;
  height: 4px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--belm-yellow) 0 34%, var(--belm-green) 34% 100%);
}

::selection {
  color: #fff;
  background: var(--belm-green);
}

.bg-belm-black {
  background-color: var(--belm-navy) !important;
}

.bg-belm-blue {
  background-color: var(--belm-green) !important;
}

.hover\:bg-belm-blueDark:hover {
  background-color: var(--belm-green-dark) !important;
}

.bg-belm-green {
  background-color: var(--belm-green) !important;
}

.bg-belm-yellow {
  background-color: var(--belm-yellow) !important;
}

.text-belm-black {
  color: var(--belm-navy) !important;
}

.text-belm-blue,
.text-belm-green {
  color: var(--belm-green-dark) !important;
}

.text-belm-yellow {
  color: #d7b400 !important;
}

.border-belm-blue {
  border-color: var(--belm-green) !important;
}

.border-belm-yellow {
  border-color: var(--belm-yellow) !important;
}

.border-slate-200 {
  border-color: var(--belm-line) !important;
}

.bg-white.rounded-lg,
.bg-white.rounded-xl {
  box-shadow: 0 10px 30px rgba(21, 29, 49, .07);
}

input,
select,
textarea {
  transition: border-color .16s ease, box-shadow .16s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--belm-green) !important;
  box-shadow: 0 0 0 3px rgba(0, 166, 81, .14) !important;
  outline: none;
}

button,
a {
  transition-property: color, background-color, border-color, box-shadow, transform;
  transition-duration: .16s;
  transition-timing-function: ease;
}

button.bg-belm-blue,
a.bg-belm-blue {
  box-shadow: 0 7px 18px rgba(0, 166, 81, .22);
}

button.bg-belm-blue:hover,
a.bg-belm-blue:hover {
  box-shadow: 0 9px 22px rgba(0, 134, 64, .28);
}

/* Customer dashboard machine cards: larger, with three direct actions
   (Procurement, Petty Cash, Request Service) added by portal-tools.js. */
.belm-customer-machine-card {
  position: relative !important;
  min-height: 620px !important;
  padding: 26px !important;
  border-radius: 16px !important;
}

.belm-customer-machine-card.status-green,
.belm-technician-machine-card.status-green {
  background: linear-gradient(160deg, #eafaf1, #ffffff) !important;
  border: 2px solid #22c55e !important;
  box-shadow: 0 14px 30px rgba(34, 197, 94, .16) !important;
}

.belm-customer-machine-card.status-yellow,
.belm-technician-machine-card.status-yellow {
  background: linear-gradient(160deg, #fffbea, #ffffff) !important;
  border: 2px solid #eab308 !important;
  box-shadow: 0 14px 30px rgba(234, 179, 8, .18) !important;
}

.belm-customer-machine-card.status-red,
.belm-technician-machine-card.status-red {
  background: linear-gradient(160deg, #fdecec, #ffffff) !important;
  border: 5px solid #ff0000 !important;
  box-shadow: 0 0 0 2px rgba(255, 0, 0, .25), 0 14px 30px rgba(239, 68, 68, .28) !important;
}

.belm-customer-machine-card.status-unknown,
.belm-technician-machine-card.status-unknown {
  background: linear-gradient(160deg, #f1f5f9, #ffffff) !important;
  border: 2px solid #94a3b8 !important;
  box-shadow: 0 14px 30px rgba(100, 116, 139, .14) !important;
}

/* The original card text (model name, "last checked" line, status badge)
   was written for the dark default card background. Force it dark/readable
   now that the whole card is tinted — but leave our own injected info panel
   and action buttons alone, since those already carry correct colors. */
.belm-customer-machine-card.status-green *:not(.belm-machine-native-head):not(.belm-machine-native-head *):not(.belm-machine-last-checked):not(.belm-technician-machine-info):not(.belm-technician-machine-info *):not(.belm-machine-action-row):not(.belm-machine-action-row *):not(.belm-technician-card-actions):not(.belm-technician-card-actions *):not(.belm-service-due-panel):not(.belm-service-due-panel *):not(.belm-spare-recommendation-panel):not(.belm-spare-recommendation-panel *),
.belm-technician-machine-card.status-green *:not(.belm-machine-native-head):not(.belm-machine-native-head *):not(.belm-machine-last-checked):not(.belm-technician-machine-info):not(.belm-technician-machine-info *):not(.belm-machine-action-row):not(.belm-machine-action-row *):not(.belm-technician-card-actions):not(.belm-technician-card-actions *):not(.belm-service-due-panel):not(.belm-service-due-panel *):not(.belm-spare-recommendation-panel):not(.belm-spare-recommendation-panel *) {
  color: #14532d !important;
}

.belm-customer-machine-card.status-yellow *:not(.belm-machine-native-head):not(.belm-machine-native-head *):not(.belm-machine-last-checked):not(.belm-technician-machine-info):not(.belm-technician-machine-info *):not(.belm-machine-action-row):not(.belm-machine-action-row *):not(.belm-technician-card-actions):not(.belm-technician-card-actions *):not(.belm-service-due-panel):not(.belm-service-due-panel *):not(.belm-spare-recommendation-panel):not(.belm-spare-recommendation-panel *),
.belm-technician-machine-card.status-yellow *:not(.belm-machine-native-head):not(.belm-machine-native-head *):not(.belm-machine-last-checked):not(.belm-technician-machine-info):not(.belm-technician-machine-info *):not(.belm-machine-action-row):not(.belm-machine-action-row *):not(.belm-technician-card-actions):not(.belm-technician-card-actions *):not(.belm-service-due-panel):not(.belm-service-due-panel *):not(.belm-spare-recommendation-panel):not(.belm-spare-recommendation-panel *) {
  color: #713f12 !important;
}

.belm-customer-machine-card.status-red *:not(.belm-machine-native-head):not(.belm-machine-native-head *):not(.belm-machine-last-checked):not(.belm-technician-machine-info):not(.belm-technician-machine-info *):not(.belm-machine-action-row):not(.belm-machine-action-row *):not(.belm-technician-card-actions):not(.belm-technician-card-actions *):not(.belm-service-due-panel):not(.belm-service-due-panel *):not(.belm-spare-recommendation-panel):not(.belm-spare-recommendation-panel *),
.belm-technician-machine-card.status-red *:not(.belm-machine-native-head):not(.belm-machine-native-head *):not(.belm-machine-last-checked):not(.belm-technician-machine-info):not(.belm-technician-machine-info *):not(.belm-machine-action-row):not(.belm-machine-action-row *):not(.belm-technician-card-actions):not(.belm-technician-card-actions *):not(.belm-service-due-panel):not(.belm-service-due-panel *):not(.belm-spare-recommendation-panel):not(.belm-spare-recommendation-panel *) {
  color: #7f1d1d !important;
}

.belm-customer-machine-card.status-unknown *:not(.belm-machine-native-head):not(.belm-machine-native-head *):not(.belm-machine-last-checked):not(.belm-technician-machine-info):not(.belm-technician-machine-info *):not(.belm-machine-action-row):not(.belm-machine-action-row *):not(.belm-technician-card-actions):not(.belm-technician-card-actions *):not(.belm-service-due-panel):not(.belm-service-due-panel *):not(.belm-spare-recommendation-panel):not(.belm-spare-recommendation-panel *),
.belm-technician-machine-card.status-unknown *:not(.belm-machine-native-head):not(.belm-machine-native-head *):not(.belm-machine-last-checked):not(.belm-technician-machine-info):not(.belm-technician-machine-info *):not(.belm-machine-action-row):not(.belm-machine-action-row *):not(.belm-technician-card-actions):not(.belm-technician-card-actions *):not(.belm-service-due-panel):not(.belm-service-due-panel *):not(.belm-spare-recommendation-panel):not(.belm-spare-recommendation-panel *) {
  color: #1e293b !important;
}

.belm-machine-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.belm-machine-expense-link,
.belm-machine-pettycash-link,
.belm-machine-service-link {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid var(--belm-green);
  border-radius: 9px;
  color: #fff;
  background: var(--belm-green);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 7px 18px rgba(0, 166, 81, .18);
}

.belm-machine-expense-link:hover,
.belm-machine-expense-link:focus,
.belm-machine-pettycash-link:hover,
.belm-machine-pettycash-link:focus,
.belm-machine-service-link:hover,
.belm-machine-service-link:focus {
  background: var(--belm-green-dark);
  outline: 3px solid rgba(255, 212, 0, .42);
}

.belm-machine-pettycash-link {
  color: #fff;
  border-color: var(--belm-navy);
  background: var(--belm-navy);
}

.belm-machine-service-link {
  color: var(--belm-navy);
  border-color: var(--belm-yellow);
  background: var(--belm-yellow);
}

.belm-technician-machine-card {
  position: relative !important;
  min-height: 330px !important;
  padding: 24px !important;
  overflow: hidden;
  border-width: 2px !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 14px 30px rgba(21, 29, 49, .09);
}

body[data-belm-area="tech"] .belm-technician-dashboard-shell {
  width: 100%;
  max-width: 1180px !important;
}

.belm-technician-customer-card {
  margin: 0 0 24px;
  overflow: hidden;
  color: #fff;
  border: 2px solid var(--belm-yellow);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(0, 166, 81, .32), transparent 17rem),
    linear-gradient(135deg, #101b31, #203b62);
  box-shadow: 0 18px 40px rgba(17, 27, 49, .18);
}

.belm-technician-customer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 25px 27px 20px;
}

.belm-technician-customer-head span,
.belm-technician-machine-list-heading span {
  color: var(--belm-yellow);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.belm-technician-customer-head h1 {
  margin: 5px 0 2px;
  color: #fff;
  font: 700 clamp(25px, 4vw, 38px) "Space Grotesk", sans-serif;
  line-height: 1.08;
}

.belm-technician-customer-head p {
  margin: 7px 0 0;
  color: #c1ccdc;
  font-size: 12px;
}

.belm-technician-customer-head > strong {
  padding: 7px 11px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: var(--belm-green);
  font-size: 9px;
  letter-spacing: .08em;
}

.belm-technician-customer-info {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .055);
}

.belm-technician-customer-info > div {
  min-width: 0;
  padding: 15px 16px 17px;
  border-right: 1px solid rgba(255, 255, 255, .1);
}

.belm-technician-customer-info > div:last-child {
  border-right: 0;
}

.belm-technician-customer-info span,
.belm-technician-machine-data span,
.belm-technician-machine-health span {
  display: block;
  margin-bottom: 4px;
  color: #8190a4;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.belm-technician-customer-info b {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.belm-technician-machine-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0 12px;
}

.belm-technician-machine-list-heading h2 {
  margin: 2px 0 0;
  color: var(--belm-navy);
  font: 700 24px "Space Grotesk", sans-serif;
}

.belm-technician-machine-list-heading > strong {
  color: #64748b;
  font-size: 9px;
  letter-spacing: .08em;
}

.belm-technician-machine-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.belm-technician-machine-info {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}

.belm-technician-machine-data {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.belm-technician-machine-data > div {
  min-width: 0;
  padding: 8px 8px;
  border: 1px solid #e3e9f1;
  border-radius: 9px;
  background: #f8fafc;
}

.belm-technician-machine-data span {
  font-size: 8.5px;
}

.belm-technician-machine-data b {
  display: block;
  overflow: hidden;
  color: #1f2c42;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .belm-technician-machine-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.belm-technician-machine-health {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 12px;
  padding: 16px;
  color: #20432f;
  border: 1.5px solid #8bcba9;
  border-radius: 12px;
  background: #eaf8f0;
}

.belm-technician-machine-health span {
  font-size: 10px;
}

.belm-technician-machine-health strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.belm-technician-machine-health small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
}

.belm-technician-op-status {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 13px 14px;
  border: 1.5px solid var(--belm-line);
  border-radius: 12px;
  background: #fff;
}
.belm-technician-op-status > span {
  color: #64748b;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.belm-technician-op-status > span small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}
.belm-technician-op-status select {
  padding: 11px 12px;
  border: 1px solid var(--belm-line);
  border-radius: 9px;
  background: #fff;
  color: #101b31;
  font-size: 14px;
  font-weight: 750;
  font-family: inherit;
}

.belm-customer-op-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 14px 15px;
  border: 1.5px solid var(--belm-line);
  border-radius: 12px;
  background: #fff;
}
.belm-customer-op-status span {
  color: #64748b;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.belm-customer-op-status strong {
  color: #101b31;
  font-size: 15px;
  font-weight: 850;
}
.belm-machine-recent-updates:empty { display: none; }
.belm-machine-recent-updates {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--belm-line);
  border-radius: 10px;
  background: #f8faf9;
}
.belm-machine-recent-updates-head {
  color: #64748b;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.belm-machine-recent-update-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #334155;
  font-size: 11px;
  line-height: 1.4;
}
.belm-update-ok-button {
  flex-shrink: 0;
  padding: 3px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #475569;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.belm-update-ok-button:hover { background: #f1f5f9; }
.belm-customer-op-status.op-SERVICE_IN_PROGRESS,
.belm-customer-op-status.op-CHECKUP_IN_PROGRESS,
.belm-customer-op-status.op-MAINTENANCE_IN_PROGRESS {
  border-color: #ead36a;
  background: #fffbea;
}
.belm-customer-op-status.op-SERVICE_IN_PROGRESS strong,
.belm-customer-op-status.op-CHECKUP_IN_PROGRESS strong,
.belm-customer-op-status.op-MAINTENANCE_IN_PROGRESS strong {
  color: #854d0e;
}
.belm-customer-op-status.op-GROUNDED {
  border-color: #e7a09a;
  background: #fff0ee;
  animation: belm-status-blink-red 1.2s ease-in-out infinite;
}

.belm-technician-machine-health.status-yellow {
  color: #65510c;
  border-color: #ead36a;
  background: #fff9d8;
  animation: belm-status-blink-yellow 1.6s ease-in-out infinite;
}

.belm-technician-machine-health.status-red {
  color: #802520;
  border-color: #e7a09a;
  background: #fff0ee;
  animation: belm-status-blink-red 1.2s ease-in-out infinite;
}

.belm-technician-machine-health.status-unknown {
  color: #475569;
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.belm-technician-machine-health strong,
.belm-technician-machine-health small {
  display: block;
}

.belm-technician-op-status {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid var(--belm-line);
  border-radius: 10px;
  background: #fff;
}
.belm-technician-op-status > span {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.belm-technician-op-status > span small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}
.belm-technician-op-status select {
  padding: 8px 10px;
  border: 1px solid var(--belm-line);
  border-radius: 8px;
  background: #fff;
  color: #101b31;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
}

.belm-customer-op-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid var(--belm-line);
  border-radius: 10px;
  background: #fff;
}
.belm-customer-op-status span {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.belm-customer-op-status strong {
  color: #101b31;
  font-size: 12px;
  font-weight: 800;
}
.belm-customer-op-status.op-SERVICE_IN_PROGRESS,
.belm-customer-op-status.op-CHECKUP_IN_PROGRESS,
.belm-customer-op-status.op-MAINTENANCE_IN_PROGRESS {
  border-color: #ead36a;
  background: #fffbea;
}
.belm-customer-op-status.op-SERVICE_IN_PROGRESS strong,
.belm-customer-op-status.op-CHECKUP_IN_PROGRESS strong,
.belm-customer-op-status.op-MAINTENANCE_IN_PROGRESS strong {
  color: #854d0e;
}
.belm-customer-op-status.op-GROUNDED {
  border-color: #e7a09a;
  background: #fff0ee;
  animation: belm-status-blink-red 1.2s ease-in-out infinite;
}
.belm-customer-op-status.op-GROUNDED strong { color: #802520; }

.belm-technician-machine-health span {
  color: currentColor;
  opacity: .72;
}

.belm-technician-machine-health strong {
  font-size: 11px;
}

.belm-technician-machine-health small {
  margin-top: 3px;
  font-size: 8px;
  line-height: 1.35;
}

/* Next Service panel — customer dashboard. Bigger than the small status
   chip since a customer may have several machines to compare at a glance. */
.belm-service-due-panel {
  margin-top: 16px;
  padding: 16px;
  border: 2px solid #22c55e;
  border-radius: 12px;
  background: #eafaf1;
}

.belm-service-due-panel.status-yellow {
  border-color: #eab308;
  background: #fffbea;
  animation: belm-status-blink-yellow-panel 1.6s ease-in-out infinite;
}

.belm-service-due-panel.status-red {
  border-color: #ef4444;
  background: #fdecec;
  animation: belm-status-blink-red-panel 1.2s ease-in-out infinite;
}

.belm-service-due-panel.status-unknown {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.belm-service-due-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

/* Yellow/red status cards blink gently to draw the eye — a customer
   glancing at several machines should immediately notice which ones
   need attention without having to read every card. Green/unknown
   stay static since there's nothing urgent to flag. */
@keyframes belm-status-blink-yellow {
  0%, 100% { border-color: #ead36a; background: #fff9d8; }
  50% { border-color: #d4a017; background: #fff3b0; }
}
@keyframes belm-status-blink-red {
  0%, 100% { border-color: #e7a09a; background: #fff0ee; }
  50% { border-color: #c0392b; background: #ffd9d5; }
}
@keyframes belm-status-blink-yellow-panel {
  0%, 100% { border-color: #eab308; box-shadow: 0 0 0 0 rgba(234,179,8,0); }
  50% { border-color: #b8860b; box-shadow: 0 0 0 4px rgba(234,179,8,.25); }
}
@keyframes belm-status-blink-red-panel {
  0%, 100% { border-color: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50% { border-color: #b91c1c; box-shadow: 0 0 0 4px rgba(239,68,68,.28); }
}
@media (prefers-reduced-motion: reduce) {
  .belm-technician-machine-health.status-yellow,
  .belm-technician-machine-health.status-red,
  .belm-service-due-panel.status-yellow,
  .belm-service-due-panel.status-red {
    animation: none;
  }
}

.belm-service-due-head span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.belm-service-due-head strong {
  font-size: 17px;
  font-weight: 900;
  color: #1e293b;
}

.belm-service-due-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.belm-service-due-grid > div {
  padding: 10px 12px;
  border-radius: 0;
  background: rgba(255, 255, 255, .65);
}

.belm-service-due-grid span {
  display: block;
  margin-bottom: 3px;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.belm-service-due-grid b {
  display: block;
  color: #1e293b;
  font-size: 19px;
  font-weight: 900;
}

/* The Technician's card already has a lot of sections stacked (machine
   data, health, activity status, NEXT SERVICE, then buttons) — this
   compacts NEXT SERVICE specifically so the whole card isn't overly
   long, without touching the Customer Portal's roomier version. */
.belm-technician-machine-card .belm-service-due-panel {
  margin-top: 10px;
  padding: 11px 12px;
}
.belm-technician-machine-card .belm-service-due-head {
  margin-bottom: 6px;
}
.belm-technician-machine-card .belm-service-due-head strong {
  font-size: 13px;
}
.belm-technician-machine-card .belm-service-due-grid {
  gap: 6px;
}
.belm-technician-machine-card .belm-service-due-grid > div {
  padding: 6px 8px;
}
.belm-technician-machine-card .belm-service-due-grid span {
  font-size: 8px;
  margin-bottom: 1px;
}
.belm-technician-machine-card .belm-service-due-grid b {
  font-size: 13px;
}

.belm-service-whatsapp {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid var(--belm-line);
  border-radius: 9px;
  color: #101b31;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.belm-service-whatsapp:hover {
  background: #f2f4f7;
}

.belm-email-assign-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.belm-email-report-button {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--belm-line);
  border-radius: 9px;
  color: #101b31;
  background: #fff;
  font-size: 11.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}
.belm-email-report-button:hover { background: #f2f4f7; }

.belm-assign-users-button {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--belm-line);
  border-radius: 9px;
  color: #101b31;
  background: #fff;
  font-size: 11.5px;
  font-weight: 800;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}
.belm-assign-users-button:hover { background: #f2f4f7; }

.belm-email-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}
.belm-email-intro {
  margin: 0;
  color: #9fb0c8;
  font-size: 11px;
  line-height: 1.5;
}
.belm-email-error {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(217, 45, 32, .2);
  color: #ff9d90;
  font-size: 11px;
  font-weight: 700;
}
.belm-analysis-error {
  margin: 0 16px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(217, 45, 32, .2);
  color: #ff9d90;
  font-size: 11px;
  font-weight: 700;
}
.belm-email-body label {
  display: grid;
  gap: 5px;
  color: #9fb0c8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.belm-email-body label small {
  text-transform: none;
  font-weight: 500;
  color: #7f92ac;
}
.belm-email-body input,
.belm-email-body select,
.belm-email-body textarea {
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
}
.belm-email-send {
  padding: 10px 14px;
  border: 0;
  border-radius: 9px;
  background: #ffd400;
  color: #101b31;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}
.belm-email-send:hover { background: #f0c700; }
.belm-email-send:disabled { opacity: .6; cursor: wait; }

.belm-email-recipients {
  display: grid;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
  padding: 4px 0;
}
.belm-email-empty-list {
  margin: 0;
  padding: 10px;
  color: #7f92ac;
  font-size: 11px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, .15);
  border-radius: 8px;
}
.belm-email-recipient-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}
.belm-email-recipient-row > label {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.belm-email-edit-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  color: #ffd400;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  font-size: 12px;
}
.belm-email-recipient-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}
.belm-email-recipient-row span {
  color: #fff;
  font-size: 12.5px;
  text-transform: none;
  font-weight: 700;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}
.belm-email-recipient-row span small {
  color: #9fb0c8;
  font-weight: 500;
}
.belm-email-recipient-row input.belm-email-edit-label,
.belm-email-recipient-row input.belm-email-edit-address {
  flex: 1;
  min-width: 90px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  font-size: 11.5px;
}
.belm-email-edit-save,
.belm-email-edit-cancel,
.belm-email-edit-delete {
  flex-shrink: 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}
.belm-email-edit-save { color: #06301c; background: #ffd400; }
.belm-email-edit-cancel { color: #fff; background: rgba(255, 255, 255, .14); }
.belm-email-edit-delete { color: #ffb4b4; background: rgba(255, 80, 80, .18); }
.belm-email-add-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 6px;
  margin: 4px 0 10px;
}
.belm-email-add-row input {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 12px;
  font-family: inherit;
}
#belmEmailAddButton {
  padding: 8px 12px;
  border: 1px solid var(--belm-green, #00a651);
  border-radius: 8px;
  color: #fff;
  background: var(--belm-green, #00a651);
  font-size: 11.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
#belmEmailAddButton:hover { background: #008c44; }
.belm-email-attach-row {
  margin: 4px 0 8px;
}
.belm-email-attach-row input[type="file"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px dashed rgba(255, 255, 255, .25);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: #dbe4f2;
  font-size: 11.5px;
  font-family: inherit;
}
.belm-email-attach-list {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.belm-email-attach-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  color: #e5edf7;
  font-size: 11.5px;
}
.belm-email-attach-list li small { color: #9fb0c8; }
.belm-email-attach-list li button {
  border: 0;
  background: transparent;
  color: #f3a6a1;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.belm-email-attach-list li button:hover { color: #ef4444; }
@media (max-width: 420px) {
  .belm-email-add-row { grid-template-columns: 1fr; }
}

.belm-machine-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.belm-machine-quick-actions a,
.belm-machine-quick-actions button {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 40px;
  padding: 6px 4px;
  border: 1px solid var(--belm-line);
  border-radius: 9px;
  color: var(--belm-navy, #101b31);
  background: #fff;
  font-size: 9.5px;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
}
.belm-machine-quick-actions a:hover,
.belm-machine-quick-actions button:hover {
  background: #f2f4f7;
}
@media (max-width: 360px) {
  .belm-machine-quick-actions { grid-template-columns: repeat(2, 1fr); }
}

/* "Analysis" button on the machine card, opens the dialog below. */
.belm-machine-quick-actions .belm-open-analysis {
  border: 1px solid var(--belm-line);
  border-radius: 9px;
  background: #fff;
  color: #101b31;
  cursor: pointer;
}
.belm-machine-quick-actions .belm-open-analysis:hover { background: #f2f4f7; }

.belm-machine-quick-actions .belm-report-problem-button {
  border: 1px solid var(--belm-line);
  border-radius: 9px;
  background: #fff;
  color: #101b31;
  cursor: pointer;
}
.belm-machine-quick-actions .belm-report-problem-button:hover { background: #f2f4f7; }
.belm-machine-quick-actions .belm-service-whatsapp,
.belm-machine-quick-actions .belm-email-report-button,
.belm-machine-quick-actions .belm-assign-users-button {
  margin-top: 0;
  min-height: 40px;
  padding: 6px 4px;
  font-size: 9.5px;
}

.belm-analysis-dialog {
  width: min(420px, 92vw);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
}
.belm-email-dialog {
  width: min(560px, 94vw);
}
.belm-operator-reports-dialog {
  width: min(480px, 94vw);
}
.belm-operator-reports-body {
  display: grid;
  gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 16px;
}
.belm-operator-report-row {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
}
.belm-operator-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.belm-operator-report-head b { color: #fff; font-size: 13px; }
.belm-operator-report-row p { margin: 6px 0 4px; color: #d7deea; font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.belm-operator-report-row small { color: #9fb0c8; font-size: 10.5px; }
.belm-operator-report-status {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.belm-operator-report-status.status-open { color: #ffb4b4; background: rgba(220, 62, 77, .18); animation: belm-operator-status-blink 1.2s ease-in-out infinite; }
.belm-operator-report-status.status-resolved { color: #8ee4b6; background: rgba(0, 169, 88, .18); }
.belm-operator-report-status.status-checked { color: #8ee4b6; background: rgba(0, 169, 88, .18); }
@media (prefers-reduced-motion: reduce) {
  .belm-operator-report-status.status-open { animation: none; }
}
@keyframes belm-operator-status-blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 62, 77, 0); }
  50% { box-shadow: 0 0 0 4px rgba(220, 62, 77, .3); }
}
.belm-technician-operator-reports-button {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #1f2c42;
  background: #fff;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.belm-hide-request-button {
  padding: 5px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  color: #475569;
  background: #fff;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.belm-hide-request-button:hover { background: #f1f5f9; }

.belm-activity-overview-card {
  position: sticky;
  top: 12px;
  z-index: 5;
  margin: 14px 0 22px;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(165deg, #101b31, #16233d 60%, #101b31);
  border: 1px solid rgba(255, 212, 0, .35);
  box-shadow: 0 20px 50px rgba(7, 14, 28, .35);
  font-family: Inter, system-ui, sans-serif;
}
.belm-dashboard-layout > .belm-activity-overview-stack { margin: 0; }
@media (max-width: 480px) {
  .belm-activity-overview-card { position: static; }
}
.belm-activity-overview-head {
  margin-bottom: 14px;
  color: #ffd400;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}
.belm-activity-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.belm-activity-overview-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.belm-activity-overview-item span {
  color: #9fb0c8;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.belm-activity-overview-item strong {
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}
.belm-activity-overview-loading {
  grid-column: 1 / -1;
  margin: 0;
  color: #9fb0c8;
  font-size: 12px;
}

.belm-activity-overview-machines {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.belm-activity-overview-submhead {
  margin-bottom: 2px;
  color: #ffd400;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .08em;
}
.belm-activity-overview-machine {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
}
.belm-activity-overview-machine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.belm-activity-overview-machine-head b { color: #fff; font-size: 13px; }
.belm-activity-overview-machine-status {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.belm-activity-overview-machine-status.status-green { color: #8ee4b6; background: rgba(0, 169, 88, .18); }
.belm-activity-overview-machine-status.status-yellow { color: #ffe37a; background: rgba(242, 206, 0, .18); }
.belm-activity-overview-machine-status.status-red { color: #ffb4b4; background: rgba(220, 62, 77, .18); }
.belm-activity-overview-machine-status.status-not_checked { color: #9fb0c8; background: rgba(255, 255, 255, .08); }
.belm-activity-overview-machine-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 6px;
  color: #9fb0c8;
  font-size: 10.5px;
  font-weight: 600;
}

/* Small "MORE TOOLS" card — holds account-level communication tools,
   moved out of every machine card
   since none of those actually belong to one specific machine. Sits
   directly under the Activity Overview card, styled to match it but
   shorter. */
.belm-account-tools-card {
  position: sticky;
  top: 12px;
  z-index: 4;
  margin: 0 0 22px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(165deg, #101b31, #16233d 60%, #101b31);
  border: 1px solid rgba(255, 212, 0, .35);
  box-shadow: 0 14px 34px rgba(7, 14, 28, .3);
  font-family: Inter, system-ui, sans-serif;
}
@media (max-width: 480px) {
  .belm-account-tools-card { position: static; }
}
.belm-dashboard-layout .belm-account-tools-card { margin: 0; }
.belm-account-tools-head {
  margin-bottom: 9px;
  color: #ffd400;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .08em;
}
.belm-account-tools-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.belm-account-tools-actions a,
.belm-account-tools-actions button {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 32px;
  padding: 5px 4px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  font-size: 8.5px;
  line-height: 1.15;
  font-weight: 800;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
}
.belm-account-tools-actions a:hover,
.belm-account-tools-actions button:hover {
  background: rgba(255, 255, 255, .12);
}
@media (max-width: 480px) {
  .belm-account-tools-actions { grid-template-columns: repeat(2, 1fr); }
}
.belm-activity-overview-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.belm-activity-overview-stack > .belm-activity-overview-card,
.belm-activity-overview-stack > .belm-account-tools-card {
  margin: 0;
}

.belm-customer-machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 412px));
  justify-content: start;
  gap: 16px;
  align-items: start;
}

/* Wide (desktop/PC) layout: machine grid on the left, Activity Overview
   as a taller right-hand sidebar (vertical stack, not the horizontal bar
   used on narrow screens) — only kicks in once there's real room for it. */
.belm-dashboard-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
}
.belm-dashboard-layout > .belm-customer-machine-grid {
  flex: 1 1 640px;
  margin: 0;
}
@media (min-width: 980px) {
  .belm-dashboard-layout > .belm-activity-overview-stack {
    flex: 0 0 460px;
    align-self: flex-start;
  }
  .belm-dashboard-layout > .belm-activity-overview-stack .belm-activity-overview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 16px;
  }
  .belm-dashboard-layout > .belm-activity-overview-stack .belm-activity-overview-item {
    gap: 2px;
  }
  .belm-dashboard-layout > .belm-activity-overview-stack .belm-activity-overview-item strong {
    font-size: 20px;
  }
  .belm-dashboard-layout > .belm-activity-overview-stack .belm-activity-overview-machines {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 10px;
    padding-top: 10px;
    gap: 8px;
  }
  .belm-dashboard-layout > .belm-activity-overview-stack .belm-activity-overview-submhead {
    grid-column: 1 / -1;
  }
}
@media (max-width: 979px) {
  .belm-dashboard-layout { flex-direction: column; }
  .belm-dashboard-layout > .belm-activity-overview-stack { width: 100%; order: -1; position: static; }
}
@media (max-width: 720px) {
  .belm-customer-machine-grid { grid-template-columns: 1fr; justify-content: stretch; }
}
.belm-show-hidden-requests-link {
  display: inline-block;
  margin: 6px 0 10px;
  padding: 6px 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 999px;
  color: #475569;
  background: none;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.belm-change-password-body { display: grid; gap: 14px; padding: 16px; }
.belm-change-password-body label { display: grid; gap: 6px; color: #d7deea; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.belm-change-password-body label small { color: #9fb0c8; font-weight: 600; text-transform: none; }
.belm-change-password-body input { padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px; color: #fff; background: rgba(255, 255, 255, .06); font-size: 13px; }
.belm-change-password-body input:focus { outline: none; border-color: #ffd400; }
.belm-analysis-dialog::backdrop {
  background: rgba(7, 14, 28, .6);
  backdrop-filter: blur(2px);
}
.belm-analysis-dialog-card {
  max-height: 82vh;
  overflow-y: auto;
  border-radius: 16px;
  background: linear-gradient(165deg, #101b31, #16233d 60%, #101b31);
  border: 1px solid rgba(255, 212, 0, .35);
  box-shadow: 0 20px 50px rgba(7, 14, 28, .35);
  font-family: Inter, system-ui, sans-serif;
}
.belm-analysis-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.belm-analysis-head span {
  color: #ffd400;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}
.belm-analysis-close {
  padding: 0;
  border: 0;
  background: transparent;
  color: #9fb0c8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
/* V444 - Operator "Report" consolidated menu (Machine Checkup / Fuel Usage /
   Machine Handover / Report), opened from the single machine-card button. */
.belm-operator-report-menu-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}
.belm-operator-report-menu-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}
.belm-operator-report-menu-item {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.belm-operator-report-menu-item:hover {
  background: rgba(255, 212, 0, .1);
  border-color: rgba(255, 212, 0, .35);
}
.belm-operator-report-menu-item strong {
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
}
.belm-operator-report-menu-item span {
  font-size: 10.5px;
  color: #9fb0c8;
  font-weight: 600;
}
.belm-operator-report-menu-pdf {
  padding: 0 14px;
  border: 1px solid rgba(255, 212, 0, .35);
  border-radius: 10px;
  background: rgba(255, 212, 0, .08);
  color: #ffd400;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
  font-family: inherit;
}
.belm-operator-report-menu-pdf:hover { background: rgba(255, 212, 0, .18); }
.belm-operator-report-menu-pdf:disabled { opacity: .6; cursor: wait; }
.belm-analysis-loading {
  padding: 20px 16px;
  margin: 0;
  color: #9fb0c8;
  font-size: 12px;
}
.belm-analysis-body {
  display: grid;
  gap: 2px;
  padding: 8px;
}
.belm-analysis-block {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}
.belm-analysis-block + .belm-analysis-block { margin-top: 4px; }
.belm-analysis-block span {
  display: block;
  color: #9fb0c8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.belm-analysis-block strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 20px;
}
.belm-analysis-block small {
  display: block;
  margin-top: 3px;
  color: #7f92ac;
  font-size: 10px;
}
.belm-analysis-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.belm-analysis-dots em {
  font-style: normal;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}
.belm-analysis-dots .green { background: rgba(0, 166, 81, .22); color: #6fe0a3; }
.belm-analysis-dots .yellow { background: rgba(255, 212, 0, .22); color: #ffe066; }
.belm-analysis-dots .red { background: rgba(217, 45, 32, .22); color: #ff9d90; }

.belm-announcements-panel {
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid rgba(255, 212, 0, .4);
  border-radius: 14px;
  background: rgba(255, 212, 0, .07);
}

.belm-announcements-head span {
  color: #a16207;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.belm-announcements-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.belm-announcement-item {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(21, 29, 49, .06);
}

.belm-announcement-item p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.belm-announcement-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.belm-announcement-footer small {
  color: #64748b;
  font-size: 10px;
}

.belm-announcement-footer a {
  color: #128c4a;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.belm-announcement-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.belm-announcement-ok {
  padding: 5px 14px;
  border: 1px solid var(--belm-green, #00a651);
  border-radius: 999px;
  color: #fff;
  background: var(--belm-green, #00a651);
  font-size: 10.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}
.belm-announcement-ok:hover {
  background: #008c44;
}

/* Technician spare recommendation — customer sees reference number only */
.belm-spare-recommendation-panel {
  margin-top: 14px;
  padding: 14px;
  border: 2px dashed var(--belm-navy);
  border-radius: 12px;
  background: rgba(16, 27, 49, .04);
}

.belm-spare-recommendation-head {
  margin-bottom: 10px;
  color: var(--belm-navy);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.belm-spare-recommendation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(16, 27, 49, .08);
  font-size: 13px;
  color: #1e293b;
}

.belm-spare-recommendation-item:first-of-type {
  border-top: none;
}

.belm-spare-recommendation-item span {
  line-height: 1.5;
}

.belm-spare-recommendation-item button {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: var(--belm-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.belm-spare-recommendation-item button:disabled {
  opacity: .6;
}

@media (max-width: 900px) {
  .belm-technician-customer-info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.belm-technician-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.belm-technician-report-link {
  display: flex;
  flex: 1 1 40%;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  margin-top: 0;
  padding: 8px 8px;
  color: var(--belm-navy);
  border: 1px solid var(--belm-yellow);
  border-radius: 8px;
  background: var(--belm-yellow);
  font-size: 10.5px;
  font-weight: 850;
  text-align: center;
}

.belm-technician-report-link:hover,
.belm-technician-report-link:focus {
  outline: 3px solid rgba(0, 166, 81, .18);
}

.belm-technician-checkup-button {
  display: flex;
  flex: 1 1 60%;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 8px 8px;
  color: #fff;
  border: 1px solid #1d5fd6;
  border-radius: 8px;
  background: #2563eb;
  font-size: 11.5px;
  font-weight: 850;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
}

.belm-technician-checkup-button:hover {
  background: #1d4ed8;
}
.belm-technician-checkup-button:focus {
  outline: 3px solid rgba(37, 99, 235, .25);
}

.belm-tech-action-dock {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 10020;
  width: min(760px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(14, 25, 46, .94);
  box-shadow: 0 18px 46px rgba(8, 18, 38, .34);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.belm-tech-has-action-dock {
  padding-bottom: 92px !important;
}

.belm-tech-action-dock .belm-tech-dock-action,
.belm-tech-action-dock .belm-tech-spare-shortcut,
.belm-tech-action-dock .belm-tech-spare-recommend-shortcut {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 8px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  box-shadow: none;
  font: 850 11px/1.15 Inter,system-ui,sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.belm-tech-action-dock .belm-tech-dock-jobcards { color:#fff; background:#0b4f9c; border-color:#5ba5ff; }
.belm-tech-action-dock .belm-tech-dock-tasks { color:#fff; background:#008b49; border-color:#63d99b; }
.belm-tech-action-dock .belm-tech-dock-recommend { color:#fff; background:#151d31; border-color:#ffd400; }
.belm-tech-action-dock .belm-tech-dock-spare { color:#151d31; background:#ffd400; border-color:#00a651; }
.belm-tech-action-dock .belm-tech-dock-customer { color:#fff; background:#283754; border-color:#00a651; }

[data-tech-jobcards-machine].has-active-job-card {
  box-shadow: inset 0 0 0 2px rgba(0,166,81,.35);
}

@media (max-width: 820px) {
  .belm-tech-action-dock {
    width: calc(100vw - 18px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 7px;
    border-radius: 16px;
  }
  .belm-tech-has-action-dock { padding-bottom: 132px !important; }
}

@media (max-width: 520px) {
  .belm-tech-action-dock {
    bottom: max(7px, env(safe-area-inset-bottom));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .belm-tech-action-dock .belm-tech-dock-action,
  .belm-tech-action-dock .belm-tech-spare-shortcut,
  .belm-tech-action-dock .belm-tech-spare-recommend-shortcut {
    min-height: 46px;
    padding: 8px 6px;
    font-size: 10.5px;
  }
  .belm-tech-action-dock .belm-tech-dock-customer:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .belm-tech-has-action-dock { padding-bottom: 178px !important; }
}

.belm-service-day-block {
  margin: 12px 0 18px;
  padding: 14px;
  border: 2px dashed var(--belm-green);
  border-radius: 12px;
  background: rgba(0, 169, 88, .05);
}

.belm-last-hour-meter-hint {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  color: #0a6b3d;
  font-size: 11.5px;
  font-weight: 700;
}

.belm-service-day-toggle {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 9px;
  color: var(--belm-navy);
  font-size: 13px !important;
  font-weight: 800 !important;
}

.belm-service-day-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--belm-green);
}

.belm-service-day-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.belm-service-day-fields.hidden {
  display: none;
}

.belm-service-day-fields label {
  display: grid;
  gap: 5px;
  color: var(--belm-navy);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.belm-service-day-fields input,
.belm-service-day-fields select {
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
}

@media (max-width: 520px) {
  .belm-service-day-fields { grid-template-columns: 1fr; }
}

.belm-display-photo-field {
  display: block !important;
  margin-top: 14px;
  color: var(--belm-navy);
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
}
.belm-display-photo-field small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: none;
}
.belm-display-photo-field input[type="file"] {
  margin-top: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 12px;
  background: #fff;
  color: #1f2c42;
}
.belm-display-photo-preview {
  display: block;
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  margin-top: 10px;
}
.belm-display-photo-preview.hidden { display: none; }

.belm-tech-spare-shortcut:hover,
.belm-tech-spare-shortcut:focus {
  outline: 3px solid rgba(0, 166, 81, .24);
}

.belm-technician-spare-form {
  padding: 20px 24px 0;
}

.belm-technician-spare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.belm-technician-spare-grid label {
  display: grid;
  gap: 6px;
  color: #36455a;
  font-size: 10px;
  font-weight: 800;
}

.belm-technician-spare-grid label.full {
  grid-column: 1 / -1;
}

.belm-technician-spare-grid input,
.belm-technician-spare-grid select,
.belm-technician-spare-grid textarea {
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 9px 10px;
  color: var(--belm-ink);
  border: 1px solid var(--belm-line);
  border-radius: 8px;
  background: #fff;
  font: 500 11px Inter, sans-serif;
}

.belm-technician-spare-note,
.belm-technician-spare-success {
  margin: 15px 0 0;
  padding: 11px 13px;
  color: #087039;
  border: 1px solid #88cba8;
  border-radius: 9px;
  background: #eaf8f0;
  font-size: 10px;
}

.belm-technician-spare-note strong,
.belm-technician-spare-note span {
  display: block;
}

.belm-technician-spare-note span {
  margin-top: 3px;
}

.belm-technician-request-history {
  margin: 20px 24px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--belm-line);
}

.belm-technician-request-history-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.belm-technician-request-history-head span {
  color: var(--belm-green);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.belm-technician-request-history-head h3 {
  margin: 2px 0 0;
  color: var(--belm-navy);
  font: 700 16px "Space Grotesk", sans-serif;
}

.belm-technician-request-history-head button,
.belm-technician-request-item button {
  min-height: 32px;
  padding: 6px 10px;
  color: var(--belm-navy);
  border: 1px solid var(--belm-yellow);
  border-radius: 7px;
  background: var(--belm-yellow);
  font-size: 9px;
  font-weight: 850;
}

.belm-technician-request-list {
  display: grid;
  max-height: 285px;
  gap: 9px;
  overflow-y: auto;
}

.belm-technician-request-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--belm-line);
  border-radius: 10px;
  background: #f8fafc;
}

.belm-technician-request-copy {
  min-width: 0;
}

.belm-technician-request-copy strong,
.belm-technician-request-copy span,
.belm-technician-request-copy small,
.belm-technician-request-copy time {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.belm-technician-request-copy strong {
  color: var(--belm-navy);
  font-size: 11px;
}

.belm-technician-request-copy span {
  margin-top: 2px;
  color: #46566c;
  font-size: 10px;
}

.belm-technician-request-copy small,
.belm-technician-request-copy time,
.belm-technician-request-locked {
  margin-top: 3px;
  color: #7d8ca0;
  font-size: 8px;
}

.belm-technician-request-status {
  padding: 4px 7px;
  color: #6b5608;
  border-radius: 999px;
  background: #fff2a7;
  font-size: 8px;
  font-weight: 900;
}

.belm-technician-request-status.status-added {
  color: #087039;
  background: #d9f4e5;
}

.belm-technician-request-item button,
.belm-technician-request-locked {
  grid-column: 2;
}

.belm-checklist-photo-uploader {
  display: grid;
  gap: 9px;
  margin-top: 4px;
}

.belm-checklist-photo-picker {
  display: grid !important;
  gap: 5px !important;
  padding: 13px;
  color: #26364d !important;
  border: 2px dashed #7fb99a;
  border-radius: 10px;
  background: #f1fbf5;
}

.belm-checklist-photo-picker > span {
  color: var(--belm-green-dark);
  font-size: 11px;
  font-weight: 900;
}

.belm-checklist-photo-picker > small {
  color: #64748b;
  font-size: 8px;
}

.belm-checklist-photo-picker input[type="file"] {
  width: 100%;
  margin-top: 4px;
  font-size: 10px;
}

.belm-checklist-photo-preview {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid #aad6bc;
  border-radius: 9px;
  background: #eaf8f0;
}

.belm-checklist-photo-preview[hidden] {
  display: none;
}

.belm-checklist-photo-preview img {
  width: 74px;
  height: 58px;
  border-radius: 6px;
  background: #d7e1eb;
  object-fit: cover;
}

.belm-checklist-photo-preview span {
  color: #175d37;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.4;
}

.belm-checklist-photo-error {
  margin: 0;
  color: #a12820;
  font-size: 9px;
  font-weight: 750;
}

.belm-view-checked-report {
  min-height: 32px;
  padding: 6px 9px;
  color: #fff;
  border: 1px solid var(--belm-green);
  border-radius: 7px;
  background: var(--belm-green);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.belm-view-checked-report:hover {
  background: var(--belm-green-dark);
}

.belm-checked-report-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: block;
  padding: 0;
  background: #fff;
  overflow-y: auto;
}

.belm-checked-report-card {
  width: 100%;
  min-height: 100vh;
  max-height: none;
  overflow-y: visible;
  color: var(--belm-ink);
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.belm-checked-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  color: #fff;
  border-bottom: 4px solid var(--belm-yellow);
  background: var(--belm-navy);
}

.belm-checked-report-head p,
.belm-checked-report-head h2,
.belm-checked-report-head span {
  margin: 0;
}

.belm-checked-report-head p {
  color: #75dda9;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.belm-checked-report-head h2 {
  margin-top: 5px;
  font: 700 clamp(20px, 3vw, 29px) "Space Grotesk", sans-serif;
}

.belm-checked-report-head span {
  display: block;
  margin-top: 6px;
  color: #a9b7ca;
  font-size: 10px;
}

.belm-checked-report-head button {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 9px;
  background: rgba(255, 255, 255, .08);
  font-size: 24px;
  line-height: 1;
}

.belm-checked-report-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 24px;
  background: #f6f8fb;
}

.belm-checked-report-summary div {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--belm-line);
  border-radius: 10px;
  background: #fff;
}

.belm-checked-report-summary span,
.belm-checked-report-summary strong {
  display: block;
}

.belm-checked-report-summary span {
  color: #68778d;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.belm-checked-report-summary strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.belm-checked-report-display-photo-cell {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.belm-checked-report-display-photo {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--belm-line);
  cursor: pointer;
}

.belm-checked-report-table-wrap {
  padding: 20px 24px 6px;
  overflow-x: auto;
}

.belm-checked-report-table {
  width: 100%;
  border: 1px solid var(--belm-line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 11px;
  overflow: hidden;
  font-size: 11px;
}

.belm-checked-report-table th,
.belm-checked-report-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--belm-line);
  text-align: left;
  vertical-align: middle;
}

.belm-checked-report-table th {
  color: #68778d;
  background: #f6f8fb;
  font-size: 8px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.belm-checked-report-table tbody tr:last-child td {
  border-bottom: 0;
}

.belm-checked-report-table th:last-child,
.belm-checked-report-table td.belm-report-evidence {
  text-align: right;
  width: 64px;
}
.belm-report-photo-link {
  display: inline-block;
  line-height: 0;
}
.belm-report-issue-note {
  margin-top: 4px;
  font-size: 10.5px;
  font-style: italic;
  color: #b91c1c;
}
.belm-report-photo-link img,
.belm-report-photo-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--belm-line);
  box-shadow: 0 2px 6px rgba(10, 18, 34, .12);
  cursor: pointer;
}
.belm-report-photo-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 10, 20, .88);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.belm-report-photo-lightbox.open { display: flex; }
.belm-report-photo-lightbox img {
  max-width: min(92vw, 900px);
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  object-fit: contain;
}
.belm-report-photo-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.belm-report-photo-lightbox-close:hover { background: rgba(255, 255, 255, .28); }
@media print {
  .belm-report-photo-thumb, .belm-report-photo-link img {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
  }
  .belm-report-photo-lightbox { display: none !important; }
}

.belm-report-status {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
}

.belm-report-status.status-green,
.belm-checked-report-summary .status-green {
  color: #087039;
  background: #e5f8ee;
}

.belm-report-status.status-yellow,
.belm-checked-report-summary .status-yellow {
  color: #806500;
  background: #fff4c3;
}

.belm-report-status.status-red,
.belm-checked-report-summary .status-red {
  color: #9a2626;
  background: #fde8e8;
}

.belm-report-empty {
  padding: 28px !important;
  color: #68778d;
  text-align: center !important;
}

.belm-checked-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 15px 24px 20px;
}

.belm-checked-report-actions button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--belm-line);
  border-radius: 8px;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.belm-checked-report-actions button.primary {
  color: #fff;
  border-color: var(--belm-green);
  background: var(--belm-green);
}

.belm-checked-report-actions a[data-checked-report-download] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--belm-line);
  border-radius: 8px;
  background: #fff;
  color: #101b31;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.belm-edit-state {
  padding: 4px 7px;
  border-radius: 7px;
}

.belm-edit-state.editable {
  color: #087039;
  background: #e5f8ee;
}

.belm-edit-state.expired {
  color: #9a2626;
  background: #fde8e8;
}

.belm-edit-state.readonly {
  color: #526176;
  background: #e8edf4;
}

.belm-checklist-edit-form {
  padding: 20px 24px 0;
}

.belm-checklist-edit-deadline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
  color: #6a5200;
  border: 1px solid #ecd46a;
  border-radius: 10px;
  background: #fff8d8;
  font-size: 10px;
}

.belm-checklist-edit-deadline strong,
.belm-checklist-edit-deadline span,
.belm-checklist-edit-item span,
.belm-checklist-edit-meter span {
  display: block;
}

.belm-checklist-edit-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.belm-checklist-edit-item,
.belm-checklist-edit-meter {
  display: grid;
  gap: 6px;
  color: #36455a;
  font-size: 10px;
  font-weight: 800;
}

.belm-checklist-edit-meter {
  max-width: 320px;
}

.belm-checklist-edit-item input,
.belm-checklist-edit-item select,
.belm-checklist-edit-meter input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--belm-ink);
  border: 1px solid var(--belm-line);
  border-radius: 8px;
  background: #fff;
  font: 500 11px Inter, sans-serif;
}

.belm-checklist-edit-item input:focus,
.belm-checklist-edit-item select:focus,
.belm-checklist-edit-meter input:focus {
  border-color: var(--belm-green);
  outline: 3px solid rgba(0, 166, 81, .14);
}

.belm-checklist-edit-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  color: #9a2626;
  border: 1px solid #efb5b5;
  border-radius: 8px;
  background: #fde8e8;
  font-size: 10px;
  font-weight: 700;
}

.belm-report-history-list {
  display: grid;
  gap: 10px;
  padding: 20px 24px 6px;
}

.belm-report-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--belm-line);
  border-radius: 11px;
  background: #f8fafc;
}

.belm-report-history-item strong,
.belm-report-history-item span,
.belm-report-history-item small {
  display: block;
}

.belm-report-history-item strong {
  font-size: 12px;
}

.belm-report-history-item div > span,
.belm-report-history-item small {
  margin-top: 3px;
  color: #68778d;
  font-size: 9px;
}

.belm-report-history-item button {
  min-height: 34px;
  padding: 7px 10px;
  color: #fff;
  border: 1px solid var(--belm-green);
  border-radius: 8px;
  background: var(--belm-green);
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .belm-machine-action-row {
    grid-template-columns: 1fr;
  }
  .belm-checked-report-summary { grid-template-columns: 1fr 1fr; padding: 14px; }
  .belm-checked-report-table-wrap { padding: 14px 14px 4px; }
  .belm-checked-report-head { padding: 18px 16px; }
  .belm-checked-report-actions { padding: 12px 14px 16px; }
  .belm-report-history-list { padding: 14px 14px 4px; }
  .belm-report-history-item { grid-template-columns: 1fr auto; }
  .belm-report-history-item button { grid-column: 1 / -1; width: 100%; }
  .belm-checklist-edit-form { padding: 14px 14px 0; }
  .belm-checklist-edit-deadline { align-items: flex-start; flex-direction: column; }
  .belm-checklist-edit-items { grid-template-columns: 1fr; }
  .belm-technician-spare-form { padding: 14px 14px 0; }
  .belm-technician-spare-grid { grid-template-columns: 1fr; }
  .belm-technician-spare-grid label.full { grid-column: auto; }
  .belm-technician-request-history { margin: 18px 14px 14px; }
  .belm-technician-request-item { grid-template-columns: 1fr; }
  .belm-technician-request-status,
  .belm-technician-request-item button,
  .belm-technician-request-locked { grid-column: 1; justify-self: start; }
  .belm-technician-customer-head {
    padding: 20px;
    flex-direction: column;
  }
  .belm-technician-customer-info {
    grid-template-columns: 1fr 1fr;
  }
  .belm-technician-customer-info > div {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .belm-technician-machine-grid {
    grid-template-columns: 1fr !important;
  }
  .belm-technician-machine-card {
    min-height: 300px !important;
    padding: 19px !important;
  }
}

body[data-belm-area="admin"] .min-h-screen.bg-belm-black,
body[data-belm-area="portal"] .min-h-screen.bg-belm-blue,
body[data-belm-area="tech"] .min-h-screen.bg-belm-blue {
  background:
    radial-gradient(circle at 15% 15%, rgba(0, 166, 81, .21), transparent 30rem),
    radial-gradient(circle at 88% 85%, rgba(255, 212, 0, .12), transparent 28rem),
    var(--belm-navy) !important;
}

body[data-belm-area="admin"] aside.bg-belm-black {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 38%),
    var(--belm-navy) !important;
  border-right: 1px solid rgba(255, 255, 255, .07);
}

body[data-belm-area="admin"] aside .border-belm-yellow {
  background: rgba(255, 255, 255, .075) !important;
}

body[data-belm-area="admin"] aside .text-belm-yellow {
  color: var(--belm-yellow) !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* The original dashboard bundle only toggled the .dark class. These rules
   provide the complete visual theme while keeping the existing components. */
html.dark {
  color-scheme: dark;
  --belm-canvas: #0c1322;
  --belm-line: #334155;
  --belm-ink: #e5edf7;
}

html.dark body {
  background:
    radial-gradient(circle at 8% 2%, rgba(255, 212, 0, .06), transparent 24rem),
    radial-gradient(circle at 96% 5%, rgba(0, 166, 81, .10), transparent 28rem),
    #0c1322 !important;
  color: #e5edf7 !important;
}

html.dark .bg-white {
  background-color: #182235 !important;
}

html.dark .bg-slate-50 {
  background-color: #0f172a !important;
}

html.dark .bg-slate-100 {
  background-color: #26344a !important;
}

html.dark .bg-slate-200 {
  background-color: #334155 !important;
}

html.dark .text-belm-black,
html.dark .text-slate-900,
html.dark .text-slate-800,
html.dark .text-slate-700,
html.dark .text-slate-600 {
  color: #e5edf7 !important;
}

html.dark .text-slate-500,
html.dark .text-slate-400 {
  color: #a8b5c8 !important;
}

html.dark .border-slate-100,
html.dark .border-slate-200,
html.dark .border-slate-300 {
  border-color: #334155 !important;
}

html.dark input,
html.dark select,
html.dark textarea {
  color: #eef4fb !important;
  background-color: #0f172a !important;
  border-color: #43516a !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #7f8ca1 !important;
}

html.dark .hover\:bg-slate-50:hover,
html.dark .hover\:bg-slate-100:hover {
  background-color: #26344a !important;
}

html.dark .shadow-xl,
html.dark .shadow-lg {
  box-shadow: 0 24px 60px rgba(0, 0, 0, .38) !important;
}

html.dark .belm-checked-report-card,
html.dark .belm-checked-report-summary div,
html.dark .belm-checked-report-actions button,
html.dark .belm-checklist-edit-item input,
html.dark .belm-checklist-edit-item select,
html.dark .belm-checklist-edit-meter input {
  color: #e5edf7;
  border-color: #334155;
  background: #182235;
}

html.dark .belm-checked-report-summary,
html.dark .belm-checked-report-table th {
  background: #0f172a;
}

html.dark .belm-checked-report-table {
  color: #e5edf7;
  border-color: #334155;
}

html.dark .belm-checked-report-table th,
html.dark .belm-checked-report-table td {
  border-bottom-color: #334155;
}

html.dark .belm-report-history-item {
  color: #e5edf7;
  border-color: #334155;
  background: #0f172a;
}

html.dark .belm-checklist-edit-deadline {
  color: #ffe17a;
  border-color: #6a560c;
  background: #312b15;
}

html.dark .belm-checklist-edit-item,
html.dark .belm-checklist-edit-meter {
  color: #cbd6e6;
}

html.dark .belm-technician-spare-grid label {
  color: #cbd6e6;
}

html.dark .belm-technician-spare-grid input,
html.dark .belm-technician-spare-grid select,
html.dark .belm-technician-spare-grid textarea {
  color: #e5edf7;
  border-color: #334155;
  background: #182235;
}

html.dark .belm-technician-request-history-head h3,
html.dark .belm-technician-request-copy strong,
html.dark .belm-checklist-photo-picker {
  color: #e5edf7 !important;
}

html.dark .belm-technician-request-item,
html.dark .belm-checklist-photo-picker {
  border-color: #334155;
  background: #182235;
}

html.dark .belm-technician-request-copy span,
html.dark .belm-checklist-photo-picker > small {
  color: #aebdd0;
}

html.dark .belm-technician-machine-card {
  color: #e5edf7;
  border-color: #334155 !important;
  background: #111c2f !important;
}

html.dark .belm-technician-machine-list-heading h2,
html.dark .belm-technician-machine-data b {
  color: #e5edf7;
}

html.dark .belm-technician-machine-data > div {
  border-color: #334155;
  background: #182235;
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  body > *:not(.belm-checked-report-modal) {
    display: none !important;
  }
  .belm-checked-report-modal {
    position: static;
    display: block;
    padding: 0;
    background: #fff;
  }
  .belm-checked-report-card {
    width: 100%;
    max-height: none;
    border: 0;
    box-shadow: none;
    position: relative;
  }
  /* Printing must always come out as a clean white document, even when
     the on-screen theme is Dark Mode — dark-mode's own !important rules
     otherwise win over the print rules above and the printout comes out
     with a black/navy background wasting ink and hard to read on paper. */
  html.dark .belm-checked-report-modal,
  .belm-checked-report-modal,
  html.dark .belm-checked-report-card,
  .belm-checked-report-card,
  html.dark .belm-checked-report-summary,
  .belm-checked-report-summary,
  html.dark .belm-checked-report-summary div,
  .belm-checked-report-summary div,
  html.dark .belm-checked-report-table,
  .belm-checked-report-table,
  html.dark .belm-checked-report-table th,
  .belm-checked-report-table th {
    background: #fff !important;
    color: #101b31 !important;
    border-color: #d7deea !important;
  }
  html.dark .belm-checked-report-summary div,
  .belm-checked-report-summary div {
    background: #f6f8fb !important;
  }
  html.dark .belm-checked-report-table th,
  .belm-checked-report-table th {
    background: #eef1f6 !important;
  }
  html.dark .belm-checked-report-summary span,
  .belm-checked-report-summary span,
  html.dark .belm-checked-report-head span,
  .belm-checked-report-head span {
    color: #68778d !important;
  }
  html.dark .belm-checked-report-table td,
  .belm-checked-report-table td,
  html.dark .belm-checked-report-table th,
  .belm-checked-report-table th {
    border-bottom-color: #d7deea !important;
  }
  .belm-checked-report-card::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 360px;
    height: 260px;
    transform: translate(-50%, -50%);
    background: url("/belm-watermark.jpg") center / contain no-repeat;
    pointer-events: none;
    z-index: 0;
  }
  .belm-checked-report-card > * {
    position: relative;
    z-index: 1;
  }
  .belm-checked-report-actions,
  .belm-checked-report-head button {
    display: none !important;
  }
}

/* Machine status badge (Normal / Attention / Don't operate) — square instead
   of pill-shaped, with slightly larger text for readability. */
span.rounded-full.px-2\.5.py-1.text-xs.font-medium {
  border-radius: 4px !important;
  font-size: 13px !important;
  padding: 5px 10px !important;
}

/* Any "Download report" link, wherever it's rendered (including inside the
   compiled React app itself), must always have visible, readable text —
   never rely on inherited color which can end up white-on-white. */
a[href^="/api/customer-portal/reports/"][href$="/download"] {
  color: #0d6b38 !important;
  background: #f4fbf7 !important;
  border: 1px solid #1f9d55 !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

/* "Current Hrs" on the machine service panel always reads green,
   regardless of the card's overall RED/YELLOW/GREEN status tint. */
.belm-service-due-grid b.belm-current-hrs-value {
  color: #16a34a !important;
}

/* "Fleet Number" (was "Machine ID") always reads green too. */
.belm-service-due-grid b.belm-fleet-number-value {
  color: #16a34a !important;
}

/* V188: keep the account tools/overview rail visible on desktop while the
   customer scrolls through a long fleet. Mobile remains in normal flow. */
@media (min-width: 980px) {
  .belm-dashboard-layout > .belm-activity-overview-stack {
    position: sticky;
    top: 18px;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}
.belm-account-tools-actions { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 480px) {
  .belm-account-tools-actions { grid-template-columns: 1fr; }
}

.belm-customer-checkup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #0f62fe;
  border-radius: 9px;
  background: #0f62fe;
  color: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.belm-customer-checkup-button:hover { background: #0b52d1; }
.belm-customer-checkup-card { width: min(920px, calc(100vw - 24px)); }
.belm-customer-checkup-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.belm-customer-checkup-tabs button {
  padding: 9px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.belm-customer-checkup-tabs button.active {
  border-color: #0f62fe;
  background: #0f62fe;
  color: #fff;
}
.belm-customer-checkup-body { padding: 14px; }

/* V273 - Job Card Reports / Daily Report date filter bar */
.belm-customer-checkup-tabs { flex-wrap: wrap; }
.belm-report-date-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.belm-report-date-filter label {
  display: grid;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  color: #475569;
}
.belm-report-date-filter input,
.belm-report-date-filter select {
  padding: 7px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
}
.belm-report-date-filter [data-jc-apply],
.belm-report-date-filter [data-dr-apply] {
  padding: 8px 14px;
  border: 1px solid #0f62fe;
  border-radius: 8px;
  background: #0f62fe;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
.belm-report-date-download {
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid #00a651;
  border-radius: 8px;
  background: #00a651;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
.belm-report-date-download:disabled { opacity: .6; cursor: wait; }
html[data-theme="dark"] .belm-report-date-filter {
  background: #16233d !important;
  border-color: #2a3950 !important;
}
html[data-theme="dark"] .belm-report-date-filter label { color: #9fb0c8 !important; }
html[data-theme="dark"] .belm-report-date-filter input,
html[data-theme="dark"] .belm-report-date-filter select {
  background: #0e1826 !important;
  border-color: #2a3950 !important;
  color: #e5edf7 !important;
}
@media (max-width: 640px) {
  .belm-report-date-filter { flex-direction: column; align-items: stretch; }
  .belm-report-date-download { margin-left: 0; }
}
.belm-customer-checkup-toolbar label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.belm-customer-checkup-toolbar select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}
.belm-daily-checklist-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.belm-daily-checklist-summary > div {
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.belm-daily-checklist-summary span,
.belm-daily-checklist-summary strong { display: block; }
.belm-daily-checklist-summary span { color: #64748b; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.belm-daily-checklist-summary strong { margin-top: 3px; color: #0f172a; font-size: 12px; }
.belm-daily-checklist-complete,
.belm-daily-checklist-pending {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 750;
}
.belm-daily-checklist-complete { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.belm-daily-checklist-pending { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.belm-daily-checklist-items { display: grid; gap: 6px; }
.belm-daily-checklist-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
}
.belm-daily-checklist-item b { color: #1e293b; font-size: 11px; }
.belm-daily-checklist-item span { color: #64748b; font-size: 10px; white-space: nowrap; }
.belm-customer-checkup-pdf-actions,
.belm-customer-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.belm-customer-checkup-pdf-actions button,
.belm-customer-report-actions button {
  padding: 8px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 10.5px;
  font-weight: 850;
  cursor: pointer;
}
.belm-customer-checkup-pdf-actions button.primary { border-color: #0f62fe; background: #0f62fe; color: #fff; }
.belm-customer-checkup-report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fff;
}
.belm-customer-checkup-report-row + .belm-customer-checkup-report-row { margin-top: 8px; }
.belm-customer-checkup-report-row > div:first-child strong,
.belm-customer-checkup-report-row > div:first-child span,
.belm-customer-checkup-report-row > div:first-child small { display: block; }
.belm-customer-checkup-report-row > div:first-child strong { color: #0f172a; font-size: 12px; }
.belm-customer-checkup-report-row > div:first-child span { margin-top: 2px; color: #475569; font-size: 10px; }
.belm-customer-checkup-report-row > div:first-child small { margin-top: 3px; color: #64748b; font-size: 9.5px; }
.belm-customer-report-actions { grid-column: 1 / -1; margin-top: 2px; }
@media (max-width: 680px) {
  .belm-daily-checklist-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .belm-daily-checklist-item { display: grid; }
  .belm-daily-checklist-item span { white-space: normal; }
}

/* V192 — synchronized BELM <-> Customer communication */
.belm-customer-proformas-panel { margin: 16px 0; padding: 18px; border: 1px solid #d9e2ec; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.belm-customer-proformas-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.belm-customer-proformas-head span { font-weight:900; letter-spacing:.08em; font-size:12px; }
.belm-customer-proforma-row { padding:12px 0; border-top:1px solid #e5e7eb; display:grid; gap:8px; }
.belm-customer-proforma-row:first-child { border-top:0; }
.belm-customer-proforma-meta { display:flex; flex-wrap:wrap; gap:8px 14px; font-size:12px; color:#475569; }
.belm-customer-proforma-actions { display:flex; flex-wrap:wrap; gap:8px; }
.belm-customer-proforma-actions button { border:1px solid #cbd5e1; background:#fff; border-radius:9px; padding:8px 11px; font-weight:800; cursor:pointer; }
.belm-customer-proforma-actions .primary { background:#0f172a; color:#fff; border-color:#0f172a; }
.belm-comm-direction { font-size:10px; font-weight:900; opacity:.7; margin-right:6px; }


/* V192 — direct BELM <-> customer communication */
.belm-customer-messages-panel { margin:16px 0; padding:18px; border:1px solid #d9e2ec; border-radius:16px; background:#fff; box-shadow:0 8px 24px rgba(15,23,42,.06); }
.belm-customer-messages-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.belm-customer-messages-head span { font-weight:900; letter-spacing:.08em; font-size:12px; }
.belm-customer-messages-head small { opacity:.68; }
.belm-customer-messages-list { display:grid; gap:10px; }
.belm-customer-message-row { border:1px solid #e7edf3; border-radius:12px; padding:12px 14px; background:#fbfdff; }
.belm-customer-message-row p { margin:8px 0; white-space:pre-wrap; }
.belm-customer-message-title { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.belm-customer-message-title span { font-size:12px; opacity:.65; white-space:nowrap; }
.belm-customer-message-actions { display:flex; justify-content:flex-end; margin-top:8px; }
.belm-customer-message-ok {
  border: 1px solid #1769c2;
  border-radius: 8px;
  padding: 6px 18px;
  background: #1769c2;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.belm-customer-message-ok:hover { background: #125497; }
@media (max-width: 640px) { .belm-customer-message-title { flex-direction:column; gap:3px; } }

/* V271 - every unread message from BELM alerts the customer with a red
   border/glow that blinks until they dismiss it (OK button), so a new
   message is impossible to miss instead of blending into the page. */
@keyframes belmMessageAlertBlink {
  0%, 100% { border-color: #d83b40; box-shadow: 0 0 0 0 rgba(216,59,64,.45); }
  50% { border-color: #ff7a7e; box-shadow: 0 0 0 6px rgba(216,59,64,0); }
}
.belm-customer-messages-panel { border-color: #d83b40 !important; }
.belm-customer-message-row {
  border-color: #d83b40;
  border-width: 2px !important;
  animation: belmMessageAlertBlink 1.4s ease-in-out infinite;
}
.belm-customer-message-title strong { color: #b3241f; }
@media (prefers-reduced-motion: reduce) {
  .belm-customer-message-row { animation: none; }
}

/* V229 - dark mode support for the Messages from BELM panel; it was
   hardcoded white/light and became unreadable in Dark Mode. */
html.dark .belm-customer-messages-panel,
html[data-theme="dark"] .belm-customer-messages-panel {
  border-color: #d83b40 !important;
  background: #111b2a !important;
  color: #e5edf7;
  box-shadow: 0 14px 34px rgba(0,0,0,.26) !important;
}
html.dark .belm-customer-message-row,
html[data-theme="dark"] .belm-customer-message-row {
  background: #240f10 !important;
  color: #e5edf7;
}
html.dark .belm-customer-message-title strong,
html[data-theme="dark"] .belm-customer-message-title strong {
  color: #ff9d9d !important;
}
html.dark .belm-customer-message-title span,
html[data-theme="dark"] .belm-customer-message-title span,
html.dark .belm-customer-messages-head small,
html[data-theme="dark"] .belm-customer-messages-head small {
  color: #8fa2b9 !important;
}

/* ========================================================================
   V195 UI REFRESH — BELM brand palette + premium machine-card treatment
   ======================================================================== */
:root {
  --belm-blue: #1769c2;
  --belm-blue-dark: #0f4f96;
  --belm-green: #00a651;
  --belm-green-dark: #007d3c;
  --belm-yellow: #ffd400;
  --belm-black: #090d13;
  --belm-navy: #101b2e;
  --belm-line: #dce5ed;
}

/* Keep the brand colourful but disciplined: blue/navy structure, green for
   operational actions, yellow for attention/service, black for authority. */
body[data-belm-area="portal"] {
  background:
    radial-gradient(circle at 95% 0, rgba(23,105,194,.07), transparent 28rem),
    radial-gradient(circle at 3% 12%, rgba(0,166,81,.055), transparent 25rem),
    #f5f7fa !important;
}
body[data-belm-area="portal"]::before {
  height: 5px;
  background: linear-gradient(90deg,
    var(--belm-blue) 0 28%,
    var(--belm-green) 28% 56%,
    var(--belm-yellow) 56% 82%,
    var(--belm-black) 82% 100%);
}

/* Customer machine grid: enough breathing room for operational information. */
.belm-customer-machine-grid {
  grid-template-columns: repeat(auto-fill, minmax(370px, 450px));
  gap: 20px;
}

/* Machine cards now stay mostly neutral; condition colour is an accent rather
   than painting the whole card. This improves scan speed and readability. */
.belm-customer-machine-card {
  position: relative !important;
  min-height: 0 !important;
  padding: 22px !important;
  overflow: hidden !important;
  border: 1px solid #dbe4ed !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 12px 34px rgba(15, 27, 46, .09) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}
.belm-customer-machine-card:hover {
  transform: translateY(-3px);
  border-color: #b9c9d8 !important;
  box-shadow: 0 20px 48px rgba(15, 27, 46, .14) !important;
}
.belm-customer-machine-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 5px;
  background: #94a3b8;
}
.belm-customer-machine-card.status-green::before { background: var(--belm-green); }
.belm-customer-machine-card.status-yellow::before { background: var(--belm-yellow); }
.belm-customer-machine-card.status-red::before { background: #e5484d; }
.belm-customer-machine-card.status-unknown::before { background: #7f8da1; }

.belm-customer-machine-card.status-green,
.belm-customer-machine-card.status-yellow,
.belm-customer-machine-card.status-red,
.belm-customer-machine-card.status-unknown {
  background: #fff !important;
  border-width: 1px !important;
  box-shadow: 0 12px 34px rgba(15, 27, 46, .09) !important;
}

/* Native React card heading: turns into a compact industrial nameplate. */
.belm-customer-machine-card > .belm-machine-native-head {
  position: relative;
  margin: -22px -22px 0 !important;
  padding: 24px 22px 18px !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(circle at 94% 0, rgba(23,105,194,.28), transparent 12rem),
    linear-gradient(135deg, #111f35, #0a111d) !important;
}
.belm-customer-machine-card > .belm-machine-native-head::after {
  content: "";
  position: absolute;
  right: 21px;
  bottom: 0;
  left: 21px;
  height: 2px;
  opacity: .8;
  background: linear-gradient(90deg, var(--belm-blue), var(--belm-green), var(--belm-yellow));
}
.belm-customer-machine-card > .belm-machine-native-head,
.belm-customer-machine-card > .belm-machine-native-head * {
  color: #fff !important;
}
.belm-customer-machine-card > .belm-machine-native-head > div:first-child > div:first-child,
.belm-customer-machine-card > .belm-machine-native-head .font-medium {
  font: 800 18px/1.15 "Space Grotesk", Inter, system-ui, sans-serif !important;
  letter-spacing: -.015em;
}
.belm-customer-machine-card > .belm-machine-native-head .text-slate-500,
.belm-customer-machine-card > .belm-machine-native-head .text-xs {
  color: #aebdd0 !important;
}

.belm-customer-machine-card > .belm-machine-last-checked {
  margin: 0 -22px 12px !important;
  padding: 9px 22px !important;
  color: #66768a !important;
  border-bottom: 1px solid #e8eef4;
  background: #f8fafc;
  font-size: 9.5px !important;
  font-weight: 750 !important;
  letter-spacing: .035em;
  text-transform: uppercase;
}

/* Override old status-wide inherited text colours. */
.belm-customer-machine-card.status-green .belm-machine-native-head *,
.belm-customer-machine-card.status-yellow .belm-machine-native-head *,
.belm-customer-machine-card.status-red .belm-machine-native-head *,
.belm-customer-machine-card.status-unknown .belm-machine-native-head * { color: #fff !important; }
.belm-customer-machine-card.status-green > .belm-machine-last-checked,
.belm-customer-machine-card.status-yellow > .belm-machine-last-checked,
.belm-customer-machine-card.status-red > .belm-machine-last-checked,
.belm-customer-machine-card.status-unknown > .belm-machine-last-checked { color: #66768a !important; }

.belm-technician-machine-info {
  gap: 12px;
  margin-top: 0;
}
.belm-technician-machine-data {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.belm-technician-machine-data > div {
  min-height: 52px;
  padding: 9px 10px;
  border-color: #e5ebf1;
  border-radius: 11px;
  background: #f8fafc;
}
.belm-technician-machine-data span {
  color: #7a899b !important;
  font-size: 8px;
  letter-spacing: .08em;
}
.belm-technician-machine-data b {
  margin-top: 4px;
  color: #142033 !important;
  font-size: 10.5px;
  font-weight: 850;
}

.belm-technician-machine-health {
  position: relative;
  grid-template-columns: .72fr 1.28fr;
  gap: 10px;
  padding: 13px 14px 13px 17px;
  overflow: hidden;
  border: 1px solid #cdebd9;
  border-radius: 13px;
  background: #f0fbf5;
  animation: none !important;
}
.belm-technician-machine-health::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--belm-green);
}
.belm-technician-machine-health.status-yellow { border-color: #eadb85; background: #fffbed; }
.belm-technician-machine-health.status-yellow::before { background: var(--belm-yellow); }
.belm-technician-machine-health.status-red { border-color: #efc7c8; background: #fff5f5; }
.belm-technician-machine-health.status-red::before { background: #e5484d; }
.belm-technician-machine-health.status-unknown { border-color: #d9e0e8; background: #f7f9fb; }
.belm-technician-machine-health.status-unknown::before { background: #7f8da1; }
.belm-technician-machine-health span { font-size: 8px !important; letter-spacing: .075em; text-transform: uppercase; }
.belm-technician-machine-health strong { margin-top: 3px; font-size: 12px !important; font-weight: 900; }
.belm-technician-machine-health small { font-size: 8.5px !important; }

.belm-customer-op-status {
  margin-top: 0;
  padding: 11px 13px;
  border: 1px solid #e2e8ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 3px 0 0 var(--belm-blue);
}
.belm-customer-op-status span { color: #7a899b; font-size: 8px; letter-spacing: .075em; }
.belm-customer-op-status strong { color: #142033; font-size: 11px; }
.belm-customer-op-status.op-SERVICE_IN_PROGRESS,
.belm-customer-op-status.op-CHECKUP_IN_PROGRESS,
.belm-customer-op-status.op-MAINTENANCE_IN_PROGRESS {
  border-color: #eadb85;
  background: #fffdf3;
  box-shadow: inset 3px 0 0 var(--belm-yellow);
}
.belm-customer-op-status.op-GROUNDED {
  border-color: #efc7c8;
  background: #fff6f6;
  box-shadow: inset 3px 0 0 #e5484d;
  animation: none;
}

.belm-service-due-panel,
.belm-service-due-panel.status-yellow,
.belm-service-due-panel.status-red,
.belm-service-due-panel.status-unknown {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dfe7ef;
  border-radius: 15px;
  background: #f8fafc;
  animation: none !important;
  box-shadow: none;
}
.belm-service-due-panel.status-green { box-shadow: inset 0 3px 0 var(--belm-green); }
.belm-service-due-panel.status-yellow { box-shadow: inset 0 3px 0 var(--belm-yellow); }
.belm-service-due-panel.status-red { box-shadow: inset 0 3px 0 #e5484d; }
.belm-service-due-panel.status-unknown { box-shadow: inset 0 3px 0 #7f8da1; }
.belm-service-due-head { margin-bottom: 9px; }
.belm-service-due-head span { color: #69788c; font-size: 8.5px; }
.belm-service-due-head strong { color: #152238; font-size: 13px; }
.belm-service-due-grid { gap: 7px; }
.belm-service-due-grid > div {
  padding: 9px 10px;
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  background: #fff;
}
.belm-service-due-grid span { color: #8190a2; font-size: 7.5px; }
.belm-service-due-grid b { color: #18253a; font-size: 13px; }
.belm-service-due-grid b.belm-current-hrs-value,
.belm-service-due-grid b.belm-fleet-number-value { color: var(--belm-green-dark) !important; }

/* Operational actions are semantic, not rainbow decoration. */
.belm-machine-quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}
.belm-machine-quick-actions a,
.belm-machine-quick-actions button,
.belm-customer-checkup-button {
  justify-content: flex-start;
  gap: 7px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.15;
  box-shadow: none;
}
.belm-machine-quick-actions [data-ui-icon]::before {
  content: attr(data-ui-icon);
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: -.02em;
}
.belm-machine-quick-actions a[href^="/customer-machine-expenses/"],
.belm-machine-quick-actions a[href^="/customer-procurement/"],
.belm-machine-quick-actions a[href^="/customer-fuel-usage/"],
.belm-machine-quick-actions a[href^="/customer-service-request/"],
.belm-machine-quick-actions .belm-report-problem-button[data-belm-feature="report-problem"],
.belm-machine-quick-actions [data-belm-feature="operator-reports"],
.belm-machine-quick-actions .belm-customer-checkup-button,
.belm-machine-quick-actions a[href^="/breakdown-workflow/"] {
  color: #fff;
  border-color: #15243a;
  background: #15243a;
}
.belm-machine-quick-actions a[href^="/customer-machine-expenses/"]::before,
.belm-machine-quick-actions a[href^="/customer-procurement/"]::before,
.belm-machine-quick-actions a[href^="/customer-fuel-usage/"]::before,
.belm-machine-quick-actions a[href^="/customer-service-request/"]::before,
.belm-machine-quick-actions .belm-report-problem-button[data-belm-feature="report-problem"]::before,
.belm-machine-quick-actions [data-belm-feature="operator-reports"]::before,
.belm-machine-quick-actions .belm-customer-checkup-button::before,
.belm-machine-quick-actions a[href^="/breakdown-workflow/"]::before {
  color: #fff;
  background: rgba(23,105,194,.75);
}
.belm-machine-quick-actions a:hover,
.belm-machine-quick-actions button:hover,
.belm-customer-checkup-button:hover {
  filter: brightness(.96);
  transform: translateY(-1px);
  box-shadow: 0 7px 15px rgba(15,27,46,.10);
}

.belm-machine-recent-updates {
  padding: 10px 11px;
  border-color: #dbe6f1;
  border-radius: 11px;
  background: #f6f9fc;
}
.belm-machine-recent-updates-head { color: #4b6381; }

/* Right rail harmonises with the same four-colour identity. */
.belm-activity-overview-card,
.belm-account-tools-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23,105,194,.30);
  background:
    radial-gradient(circle at 96% 0, rgba(23,105,194,.26), transparent 15rem),
    linear-gradient(160deg, #111f35, #0b1422 66%, #080d15);
  box-shadow: 0 16px 38px rgba(7,14,28,.22);
}
.belm-activity-overview-card::before,
.belm-account-tools-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--belm-blue), var(--belm-green), var(--belm-yellow), #111);
}
.belm-activity-overview-head,
.belm-account-tools-head { color: #fff; }
.belm-activity-overview-head::after,
.belm-account-tools-head::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 3px;
  margin-left: 7px;
  border-radius: 999px;
  vertical-align: middle;
  background: var(--belm-yellow);
}
.belm-account-tools-actions a,
.belm-account-tools-actions button {
  border-color: rgba(143,192,255,.14);
  background: rgba(23,105,194,.08);
}
.belm-account-tools-actions a:hover,
.belm-account-tools-actions button:hover {
  border-color: rgba(0,166,81,.34);
  background: rgba(0,166,81,.10);
}

/* Dark mode: keep the same hierarchy instead of reverting to washed-out cards. */
html.dark .belm-customer-machine-card,
html[data-theme="dark"] .belm-customer-machine-card {
  border-color: #2a394d !important;
  background: #111b2a !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.26) !important;
}
html.dark .belm-customer-machine-card > .belm-machine-last-checked,
html[data-theme="dark"] .belm-customer-machine-card > .belm-machine-last-checked {
  color: #8fa2b9 !important;
  border-color: #27364a;
  background: #0e1724;
}
html.dark .belm-technician-machine-data > div,
html[data-theme="dark"] .belm-technician-machine-data > div,
html.dark .belm-service-due-grid > div,
html[data-theme="dark"] .belm-service-due-grid > div {
  border-color: #2a394c;
  background: #101b29;
}
html.dark .belm-technician-machine-data b,
html[data-theme="dark"] .belm-technician-machine-data b,
html.dark .belm-service-due-grid b,
html[data-theme="dark"] .belm-service-due-grid b { color: #e5edf7 !important; }
html.dark .belm-service-due-panel,
html[data-theme="dark"] .belm-service-due-panel {
  border-color: #2a394c;
  background: #0d1724;
}
html.dark .belm-customer-op-status,
html[data-theme="dark"] .belm-customer-op-status,
html.dark .belm-machine-recent-updates,
html[data-theme="dark"] .belm-machine-recent-updates {
  border-color: #2a394c;
  background: #0e1927;
}

@media (max-width: 720px) {
  .belm-customer-machine-grid { grid-template-columns: 1fr; gap: 15px; }
  .belm-customer-machine-card { padding: 18px !important; border-radius: 17px !important; }
  .belm-customer-machine-card > .belm-machine-native-head { margin: -18px -18px 0 !important; padding: 22px 18px 16px !important; }
  .belm-customer-machine-card > .belm-machine-last-checked { margin: 0 -18px 10px !important; padding: 8px 18px !important; }
}
@media (max-width: 390px) {
  .belm-machine-quick-actions { grid-template-columns: 1fr; }
  .belm-technician-machine-data { grid-template-columns: 1fr 1fr; }
}

/* Technician machine cards share the same visual language while keeping their
   technician-specific actions and workflow intact. */
.belm-technician-machine-card {
  min-height: 0 !important;
  padding: 20px !important;
  overflow: hidden !important;
  border: 1px solid #dbe4ed !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 12px 30px rgba(15,27,46,.085) !important;
}
.belm-technician-machine-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 4px;
  background: #7f8da1;
}
.belm-technician-machine-card.status-green::before { background: var(--belm-green); }
.belm-technician-machine-card.status-yellow::before { background: var(--belm-yellow); }
.belm-technician-machine-card.status-red::before { background: #e5484d; }
.belm-technician-machine-card.status-unknown::before { background: #7f8da1; }
.belm-technician-machine-card.status-green,
.belm-technician-machine-card.status-yellow,
.belm-technician-machine-card.status-red,
.belm-technician-machine-card.status-unknown {
  border-width: 1px !important;
  background: #fff !important;
  box-shadow: 0 12px 30px rgba(15,27,46,.085) !important;
}
.belm-technician-machine-card > .belm-machine-native-head {
  margin: -20px -20px 0 !important;
  padding: 22px 20px 16px !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 94% 0, rgba(23,105,194,.26), transparent 11rem),
    linear-gradient(135deg, #111f35, #0a111d) !important;
}
.belm-technician-machine-card > .belm-machine-native-head,
.belm-technician-machine-card > .belm-machine-native-head * { color: #fff !important; }
.belm-technician-machine-card > .belm-machine-last-checked {
  margin: 0 -20px 11px !important;
  padding: 8px 20px !important;
  color: #66768a !important;
  border-bottom: 1px solid #e8eef4;
  background: #f8fafc;
  font-size: 9px !important;
  font-weight: 750 !important;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.belm-technician-card-actions {
  gap: 8px;
  margin-top: 12px;
}
.belm-technician-report-link,
.belm-technician-checkup-button {
  min-height: 42px;
  border-radius: 10px !important;
  font-size: 10px !important;
  font-weight: 850 !important;
}
.belm-technician-report-link {
  color: #21486e !important;
  border-color: #c9daec !important;
  background: #f6faff !important;
}
.belm-technician-checkup-button {
  color: #fff !important;
  border-color: var(--belm-blue) !important;
  background: var(--belm-blue) !important;
}
html.dark .belm-technician-machine-card,
html[data-theme="dark"] .belm-technician-machine-card {
  border-color: #2a394d !important;
  background: #111b2a !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.26) !important;
}

/* V199: user management belongs in MORE TOOLS, not the dashboard heading. */
.belm-account-tools-actions .belm-user-manager-button {
  flex-direction: column;
  gap: 3px;
  border-color: rgba(255, 212, 0, .55);
  background: linear-gradient(135deg, rgba(255,212,0,.16), rgba(0,166,81,.12));
  color: #fff;
}
.belm-account-tools-actions .belm-user-manager-button small {
  display: block;
  color: #d7deea;
  font-size: 8px;
  font-weight: 650;
  line-height: 1.2;
}


/* V206 - Customer Role Manager: Operator sees machine cards only. */
.belm-operator-card-only-banner { margin:0 0 16px; padding:12px 14px; border-radius:12px; border:1px solid rgba(25,104,211,.22); border-left:4px solid var(--belm-blue,#1968d3); background:linear-gradient(135deg,rgba(25,104,211,.09),rgba(0,169,88,.06)); display:flex; flex-direction:column; gap:3px; }
.belm-operator-card-only-banner b { font-size:12px; letter-spacing:.08em; }
.belm-operator-card-only-banner span { font-size:12px; opacity:.78; line-height:1.45; }
body.belm-operator-card-only .belm-customer-machine-grid { width:100% !important; max-width:none !important; }

/* ========================================================================
   V210 UX CLEANUP - scan-first cards, role-first actions, Action Center
   ======================================================================== */
.belm-machine-info-v210 { gap:9px; }
.belm-machine-state-row { display:grid; grid-template-columns:1.12fr .88fr; gap:8px; }
.belm-machine-state-row .belm-technician-machine-health,
.belm-machine-state-row .belm-customer-op-status { margin:0; min-height:72px; }
.belm-machine-details-disclosure {
  border:1px solid #e1e8ef; border-radius:11px; background:#fbfcfe; overflow:hidden;
}
.belm-machine-details-disclosure > summary {
  display:flex; align-items:center; justify-content:space-between; gap:10px; list-style:none;
  padding:10px 12px; cursor:pointer; color:#25364d; font-size:10px; font-weight:900;
  text-transform:uppercase; letter-spacing:.05em;
}
.belm-machine-details-disclosure > summary::-webkit-details-marker { display:none; }
.belm-machine-details-disclosure > summary::after { content:"+"; color:var(--belm-blue); font-size:16px; line-height:1; }
.belm-machine-details-disclosure[open] > summary::after { content:"-"; }
.belm-machine-details-disclosure > summary span { flex:1; color:#7b8a9e; font-size:8px; font-weight:650; text-transform:none; letter-spacing:0; }
.belm-machine-details-disclosure .belm-technician-machine-data { padding:0 10px 10px; }

.belm-service-due-head-v210 { align-items:center; gap:12px; }
.belm-service-due-head-v210 > div { min-width:0; }
.belm-service-due-head-v210 > div span { display:block; margin-bottom:2px; }
.belm-service-due-head-v210 > div b { display:block; color:#17253a; font-size:14px; font-weight:900; }
.belm-service-due-head-v210 > strong { flex:0 0 auto; padding:5px 8px; border-radius:999px; background:#fff; font-size:9px; letter-spacing:.04em; }
.belm-service-due-panel.status-red .belm-service-due-head-v210 > strong { color:#a52d34; background:#fff0f0; }
.belm-service-due-panel.status-yellow .belm-service-due-head-v210 > strong { color:#705900; background:#fff7cf; }
.belm-service-due-panel.status-green .belm-service-due-head-v210 > strong { color:#08713d; background:#e7f8ef; }
.belm-service-due-grid-v210 { grid-template-columns:repeat(3,minmax(0,1fr)); }

.belm-machine-more-actions { margin-top:8px; border:1px solid #dce5ed; border-radius:10px; background:#fff; overflow:hidden; }
.belm-machine-more-actions > summary { display:flex; align-items:center; justify-content:space-between; list-style:none; padding:9px 11px; cursor:pointer; color:#52647a; font-size:9px; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }
.belm-machine-more-actions > summary::-webkit-details-marker { display:none; }
.belm-machine-more-actions > summary span { display:grid; place-items:center; width:21px; height:21px; border-radius:6px; color:#fff; background:var(--belm-blue); font-size:13px; }
.belm-machine-more-actions[open] > summary span { transform:rotate(45deg); }
.belm-machine-more-actions-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; padding:0 8px 8px; }
.belm-machine-more-actions-grid a,
.belm-machine-more-actions-grid button { display:flex!important; width:100%; min-height:38px; align-items:center; justify-content:flex-start; padding:8px 9px; border:1px solid #dce5ed!important; border-radius:8px!important; color:#263951!important; background:#f8fafc!important; font-size:9px!important; font-weight:800!important; text-decoration:none; box-shadow:none!important; }

.belm-action-center-intro { margin:-2px 14px 10px; color:#9fb0c8; font-size:10px; line-height:1.4; }
.belm-activity-overview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.belm-activity-overview-item { position:relative; min-height:70px; padding:11px 12px; overflow:hidden; }
.belm-activity-overview-item::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:#6f83a0; }
.belm-action-item-attention::before { background:#e5484d; }
.belm-action-item-service::before { background:var(--belm-yellow); }
.belm-action-item-requests::before { background:var(--belm-blue); }
.belm-action-item-checklists::before { background:var(--belm-green); }
.belm-action-center-snapshot { margin:10px 12px 0; border:1px solid rgba(255,255,255,.10); border-radius:10px; background:rgba(255,255,255,.035); overflow:hidden; }
.belm-action-center-snapshot > summary { display:flex; justify-content:space-between; align-items:center; padding:9px 10px; list-style:none; cursor:pointer; color:#d9e4f2; font-size:9px; font-weight:850; text-transform:uppercase; letter-spacing:.06em; }
.belm-action-center-snapshot > summary::-webkit-details-marker { display:none; }
.belm-action-center-snapshot > summary span { color:var(--belm-yellow); font-size:13px; }
.belm-action-center-snapshot-grid { display:grid; gap:1px; padding:0 8px 8px; }
.belm-action-center-snapshot-grid > div { display:flex; justify-content:space-between; gap:10px; padding:7px 8px; border-radius:7px; background:rgba(255,255,255,.04); }
.belm-action-center-snapshot-grid span { color:#93a6bd; font-size:8px; }
.belm-action-center-snapshot-grid b { color:#fff; font-size:9px; text-align:right; }
.belm-action-center-clear { margin:10px 12px 0; padding:11px; border:1px solid rgba(0,166,81,.22); border-radius:10px; background:rgba(0,166,81,.08); }
.belm-action-center-clear b,.belm-action-center-clear span { display:block; }
.belm-action-center-clear b { color:#8de2b3; font-size:9px; letter-spacing:.05em; }
.belm-action-center-clear span { margin-top:3px; color:#aab8ca; font-size:8px; line-height:1.4; }

html.dark .belm-machine-details-disclosure,
html[data-theme="dark"] .belm-machine-details-disclosure,
html.dark .belm-machine-more-actions,
html[data-theme="dark"] .belm-machine-more-actions { border-color:#293a4e; background:#0e1826; }
html.dark .belm-machine-details-disclosure > summary,
html[data-theme="dark"] .belm-machine-details-disclosure > summary { color:#dce6f2; }
html.dark .belm-machine-more-actions-grid a,
html.dark .belm-machine-more-actions-grid button,
html[data-theme="dark"] .belm-machine-more-actions-grid a,
html[data-theme="dark"] .belm-machine-more-actions-grid button { border-color:#2a3a4e!important; color:#dce6f2!important; background:#111d2c!important; }
html.dark .belm-service-due-head-v210 > div b,
html[data-theme="dark"] .belm-service-due-head-v210 > div b { color:#e7eef7; }

@media (max-width:720px) {
  .belm-machine-state-row { grid-template-columns:1fr; }
  .belm-service-due-grid-v210 { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .belm-machine-more-actions-grid { grid-template-columns:1fr; }
}
@media (max-width:420px) {
  .belm-service-due-grid-v210 { grid-template-columns:1fr 1fr; }
  .belm-service-due-grid-v210 > div:last-child { grid-column:1/-1; }
}


/* ========================================================================
   V213 - Compact Action Center
   Show only actionable counts; collapse to a single healthy-status row
   when no machine/service/request requires attention.
   ======================================================================== */
.belm-activity-overview-card.is-clear {
  padding: 13px 16px;
  margin-bottom: 12px;
  box-shadow: 0 12px 28px rgba(7,14,28,.24);
}
.belm-activity-overview-card.is-clear .belm-activity-overview-head {
  margin-bottom: 3px;
  font-size: 10px;
}
.belm-activity-overview-card.is-clear .belm-action-center-intro {
  margin: 0 0 7px;
  font-size: 8px;
}
.belm-activity-overview-card.is-clear .belm-activity-overview-grid {
  display: block;
}
.belm-action-center-clear-main {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
}
.belm-activity-overview-card.is-clear .belm-action-center-snapshot {
  margin: 7px 0 0;
}
.belm-activity-overview-card.is-clear .belm-activity-overview-machines {
  display: none;
}
.belm-activity-overview-card:not(.is-clear) .belm-activity-overview-grid {
  grid-template-columns: repeat(auto-fit,minmax(120px,1fr));
  gap: 8px;
}
.belm-activity-overview-card:not(.is-clear) .belm-activity-overview-item {
  appearance: none;
  width: 100%;
  min-height: 62px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.belm-activity-overview-card:not(.is-clear) .belm-activity-overview-item:hover,
.belm-activity-overview-card:not(.is-clear) .belm-activity-overview-item:focus-visible {
  border-color: rgba(255,212,0,.52);
  background: rgba(255,255,255,.07);
  outline: none;
}
.belm-activity-overview-item small {
  margin-top: auto;
  color: #ffd400;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.belm-activity-overview-machine {
  appearance: none;
  display: block;
  width: 100%;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.belm-activity-overview-machine:hover,
.belm-activity-overview-machine:focus-visible {
  border-color: rgba(255,212,0,.48);
  background: rgba(255,255,255,.075);
  outline: none;
}
.belm-machine-focus-pulse {
  animation: belmMachineFocusPulse .9s ease-in-out 2;
}
@keyframes belmMachineFocusPulse {
  0%,100% { box-shadow: inherit; }
  50% { box-shadow: 0 0 0 4px rgba(255,212,0,.32), 0 18px 42px rgba(7,14,28,.22); }
}
@media (max-width:720px) {
  .belm-activity-overview-card.is-clear { padding: 11px 12px; }
  .belm-activity-overview-card:not(.is-clear) .belm-activity-overview-grid { grid-template-columns: 1fr; }
}


/* V215 - customer-wide Petty Cash account on the sticky dashboard rail */
.belm-petty-cash-account-card {
  position: relative;
  padding: 15px 16px;
  border: 1px solid rgba(0,166,81,.34);
  border-radius: 14px;
  background: linear-gradient(145deg,#0d1728,#12233a 62%,#0d1728);
  box-shadow: 0 14px 34px rgba(7,14,28,.26);
  color: #fff;
}
.belm-activity-overview-stack > .belm-petty-cash-account-card { margin: 0; }

/* V226 - Customer Dashboard language toggle (English default / Kiswahili) */
.belm-lang-toggle {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9997;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: #111b2f;
  color: #fff;
  box-shadow: 0 10px 30px rgba(4, 12, 25, .24);
  font: 800 11px/1.1 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.belm-lang-toggle:hover { transform: translateY(-1px); }
html[data-theme="dark"] .belm-lang-toggle {
  border-color: #3d4d66;
  background: #f8fafc;
  color: #111827;
}
@media (max-width: 480px) {
  .belm-lang-toggle { left: 10px; bottom: 10px; padding: 8px 10px; }
}

/* V227/V228 - single unified overview card. Status and Petty Cash used
   to be separate floating cards; they now live as internal sections
   inside one shared card (one border, one shadow, one gradient stripe)
   no matter how many machines the customer has. Maintenance Process
   (formerly a separate Breakdown Process rail card) moved into the
   MORE TOOLS card as a button - see .belm-maintenance-process-button. */
.belm-overview-card {
  position: sticky;
  top: 12px;
  z-index: 5;
  margin: 14px 0 22px;
  border-radius: 16px;
  background: linear-gradient(165deg, #101b31, #16233d 60%, #101b31);
  border: 1px solid rgba(255, 212, 0, .35);
  box-shadow: 0 20px 50px rgba(7, 14, 28, .35);
  overflow: hidden;
  font-family: Inter, system-ui, sans-serif;
}
.belm-dashboard-layout > .belm-activity-overview-stack .belm-overview-card { margin: 0; }
@media (max-width: 480px) {
  .belm-overview-card { position: static; }
}
.belm-overview-card > .belm-activity-overview-card {
  position: static;
  margin: 0;
  padding: 20px 22px 18px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.belm-overview-card > .belm-petty-cash-account-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.belm-overview-card > .belm-petty-cash-account-card::before { display: none; }
.belm-petty-cash-head { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.belm-petty-cash-head span { color:#8ee4b6; font-size:10.5px; font-weight:900; letter-spacing:.08em; }
.belm-petty-cash-head a { color:#dbeafe; font-size:9.5px; font-weight:800; text-decoration:none; }
.belm-petty-cash-head a:hover { color:#fff; text-decoration:underline; }
.belm-petty-cash-account-card > strong { display:block; margin-top:7px; color:#fff; font-size:26px; line-height:1; }
.belm-petty-cash-account-card > strong.is-debt { color:#ff8a80; }
.belm-petty-cash-meta { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:11px; }
.belm-petty-cash-meta span { padding:7px 8px; border:1px solid rgba(255,255,255,.09); border-radius:8px; color:#8fa3bd; font-size:9px; }
.belm-petty-cash-meta b { display:block; margin-top:2px; color:#fff; font-size:10.5px; }

/* V228 - Maintenance Process (formerly Breakdown Process) is now a
   button inside MORE TOOLS, between +USER and Request BELM Support. */
.belm-account-tools-actions .belm-maintenance-process-button {
  flex-direction: column;
  gap: 3px;
  border-color: rgba(23,105,194,.55);
  background: linear-gradient(135deg, rgba(23,105,194,.16), rgba(0,166,81,.12));
  color: #fff;
}
.belm-account-tools-actions .belm-maintenance-process-button small {
  display: block;
  color: #d7deea;
  font-size: 8px;
  font-weight: 650;
  line-height: 1.2;
}

/* V241 - General Analysis button was missing this same treatment, so its
   label and small subtitle ran together on one line ("General
   AnalysisFull breakdown..."). */
.belm-account-tools-actions .belm-general-analysis-button {
  flex-direction: column;
  gap: 3px;
  border-color: rgba(255,212,0,.5);
  background: linear-gradient(135deg, rgba(255,212,0,.14), rgba(122,79,181,.12));
  color: #fff;
}
.belm-account-tools-actions .belm-general-analysis-button small {
  display: block;
  color: #d7deea;
  font-size: 8px;
  font-weight: 650;
  line-height: 1.2;
}

/* V254 - "UPDATE" button (MORE TOOLS) and its dialog. Reuses the V236
   .belm-machine-urgent-blink animation for the "always blinking while a
   machine is RED" behavior, toggled on/off in JS based on live data. */
.belm-account-tools-actions .belm-updates-button {
  flex-direction: column;
  gap: 3px;
  border-color: rgba(220,62,77,.5);
  background: linear-gradient(135deg, rgba(220,62,77,.16), rgba(255,212,0,.10));
  color: #fff;
}
.belm-account-tools-actions .belm-updates-button small {
  display: block;
  color: #d7deea;
  font-size: 8px;
  font-weight: 650;
  line-height: 1.2;
}
.belm-updates-graph {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  padding: 6px 4px 0;
}
.belm-updates-graph-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
}
.belm-updates-graph-bar {
  width: 100%;
  max-width: 26px;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: height .2s ease;
}
.belm-updates-graph-col span {
  font-size: 9px;
  color: #9fb0c8;
  font-weight: 700;
}
.belm-updates-list { display: flex; flex-direction: column; gap: 10px; }
.belm-updates-row {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
}
.belm-updates-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.belm-updates-row-head strong { color: #fff; font-size: 12px; }
.belm-updates-row-head span { font-size: 10.5px; color: #9fb0c8; white-space: nowrap; }
.belm-updates-row p { margin: 6px 0 0; color: #dce6f2; font-size: 12px; line-height: 1.4; }
.belm-updates-row small { display: block; margin-top: 5px; color: #9fb0c8; font-size: 10.5px; }

/* V215 - compact latest machine-display reference in Check Up */
.belm-checkup-display-strip { display:grid; grid-template-columns:140px 110px 120px minmax(150px,1fr); gap:8px; align-items:stretch; margin-bottom:12px; padding:9px; border:1px solid #dbe5ee; border-radius:12px; background:#f8fafc; }
.belm-checkup-display-photo-wrap { min-height:72px; }
.belm-checkup-display-thumb, .belm-checkup-display-placeholder { width:140px; height:72px; border-radius:9px; border:1px solid #cbd5e1; background:#e8eef5; }
.belm-checkup-display-thumb { display:block; object-fit:cover; cursor:zoom-in; }
.belm-checkup-display-placeholder { display:grid; place-items:center; align-content:center; color:#64748b; font-size:9px; font-weight:900; text-align:center; letter-spacing:.06em; }
.belm-checkup-display-placeholder small { margin-top:3px; font-size:8px; font-weight:700; letter-spacing:0; }
.belm-checkup-display-stat { display:flex; flex-direction:column; justify-content:center; padding:8px 10px; border:1px solid #e2e8f0; border-radius:9px; background:#fff; }
.belm-checkup-display-stat span { color:#64748b; font-size:8.5px; font-weight:850; text-transform:uppercase; letter-spacing:.04em; }
.belm-checkup-display-stat strong { margin-top:4px; color:#0f172a; font-size:13px; line-height:1.25; }
.belm-checkup-display-stat:first-of-type strong { color:#0b7a3c; }
@media(max-width:720px){ .belm-checkup-display-strip{grid-template-columns:110px 1fr 1fr}.belm-checkup-display-thumb,.belm-checkup-display-placeholder{width:110px;height:64px}.belm-checkup-display-photo-wrap{min-height:64px}.belm-checkup-display-time{grid-column:1/-1} }




/* V234 - General Analysis dialog (Customer Dashboard, MORE TOOLS) */
.belm-general-analysis-dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(720px, calc(100% - 30px));
  max-height: calc(100vh - 60px);
  color: #e5edf7;
  background: linear-gradient(165deg, #101b31, #16233d 60%, #101b31);
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
}
.belm-general-analysis-dialog::backdrop { background: rgba(7,14,28,.65); }
.belm-general-analysis-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  background: #101b31;
  z-index: 1;
}
.belm-general-analysis-head h2 { margin: 0; font-size: 14px; letter-spacing: .06em; color: #ffd400; }
.belm-general-analysis-head p { margin: 4px 0 0; font-size: 11px; color: #9fb0c8; }
.belm-general-analysis-head button {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 7px 14px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
  flex: 0 0 auto;
}
.belm-general-analysis-head button:hover { background: rgba(255,255,255,.12); }
.belm-general-analysis-body { padding: 18px 20px 22px; overflow-y: auto; max-height: calc(100vh - 130px); }
.belm-general-analysis-loading { text-align: center; color: #9fb0c8; padding: 24px 0; }
.belm-analysis-section { margin-bottom: 20px; }
.belm-analysis-section h3 {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #ffd400;
}
.belm-analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.belm-analysis-grid > div {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
}
.belm-analysis-grid span { display: block; color: #9fb0c8; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.belm-analysis-grid b { display: block; margin-top: 4px; font-size: 15px; color: #fff; }
.belm-analysis-grid b.green { color: #7fe3ac; }
.belm-analysis-grid b.yellow { color: #ffe27a; }
.belm-analysis-grid b.red { color: #ff9d9d; }
.belm-analysis-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.belm-analysis-table th {
  text-align: left;
  padding: 8px 10px;
  color: #9fb0c8;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.belm-analysis-table td { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.06); color: #e5edf7; }
.belm-analysis-pill {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  background: rgba(255,255,255,.1);
  color: #dce6f2;
}
.belm-analysis-pill.status-green, .belm-analysis-pill.status-ok { background: rgba(0,166,81,.18); color: #7fe3ac; }
.belm-analysis-pill.status-yellow, .belm-analysis-pill.status-attention { background: rgba(255,212,0,.18); color: #ffe27a; }
.belm-analysis-pill.status-red, .belm-analysis-pill.status-critical { background: rgba(216,59,64,.2); color: #ff9d9d; }
@media (max-width: 640px) {
  .belm-general-analysis-body { padding: 14px; }
  .belm-analysis-table { font-size: 10px; }
  .belm-analysis-table th, .belm-analysis-table td { padding: 7px 6px; }
}

/* V236 - Machine Attention/Service badges now reflect whichever is
   worse: the machine's general status or its service level (a GREEN
   machine that is overdue for service no longer shows a misleading
   GREEN badge). RED items also blink gently for extra attention. */
@keyframes belmUrgentBlink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,62,77,.55); border-color: rgba(220,62,77,.55); }
  50% { box-shadow: 0 0 0 5px rgba(220,62,77,0); border-color: rgba(220,62,77,.9); }
}
.belm-machine-urgent-blink {
  animation: belmUrgentBlink 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .belm-machine-urgent-blink { animation: none; border-color: rgba(220,62,77,.9); }
}


/* V288 - Customer-controlled Privacy & BELM Access dialog. */
.belm-account-tools-actions .belm-privacy-button {
  flex-direction: column;
  gap: 3px;
  border-color: rgba(96,165,250,.58);
  background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(16,185,129,.10));
  color: #fff;
}
.belm-account-tools-actions .belm-privacy-button small { display:block; color:#d7deea; font-size:8px; font-weight:650; line-height:1.2; }
.belm-privacy-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: 88vh;
  padding: 0;
  border: 1px solid #263a59;
  border-radius: 16px;
  background: #111b2a;
  color: #eaf1f8;
  box-shadow: 0 28px 90px rgba(0,0,0,.48);
  overflow: auto;
  font-family: Inter, system-ui, sans-serif;
}
.belm-privacy-dialog::backdrop { background: rgba(4,10,20,.72); }
.belm-privacy-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding:20px 22px 15px; border-bottom:1px solid #263a59; }
.belm-privacy-head h2 { margin:0; color:#fff; font-size:18px; }
.belm-privacy-head p { margin:4px 0 0; color:#9db0c8; font-size:11px; }
.belm-privacy-head button { border:1px solid #344963; border-radius:8px; padding:7px 11px; background:#16233d; color:#fff; font-weight:800; cursor:pointer; }
.belm-privacy-body { padding:18px 22px 22px; }
.belm-customer-settings-body { display:grid; gap:10px; }
.belm-customer-setting-option {
  width:100%; min-height:68px; padding:12px 14px; border:1px solid #2d4560; border-radius:12px;
  display:flex; align-items:center; justify-content:space-between; gap:14px; box-sizing:border-box;
  background:#102238; color:#fff; text-align:left; text-decoration:none; cursor:pointer;
}
.belm-customer-setting-option span { display:grid; gap:4px; }
.belm-customer-setting-option b { font-size:13px; }
.belm-customer-setting-option small { color:#9db0c8; font-size:10px; line-height:1.35; }
.belm-customer-setting-option strong { color:#75e667; font-size:10px; text-transform:uppercase; white-space:nowrap; }
.belm-customer-setting-option:hover { border-color:#4c8cd1; background:#132a44; }
.belm-privacy-note,.belm-privacy-provider-note { display:grid; gap:5px; padding:12px 14px; border:1px solid #2c4868; border-radius:10px; background:#10243a; }
.belm-privacy-note b,.belm-privacy-provider-note b { color:#b9d9ff; font-size:11px; }
.belm-privacy-note span,.belm-privacy-provider-note span { color:#c7d4e2; font-size:10.5px; line-height:1.45; }
.belm-privacy-provider-note { margin-top:14px; border-color:#5b4b1a; background:#29230f; }
.belm-privacy-provider-note.active { border-color:#2f7b52; background:#102a21; }
.belm-privacy-options { display:grid; gap:9px; margin-top:14px; }
.belm-privacy-option { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:13px 14px; border:1px solid #263a59; border-radius:10px; background:#0e1826; cursor:pointer; }
.belm-privacy-option > span:first-child { display:grid; gap:3px; min-width:0; }
.belm-privacy-option b { color:#fff; font-size:12px; }
.belm-privacy-option small { color:#8fa2b9; font-size:9.5px; line-height:1.4; }
.belm-privacy-switch { position:relative; flex:0 0 auto; width:42px; height:23px; }
.belm-privacy-switch input { position:absolute; opacity:0; width:1px; height:1px; }
.belm-privacy-switch i { position:absolute; inset:0; border-radius:999px; background:#566274; box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); transition:.18s; }
.belm-privacy-switch i::after { content:""; position:absolute; top:3px; left:3px; width:17px; height:17px; border-radius:50%; background:#fff; box-shadow:0 2px 5px rgba(0,0,0,.3); transition:.18s; }
.belm-privacy-switch input:checked + i { background:#16a34a; }
.belm-privacy-switch input:checked + i::after { transform:translateX(19px); }
.belm-privacy-switch input:focus-visible + i { outline:2px solid #60a5fa; outline-offset:2px; }
.belm-privacy-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-top:16px; }
.belm-privacy-actions a { margin-right:auto; color:#93c5fd; font-size:10px; font-weight:800; text-decoration:none; }
.belm-privacy-actions button { border:1px solid #16a34a; border-radius:8px; padding:9px 14px; background:#16a34a; color:#fff; font-size:11px; font-weight:900; cursor:pointer; }
.belm-privacy-actions button:disabled { opacity:.55; cursor:wait; }
.belm-privacy-status { min-height:16px; margin:8px 0 0; color:#8ee4b6; font-size:10.5px; text-align:right; }
.belm-privacy-loading { color:#9db0c8; font-size:11px; }
@media (max-width:560px) { .belm-privacy-head,.belm-privacy-body { padding-left:15px; padding-right:15px; } .belm-privacy-option { align-items:flex-start; } .belm-privacy-actions { flex-wrap:wrap; } }


/* V293 - rotating live update ticker inside each Customer machine card. */
.belm-machine-update-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.belm-machine-update-headline > small {
  color: #64748b;
  font-size: 9px;
  font-weight: 850;
}
.belm-machine-update-slide {
  min-height: 76px;
  padding: 9px 10px;
  border: 1px solid #dbe6f1;
  border-left-width: 4px;
  border-radius: 9px;
  background: #fff;
  animation: belmMachineUpdateIn .28s ease both;
}
@keyframes belmMachineUpdateIn {
  from { opacity: .25; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
.belm-machine-update-slide.tone-blue { border-left-color: #2f7cf5; }
.belm-machine-update-slide.tone-red { border-left-color: #dc3e4d; }
.belm-machine-update-slide.tone-green { border-left-color: #00a651; }
.belm-machine-update-slide.tone-yellow { border-left-color: #e5bd00; }
.belm-machine-update-slide.tone-purple { border-left-color: #7a4fb5; }
.belm-machine-update-copy {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 3px;
}
.belm-machine-update-copy > span {
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.belm-machine-update-type {
  justify-self: start;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef3f8;
  color: #52647a;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .05em;
}
.belm-machine-update-time {
  color: #7b8797;
  font-size: 8.5px;
  font-weight: 650;
}
.belm-machine-update-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}
.belm-machine-update-progress {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8f1;
}
.belm-machine-update-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f7cf5, #00a651);
  transition: width .25s ease;
}
html.dark .belm-machine-update-slide,
html[data-theme="dark"] .belm-machine-update-slide {
  border-color: #2a3a4e;
  background: #101b2a;
}
html.dark .belm-machine-update-slide.tone-blue,
html[data-theme="dark"] .belm-machine-update-slide.tone-blue { border-left-color: #4a94ff; }
html.dark .belm-machine-update-slide.tone-red,
html[data-theme="dark"] .belm-machine-update-slide.tone-red { border-left-color: #ff6571; }
html.dark .belm-machine-update-slide.tone-green,
html[data-theme="dark"] .belm-machine-update-slide.tone-green { border-left-color: #35d27d; }
html.dark .belm-machine-update-slide.tone-yellow,
html[data-theme="dark"] .belm-machine-update-slide.tone-yellow { border-left-color: #f4d447; }
html.dark .belm-machine-update-slide.tone-purple,
html[data-theme="dark"] .belm-machine-update-slide.tone-purple { border-left-color: #a77ae5; }
html.dark .belm-machine-update-copy > span,
html[data-theme="dark"] .belm-machine-update-copy > span { color: #dce6f2; }
html.dark .belm-machine-update-type,
html[data-theme="dark"] .belm-machine-update-type { background: #1a2a3e; color: #9fb4ce; }
html.dark .belm-machine-update-headline > small,
html[data-theme="dark"] .belm-machine-update-headline > small,
html.dark .belm-machine-update-time,
html[data-theme="dark"] .belm-machine-update-time { color: #8fa2b9; }
html.dark .belm-machine-update-progress,
html[data-theme="dark"] .belm-machine-update-progress { background: #26384d; }
@media (max-width: 480px) {
  .belm-machine-update-slide { align-items: flex-start; }
  .belm-machine-update-actions { min-width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .belm-machine-update-slide { animation: none; }
}


/* V300 - Customer checkup/report button colors + night-comfort styling */
.belm-checked-report-modal {
  background: linear-gradient(180deg, #dfe7f2 0%, #edf3f8 100%);
}
.belm-checked-report-card {
  background: #edf3f8;
}
.belm-customer-checkup-card .belm-customer-checkup-body {
  background: transparent;
}
.belm-customer-checkup-tabs {
  background: #e9f0f7;
  border-bottom-color: #d5dee9;
}
.belm-customer-checkup-tabs button {
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.belm-customer-checkup-tabs button:hover,
.belm-customer-checkup-pdf-actions button:hover,
.belm-customer-report-actions button:hover,
.belm-report-date-filter [data-jc-apply]:hover,
.belm-report-date-filter [data-dr-apply]:hover,
.belm-report-date-filter [data-op-apply]:hover,
.belm-report-date-download:hover {
  transform: translateY(-1px);
  filter: brightness(.97);
}
.belm-customer-checkup-tabs button[data-checkup-tab="daily"] {
  border-color: #60a5fa;
  background: #eff6ff;
  color: #1d4ed8;
}
.belm-customer-checkup-tabs button[data-checkup-tab="daily"].active {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #fff;
}
.belm-customer-checkup-tabs button[data-checkup-tab="reports"] {
  border-color: #6ee7b7;
  background: #ecfdf5;
  color: #047857;
}
.belm-customer-checkup-tabs button[data-checkup-tab="reports"].active {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}
.belm-customer-checkup-tabs button[data-checkup-tab="jobcards"] {
  border-color: #374151;
  background: #1f2937;
  color: #fff;
}
.belm-customer-checkup-tabs button[data-checkup-tab="jobcards"].active {
  border-color: #111827;
  background: #111827;
  color: #fff;
}
.belm-customer-checkup-tabs button[data-checkup-tab="dailyreport"] {
  border-color: #facc15;
  background: #fef3c7;
  color: #854d0e;
}
.belm-customer-checkup-tabs button[data-checkup-tab="dailyreport"].active {
  border-color: #facc15;
  background: #facc15;
  color: #111827;
}
.belm-customer-checkup-tabs button[data-checkup-tab="operator"] {
  border-color: #fb923c;
  background: #fff7ed;
  color: #c2410c;
}
.belm-customer-checkup-tabs button[data-checkup-tab="operator"].active {
  border-color: #f97316;
  background: #f97316;
  color: #fff;
}
.belm-checkup-display-strip,
.belm-report-date-filter,
.belm-daily-checklist-summary > div,
.belm-daily-checklist-item,
.belm-customer-checkup-report-row,
.belm-checkup-display-stat,
.belm-customer-checkup-toolbar select {
  background: #f8fbff;
  border-color: #d6e1ec;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.belm-customer-checkup-pdf-actions button,
.belm-customer-report-actions button,
.belm-report-date-filter [data-jc-apply],
.belm-report-date-filter [data-dr-apply],
.belm-report-date-filter [data-op-apply],
.belm-report-date-download {
  min-height: 36px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}
.belm-customer-checkup-pdf-actions [data-template-pdf="view"],
.belm-customer-report-actions [data-report-pdf="view"] {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #fff;
}
.belm-customer-checkup-pdf-actions [data-template-pdf="download"],
.belm-customer-report-actions [data-report-pdf="download"],
.belm-report-date-download {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}
.belm-customer-checkup-pdf-actions [data-template-pdf="print"],
.belm-customer-report-actions [data-report-pdf="print"] {
  border-color: #111827;
  background: #111827;
  color: #fff;
}
.belm-customer-checkup-pdf-actions [data-view-today-report],
.belm-customer-report-actions [data-report-view] {
  border-color: #facc15;
  background: #facc15;
  color: #111827;
}
.belm-report-date-filter [data-jc-apply],
.belm-report-date-filter [data-dr-apply],
.belm-report-date-filter [data-op-apply] {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #fff;
}
.belm-customer-checkup-report-row > div:first-child strong,
.belm-checkup-display-stat strong,
.belm-daily-checklist-summary strong,
.belm-daily-checklist-item b {
  color: #122033;
}
.belm-customer-checkup-report-row > div:first-child span,
.belm-customer-checkup-report-row > div:first-child small,
.belm-daily-checklist-summary span,
.belm-daily-checklist-item span,
.belm-checkup-display-stat span,
.belm-report-date-filter label {
  color: #516378;
}

html.dark .belm-checked-report-modal,
html[data-theme="dark"] .belm-checked-report-modal {
  background: linear-gradient(180deg, #050b15 0%, #0b1423 100%);
}
html.dark .belm-checked-report-card,
html[data-theme="dark"] .belm-checked-report-card,
html.dark .belm-customer-checkup-body,
html[data-theme="dark"] .belm-customer-checkup-body {
  background: #0b1423;
  color: #e5edf7;
}
html.dark .belm-customer-checkup-tabs,
html[data-theme="dark"] .belm-customer-checkup-tabs {
  background: #101b2d;
  border-bottom-color: #243247;
}
html.dark .belm-checkup-display-strip,
html[data-theme="dark"] .belm-checkup-display-strip,
html.dark .belm-report-date-filter,
html[data-theme="dark"] .belm-report-date-filter,
html.dark .belm-daily-checklist-summary > div,
html[data-theme="dark"] .belm-daily-checklist-summary > div,
html.dark .belm-daily-checklist-item,
html[data-theme="dark"] .belm-daily-checklist-item,
html.dark .belm-customer-checkup-report-row,
html[data-theme="dark"] .belm-customer-checkup-report-row,
html.dark .belm-checkup-display-stat,
html[data-theme="dark"] .belm-checkup-display-stat,
html.dark .belm-customer-checkup-toolbar select,
html[data-theme="dark"] .belm-customer-checkup-toolbar select {
  background: #111c2f;
  border-color: #26354a;
  box-shadow: none;
}
html.dark .belm-checkup-display-thumb,
html[data-theme="dark"] .belm-checkup-display-thumb,
html.dark .belm-checkup-display-placeholder,
html[data-theme="dark"] .belm-checkup-display-placeholder {
  border-color: #334155;
  background: #162338;
}
html.dark .belm-customer-checkup-report-row > div:first-child strong,
html[data-theme="dark"] .belm-customer-checkup-report-row > div:first-child strong,
html.dark .belm-checkup-display-stat strong,
html[data-theme="dark"] .belm-checkup-display-stat strong,
html.dark .belm-daily-checklist-summary strong,
html[data-theme="dark"] .belm-daily-checklist-summary strong,
html.dark .belm-daily-checklist-item b,
html[data-theme="dark"] .belm-daily-checklist-item b {
  color: #f8fafc;
}
html.dark .belm-customer-checkup-report-row > div:first-child span,
html[data-theme="dark"] .belm-customer-checkup-report-row > div:first-child span,
html.dark .belm-customer-checkup-report-row > div:first-child small,
html[data-theme="dark"] .belm-customer-checkup-report-row > div:first-child small,
html.dark .belm-daily-checklist-summary span,
html[data-theme="dark"] .belm-daily-checklist-summary span,
html.dark .belm-daily-checklist-item span,
html[data-theme="dark"] .belm-daily-checklist-item span,
html.dark .belm-checkup-display-stat span,
html[data-theme="dark"] .belm-checkup-display-stat span,
html.dark .belm-report-date-filter label,
html[data-theme="dark"] .belm-report-date-filter label {
  color: #9fb0c8;
}
html.dark .belm-report-date-filter input,
html[data-theme="dark"] .belm-report-date-filter input,
html.dark .belm-report-date-filter select,
html[data-theme="dark"] .belm-report-date-filter select,
html.dark .belm-customer-checkup-toolbar select,
html[data-theme="dark"] .belm-customer-checkup-toolbar select {
  background: #0d1727 !important;
  border-color: #2a3950 !important;
  color: #e5edf7 !important;
}

@media (prefers-color-scheme: dark) {
  html:not(.dark):not([data-theme="light"]) .belm-checked-report-modal {
    background: linear-gradient(180deg, #050b15 0%, #0b1423 100%);
  }
  html:not(.dark):not([data-theme="light"]) .belm-checked-report-card,
  html:not(.dark):not([data-theme="light"]) .belm-customer-checkup-body {
    background: #0b1423;
    color: #e5edf7;
  }
  html:not(.dark):not([data-theme="light"]) .belm-customer-checkup-tabs {
    background: #101b2d;
    border-bottom-color: #243247;
  }
  html:not(.dark):not([data-theme="light"]) .belm-checkup-display-strip,
  html:not(.dark):not([data-theme="light"]) .belm-report-date-filter,
  html:not(.dark):not([data-theme="light"]) .belm-daily-checklist-summary > div,
  html:not(.dark):not([data-theme="light"]) .belm-daily-checklist-item,
  html:not(.dark):not([data-theme="light"]) .belm-customer-checkup-report-row,
  html:not(.dark):not([data-theme="light"]) .belm-checkup-display-stat,
  html:not(.dark):not([data-theme="light"]) .belm-customer-checkup-toolbar select {
    background: #111c2f;
    border-color: #26354a;
    box-shadow: none;
  }
  html:not(.dark):not([data-theme="light"]) .belm-customer-checkup-report-row > div:first-child strong,
  html:not(.dark):not([data-theme="light"]) .belm-checkup-display-stat strong,
  html:not(.dark):not([data-theme="light"]) .belm-daily-checklist-summary strong,
  html:not(.dark):not([data-theme="light"]) .belm-daily-checklist-item b {
    color: #f8fafc;
  }
  html:not(.dark):not([data-theme="light"]) .belm-customer-checkup-report-row > div:first-child span,
  html:not(.dark):not([data-theme="light"]) .belm-customer-checkup-report-row > div:first-child small,
  html:not(.dark):not([data-theme="light"]) .belm-daily-checklist-summary span,
  html:not(.dark):not([data-theme="light"]) .belm-daily-checklist-item span,
  html:not(.dark):not([data-theme="light"]) .belm-checkup-display-stat span,
  html:not(.dark):not([data-theme="light"]) .belm-report-date-filter label {
    color: #9fb0c8;
  }
  html:not(.dark):not([data-theme="light"]) .belm-report-date-filter input,
  html:not(.dark):not([data-theme="light"]) .belm-report-date-filter select,
  html:not(.dark):not([data-theme="light"]) .belm-customer-checkup-toolbar select {
    background: #0d1727;
    border-color: #2a3950;
    color: #e5edf7;
  }
}

/* ========================================================================
   V324 - Technician actionable alerts + live machine-condition sync
   ======================================================================== */
@keyframes belmTechActionBlink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,212,0,.62), 0 0 0 1px rgba(255,212,0,.78) inset; }
  50% { box-shadow: 0 0 0 7px rgba(255,212,0,0), 0 0 0 2px rgba(255,212,0,1) inset; }
}
.belm-tech-action-alert {
  position: relative !important;
  animation: belmTechActionBlink 1.25s ease-in-out infinite;
  border-color: #ffd400 !important;
}
.belm-tech-action-alert::after {
  content: attr(data-alert-count);
  position: absolute;
  top: -7px;
  right: -6px;
  z-index: 3;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid #111b2a;
  border-radius: 999px;
  color: #111b2a;
  background: #ffd400;
  font: 900 10px/1 Inter,system-ui,sans-serif;
}
.belm-tech-action-dock .belm-tech-dock-action,
.belm-tech-action-dock .belm-tech-spare-shortcut,
.belm-tech-action-dock .belm-tech-spare-recommend-shortcut {
  position: relative !important;
}
.belm-technician-machine-card.status-green { border-left: 4px solid var(--belm-green) !important; }
.belm-technician-machine-card.status-yellow { border-left: 4px solid var(--belm-yellow) !important; }
.belm-technician-machine-card.status-red { border-left: 4px solid #e5484d !important; }
.belm-technician-machine-card.status-unknown { border-left: 4px solid #7f8da1 !important; }
.belm-technician-sync-toast {
  position: fixed;
  left: 50%;
  bottom: 112px;
  z-index: 10050;
  max-width: min(560px, calc(100vw - 28px));
  padding: 10px 14px;
  border: 1px solid rgba(99,217,155,.65);
  border-radius: 12px;
  color: #eafff3;
  background: rgba(7,92,52,.96);
  box-shadow: 0 14px 36px rgba(0,0,0,.28);
  font: 800 11px/1.35 Inter,system-ui,sans-serif;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .18s ease, transform .18s ease;
}
.belm-technician-sync-toast.show { opacity: 1; transform: translate(-50%, 0); }
.belm-technician-sync-toast.error { border-color: rgba(255,126,126,.72); background: rgba(135,29,39,.97); }
@media (max-width: 820px) {
  .belm-technician-sync-toast { bottom: 150px; }
}
@media (max-width: 520px) {
  .belm-technician-sync-toast { bottom: 196px; font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .belm-tech-action-alert { animation: none; box-shadow: 0 0 0 2px #ffd400 inset !important; }
  .belm-technician-sync-toast { transition: none; }
}


/* ========================================================================
   V325 - Technician machine-card action colors
   Checked Reports = yellow, Check-up = green, Machine Job Cards = blue.
   Alert/blink state remains an overlay and does not replace the base color.
   ======================================================================== */
body[data-belm-area="tech"] .belm-technician-card-actions .belm-technician-report-link {
  color: var(--belm-navy) !important;
  border-color: var(--belm-yellow) !important;
  background: var(--belm-yellow) !important;
}
body[data-belm-area="tech"] .belm-technician-card-actions .belm-technician-checkup-button:not(.belm-technician-jobcards-button) {
  color: #fff !important;
  border-color: var(--belm-green) !important;
  background: var(--belm-green) !important;
}
body[data-belm-area="tech"] .belm-technician-card-actions .belm-technician-jobcards-button {
  color: #fff !important;
  border-color: var(--belm-blue, #1769c2) !important;
  background: var(--belm-blue, #1769c2) !important;
}
body[data-belm-area="tech"] .belm-technician-card-actions .belm-technician-report-link:hover,
body[data-belm-area="tech"] .belm-technician-card-actions .belm-technician-report-link:focus {
  background: #e8bf00 !important;
}
body[data-belm-area="tech"] .belm-technician-card-actions .belm-technician-checkup-button:not(.belm-technician-jobcards-button):hover,
body[data-belm-area="tech"] .belm-technician-card-actions .belm-technician-checkup-button:not(.belm-technician-jobcards-button):focus {
  background: var(--belm-green-dark) !important;
}
body[data-belm-area="tech"] .belm-technician-card-actions .belm-technician-jobcards-button:hover,
body[data-belm-area="tech"] .belm-technician-card-actions .belm-technician-jobcards-button:focus {
  background: var(--belm-blue-dark, #0f4f96) !important;
}


/* ========================================================================
   V372 - Customer main-login dashboard face
   One authenticated company card first; existing operational dashboard is
   available through View Customer Machine (?view=machines).
   ======================================================================== */
body.belm-customer-dashboard-face-active {
  min-height: 100vh !important;
  margin: 0 !important;
  background: radial-gradient(circle at 30% 0%, #132942 0, #071523 42%, #050c16 100%) !important;
  overflow-x: hidden;
}
body.belm-customer-dashboard-face-active #root { display: none !important; }
.belm-customer-dashboard-face {
  width: 100%; min-height: 100vh; padding: 28px 18px 42px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  color: #eef6ff; font-family: Inter,system-ui,sans-serif;
}
.belm-customer-face-toolbar {
  width: min(720px, calc(100vw - 32px)); margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  color: #8fa5bd; font-size: 11px; font-weight: 900; letter-spacing: .12em;
}
.belm-customer-face-toolbar button {
  min-height: 34px; padding: 6px 14px; border: 1px solid #31465f; border-radius: 9px;
  color: #d9e6f4; background: #0b1726; font: 800 11px/1 Inter,system-ui,sans-serif; cursor: pointer;
}
.belm-customer-face-card {
  position: relative; width: min(720px, calc(100vw - 32px)); min-height: 820px;
  padding: 30px 30px 22px; overflow: hidden;
  border: 1px solid #314968; border-radius: 22px;
  background: linear-gradient(180deg,#10233a 0%,#0b1a2d 48%,#091725 100%);
  box-shadow: 0 24px 60px rgba(0,0,0,.36), inset 0 0 0 1px rgba(99,168,233,.04);
}
.belm-customer-face-accent {
  position: absolute; inset: 0 0 auto; height: 7px;
  background: linear-gradient(90deg,#5cd85e,#38ce61 65%,#75e667);
  box-shadow: 0 0 18px rgba(66,220,101,.6);
}
.belm-customer-face-head { display: flex; justify-content: space-between; gap: 18px; padding-top: 8px; }
.belm-customer-face-eyebrow { margin: 0 0 4px; color: #80e36e; font-size: 12px; font-weight: 900; letter-spacing: .09em; }
.belm-customer-face-head h1 { margin: 0 0 20px; color: #fff; font-size: clamp(28px,4.2vw,40px); line-height: 1.05; font-weight: 900; }
.belm-customer-face-contacts { display: grid; gap: 7px; width: min(430px, 100%); }
.belm-customer-face-contacts > div { display: grid; grid-template-columns: 82px minmax(0,1fr); align-items: baseline; gap: 10px; min-width: 0; }
.belm-customer-face-contacts span { color: #a9bad0; font-size: 11px; font-weight: 900; letter-spacing: .03em; }
.belm-customer-face-contacts b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: 13px; font-weight: 850; }
.belm-customer-face-statuses { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; padding-top: 3px; }
.belm-customer-face-active-pill { padding: 7px 13px; border-radius: 999px; color: #d8ffcf; background: #258f45; font-size: 11px; font-weight: 900; }
.belm-customer-face-provider { max-width: 170px; padding: 7px 11px; border: 1px solid #3c5d79; border-radius: 999px; color: #d8e6f6; background: #0c1c2f; font-size: 10px; font-weight: 900; text-align: center; }
.belm-customer-face-communication {
  min-height: 520px; margin-top: 48px; padding: 20px 20px 16px;
  display: flex; flex-direction: column;
  border: 1px solid #375471; border-radius: 18px; background: rgba(5,15,27,.42);
}
.belm-customer-face-communication-title { display: grid; grid-template-columns: minmax(150px,.55fr) 1fr; align-items: center; gap: 16px; }
.belm-customer-face-communication-title strong { color: #fff; font-size: 21px; line-height: 1.04; }
.belm-customer-face-communication-title button {
  width: 100%; min-height: 42px; border: 1px solid #4c8cd1; border-radius: 12px;
  color: #fff; background: #215f9f; font: 850 12px/1 Inter,system-ui,sans-serif; cursor: pointer;
}
.belm-customer-face-communication-body { display: grid; align-content: start; gap: 9px; padding-top: 16px; overflow: auto; }
.belm-customer-face-empty { margin: 12px 0; color: #c3d0de; font-size: 13px; font-weight: 650; text-align: center; }
.belm-customer-face-communication-row { padding: 11px 12px; border: 1px solid #29445f; border-radius: 11px; background: rgba(18,39,62,.82); }
.belm-customer-face-communication-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.belm-customer-face-communication-head strong { color: #fff; font-size: 12px; }
.belm-customer-face-communication-head span { color: #75e667; font-size: 9px; font-weight: 900; }
.belm-customer-face-communication-row p { margin: 7px 0 5px; color: #d4dfeb; font-size: 12px; line-height: 1.4; }
.belm-customer-face-communication-row small { color: #7f96ad; font-size: 10px; }
.belm-customer-face-actions { margin-top: 18px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.belm-customer-face-action {
  min-width: 0; min-height: 62px; padding: 8px 8px; border: 1px solid transparent; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  text-decoration: none; white-space: normal; overflow-wrap: anywhere;
  font: 900 12px/1.15 Inter,system-ui,sans-serif; cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.belm-customer-face-action.action-black { color:#fff; background:#05080e; border-color:#253247; }
.belm-customer-face-action.action-blue { color:#fff; background:#2f7cf5; border-color:#2f7cf5; }
.belm-customer-face-action.action-green { color:#fff; background:#21a957; border-color:#21a957; }
.belm-customer-face-action.action-yellow { color:#1b2230; background:#ffc928; border-color:#ffc928; }
.belm-customer-face-action.action-purple { color:#fff; background:#6f58d9; border-color:#8069e7; }
.belm-customer-face-action.action-petty { color:#fff; background:#0f8d75; border-color:#20b493; }
.belm-customer-face-action.action-analysis { color:#fff; background:#174f86; border-color:#2d76b8; }
.belm-customer-face-action.action-settings { color:#fff; background:#334155; border-color:#52647a; }
.belm-customer-face-primary-actions { grid-template-columns: repeat(5,minmax(0,1fr)); }
.belm-customer-face-secondary-actions { margin-top: 9px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.belm-customer-face-secondary-actions .belm-customer-face-action { min-height: 54px; }
.belm-customer-face-loading { margin: auto; padding: 30px; color: #d7e4f2; font-size: 14px; font-weight: 800; }
.belm-customer-face-communication-dialog {
  width: min(720px, calc(100vw - 28px)); max-height: 82vh; padding: 0; border: 1px solid #36516d; border-radius: 18px;
  color: #eaf3fc; background: #0b1929; box-shadow: 0 28px 80px rgba(0,0,0,.5);
}
.belm-customer-face-communication-dialog::backdrop { background: rgba(1,7,14,.78); }
.belm-customer-face-dialog-head { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #284158; }
.belm-customer-face-dialog-head div { display: grid; gap: 3px; }
.belm-customer-face-dialog-head b { font-size: 17px; }
.belm-customer-face-dialog-head span { color: #89a0b7; font-size: 11px; }
.belm-customer-face-dialog-head button { border: 1px solid #3c5c78; border-radius: 9px; padding: 8px 12px; color: #fff; background: #10243a; font-weight: 800; cursor: pointer; }
.belm-customer-face-dialog-body { max-height: 66vh; padding: 16px; display: grid; gap: 9px; overflow: auto; }
@media (max-width: 720px) {
  .belm-customer-dashboard-face { padding: 14px 8px 28px; }
  .belm-customer-face-toolbar, .belm-customer-face-card { width: min(100%, 620px); }
  .belm-customer-face-card { min-height: 760px; padding: 24px 16px 16px; border-radius: 17px; }
  .belm-customer-face-head { gap: 10px; }
  .belm-customer-face-head h1 { margin-bottom: 15px; }
  .belm-customer-face-contacts > div { grid-template-columns: 66px minmax(0,1fr); gap: 7px; }
  .belm-customer-face-contacts span { font-size: 9.5px; }
  .belm-customer-face-contacts b { font-size: 11.5px; }
  .belm-customer-face-statuses { gap: 7px; }
  .belm-customer-face-active-pill, .belm-customer-face-provider { font-size: 9px; padding: 6px 8px; }
  .belm-customer-face-communication { min-height: 440px; margin-top: 34px; padding: 14px 12px; }
  .belm-customer-face-communication-title { grid-template-columns: minmax(105px,.52fr) 1fr; gap: 9px; }
  .belm-customer-face-communication-title strong { font-size: 17px; }
  .belm-customer-face-actions { gap: 6px; }
  .belm-customer-face-primary-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .belm-customer-face-primary-actions .belm-customer-face-action:last-child { grid-column: 1 / -1; }
  .belm-customer-face-secondary-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .belm-customer-face-secondary-actions .belm-customer-face-action:last-child { grid-column: 1 / -1; }
  .belm-customer-face-action { min-height: 58px; padding: 6px 6px; font-size: 10.5px; border-radius: 10px; }
}
@media (max-width: 430px) {
  .belm-customer-face-card { padding-left: 12px; padding-right: 12px; }
  .belm-customer-face-provider { max-width: 110px; }
  .belm-customer-face-action { font-size: 9.2px; }
}


/* V376 - Customer > View Customer Machine: four direct actions in one readable row.
   Extra established actions remain available under More actions. */
.belm-service-due-panel .belm-machine-quick-actions {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
  align-items: stretch;
}
.belm-service-due-panel .belm-machine-quick-actions > a,
.belm-service-due-panel .belm-machine-quick-actions > button {
  min-width: 0;
  width: 100%;
  min-height: 40px;
  padding: 7px 5px !important;
  justify-content: center !important;
  text-align: center;
  white-space: normal;
  line-height: 1.08;
  font-size: 8.5px !important;
}
.belm-service-due-panel .belm-machine-quick-actions [data-ui-icon]::before {
  flex-basis: 20px;
  width: 20px;
  height: 20px;
}
@media (max-width: 620px) {
  .belm-service-due-panel .belm-machine-quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }
  .belm-service-due-panel .belm-machine-quick-actions > a,
  .belm-service-due-panel .belm-machine-quick-actions > button {
    min-height: 38px;
    padding: 6px 2px !important;
    gap: 3px !important;
    font-size: 7.5px !important;
  }
  .belm-service-due-panel .belm-machine-quick-actions [data-ui-icon]::before {
    flex-basis: 17px;
    width: 17px;
    height: 17px;
  }
}


/* V378 - Customer > View Customer Machine: balanced Activity Status selector directly below the four primary actions. */
.belm-service-due-panel .belm-customer-activity-selector {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(145px, 1.2fr);
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 9px;
  border: 1px solid #dce5ed;
  border-radius: 10px;
  background: #f8fafc;
}
.belm-service-due-panel .belm-customer-activity-selector > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.belm-service-due-panel .belm-customer-activity-selector span {
  color: #263951;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.belm-service-due-panel .belm-customer-activity-selector small {
  color: #738399;
  font-size: 8px;
  font-weight: 700;
}
.belm-service-due-panel .belm-customer-activity-selector select {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 28px 0 9px;
  border: 1px solid #cbd7e3;
  border-radius: 8px;
  color: #1e3045;
  background: #fff;
  font-size: 9px;
  font-weight: 800;
}
html.dark .belm-service-due-panel .belm-customer-activity-selector,
html[data-theme="dark"] .belm-service-due-panel .belm-customer-activity-selector {
  border-color: #293a4e;
  background: #111d2c;
}
html.dark .belm-service-due-panel .belm-customer-activity-selector span,
html[data-theme="dark"] .belm-service-due-panel .belm-customer-activity-selector span { color: #dce6f2; }
html.dark .belm-service-due-panel .belm-customer-activity-selector small,
html[data-theme="dark"] .belm-service-due-panel .belm-customer-activity-selector small { color: #8fa4ba; }
html.dark .belm-service-due-panel .belm-customer-activity-selector select,
html[data-theme="dark"] .belm-service-due-panel .belm-customer-activity-selector select {
  border-color: #31465d;
  color: #e8f0f8;
  background: #0e1826;
}
@media (max-width: 430px) {
  .belm-service-due-panel .belm-customer-activity-selector {
    grid-template-columns: minmax(0, .72fr) minmax(132px, 1.28fr);
    gap: 6px;
    padding: 7px;
  }
  .belm-service-due-panel .belm-customer-activity-selector select {
    height: 34px;
    font-size: 8px;
  }
}


/* V379 - Customer > View Customer Machine: compact Fleet Number badge in the machine nameplate.
   The 12ch reference is intentionally close to the visual width of "SANY RSC45V". */
.belm-customer-machine-card > .belm-machine-native-head {
  padding-right: 132px !important;
}
.belm-customer-machine-card > .belm-machine-native-head .belm-customer-fleet-number {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 12ch;
  min-width: 12ch;
  max-width: 12ch;
  box-sizing: border-box;
  display: grid;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 9px;
  background: rgba(7,18,31,.58);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 5px 14px rgba(0,0,0,.16);
}
.belm-customer-machine-card > .belm-machine-native-head .belm-customer-fleet-number small {
  color: #9fb2c7 !important;
  font-size: 7px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.belm-customer-machine-card > .belm-machine-native-head .belm-customer-fleet-number b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}
@media (max-width: 720px) {
  .belm-customer-machine-card > .belm-machine-native-head { padding-right: 112px !important; }
  .belm-customer-machine-card > .belm-machine-native-head .belm-customer-fleet-number {
    top: 18px; right: 18px; width: 11ch; min-width: 11ch; max-width: 11ch; padding: 5px 6px;
  }
}
@media (max-width: 390px) {
  .belm-customer-machine-card > .belm-machine-native-head { padding-right: 18px !important; padding-top: 62px !important; }
  .belm-customer-machine-card > .belm-machine-native-head .belm-customer-fleet-number { top: 16px; left: 18px; right: auto; }
}

/* V382 - Customer > View Customer Machine: the strongest machine/service range
   colors the whole card (RED > YELLOW > GREEN), with readable alert text. */
.belm-customer-machine-card.belm-range-green {
  border-color: #22c55e !important;
  background: linear-gradient(160deg, #eafaf1 0%, #dcfce7 46%, #f8fffb 100%) !important;
  box-shadow: inset 0 0 0 9999px rgba(34,197,94,.035), 0 14px 30px rgba(34,197,94,.18) !important;
}
.belm-customer-machine-card.belm-range-yellow {
  border-color: #eab308 !important;
  background: linear-gradient(160deg, #fffbea 0%, #fef3c7 46%, #fffdf5 100%) !important;
  box-shadow: inset 0 0 0 9999px rgba(234,179,8,.05), 0 14px 30px rgba(234,179,8,.20) !important;
}
.belm-customer-machine-card.belm-range-red {
  border: 4px solid #ef4444 !important;
  background: linear-gradient(160deg, #fdecec 0%, #fee2e2 46%, #fff7f7 100%) !important;
  box-shadow: inset 0 0 0 9999px rgba(239,68,68,.06), 0 14px 32px rgba(239,68,68,.26) !important;
}
.belm-customer-machine-card.belm-range-unknown { border-color: #94a3b8 !important; }
.belm-customer-machine-alert-copy {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: rgba(255,255,255,.82);
  line-height: 1.32;
}
.belm-customer-machine-alert-copy strong {
  color: #172033 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  overflow-wrap: anywhere;
}
.belm-customer-machine-alert-copy span {
  color: #475569 !important;
  font-size: 9px !important;
  font-weight: 750 !important;
  overflow-wrap: anywhere;
}
.belm-customer-machine-card.belm-range-green .belm-customer-machine-alert-copy { border-color: rgba(22,163,74,.38); background: rgba(240,253,244,.90); }
.belm-customer-machine-card.belm-range-green .belm-customer-machine-alert-copy strong { color: #14532d !important; }
.belm-customer-machine-card.belm-range-yellow .belm-customer-machine-alert-copy { border-color: rgba(202,138,4,.44); background: rgba(254,249,195,.92); }
.belm-customer-machine-card.belm-range-yellow .belm-customer-machine-alert-copy strong { color: #713f12 !important; }
.belm-customer-machine-card.belm-range-red .belm-customer-machine-alert-copy { border-color: rgba(220,38,38,.46); background: rgba(254,226,226,.94); }
.belm-customer-machine-card.belm-range-red .belm-customer-machine-alert-copy strong { color: #7f1d1d !important; }

/* V383 - Customer > View Customer Machine alert blinking.
   RED blinks clearly, YELLOW pulses slowly, GREEN stays steady.
   Only the whole-card alert ring animates so machine messages remain readable. */
.belm-customer-machine-card.belm-range-red,
.belm-customer-machine-card.belm-range-yellow {
  position: relative;
  isolation: isolate;
}
.belm-customer-machine-card.belm-range-red::after,
.belm-customer-machine-card.belm-range-yellow::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 5;
}
.belm-customer-machine-card.belm-range-red::after {
  border: 3px solid rgba(239,68,68,.98);
  box-shadow: 0 0 0 2px rgba(239,68,68,.22), 0 0 28px rgba(239,68,68,.76);
  animation: belm-customer-machine-red-blink 0.9s steps(2, end) infinite;
}
.belm-customer-machine-card.belm-range-yellow::after {
  border: 3px solid rgba(234,179,8,.90);
  box-shadow: 0 0 0 2px rgba(234,179,8,.18), 0 0 24px rgba(234,179,8,.52);
  animation: belm-customer-machine-yellow-pulse 1.65s ease-in-out infinite;
}
.belm-customer-machine-card.belm-range-green::after {
  content: none;
  animation: none;
}
@keyframes belm-customer-machine-red-blink {
  0%, 44% { opacity: 1; }
  45%, 100% { opacity: .12; }
}
@keyframes belm-customer-machine-yellow-pulse {
  0%, 100% { opacity: .30; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.006); }
}
@media (prefers-reduced-motion: reduce) {
  .belm-customer-machine-card.belm-range-red::after,
  .belm-customer-machine-card.belm-range-yellow::after {
    animation: none !important;
    opacity: .86;
  }
}

/* ========================================================================
   V384 - BELM Technician dashboard handoff
   Technician lands on one assigned-customer card; View Machine reveals the
   technician fleet workspace so it cannot be confused with Admin/Customer UI.
   ======================================================================== */
body[data-belm-area="tech"] .belm-technician-dashboard-card-v384 {
  width: min(390px, 100%);
  margin: 6px 0 22px;
  border-color: rgba(0,166,81,.78);
  background:
    radial-gradient(circle at 92% 10%, rgba(0,166,81,.20), transparent 12rem),
    linear-gradient(150deg, #12223a 0%, #0c182a 100%);
}
body[data-belm-area="tech"] .belm-technician-dashboard-card-v384 .belm-technician-customer-head {
  padding: 22px 22px 16px;
}
body[data-belm-area="tech"] .belm-technician-dashboard-card-v384 .belm-technician-customer-head h1 {
  font-size: 28px;
}
body[data-belm-area="tech"] .belm-technician-dashboard-contact {
  display: grid;
  gap: 7px;
  padding: 0 22px 18px;
}
body[data-belm-area="tech"] .belm-technician-dashboard-contact > div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
body[data-belm-area="tech"] .belm-technician-dashboard-contact span {
  color: #9eb0c8;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}
body[data-belm-area="tech"] .belm-technician-dashboard-contact b {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-belm-area="tech"] .belm-technician-dashboard-footer {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255,255,255,.10);
}
body[data-belm-area="tech"] .belm-technician-view-machine-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(0,166,81,.95);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, rgba(0,166,81,.32), rgba(0,166,81,.13));
  font: 900 12px/1.1 Inter,system-ui,sans-serif;
  cursor: pointer;
}
body[data-belm-area="tech"] .belm-technician-view-machine-button small {
  color: #bde8cf;
  font-size: 9px;
  font-weight: 800;
}
body[data-belm-area="tech"] .belm-technician-view-machine-button:hover,
body[data-belm-area="tech"] .belm-technician-view-machine-button:focus-visible {
  background: linear-gradient(135deg, rgba(0,166,81,.46), rgba(0,166,81,.20));
  outline: 2px solid rgba(0,166,81,.28);
  outline-offset: 2px;
}
body[data-belm-area="tech"] .belm-technician-machine-grid-collapsed,
body[data-belm-area="tech"] .belm-technician-machine-list-heading-collapsed {
  display: none !important;
}
body[data-belm-area="tech"] .belm-technician-machine-list-heading {
  scroll-margin-top: 84px;
}
@media (max-width: 520px) {
  body[data-belm-area="tech"] .belm-technician-dashboard-card-v384 { width: 100%; }
}

/* V385 BELM Technician first-card communication + five main actions */
body[data-belm-area="tech"] .belm-technician-dashboard-communication {
  margin: 0 18px 14px; padding: 14px; min-height: 250px;
  border: 1px solid rgba(139,177,235,.28); border-radius: 14px;
  background: rgba(8,22,43,.42);
}
body[data-belm-area="tech"] .belm-technician-dashboard-communication-head {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(130px,1.35fr); gap:12px; align-items:center; margin-bottom:12px;
}
body[data-belm-area="tech"] .belm-technician-dashboard-communication-head strong { color:#fff; font-size:18px; line-height:1.04; }
body[data-belm-area="tech"] .belm-technician-dashboard-communication-head button {
  min-height:38px; border:1px solid rgba(92,169,255,.58); border-radius:10px; background:rgba(45,126,224,.34); color:#fff; font-weight:900; cursor:pointer;
}
body[data-belm-area="tech"] .belm-technician-dashboard-communication-body { max-height:180px; overflow:auto; }
body[data-belm-area="tech"] .belm-technician-dashboard-actions-v385 {
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px;
}
body[data-belm-area="tech"] .belm-tech-main-action {
  min-width:0; min-height:56px; display:flex; align-items:center; justify-content:center; text-align:center;
  padding:8px 6px; border-radius:11px; border:1px solid rgba(255,255,255,.2); color:#fff;
  font:900 10px/1.1 Inter,system-ui,sans-serif; text-decoration:none; cursor:pointer; white-space:normal;
}
body[data-belm-area="tech"] .belm-tech-main-action.action-black{background:#111827;}
body[data-belm-area="tech"] .belm-tech-main-action.action-blue{background:#2196f3;}
body[data-belm-area="tech"] .belm-tech-main-action.action-green{background:#56c94f;}
body[data-belm-area="tech"] .belm-tech-main-action.action-yellow{background:#f4b400;color:#2b2200;}
body[data-belm-area="tech"] .belm-tech-main-action.action-purple{background:#8a6edb;}
body[data-belm-area="tech"] .belm-technician-general-report { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
body[data-belm-area="tech"] .belm-technician-general-report div { padding:14px; border:1px solid rgba(139,177,235,.25); border-radius:10px; }
body[data-belm-area="tech"] .belm-technician-general-report span { display:block; color:#93a8c8; font-size:10px; text-transform:uppercase; font-weight:900; }
body[data-belm-area="tech"] .belm-technician-general-report b { display:block; margin-top:4px; font-size:24px; color:#fff; }
@media (max-width:720px){
  body[data-belm-area="tech"] .belm-technician-dashboard-actions-v385{gap:5px;}
  body[data-belm-area="tech"] .belm-tech-main-action{font-size:8px;padding:7px 3px;}
}


/* V387 - Customer > View Machines: Add/Edit/Delete/Forget management row.
   BELM Service Provider ON keeps all four visible but disabled; the backend
   enforces the same switch so UI state cannot be bypassed. */
.belm-service-due-panel .belm-customer-machine-management {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(148,163,184,.35);
}
.belm-service-due-panel .belm-customer-machine-management-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.belm-service-due-panel .belm-customer-machine-management-buttons button {
  min-width: 0;
  min-height: 40px;
  padding: 7px 4px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.05;
  white-space: normal;
  cursor: pointer;
}
.belm-service-due-panel .belm-customer-machine-management-buttons .add { background:#dcfce7; border-color:#22c55e; color:#166534; }
.belm-service-due-panel .belm-customer-machine-management-buttons .edit { background:#e0f2fe; border-color:#38bdf8; color:#075985; }
.belm-service-due-panel .belm-customer-machine-management-buttons .delete { background:#fff7ed; border-color:#fb923c; color:#9a3412; }
.belm-service-due-panel .belm-customer-machine-management-buttons .forget { background:#fff1f2; border-color:#ef4444; color:#991b1b; }
.belm-service-due-panel .belm-customer-machine-management.provider-locked button,
.belm-service-due-panel .belm-customer-machine-management-buttons button:disabled {
  opacity:.42;
  filter:grayscale(.38);
  cursor:not-allowed;
  box-shadow:none !important;
}
.belm-service-due-panel .belm-customer-machine-management > small {
  display:block;
  margin-top:6px;
  color:#b45309;
  font-size:8px;
  font-weight:800;
  line-height:1.25;
}
html.dark .belm-service-due-panel .belm-customer-machine-management,
html[data-theme="dark"] .belm-service-due-panel .belm-customer-machine-management { border-top-color:#334155; }
html.dark .belm-service-due-panel .belm-customer-machine-management-buttons button,
html[data-theme="dark"] .belm-service-due-panel .belm-customer-machine-management-buttons button { box-shadow:inset 0 0 0 9999px rgba(15,23,42,.28); }

.belm-customer-machine-editor {
  position:fixed;
  inset:0;
  z-index:10020;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:rgba(2,6,23,.72);
  backdrop-filter:blur(5px);
}
.belm-customer-machine-editor-card {
  width:min(520px,100%);
  max-height:88vh;
  overflow:auto;
  border:1px solid #cbd5e1;
  border-radius:16px;
  background:#fff;
  box-shadow:0 24px 70px rgba(2,6,23,.34);
}
.belm-customer-machine-editor-card > header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid #e2e8f0;
}
.belm-customer-machine-editor-card > header p { margin:0 0 3px; color:#64748b; font-size:9px; font-weight:900; letter-spacing:.08em; }
.belm-customer-machine-editor-card > header h2 { margin:0; color:#0f172a; font-size:20px; font-weight:900; }
.belm-customer-machine-editor-card > header button { width:34px; height:34px; border:1px solid #cbd5e1; border-radius:9px; background:#f8fafc; font-size:22px; }
.belm-customer-machine-editor-card form { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:18px; }
.belm-customer-machine-editor-card label { display:grid; gap:5px; }
.belm-customer-machine-editor-card label span { color:#475569; font-size:9px; font-weight:900; text-transform:uppercase; letter-spacing:.04em; }
.belm-customer-machine-editor-card input,
.belm-customer-machine-editor-card select { width:100%; min-width:0; height:40px; padding:0 10px; border:1px solid #cbd5e1; border-radius:9px; background:#fff; color:#0f172a; font-size:12px; font-weight:700; }
.belm-customer-machine-editor-error { grid-column:1/-1; padding:9px 10px; border-radius:8px; background:#fee2e2; color:#991b1b; font-size:11px; font-weight:700; }
.belm-customer-machine-editor-actions { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:4px; }
.belm-customer-machine-editor-actions button { min-height:42px; border:1px solid #cbd5e1; border-radius:9px; background:#f8fafc; font-size:11px; font-weight:900; }
.belm-customer-machine-editor-actions .primary { border-color:#22c55e; background:#22c55e; color:#052e16; }
html.dark .belm-customer-machine-editor-card,
html[data-theme="dark"] .belm-customer-machine-editor-card { border-color:#334155; background:#0f172a; }
html.dark .belm-customer-machine-editor-card > header,
html[data-theme="dark"] .belm-customer-machine-editor-card > header { border-bottom-color:#334155; }
html.dark .belm-customer-machine-editor-card > header h2,
html[data-theme="dark"] .belm-customer-machine-editor-card > header h2 { color:#f8fafc; }
html.dark .belm-customer-machine-editor-card input,
html.dark .belm-customer-machine-editor-card select,
html[data-theme="dark"] .belm-customer-machine-editor-card input,
html[data-theme="dark"] .belm-customer-machine-editor-card select { border-color:#334155; background:#111827; color:#f8fafc; }
@media (max-width:430px) {
  .belm-service-due-panel .belm-customer-machine-management-buttons { gap:4px; }
  .belm-service-due-panel .belm-customer-machine-management-buttons button { min-height:38px; padding:6px 2px; font-size:7.2px; }
  .belm-customer-machine-editor-card form { grid-template-columns:1fr; }
  .belm-customer-machine-editor-error,
  .belm-customer-machine-editor-actions { grid-column:1; }
}

/* V388 - Customer General Report Center */
.belm-customer-report-center { width:min(760px,calc(100% - 28px)); }
.belm-customer-report-center-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.belm-customer-report-center-card {
  min-height:110px;
  display:grid;
  grid-template-columns:42px 1fr;
  grid-template-rows:auto 1fr;
  gap:5px 12px;
  text-align:left;
  padding:14px;
  border:1px solid rgba(127,173,238,.27);
  border-radius:13px;
  color:#fff;
  background:linear-gradient(145deg,rgba(35,61,104,.78),rgba(16,29,51,.92));
  cursor:pointer;
}
.belm-customer-report-center-card:hover { border-color:rgba(255,212,0,.72); transform:translateY(-1px); }
.belm-customer-report-center-card > span {
  grid-row:1/3;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:10px;
  font-size:11px;
  font-weight:900;
  color:#ffd400;
  background:rgba(255,212,0,.10);
  border:1px solid rgba(255,212,0,.32);
}
.belm-customer-report-center-card strong { font-size:13px; line-height:1.25; }
.belm-customer-report-center-card small { color:#9fb0c8; font-size:10px; line-height:1.35; }
.belm-customer-report-machine-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.belm-customer-report-machine {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  padding:14px;
  border:1px solid rgba(127,173,238,.25);
  border-radius:12px;
  background:rgba(255,255,255,.045);
  color:#fff;
  text-align:left;
  cursor:pointer;
}
.belm-customer-report-machine:hover { border-color:#52b9ff; background:rgba(82,185,255,.10); }
.belm-customer-report-machine strong { font-size:13px; }
.belm-customer-report-machine span,.belm-customer-report-machine small { color:#9fb0c8; font-size:10px; }
.belm-customer-report-list { display:flex; flex-direction:column; gap:9px; }
.belm-customer-report-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:12px;
  align-items:center;
  padding:11px 12px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:11px;
  background:rgba(255,255,255,.04);
}
.belm-customer-report-row > div:first-child { min-width:0; }
.belm-customer-report-row strong,.belm-customer-report-row span,.belm-customer-report-row small { display:block; }
.belm-customer-report-row strong { color:#fff; font-size:12px; }
.belm-customer-report-row > div:first-child span { margin-top:3px; color:#d4deec; font-size:10.5px; }
.belm-customer-report-row small { margin-top:3px; color:#8fa4c2; font-size:9.5px; }
.belm-customer-report-row-actions { display:flex; gap:6px; }
.belm-customer-report-row-actions button {
  border:1px solid rgba(127,173,238,.35);
  border-radius:8px;
  padding:7px 9px;
  background:rgba(47,126,247,.13);
  color:#fff;
  font-size:9.5px;
  font-weight:800;
  cursor:pointer;
}
.belm-customer-report-neutral-status {
  padding:6px 8px;
  border-radius:8px;
  color:#dfe9f8;
  background:rgba(127,173,238,.12);
  border:1px solid rgba(127,173,238,.22);
  font-size:9px!important;
  font-weight:900;
  white-space:nowrap;
}
.belm-customer-report-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin-bottom:14px; }
.belm-customer-report-summary-grid > div { padding:11px; border:1px solid rgba(127,173,238,.22); border-radius:10px; background:rgba(255,255,255,.04); }
.belm-customer-report-summary-grid span { display:block; color:#8fa4c2; font-size:9px; text-transform:uppercase; font-weight:850; }
.belm-customer-report-summary-grid b { display:block; margin-top:4px; color:#fff; font-size:16px; }
.belm-customer-report-subhead { margin:16px 0 8px; color:#fff; font-size:12px; }
.belm-customer-report-table-wrap { overflow:auto; }
@media (max-width:640px) {
  .belm-customer-report-center-grid,.belm-customer-report-machine-grid { grid-template-columns:1fr; }
  .belm-customer-report-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .belm-customer-report-row { grid-template-columns:minmax(0,1fr) auto; }
  .belm-customer-report-row-actions { grid-column:1/-1; }
}

/* ========================================================================
   V390 - Technician machine view uses the same compact machine-card language
   as Admin/Customer. Legacy technician dock remains available internally but
   is hidden from the /tech landing/machine workspace to avoid duplicate UI.
   ======================================================================== */
body[data-belm-area="tech"] #belm-tech-action-dock {
  display: none !important;
}
body[data-belm-area="tech"] .belm-technician-machine-grid {
  grid-template-columns: repeat(auto-fill, minmax(390px, 390px)) !important;
  gap: 18px !important;
  align-items: start;
}
body[data-belm-area="tech"] .belm-technician-machine-card-v390 {
  width: 390px !important;
  max-width: 100% !important;
  min-height: 590px !important;
  height: auto !important;
  padding: 20px !important;
  align-content: start;
}
body[data-belm-area="tech"] .belm-technician-machine-card-v390 > .belm-machine-native-head {
  margin: -20px -20px 0 !important;
  padding: 22px 132px 16px 20px !important;
}
body[data-belm-area="tech"] .belm-technician-machine-card-v390 > .belm-machine-last-checked {
  margin: 0 -20px 10px !important;
  padding: 8px 20px !important;
}
body[data-belm-area="tech"] .belm-technician-machine-info-v390 {
  display: grid;
  gap: 9px;
  margin-top: 0;
}
body[data-belm-area="tech"] .belm-technician-machine-info-v390 .belm-technician-machine-health {
  margin: 0;
}
body[data-belm-area="tech"] .belm-tech-machine-details-v390 {
  margin: 0;
}
body[data-belm-area="tech"] .belm-technician-op-status-v390 {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(150px, 1.18fr);
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(148,163,184,.35);
  border-radius: 10px;
  background: rgba(248,250,252,.86);
}
body[data-belm-area="tech"] .belm-technician-op-status-v390 > div > span {
  display: block;
  color: #52657b !important;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
body[data-belm-area="tech"] .belm-technician-op-status-v390 > div > small {
  display: block;
  margin-top: 2px;
  color: #7b8ca0;
  font-size: 7.5px;
  font-weight: 750;
}
body[data-belm-area="tech"] .belm-technician-op-status-v390 select {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid #b8c6d6;
  border-radius: 9px;
  background: #fff;
  color: #172033;
  font-size: 9px;
  font-weight: 850;
  padding: 0 9px;
}
body[data-belm-area="tech"] .belm-technician-service-panel-v390 {
  margin-top: 9px !important;
  padding: 10px !important;
}
body[data-belm-area="tech"] .belm-technician-service-panel-v390 .belm-service-due-grid-v210 {
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
}
body[data-belm-area="tech"] .belm-technician-card-actions-v390 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px !important;
  margin-top: 10px !important;
}
body[data-belm-area="tech"] .belm-technician-card-actions-v390 > * {
  min-width: 0 !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 7px 4px !important;
  border-radius: 9px !important;
  font-size: 8.5px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  white-space: normal !important;
  text-align: center;
}
body[data-belm-area="tech"] .belm-technician-card-actions-v390 .belm-technician-report-link {
  color: #fff !important;
  border-color: #111827 !important;
  background: #111827 !important;
}
body[data-belm-area="tech"] .belm-technician-card-actions-v390 .belm-technician-checkup-button:not(.belm-technician-jobcards-button):not(.belm-technician-service-parts-button) {
  color: #fff !important;
  border-color: #2196f3 !important;
  background: #2196f3 !important;
}
body[data-belm-area="tech"] .belm-technician-card-actions-v390 .belm-technician-service-parts-button {
  color: #fff !important;
  border-color: #56c94f !important;
  background: #56c94f !important;
}
body[data-belm-area="tech"] .belm-technician-card-actions-v390 .belm-technician-jobcards-button {
  color: #2b2200 !important;
  border-color: #f4b400 !important;
  background: #f4b400 !important;
}
html.dark body[data-belm-area="tech"] .belm-technician-op-status-v390,
html[data-theme="dark"] body[data-belm-area="tech"] .belm-technician-op-status-v390 {
  border-color: #31465d;
  background: #0e1826;
}
html.dark body[data-belm-area="tech"] .belm-technician-op-status-v390 select,
html[data-theme="dark"] body[data-belm-area="tech"] .belm-technician-op-status-v390 select {
  border-color: #31465d;
  color: #e8f0f8;
  background: #101b2a;
}
@media (max-width: 520px) {
  body[data-belm-area="tech"] .belm-technician-machine-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body[data-belm-area="tech"] .belm-technician-machine-card-v390 {
    width: 100% !important;
    min-height: 0 !important;
  }
  body[data-belm-area="tech"] .belm-technician-card-actions-v390 { gap: 4px !important; }
  body[data-belm-area="tech"] .belm-technician-card-actions-v390 > * { font-size: 7.5px !important; padding: 6px 2px !important; }
}


/* ========================================================================
   V391 - Technician machine actions anchored at the bottom of the card.
   Keeps the alert/message and service information unobstructed and readable.
   ======================================================================== */
body[data-belm-area="tech"] .belm-technician-machine-card-v391 {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}
body[data-belm-area="tech"] .belm-technician-machine-card-v391 > .belm-technician-machine-info-v390,
body[data-belm-area="tech"] .belm-technician-machine-card-v391 > .belm-technician-service-panel-v390 {
  flex: 0 0 auto;
  width: 100%;
}
body[data-belm-area="tech"] .belm-technician-machine-card-v391 .belm-technician-machine-alert-copy {
  min-height: 58px;
  padding: 11px 12px;
  align-content: center;
}
body[data-belm-area="tech"] .belm-technician-machine-card-v391 .belm-technician-machine-alert-copy strong {
  line-height: 1.4 !important;
}
body[data-belm-area="tech"] .belm-technician-card-actions-v391 {
  width: 100%;
  margin-top: auto !important;
  padding-top: 16px;
  align-self: stretch;
}
@media (max-width: 520px) {
  body[data-belm-area="tech"] .belm-technician-machine-card-v391 .belm-technician-machine-alert-copy {
    min-height: 52px;
  }
  body[data-belm-area="tech"] .belm-technician-card-actions-v391 {
    padding-top: 12px;
  }
}



/* ========================================================================
   V397 - Technician Operator Message panel.
   The message area is intentionally tall enough for a real operational
   message while the four machine actions remain anchored at card bottom.
   ======================================================================== */
body[data-belm-area="tech"] .belm-technician-machine-card-v391 {
  min-height: 670px !important;
}
body[data-belm-area="tech"] .belm-technician-machine-card-v391 .belm-technician-message-panel-v397 {
  min-height: 148px !important;
  padding: 10px 11px !important;
  display: grid !important;
  gap: 9px !important;
  align-content: start !important;
  overflow: visible !important;
}
body[data-belm-area="tech"] .belm-technician-operator-message,
body[data-belm-area="tech"] .belm-technician-condition-message {
  min-width: 0;
  display: grid;
  gap: 4px;
}
body[data-belm-area="tech"] .belm-technician-operator-message {
  min-height: 72px;
  max-height: 132px;
  padding: 8px 9px;
  overflow-y: auto;
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 9px;
  background: rgba(14,165,233,.07);
}
body[data-belm-area="tech"] .belm-technician-operator-message.is-open {
  border-color: rgba(245,158,11,.5);
  background: rgba(245,158,11,.09);
}
body[data-belm-area="tech"] .belm-technician-message-kicker {
  color: #6f8299 !important;
  font-size: 7.5px !important;
  font-weight: 900 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body[data-belm-area="tech"] .belm-technician-operator-message > strong {
  color: inherit !important;
  font-size: 10px !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
body[data-belm-area="tech"] .belm-technician-operator-message > small {
  color: #7d8da1 !important;
  font-size: 7.5px !important;
  font-weight: 750;
  line-height: 1.35;
}
body[data-belm-area="tech"] .belm-technician-condition-message > strong {
  font-size: 9px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
body[data-belm-area="tech"] .belm-technician-condition-message > [data-tech-service-alert-copy] {
  font-size: 8px !important;
  line-height: 1.3 !important;
}
html.dark body[data-belm-area="tech"] .belm-technician-operator-message,
html[data-theme="dark"] body[data-belm-area="tech"] .belm-technician-operator-message {
  border-color: rgba(56,189,248,.3);
  background: rgba(2,132,199,.11);
}
html.dark body[data-belm-area="tech"] .belm-technician-operator-message.is-open,
html[data-theme="dark"] body[data-belm-area="tech"] .belm-technician-operator-message.is-open {
  border-color: rgba(245,158,11,.55);
  background: rgba(245,158,11,.12);
}
@media (max-width: 520px) {
  body[data-belm-area="tech"] .belm-technician-machine-card-v391 {
    min-height: 640px !important;
  }
  body[data-belm-area="tech"] .belm-technician-machine-card-v391 .belm-technician-message-panel-v397 {
    min-height: 138px !important;
  }
}

/* ========================================================================
   V392 - Daily Technician check stamp.
   A completed check-up is shown on the machine card for the Tanzania day,
   then auto-resets at 00.00 EAT so the next daily check becomes due.
   ======================================================================== */
body[data-belm-area="tech"] .belm-technician-check-stamp[hidden] {
  display: none !important;
}
body[data-belm-area="tech"] .belm-technician-check-stamp {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid rgba(34,197,94,.62);
  border-radius: 10px;
  background: rgba(20,83,45,.16);
  box-shadow: inset 3px 0 0 rgba(34,197,94,.92);
}
body[data-belm-area="tech"] .belm-technician-check-stamp strong {
  color: #d8ffe4 !important;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.25;
}
body[data-belm-area="tech"] .belm-technician-check-stamp span {
  color: #b7d7c2 !important;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.25;
}
html:not(.dark):not([data-theme="dark"]) body[data-belm-area="tech"] .belm-technician-check-stamp {
  background: #effdf3;
  border-color: #63c87a;
  box-shadow: inset 3px 0 0 #22a447;
}
html:not(.dark):not([data-theme="dark"]) body[data-belm-area="tech"] .belm-technician-check-stamp strong {
  color: #14532d !important;
}
html:not(.dark):not([data-theme="dark"]) body[data-belm-area="tech"] .belm-technician-check-stamp span {
  color: #3f6250 !important;
}


/* ========================================================================
   V409 - Customer Dashboard > View Customer Machine
   Same 390 x 590 machine-card footprint and visual hierarchy as BELM Admin.
   The card keeps the established Report / Check Up / Service Parts / Job Card
   workflow and customer ownership controls while removing tall default panels.
   ======================================================================== */
body[data-belm-area="portal"] .belm-customer-machine-grid {
  grid-template-columns: repeat(auto-fill, 390px) !important;
  gap: 15px !important;
  align-items: start !important;
  justify-content: start !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 {
  width: 390px !important;
  height: 590px !important;
  min-height: 590px !important;
  max-height: 590px !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 15px !important;
  overflow: hidden !important;
  text-align: left !important;
  color: #eef6ff !important;
  border: 2px solid #66d957 !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 88% 7%, rgba(43,126,83,.18), transparent 13rem),
    linear-gradient(160deg,#0b1725 0%,#08121f 58%,#07101b 100%) !important;
  box-shadow: 0 16px 34px rgba(2,10,20,.30), inset 0 0 32px rgba(49,190,98,.025) !important;
  transform: none !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409:hover {
  transform: none !important;
  box-shadow: 0 18px 38px rgba(2,10,20,.34), inset 0 0 34px rgba(49,190,98,.035) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409::before {
  display: none !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409.belm-range-green,
body[data-belm-area="portal"] .belm-customer-machine-card-v409.status-green {
  border-color:#66d957 !important;
  background:radial-gradient(circle at 88% 7%,rgba(43,126,83,.18),transparent 13rem),linear-gradient(160deg,#0b1725,#08121f 58%,#07101b) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409.belm-range-yellow,
body[data-belm-area="portal"] .belm-customer-machine-card-v409.status-yellow {
  border-color:#e9b52e !important;
  background:radial-gradient(circle at 88% 7%,rgba(197,146,33,.13),transparent 13rem),linear-gradient(160deg,#0b1725,#08121f 58%,#07101b) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409.belm-range-red,
body[data-belm-area="portal"] .belm-customer-machine-card-v409.status-red {
  border:2px solid #ef5350 !important;
  background:radial-gradient(circle at 88% 7%,rgba(183,49,49,.15),transparent 13rem),linear-gradient(160deg,#0b1725,#08121f 58%,#07101b) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409.belm-range-unknown,
body[data-belm-area="portal"] .belm-customer-machine-card-v409.status-unknown { border-color:#667c92 !important; }

body[data-belm-area="portal"] .belm-customer-machine-card-v409 > .belm-machine-native-head {
  position: relative !important;
  min-height: 77px !important;
  margin: -15px -15px 0 !important;
  padding: 17px 112px 12px 15px !important;
  border-bottom: 0 !important;
  color: #fff !important;
  background: transparent !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 > .belm-machine-native-head::after {
  display:none !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 > .belm-machine-native-head > div:first-child > div:first-child,
body[data-belm-area="portal"] .belm-customer-machine-card-v409 > .belm-machine-native-head .font-medium {
  color:#f8fbff !important;
  font:900 17px/1.08 "Space Grotesk",Inter,system-ui,sans-serif !important;
  letter-spacing:-.02em !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 > .belm-machine-native-head .text-slate-500,
body[data-belm-area="portal"] .belm-customer-machine-card-v409 > .belm-machine-native-head .text-xs {
  color:#b6c4d5 !important;
  font-size:9px !important;
  font-weight:700 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 > .belm-machine-native-head .belm-customer-fleet-number {
  top:16px !important;
  right:15px !important;
  width:90px !important;
  min-width:90px !important;
  max-width:90px !important;
  min-height:48px !important;
  padding:7px 9px !important;
  border:1px solid #31475e !important;
  border-radius:9px !important;
  background:rgba(4,12,22,.74) !important;
  box-shadow:inset 0 0 14px rgba(58,138,91,.05) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 > .belm-machine-native-head .belm-customer-fleet-number small {
  color:#9eafc1 !important;
  font-size:7px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 > .belm-machine-native-head .belm-customer-fleet-number b {
  color:#f3f7fb !important;
  font-size:10px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 > .belm-machine-last-checked {
  align-self:flex-start !important;
  min-height:27px !important;
  margin:0 0 7px !important;
  padding:5px 9px !important;
  border:1px solid #2d435a !important;
  border-radius:7px !important;
  color:#f1f5f9 !important;
  background:#0b1726 !important;
  font-size:8px !important;
  font-weight:900 !important;
  line-height:1.15 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}

body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-technician-machine-info {
  display:grid !important;
  gap:6px !important;
  margin:0 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-machine-state-row {
  display:block !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-technician-machine-health {
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  gap:7px !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  animation:none !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-technician-machine-health::before { display:none !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-technician-machine-health > div:first-child {
  flex:0 0 auto !important;
  display:flex !important;
  align-items:center !important;
  gap:5px !important;
  padding:4px 8px !important;
  border:1px solid #2d435a !important;
  border-radius:7px !important;
  background:#0b1726 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-technician-machine-health > div:first-child span { display:none !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-technician-machine-health > div:first-child strong {
  color:#f1f5f9 !important;
  font-size:8px !important;
  font-weight:900 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-technician-machine-health > div:nth-child(2) { display:none !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-customer-op-status { display:none !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-customer-machine-alert-copy {
  min-height:72px !important;
  max-height:72px !important;
  margin:0 !important;
  padding:10px 11px !important;
  gap:4px !important;
  overflow:hidden !important;
  border:1px solid #345d3e !important;
  border-radius:10px !important;
  background:rgba(5,15,24,.72) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-customer-machine-alert-copy strong {
  color:#69d65d !important;
  font-size:9.5px !important;
  font-weight:900 !important;
  line-height:1.25 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-customer-machine-alert-copy span {
  color:#c8d3df !important;
  font-size:7.8px !important;
  font-weight:750 !important;
  line-height:1.2 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409.belm-range-yellow .belm-customer-machine-alert-copy strong { color:#f4c542 !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v409.belm-range-red .belm-customer-machine-alert-copy strong { color:#ff6868 !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-machine-details-disclosure,
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-machine-recent-updates {
  display:none !important;
}

body[data-belm-area="portal"] .belm-customer-machine-card-v409 > .belm-service-due-panel {
  min-height:0 !important;
  margin-top:8px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  animation:none !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-service-due-head-v210 {
  min-height:44px !important;
  margin:0 !important;
  padding:7px 10px !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  border:1px solid #5fce57 !important;
  border-radius:9px !important;
  color:#172033 !important;
  background:linear-gradient(180deg,#f5f7f4,#dfe6e3) !important;
  box-shadow:0 5px 15px rgba(55,206,88,.12) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-service-due-panel.status-yellow .belm-service-due-head-v210 { border-color:#e0ad22 !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-service-due-panel.status-red .belm-service-due-head-v210 { border-color:#ef5350 !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-service-due-head-v210 > div span { display:none !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-service-due-head-v210 > div b {
  color:#1b2736 !important;
  font-size:10px !important;
  font-weight:950 !important;
  white-space:nowrap !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-service-due-head-v210 > strong {
  min-width:0 !important;
  margin-left:auto !important;
  padding:0 !important;
  overflow:hidden !important;
  color:#1c2a38 !important;
  background:transparent !important;
  font-size:8px !important;
  font-weight:950 !important;
  white-space:nowrap !important;
  text-overflow:ellipsis !important;
  letter-spacing:0 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-service-due-grid-v210 { display:none !important; }

body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-machine-quick-actions {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:5px !important;
  margin-top:8px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-machine-quick-actions > a,
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-machine-quick-actions > button {
  width:100% !important;
  min-width:0 !important;
  min-height:46px !important;
  padding:5px 2px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:3px !important;
  border:1px solid #2c465f !important;
  border-radius:9px !important;
  color:#eef5fc !important;
  background:linear-gradient(180deg,#12243a,#0c1a2b) !important;
  font-size:7.6px !important;
  font-weight:900 !important;
  line-height:1.05 !important;
  text-align:center !important;
  text-decoration:none !important;
  box-shadow:none !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-machine-quick-actions [data-ui-icon]::before {
  flex:0 0 18px !important;
  width:18px !important;
  height:18px !important;
  border-radius:5px !important;
  color:#68db5f !important;
  background:rgba(35,73,102,.42) !important;
  font-size:7px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-machine-quick-actions [data-belm-feature="workflow"] {
  border-color:#8e66ef !important;
  color:#fff !important;
  background:linear-gradient(145deg,#8653ea,#6b2fc7) !important;
  box-shadow:0 7px 17px rgba(120,66,219,.26) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-machine-quick-actions [data-belm-feature="workflow"]::before {
  color:#fff !important;
  background:rgba(255,255,255,.16) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-customer-activity-selector {
  grid-template-columns:86px minmax(0,1fr) !important;
  min-height:49px !important;
  margin-top:7px !important;
  padding:7px 8px !important;
  gap:7px !important;
  border:1px solid #263b52 !important;
  border-radius:9px !important;
  background:rgba(11,24,39,.88) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-customer-activity-selector > div { gap:0 !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-customer-activity-selector span {
  color:#a9b9ca !important;
  font-size:7.6px !important;
  font-weight:900 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-customer-activity-selector small { display:none !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-customer-activity-selector select {
  height:34px !important;
  min-height:34px !important;
  padding:0 27px 0 9px !important;
  border:1px solid #38536e !important;
  border-radius:8px !important;
  color:#f1f5f9 !important;
  background:#0c1929 !important;
  font-size:8.5px !important;
  font-weight:850 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-machine-more-actions {
  margin-top:6px !important;
  border:1px solid #263b52 !important;
  border-radius:8px !important;
  background:#0b1726 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-machine-more-actions > summary {
  min-height:25px !important;
  padding:4px 8px !important;
  color:#9fb0c4 !important;
  font-size:7px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-machine-more-actions > summary span {
  width:17px !important;
  height:17px !important;
  border-radius:5px !important;
  background:#203e5d !important;
  font-size:10px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-machine-more-actions-grid {
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:4px !important;
  padding:0 6px 6px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-machine-more-actions-grid a,
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-machine-more-actions-grid button {
  min-height:30px !important;
  padding:5px !important;
  border-color:#29445e !important;
  color:#dfeaf5 !important;
  background:#102137 !important;
  font-size:6.8px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-customer-machine-management {
  margin-top:7px !important;
  padding-top:7px !important;
  border-top:1px solid #1d3145 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-customer-machine-management-buttons {
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:4px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-customer-machine-management-buttons button {
  min-height:34px !important;
  padding:5px 2px !important;
  border-radius:8px !important;
  color:#dbe8f5 !important;
  background:#13253a !important;
  font-size:6.6px !important;
  font-weight:900 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-customer-machine-management-buttons .add {
  border-color:#4c8b61 !important; color:#7be690 !important; background:rgba(20,83,45,.26) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-customer-machine-management-buttons .edit {
  border-color:#517aa4 !important; color:#cfe5ff !important; background:#13253a !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-customer-machine-management-buttons .delete,
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-customer-machine-management-buttons .forget {
  border-color:#d74646 !important; color:#ff6b6b !important; background:rgba(92,24,30,.32) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-customer-machine-management > small {
  margin-top:3px !important;
  color:#e7b84c !important;
  font-size:6.4px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-spare-recommendation-panel {
  max-height:42px !important;
  margin-top:6px !important;
  padding:5px 7px !important;
  overflow:auto !important;
  border:1px dashed #36506a !important;
  border-radius:8px !important;
  color:#dce7f2 !important;
  background:rgba(12,27,44,.72) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-spare-recommendation-head {
  margin:0 0 3px !important;
  color:#a8b9cb !important;
  font-size:6.3px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-spare-recommendation-item {
  padding:2px 0 !important;
  color:#e8f1f9 !important;
  font-size:6.6px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-spare-recommendation-item button {
  padding:4px 6px !important;
  font-size:6.2px !important;
}

@media (max-width:620px) {
  body[data-belm-area="portal"] .belm-customer-machine-grid { grid-template-columns:minmax(0,1fr) !important; }
  body[data-belm-area="portal"] .belm-customer-machine-card-v409 {
    width:100% !important;
    height:590px !important;
    min-height:590px !important;
  }
  body[data-belm-area="portal"] .belm-customer-machine-card-v409 > .belm-machine-native-head {
    min-height:77px !important;
    padding:17px 112px 12px 15px !important;
  }
  body[data-belm-area="portal"] .belm-customer-machine-card-v409 > .belm-machine-native-head .belm-customer-fleet-number {
    top:16px !important;
    right:15px !important;
    left:auto !important;
  }
  body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-machine-state-row { display:block !important; }
  body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-machine-more-actions-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
}

/* V409 compact card: More actions opens as an overlay instead of increasing card height. */
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-machine-more-actions {
  position: relative !important;
  overflow: visible !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-machine-more-actions:not([open]) .belm-machine-more-actions-grid {
  display: none !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v409 .belm-machine-more-actions[open] .belm-machine-more-actions-grid {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: calc(100% + 5px) !important;
  z-index: 30 !important;
  padding: 7px !important;
  border: 1px solid #35536f !important;
  border-radius: 9px !important;
  background: #0a1726 !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.42) !important;
}

/* ========================================================================
   V417 - Customer Dashboard > View Customer Machine: wide overview layout.
   Uses the same centered 720px visual footprint as the BELM Customer Overview
   instead of the old fixed 390 x 590 compact tile. Machine-specific actions,
   service status and ownership controls are unchanged; only presentation is
   expanded for readability and PC/tablet use.
   ======================================================================== */
body[data-belm-area="portal"] .belm-customer-machine-grid {
  grid-template-columns: minmax(0, 720px) !important;
  justify-content: center !important;
  gap: 22px !important;
}
body[data-belm-area="portal"] .belm-dashboard-layout > .belm-customer-machine-grid {
  flex: 1 1 720px !important;
  min-width: min(100%, 620px) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417 {
  position: relative !important;
  width: min(720px, 100%) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  max-width: 720px !important;
  padding: 28px 30px 24px !important;
  gap: 0 !important;
  overflow: visible !important;
  border-width: 1px !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg,#10233a 0%,#0b1a2d 48%,#091725 100%) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.34), inset 0 0 0 1px rgba(99,168,233,.04) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: 0 0 auto !important;
  z-index: 4 !important;
  height: 7px !important;
  border-radius: 22px 22px 0 0 !important;
  background: #708195 !important;
  box-shadow: 0 0 18px rgba(112,129,149,.42) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417.belm-range-green::before,
body[data-belm-area="portal"] .belm-customer-machine-card-v417.status-green::before { background:#5cd85e !important; box-shadow:0 0 18px rgba(66,220,101,.58) !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v417.belm-range-yellow::before,
body[data-belm-area="portal"] .belm-customer-machine-card-v417.status-yellow::before { background:#ffc928 !important; box-shadow:0 0 18px rgba(255,201,40,.52) !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v417.belm-range-red::before,
body[data-belm-area="portal"] .belm-customer-machine-card-v417.status-red::before { background:#ef5350 !important; box-shadow:0 0 18px rgba(239,83,80,.54) !important; }

body[data-belm-area="portal"] .belm-customer-machine-card-v417 > .belm-machine-native-head {
  min-height: 112px !important;
  margin: -28px -30px 0 !important;
  padding: 34px 170px 20px 30px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417 > .belm-machine-native-head > div:first-child > div:first-child,
body[data-belm-area="portal"] .belm-customer-machine-card-v417 > .belm-machine-native-head .font-medium {
  font-size: clamp(24px,3.2vw,32px) !important;
  line-height: 1.05 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417 > .belm-machine-native-head .text-slate-500,
body[data-belm-area="portal"] .belm-customer-machine-card-v417 > .belm-machine-native-head .text-xs {
  margin-top: 7px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417 > .belm-machine-native-head .belm-customer-fleet-number {
  top: 31px !important;
  right: 30px !important;
  width: 126px !important;
  min-width: 126px !important;
  max-width: 126px !important;
  min-height: 66px !important;
  padding: 10px 13px !important;
  border-radius: 13px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417 > .belm-machine-native-head .belm-customer-fleet-number small { font-size: 9px !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v417 > .belm-machine-native-head .belm-customer-fleet-number b { margin-top:4px !important; font-size:14px !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v417 > .belm-machine-last-checked {
  min-height: 34px !important;
  margin: 0 0 12px !important;
  padding: 8px 12px !important;
  border-radius: 9px !important;
  font-size: 10.5px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-technician-machine-info { gap: 10px !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-technician-machine-health > div:first-child {
  padding: 7px 11px !important;
  border-radius: 9px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-technician-machine-health > div:first-child strong { font-size: 10.5px !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-customer-machine-alert-copy {
  min-height: 94px !important;
  max-height: none !important;
  padding: 16px 18px !important;
  gap: 8px !important;
  border-radius: 14px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-customer-machine-alert-copy strong { font-size: 14px !important; line-height: 1.35 !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-customer-machine-alert-copy span { font-size: 11px !important; line-height: 1.35 !important; }

body[data-belm-area="portal"] .belm-customer-machine-card-v417 > .belm-service-due-panel { margin-top: 14px !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-service-due-head-v210 {
  min-height: 58px !important;
  padding: 11px 15px !important;
  border-radius: 12px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-service-due-head-v210 > div b { font-size: 14px !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-service-due-head-v210 > strong { font-size: 11px !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-machine-quick-actions {
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 10px !important;
  margin-top: 14px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-machine-quick-actions > a,
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-machine-quick-actions > button {
  min-height: 66px !important;
  padding: 9px 7px !important;
  gap: 5px !important;
  border-radius: 12px !important;
  font-size: 10.5px !important;
  line-height: 1.15 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-machine-quick-actions [data-ui-icon]::before {
  width: 24px !important; height: 24px !important; flex-basis:24px !important; font-size:9px !important; border-radius:7px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-customer-activity-selector {
  grid-template-columns: 145px minmax(0,1fr) !important;
  min-height: 66px !important;
  margin-top: 12px !important;
  padding: 10px 12px !important;
  gap: 12px !important;
  border-radius: 12px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-customer-activity-selector span { font-size: 10px !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-customer-activity-selector select {
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 34px 0 13px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-machine-more-actions { margin-top: 10px !important; border-radius: 10px !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-machine-more-actions > summary { min-height: 34px !important; padding: 7px 11px !important; font-size: 9px !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-customer-machine-management {
  margin-top: 12px !important;
  padding-top: 12px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-customer-machine-management-buttons { gap: 8px !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-customer-machine-management-buttons button {
  min-height: 46px !important;
  padding: 8px 6px !important;
  border-radius: 10px !important;
  font-size: 9px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-customer-machine-management > small { margin-top:6px !important; font-size:8px !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-spare-recommendation-panel {
  max-height: none !important;
  margin-top: 10px !important;
  padding: 9px 11px !important;
  border-radius: 10px !important;
}

@media (max-width: 760px) {
  body[data-belm-area="portal"] .belm-customer-machine-grid { grid-template-columns:minmax(0,1fr) !important; justify-content:stretch !important; }
  body[data-belm-area="portal"] .belm-customer-machine-card-v417 {
    width:100% !important; max-width:none !important; padding:22px 16px 18px !important; border-radius:17px !important;
  }
  body[data-belm-area="portal"] .belm-customer-machine-card-v417 > .belm-machine-native-head {
    min-height:104px !important; margin:-22px -16px 0 !important; padding:30px 126px 16px 16px !important;
  }
  body[data-belm-area="portal"] .belm-customer-machine-card-v417 > .belm-machine-native-head > div:first-child > div:first-child,
  body[data-belm-area="portal"] .belm-customer-machine-card-v417 > .belm-machine-native-head .font-medium { font-size:22px !important; }
  body[data-belm-area="portal"] .belm-customer-machine-card-v417 > .belm-machine-native-head .belm-customer-fleet-number {
    top:26px !important; right:16px !important; width:104px !important; min-width:104px !important; max-width:104px !important; min-height:58px !important;
  }
  body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-machine-quick-actions { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-customer-machine-management-buttons { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 430px) {
  body[data-belm-area="portal"] .belm-customer-machine-card-v417 > .belm-machine-native-head { padding-right:16px !important; padding-top:92px !important; }
  body[data-belm-area="portal"] .belm-customer-machine-card-v417 > .belm-machine-native-head .belm-customer-fleet-number { top:24px !important; left:16px !important; right:auto !important; }
  body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-customer-activity-selector { grid-template-columns:1fr !important; }
}


/* V418 - Technician General Report Center: every assigned-customer machine
   report category is visible from the yellow General Report entry, with a
   server-generated PDF download per category. */
body[data-belm-area="tech"] .belm-tech-general-report-dialog {
  width:min(980px,calc(100vw - 22px)); max-height:92vh;
}
body[data-belm-area="tech"] .belm-tech-general-toolbar {
  display:grid; grid-template-columns:repeat(2,minmax(130px,1fr)) auto auto; gap:8px;
  padding:12px 16px; border-bottom:1px solid #284158; background:#0d2034;
}
body[data-belm-area="tech"] .belm-tech-general-toolbar label { display:grid; gap:4px; }
body[data-belm-area="tech"] .belm-tech-general-toolbar label span { color:#8fa8c1; font:800 9px/1 Inter,system-ui,sans-serif; text-transform:uppercase; letter-spacing:.08em; }
body[data-belm-area="tech"] .belm-tech-general-toolbar input,
body[data-belm-area="tech"] .belm-tech-general-toolbar button {
  min-height:38px; border:1px solid #365875; border-radius:9px; padding:8px 10px; color:#fff; background:#10263d; font-weight:800;
}
body[data-belm-area="tech"] .belm-tech-general-toolbar button { cursor:pointer; background:#176bb4; }
body[data-belm-area="tech"] .belm-tech-general-toolbar [data-tech-general-all] { background:#162536; }
body[data-belm-area="tech"] .belm-tech-general-body { max-height:73vh; gap:14px; }
body[data-belm-area="tech"] .belm-tech-general-loading,
body[data-belm-area="tech"] .belm-tech-general-empty { padding:24px 16px; border:1px dashed rgba(139,177,235,.3); border-radius:12px; color:#9fb3c8; text-align:center; font-weight:800; }
body[data-belm-area="tech"] .belm-tech-general-overview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
body[data-belm-area="tech"] .belm-tech-general-overview > div { padding:11px 12px; border:1px solid rgba(124,164,205,.25); border-radius:11px; background:#0e2134; }
body[data-belm-area="tech"] .belm-tech-general-overview span { display:block; color:#8fa8c1; font-size:9px; font-weight:900; text-transform:uppercase; }
body[data-belm-area="tech"] .belm-tech-general-overview b { display:block; margin-top:4px; color:#fff; font-size:14px; overflow-wrap:anywhere; }
body[data-belm-area="tech"] .belm-tech-general-category-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
body[data-belm-area="tech"] .belm-tech-general-category {
  min-width:0; padding:13px; border:1px solid #334c67; border-radius:13px; background:#0e1d2e; display:grid; gap:11px; cursor:pointer;
}
body[data-belm-area="tech"] .belm-tech-general-category.active { box-shadow:0 0 0 2px rgba(69,162,255,.28) inset; }
body[data-belm-area="tech"] .belm-tech-general-category.tone-blue { border-left:4px solid #39a7ff; }
body[data-belm-area="tech"] .belm-tech-general-category.tone-yellow { border-left:4px solid #ffc21c; }
body[data-belm-area="tech"] .belm-tech-general-category.tone-green { border-left:4px solid #41d36e; }
body[data-belm-area="tech"] .belm-tech-general-category.tone-purple { border-left:4px solid #a480ff; }
body[data-belm-area="tech"] .belm-tech-general-category > div:first-child { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 10px; align-items:start; }
body[data-belm-area="tech"] .belm-tech-general-category span { color:#edf6ff; font-size:13px; font-weight:900; }
body[data-belm-area="tech"] .belm-tech-general-category b { color:#fff; font-size:24px; line-height:1; }
body[data-belm-area="tech"] .belm-tech-general-category small { grid-column:1/-1; color:#8fa8c1; font-size:10px; line-height:1.35; }
body[data-belm-area="tech"] .belm-tech-general-category-actions { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
body[data-belm-area="tech"] .belm-tech-general-category-actions button,
body[data-belm-area="tech"] .belm-tech-general-row-pdf {
  min-height:34px; border:1px solid #3b678c; border-radius:8px; background:#123253; color:#fff; font-size:10px; font-weight:900; cursor:pointer;
}
body[data-belm-area="tech"] .belm-tech-general-category-actions button:last-child,
body[data-belm-area="tech"] .belm-tech-general-row-pdf { background:#14763a; border-color:#279652; }
body[data-belm-area="tech"] .belm-tech-general-section { padding:13px; border:1px solid #304a65; border-radius:14px; background:#091827; }
body[data-belm-area="tech"] .belm-tech-general-section-head { display:flex; align-items:end; justify-content:space-between; gap:12px; padding-bottom:10px; border-bottom:1px solid #273e55; }
body[data-belm-area="tech"] .belm-tech-general-section-head span { color:#7f9bb5; font-size:9px; font-weight:900; text-transform:uppercase; }
body[data-belm-area="tech"] .belm-tech-general-section-head h3 { margin:3px 0 0; color:#fff; font-size:18px; }
body[data-belm-area="tech"] .belm-tech-general-section-head > strong { color:#9cb5ca; font-size:10px; }
body[data-belm-area="tech"] .belm-tech-general-list { display:grid; gap:7px; margin-top:10px; }
body[data-belm-area="tech"] .belm-tech-general-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:9px; align-items:center; padding:10px; border:1px solid rgba(93,132,168,.28); border-radius:10px; background:#0d2032; }
body[data-belm-area="tech"] .belm-tech-general-row-main { min-width:0; display:grid; gap:3px; }
body[data-belm-area="tech"] .belm-tech-general-row-main strong { color:#fff; font-size:12px; overflow-wrap:anywhere; }
body[data-belm-area="tech"] .belm-tech-general-row-main span { color:#c8d8e7; font-size:11px; }
body[data-belm-area="tech"] .belm-tech-general-row-main small { color:#7f9ab4; font-size:9.5px; line-height:1.35; }
body[data-belm-area="tech"] .belm-tech-general-row-main p { margin:2px 0; color:#aebfd0; font-size:10.5px; line-height:1.4; overflow-wrap:anywhere; }
body[data-belm-area="tech"] .belm-tech-general-status { min-width:72px; padding:6px 8px; border:1px solid #45617b; border-radius:999px; color:#d7e8f7; background:#17283a; text-align:center; font-size:9px; font-weight:900; }
body[data-belm-area="tech"] .belm-tech-general-status.status-green { color:#8cff9d; border-color:#298144; background:#0c351e; }
body[data-belm-area="tech"] .belm-tech-general-status.status-yellow { color:#ffda58; border-color:#87670a; background:#3a2e09; }
body[data-belm-area="tech"] .belm-tech-general-status.status-red { color:#ff8d8d; border-color:#8c3434; background:#3c1515; }
body[data-belm-area="tech"] .belm-tech-general-status.status-blue { color:#8dccff; border-color:#28689a; background:#0d3150; }
body[data-belm-area="tech"] .belm-tech-general-row-pdf { min-width:62px; padding:6px 10px; }
body[data-belm-area="tech"] .belm-tech-general-subtitle { margin:14px 0 6px; color:#dceafb; font-size:12px; text-transform:uppercase; letter-spacing:.04em; }
body[data-belm-area="tech"] .belm-tech-maintenance-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:10px; }
body[data-belm-area="tech"] .belm-tech-maintenance-machine { padding:10px; border:1px solid rgba(80,150,110,.32); border-radius:10px; background:#0d221b; display:grid; gap:4px; }
body[data-belm-area="tech"] .belm-tech-maintenance-machine > strong { color:#fff; font-size:11px; }
body[data-belm-area="tech"] .belm-tech-maintenance-machine > span { color:#a7c9b3; font-size:10px; }
body[data-belm-area="tech"] .belm-tech-maintenance-machine > div { display:flex; align-items:center; justify-content:space-between; gap:8px; }
body[data-belm-area="tech"] .belm-tech-maintenance-machine b { font-size:10px; }
body[data-belm-area="tech"] .belm-tech-maintenance-machine .level-green { color:#61e883; }
body[data-belm-area="tech"] .belm-tech-maintenance-machine .level-yellow { color:#ffd33f; }
body[data-belm-area="tech"] .belm-tech-maintenance-machine .level-red { color:#ff7474; }
body[data-belm-area="tech"] .belm-tech-maintenance-machine small { color:#77968a; font-size:9px; line-height:1.35; }
@media (max-width:720px){
  body[data-belm-area="tech"] .belm-tech-general-report-dialog { width:calc(100vw - 10px); max-height:94vh; }
  body[data-belm-area="tech"] .belm-tech-general-toolbar { grid-template-columns:1fr 1fr; padding:10px; }
  body[data-belm-area="tech"] .belm-tech-general-overview { grid-template-columns:1fr 1fr; }
  body[data-belm-area="tech"] .belm-tech-general-category-grid { grid-template-columns:1fr; }
  body[data-belm-area="tech"] .belm-tech-general-row { grid-template-columns:minmax(0,1fr) auto; }
  body[data-belm-area="tech"] .belm-tech-general-row-pdf { grid-column:1/-1; width:100%; }
  body[data-belm-area="tech"] .belm-tech-maintenance-summary { grid-template-columns:1fr; }
}


/* V419 - Machine Report Center lives behind each machine Report button. */
.belm-machine-report-center-card { width: min(980px, calc(100vw - 24px)); }
.belm-machine-report-center-tabs button { min-width: 150px; }
.belm-operator-reported-row small { max-width: 640px; line-height: 1.45; }
@media (max-width: 720px) {
  .belm-machine-report-center-tabs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .belm-machine-report-center-tabs button { min-width: 0; }
}

/* ========================================================================
   V421 - Restore preferred machine-card control order.
   Message/condition content stays above; Activity Status sits immediately
   above the four primary machine actions. Keep the four primary actions in
   one row on phone and desktop instead of the V417 mobile 2 x 2 layout.
   ======================================================================== */
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-customer-activity-selector {
  order: 20 !important;
  margin-top: 16px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-machine-quick-actions {
  order: 21 !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 8px !important;
  margin-top: 10px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-machine-quick-actions > a,
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-machine-quick-actions > button {
  min-width: 0 !important;
  min-height: 62px !important;
  padding: 8px 4px !important;
  font-size: 9.5px !important;
  line-height: 1.15 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-machine-more-actions {
  order: 22 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-customer-machine-management {
  order: 23 !important;
}
@media (max-width:760px) {
  body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-machine-quick-actions {
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
    gap: 6px !important;
  }
  body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-machine-quick-actions > a,
  body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-machine-quick-actions > button {
    min-height: 58px !important;
    padding: 7px 2px !important;
    font-size: 8.4px !important;
  }
  body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-machine-quick-actions [data-ui-icon]::before {
    width: 21px !important;
    height: 21px !important;
    flex-basis: 21px !important;
  }
  body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-customer-machine-management-buttons {
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
    gap: 6px !important;
  }
  body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-customer-machine-management-buttons button {
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 7px 2px !important;
    font-size: 7.6px !important;
  }
}
@media (max-width:430px) {
  body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-customer-activity-selector {
    grid-template-columns: 105px minmax(0,1fr) !important;
    gap: 8px !important;
  }
  body[data-belm-area="portal"] .belm-customer-machine-card-v417 .belm-customer-activity-selector select {
    min-width: 0 !important;
    width: 100% !important;
  }
}


/* ========================================================================
   V422 - Customer Machine Card mirrors the approved BELM Customer Fleet card.
   Keep the existing V421 footprint, but use the same visual hierarchy:
   identity -> condition badge -> Operator Message/condition -> service strip
   -> Activity Status -> flexible breathing room -> 4 core actions ->
   Edit/Delete/Forget at the bottom. Customer-only; BELM Admin is untouched.
   ======================================================================== */
body[data-belm-area="portal"] .belm-customer-machine-card-v422 {
  min-height: 910px !important;
  display: flex !important;
  flex-direction: column !important;
  border-width: 2px !important;
  overflow: hidden !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422.belm-range-green,
body[data-belm-area="portal"] .belm-customer-machine-card-v422.status-green {
  border-color: #4fd86b !important;
  background: linear-gradient(180deg,#113229 0%,#10262c 48%,#0b1b2b 100%) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422.belm-range-yellow,
body[data-belm-area="portal"] .belm-customer-machine-card-v422.status-yellow {
  border-color: #ffc928 !important;
  background: linear-gradient(180deg,#362e15 0%,#24251e 48%,#101b2a 100%) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422.belm-range-red,
body[data-belm-area="portal"] .belm-customer-machine-card-v422.status-red {
  border-color: #ef5350 !important;
  background: linear-gradient(180deg,#342126 0%,#25202a 48%,#101b2a 100%) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422::before {
  display: none !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 > .belm-machine-native-head {
  min-height: 134px !important;
  padding-top: 36px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 > .belm-machine-last-checked {
  display: none !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-machine-info-v422 {
  display: grid !important;
  gap: 14px !important;
  margin-top: 4px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-condition-badge-v422 {
  justify-self: start !important;
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 8px 15px !important;
  border: 1px solid #3f5b78 !important;
  border-radius: 11px !important;
  background: #0b192b !important;
  color: #eaf3ff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-condition-badge-v422.status-green { border-color:#2c7e45 !important; color:#8cf49d !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-condition-badge-v422.status-yellow { border-color:#8d710b !important; color:#ffd64a !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-condition-badge-v422.status-red { border-color:#913939 !important; color:#ff8c8c !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-machine-alert-v422 {
  min-height: 184px !important;
  display: grid !important;
  gap: 14px !important;
  padding: 16px !important;
  border: 1px solid rgba(111,158,198,.55) !important;
  border-radius: 16px !important;
  background: rgba(5,18,31,.58) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-operator-message-v422 {
  min-height: 92px !important;
  display: grid !important;
  align-content: start !important;
  gap: 5px !important;
  padding: 13px 15px !important;
  border: 1px solid #2b5778 !important;
  border-radius: 12px !important;
  background: #0c2133 !important;
  overflow: hidden !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-operator-message-v422.is-open {
  border-color: #d49a28 !important;
  background: linear-gradient(180deg,rgba(95,65,11,.38),#0c2133 92%) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-operator-message-v422 > span {
  color: #45dc6a !important;
  font-size: 9px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-operator-message-v422 > strong {
  color: #f5f9ff !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  overflow-wrap: anywhere !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-operator-message-v422 > small {
  color: #8fa6bd !important;
  font-size: 9px !important;
  line-height: 1.35 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-condition-copy-v422 {
  display: grid !important;
  gap: 6px !important;
  padding: 0 2px 1px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-condition-copy-v422 > strong {
  color: #68e87a !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422.status-yellow .belm-customer-condition-copy-v422 > strong { color:#ffd54a !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v422.status-red .belm-customer-condition-copy-v422 > strong { color:#ff7777 !important; }
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-condition-copy-v422 > span {
  color: #d2deeb !important;
  font-size: 10.5px !important;
  line-height: 1.4 !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 > .belm-service-due-panel {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  margin-top: 14px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-service-due-grid-v210 {
  display: none !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-service-due-head-v210 {
  min-height: 72px !important;
  border-radius: 13px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-activity-selector {
  order: 10 !important;
  margin-top: 16px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-machine-quick-actions {
  order: 20 !important;
  margin-top: auto !important;
  padding-top: 190px !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 10px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-machine-more-actions {
  display: none !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-machine-management {
  order: 30 !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(83,116,145,.32) !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-machine-management-buttons {
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 10px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-machine-management-buttons button {
  min-height: 54px !important;
  font-size: 9.5px !important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-spare-recommendation-panel {
  order: 15 !important;
}
@media (max-width:760px) {
  body[data-belm-area="portal"] .belm-customer-machine-card-v422 {
    min-height: 850px !important;
  }
  body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-machine-quick-actions {
    padding-top: 120px !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    gap: 6px !important;
  }
  body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-machine-management-buttons {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    gap: 6px !important;
  }
}
@media (max-width:430px) {
  body[data-belm-area="portal"] .belm-customer-machine-card-v422 {
    min-height: 820px !important;
  }
  body[data-belm-area="portal"] .belm-customer-machine-card-v422 > .belm-machine-native-head {
    padding-top: 86px !important;
  }
  body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-machine-quick-actions {
    padding-top: 92px !important;
  }
}

/* V429 - Customer Check Up is a live Checklist Template sync. */
.belm-checkup-sync-banner {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin:0 0 12px; padding:11px 13px; border:1px solid rgba(34,197,94,.45);
  border-radius:12px; background:rgba(22,163,74,.08);
}
.belm-checkup-sync-banner span, .belm-checkup-template-fixed span { display:block; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; opacity:.72; }
.belm-checkup-sync-banner strong, .belm-checkup-template-fixed strong { display:block; margin-top:3px; }
.belm-checkup-sync-banner > b { color:#16a34a; font-size:11px; letter-spacing:.06em; }
.belm-checkup-template-fixed { width:100%; padding:10px 12px; border:1px solid var(--belm-line, rgba(100,116,139,.25)); border-radius:10px; }
.belm-checkup-template-fixed small { display:block; margin-top:4px; opacity:.7; }
.belm-customer-checkup-toolbar.is-single-template { display:block; }
.belm-checkup-sync-missing strong { color:#dc2626; }


/* V486 - customer company face + Report Record */
.belm-customer-face-provider-note{display:block;margin-top:4px;font-size:10px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:var(--muted,#718096);text-align:right}
.belm-report-record-toolbar{display:flex;justify-content:flex-end;gap:10px;margin:10px 0 14px}
.belm-report-record-toolbar button{min-width:190px;padding:11px 18px;border:0;border-radius:10px;font-weight:800;cursor:pointer}
.belm-report-record-row p{margin:7px 0 0;line-height:1.45;white-space:pre-wrap}
.belm-report-record-row em{display:block;margin-top:6px;font-style:normal;font-size:11px;font-weight:800;color:#16794d}


/* ========================================================================
   V512 - PORTAL-CWM machine-card parity with BELM Customer Overview.
   Same card footprint, hierarchy and four primary actions. Customer-only
   restrictions remain enforced by the existing API/role logic.
   ======================================================================== */
body[data-belm-area="portal"] .belm-customer-machine-grid{
  grid-template-columns:repeat(auto-fit,minmax(min(640px,100%),1fr))!important;
  justify-items:center!important;
  justify-content:stretch!important;
  gap:clamp(16px,1.8vw,26px)!important;
  width:100%!important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422{
  container-type:inline-size;
  width:100%!important;
  max-width:760px!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  padding:clamp(18px,2.2vw,28px)!important;
  border-radius:20px!important;
  overflow:visible!important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422>.belm-machine-native-head{
  min-height:118px!important;
  padding-top:22px!important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-machine-alert-v422{
  min-height:0!important;
  padding:14px!important;
  gap:12px!important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-operator-message-v422{
  min-height:112px!important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422>.belm-service-due-panel{
  flex:0 0 auto!important;
  margin-top:12px!important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-activity-selector{
  margin-top:14px!important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-machine-quick-actions-parity{
  order:20!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
  margin-top:12px!important;
  padding-top:0!important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-machine-quick-actions-parity>a,
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-machine-quick-actions-parity>button{
  min-height:56px!important;
  padding:9px 6px!important;
  border-radius:10px!important;
  font-size:9px!important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-locked-action{
  opacity:.48!important;
  cursor:not-allowed!important;
  filter:grayscale(.45)!important;
}
body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-customer-machine-management{
  margin-top:12px!important;
}
@media(max-width:620px){
  body[data-belm-area="portal"] .belm-customer-machine-card-v422{padding:18px 14px!important}
  body[data-belm-area="portal"] .belm-customer-machine-card-v422>.belm-machine-native-head{padding-top:62px!important}
  body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-machine-quick-actions-parity{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-machine-quick-actions-parity>a,
  body[data-belm-area="portal"] .belm-customer-machine-card-v422 .belm-machine-quick-actions-parity>button{min-height:52px!important;font-size:9px!important}
}
