/* RMS front-door action row — New Opportunity · Service Call · New Issue · Action Queue */
.rms-action-row {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 26px;
  background: #202020;
  border-bottom: 3px solid transparent;
  background-image: linear-gradient(#202020, #202020), linear-gradient(90deg, #E92A2C, #A71F23);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.rms-action-row-inner {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}
.rms-action-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 13px 20px;
  min-width: 160px;
  flex: 1 1 160px;
  max-width: 300px;
  color: #E6E6E6;
  text-decoration: none;
  border: none;
  /* Horizontal gradient per button — matches the lower Work Queue banner
     (--ws-banner-grad-black: #525252 -> #000000), rotated to 90deg. */
  background: linear-gradient(90deg, #525252 0%, #000000 100%);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  border-right: 1px solid rgba(230, 230, 230, 0.14);
  transition: background 0.12s ease, color 0.12s ease;
  appearance: none;
  -webkit-appearance: none;
}
.rms-action-item:last-child { border-right: none; }
.rms-action-item:hover,
.rms-action-item:focus-visible {
  background: linear-gradient(90deg, #6a6a6a 0%, #1a1a1a 100%);
  color: #fff;
  outline: none;
}
.rms-action-item.is-active {
  /* Selected button = red horizontal gradient, matching the lower banner's
     red primary (+ New Issue) button. */
  background: linear-gradient(90deg, #E92A2C 0%, #A71F23 100%);
  box-shadow: inset 0 -3px 0 #7d1619;
  color: #fff;
}
.rms-action-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #BFBFBF;
  line-height: 1.2;
}
.rms-action-item.is-active .rms-action-kicker { color: #ffd9d9; }
.rms-action-title {
  font-family: "neue-haas-grotesk-display", "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.15;
}
.rms-action-tail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 8px 0 8px 12px;
  flex-shrink: 0;
}
.rms-action-queue {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #BFBFBF;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid rgba(230, 230, 230, 0.22);
  border-radius: 2px;
  white-space: nowrap;
}
.rms-action-queue:hover {
  color: #fff;
  border-color: #E92A2C;
  background: rgba(233, 42, 44, 0.12);
}
.rms-action-row[hidden] { display: none !important; }
.cm-card .rms-action-row {
  padding: 0;
  border-bottom: none;
  background-image: linear-gradient(#202020, #202020), linear-gradient(90deg, #E92A2C, #A71F23);
}
.cm-action-block .rms-action-row {
  padding: 0;
  border-bottom: none;
  background-image: linear-gradient(#202020, #202020), linear-gradient(90deg, #E92A2C, #A71F23);
}
.cm-card .rms-action-row-inner { flex: 1 1 auto; }
.cm-action-block .rms-action-row-inner { flex: 1 1 auto; }
@media (max-width: 720px) {
  .rms-action-row { padding: 0 14px; }
  .rms-action-item { max-width: none; flex: 1 1 45%; padding: 12px 14px; }
  .rms-action-tail {
    width: 100%;
    margin-left: 0;
    padding: 0 0 10px;
    justify-content: flex-end;
  }
}
