/* Simulador interativo — obra → RDO completo → medição */

.rdo-sim-section {
  width: 100%;
  max-width: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(11, 139, 126, 0.12), transparent 55%),
    linear-gradient(180deg, #0b0d10 0%, #12161d 100%);
  color: #f4f1ea;
  padding-top: 4rem;
  padding-bottom: 4rem;
  padding-left: 0;
  padding-right: 0;
}

.rdo-sim-section__inner {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding-left: clamp(0.75rem, 2vw, 1.5rem);
  padding-right: clamp(0.75rem, 2vw, 1.5rem);
  box-sizing: border-box;
  overflow-x: clip;
}

.rdo-sim-section .section-title {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: center;
}

.rdo-sim-section .section-title h2 {
  color: #fff;
}

.rdo-sim-section .section-title p {
  color: rgba(244, 241, 234, 0.72);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.rdo-sim {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}

.rdo-sim__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  padding: 0;
  margin: 0 0 1.25rem;
  max-width: 100%;
  min-width: 0;
}

.rdo-sim__step {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  padding: 0.7rem 0.85rem;
  color: rgba(244, 241, 234, 0.55);
  transition: 0.2s ease;
}

.rdo-sim__step.is-active {
  border-color: rgba(245, 185, 66, 0.45);
  background: rgba(245, 185, 66, 0.1);
  color: #fff;
}

.rdo-sim__step.is-done {
  border-color: rgba(11, 139, 126, 0.45);
  color: #9fe8df;
}

.rdo-sim__step-num {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.rdo-sim__step.is-active .rdo-sim__step-num {
  background: #f5b942;
  color: #111;
}

.rdo-sim__step.is-done .rdo-sim__step-num {
  background: #0b8b7e;
  color: #fff;
}

.rdo-sim__step-label {
  font-size: 0.88rem;
  font-weight: 600;
}

.rdo-sim__shell {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #14181f;
  border: 1px solid rgba(245, 185, 66, 0.22);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  min-height: 560px;
}

.rdo-sim__rail {
  background: #0b8b7e;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 0;
}

.rdo-sim__rail-dot {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.22);
}

.rdo-sim__rail-dot.is-on {
  background: #fff;
}

.rdo-sim__panel {
  padding: 1.25rem 1.5rem 1.5rem;
  background: #f7f8fa;
  color: #1a1f27;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rdo-sim__topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.rdo-sim__topbar strong {
  display: block;
  font-size: 1.2rem;
  color: #0f141b;
}

.rdo-sim__topbar small {
  color: #5b6572;
}

.rdo-sim__status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #e8edf2;
  color: #425061;
  white-space: nowrap;
}

.rdo-sim__status[data-tone="ok"] {
  background: #d8f5ef;
  color: #0b8b7e;
}

.rdo-sim__status[data-tone="warn"] {
  background: #fff1d6;
  color: #a66b00;
}

.rdo-sim__form,
.rdo-sim__pane.is-active,
.rdo-sim__tab-pane.is-active {
  animation: rdoSimIn 0.28s ease;
}

@keyframes rdoSimIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rdo-sim__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.rdo-sim__grid--2 {
  margin-bottom: 1rem;
}

.rdo-sim__grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0.75rem;
}

.rdo-sim__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #425061;
}

.rdo-sim__field input,
.rdo-sim__field select,
.rdo-sim__add-row select,
.rdo-sim__add-row input,
.rdo-sim__pct input,
.rdo-sim__mini-add select,
.rdo-sim__mini-add input,
.rdo-sim__table input[type="time"] {
  width: 100%;
}

.rdo-sim__field input,
.rdo-sim__field select,
.rdo-sim__add-row select,
.rdo-sim__add-row input,
.rdo-sim__pct input,
.rdo-sim__mini-add select,
.rdo-sim__mini-add input,
.rdo-sim__table input[type="time"] {
  border: 1px solid #d5dbe3;
  border-radius: 0.65rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #1a1f27;
  background: #fff;
}

.rdo-sim__field input:focus,
.rdo-sim__field select:focus,
.rdo-sim__add-row select:focus,
.rdo-sim__add-row input:focus,
.rdo-sim__pct input:focus,
.rdo-sim__mini-add select:focus,
.rdo-sim__mini-add input:focus,
.rdo-sim__table input[type="time"]:focus {
  outline: 2px solid rgba(11, 139, 126, 0.35);
  border-color: #0b8b7e;
}

.rdo-sim__time-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.4rem;
  align-items: center;
}

.rdo-sim__time-pair span {
  font-size: 0.75rem;
  color: #7a8694;
}

.rdo-sim__turno-total {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.65rem;
  background: #e7f7f4;
  color: #0b8b7e;
  font-size: 1.05rem;
}

.rdo-sim__hint {
  margin: 0;
  font-size: 0.85rem;
  color: #7a8694;
}

.rdo-sim__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.35rem;
  background: #eef2f6;
  border-radius: 0.85rem;
}

.rdo-sim__tab {
  border: none;
  background: transparent;
  color: #5b6572;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.65rem;
}

.rdo-sim__tab.is-active {
  background: #fff;
  color: #0b8b7e;
  box-shadow: 0 2px 8px rgba(15, 20, 27, 0.08);
}

.rdo-sim__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1.15rem;
}

.rdo-sim__actions--center {
  justify-content: center;
}

.rdo-sim__error {
  margin: 0.85rem 0 0;
  color: #c0392b;
  font-size: 0.88rem;
  font-weight: 600;
}

.rdo-sim__summary,
.rdo-sim__kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.rdo-sim__summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rdo-sim__summary > div,
.rdo-sim__kpi > div,
.rdo-sim__done-card {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 0.75rem;
  padding: 0.7rem 0.8rem;
}

.rdo-sim__summary small,
.rdo-sim__kpi small,
.rdo-sim__done-card small {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a8694;
  margin-bottom: 0.15rem;
}

.rdo-sim__summary strong,
.rdo-sim__kpi strong,
.rdo-sim__done-card strong {
  display: block;
  font-size: 0.95rem;
  color: #0f141b;
  line-height: 1.25;
}

.rdo-sim__block {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 0.85rem;
  padding: 0.95rem;
  margin-bottom: 0.85rem;
}

.rdo-sim__block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.rdo-sim__block-head h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #0f141b;
}

.rdo-sim__block-head small {
  color: #7a8694;
  font-size: 0.8rem;
}

.rdo-sim__table-wrap {
  overflow-x: auto;
}

.rdo-sim__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.rdo-sim__table th,
.rdo-sim__table td {
  padding: 0.65rem 0.45rem;
  border-bottom: 1px solid #e8edf2;
  vertical-align: middle;
}

.rdo-sim__table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a8694;
}

.rdo-sim__table--mo td strong {
  display: block;
  font-size: 0.9rem;
}

.rdo-sim__sub {
  display: block;
  font-size: 0.75rem;
  color: #7a8694;
  font-weight: 500;
}

.rdo-sim__status-toggle {
  border: 1px solid #d5dbe3;
  background: #f1f4f7;
  color: #7a8694;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.rdo-sim__status-toggle.is-on {
  background: #e7f7f4;
  border-color: #0b8b7e;
  color: #0b8b7e;
}

.rdo-sim__int-cell {
  white-space: nowrap;
}

.rdo-sim__int-cell input {
  width: 6.2rem;
  display: inline-block;
}

.rdo-sim__int-cell span {
  margin: 0 0.2rem;
  color: #7a8694;
  font-size: 0.72rem;
}

.rdo-sim__hh {
  color: #0b8b7e !important;
}

.rdo-sim__table--mo tr.is-absent {
  opacity: 0.62;
}

.rdo-sim__add-row {
  display: grid;
  grid-template-columns: 1fr 110px auto;
  gap: 0.55rem;
  align-items: end;
  margin-bottom: 0.75rem;
}

.rdo-sim__add-row--ativ {
  grid-template-columns: 1fr 110px auto;
}

.rdo-sim__add-row--ocor {
  grid-template-columns: 160px 1fr auto;
}

.rdo-sim__add-row--com {
  grid-template-columns: 1fr auto;
}

.rdo-sim__pct {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5b6572;
}

.rdo-sim__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.rdo-sim__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: #f7f8fa;
  border-radius: 0.65rem;
  padding: 0.65rem 0.75rem;
}

.rdo-sim__list strong {
  display: block;
  font-size: 0.9rem;
}

.rdo-sim__list span {
  font-size: 0.8rem;
  color: #5b6572;
}

.rdo-sim__empty,
.rdo-sim__muted {
  color: #7a8694;
  font-size: 0.9rem;
}

.rdo-sim__empty {
  padding: 0.5rem 0.15rem !important;
  background: transparent !important;
}

.rdo-sim__icon-btn {
  border: none;
  background: transparent;
  color: #c0392b;
  padding: 0.35rem;
}

.rdo-sim__ativ-cards {
  display: grid;
  gap: 0.85rem;
}

.rdo-sim__ativ-card {
  border: 1px solid #e3e8ee;
  border-radius: 0.85rem;
  background: #fbfcfd;
  overflow: hidden;
}

.rdo-sim__ativ-card > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  background: #fff;
  border-bottom: 1px solid #eef2f6;
}

.rdo-sim__ativ-card > header strong {
  display: block;
  color: #0f141b;
}

.rdo-sim__ativ-card > header span {
  font-size: 0.8rem;
  color: #0b8b7e;
  font-weight: 700;
}

.rdo-sim__ativ-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  padding: 0.9rem;
}

.rdo-sim__ativ-grid section h4 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a8694;
}

.rdo-sim__check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rdo-sim__check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  color: #1a1f27;
}

.rdo-sim__mini-add {
  display: grid;
  grid-template-columns: 1fr 72px auto;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.rdo-sim__mini-add--2 {
  grid-template-columns: 1fr auto;
}

.rdo-sim__mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.rdo-sim__mini-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 0.55rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.82rem;
}

.rdo-sim__mini-list li span {
  flex: 1;
}

.rdo-sim__mini-list li strong {
  color: #0b8b7e;
}

.rdo-sim__mini-list button {
  border: none;
  background: transparent;
  color: #c0392b;
}

.rdo-sim__photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.rdo-sim__photo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #eef6ff;
  color: #1d4f91;
  border-radius: 0.55rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.rdo-sim__photo-chip button {
  border: none;
  background: transparent;
  color: #1d4f91;
  padding: 0;
}

.rdo-sim__range-val {
  display: inline-block;
  min-width: 2.5rem;
  margin-left: 0.35rem;
  font-weight: 700;
  color: #0b8b7e;
}

.rdo-sim__kpi {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rdo-sim__kpi strong {
  color: #0b8b7e;
  font-size: 1.05rem;
}

.rdo-sim__done {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

.rdo-sim__done-icon {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #0b8b7e;
  color: #fff;
  font-size: 1.25rem;
}

.rdo-sim__done h3 {
  margin: 0 0 0.35rem;
  color: #0f141b;
}

.rdo-sim__done > p {
  color: #5b6572;
  margin-bottom: 1rem;
}

.rdo-sim__done-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  text-align: left;
}

.rdo-sim__done-card span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #5b6572;
}

.rdo-sim__footnote {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: rgba(244, 241, 234, 0.62);
}

.rdo-sim__panel .btn-bn-outline {
  color: #0b8b7e !important;
  border-color: #0b8b7e !important;
}

.rdo-sim__panel .btn-bn-outline:hover {
  background: rgba(11, 139, 126, 0.08) !important;
  color: #08665c !important;
}

.rdo-sim__panel .btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

@media (max-width: 992px) {
  .rdo-sim__grid--3,
  .rdo-sim__ativ-grid,
  .rdo-sim__summary {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .rdo-sim__steps {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    padding: 0.15rem 0.1rem 0.55rem;
    margin-bottom: 0.9rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 185, 66, 0.7) rgba(255, 255, 255, 0.08);
  }

  .rdo-sim__steps::-webkit-scrollbar {
    height: 5px;
  }

  .rdo-sim__steps::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
  }

  .rdo-sim__steps::-webkit-scrollbar-thumb {
    background: rgba(245, 185, 66, 0.7);
    border-radius: 999px;
  }

  .rdo-sim__step {
    flex: 0 0 auto;
    min-width: max-content;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .rdo-sim__shell {
    grid-template-columns: 1fr;
  }

  .rdo-sim__rail {
    flex-direction: row;
    justify-content: center;
    padding: 0.65rem;
  }

  .rdo-sim__grid,
  .rdo-sim__grid--3,
  .rdo-sim__summary,
  .rdo-sim__kpi,
  .rdo-sim__done-cards,
  .rdo-sim__add-row,
  .rdo-sim__add-row--ocor,
  .rdo-sim__add-row--com,
  .rdo-sim__ativ-grid,
  .rdo-sim__mini-add {
    grid-template-columns: 1fr;
  }

  .rdo-sim__panel {
    padding: 1rem;
  }

  .rdo-sim__actions {
    justify-content: stretch;
  }

  .rdo-sim__actions .btn {
    width: 100%;
  }

  .rdo-sim__tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    max-width: 100%;
    min-width: 0;
  }

  .rdo-sim__tab {
    white-space: nowrap;
    flex: 0 0 auto;
  }
}


/* —— Layout fiel a /relatorios/edit —— */
.rdo-sim__topo {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0.85rem;
  margin-bottom: 1rem;
  align-items: stretch;
}

.rdo-sim__info-card,
.rdo-sim__dados-card {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 20, 27, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rdo-sim__info-card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.95rem;
  background: #0b8b7e;
  color: #fff;
  flex-shrink: 0;
}

.rdo-sim__head-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.rdo-sim__info-card-head strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.rdo-sim__info-card-head small {
  display: block;
  opacity: 0.88;
  font-size: 0.72rem;
  line-height: 1.2;
  margin-top: 0.1rem;
}

.rdo-sim__info-card-body,
.rdo-sim__dados-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.rdo-sim__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a8694;
  margin-bottom: 0.25rem;
}

.rdo-sim__obra-box {
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: #fff;
}

.rdo-sim__obra-value {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
}

.rdo-sim__obra-value > i {
  color: #0b8b7e;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.rdo-sim__obra-value strong {
  display: block;
  font-size: 0.95rem;
  color: #0f141b;
  line-height: 1.25;
}

.rdo-sim__obra-value small {
  display: block;
  margin-top: 0.15rem;
  color: #7a8694;
  font-size: 0.75rem;
}

.rdo-sim__horario-panel {
  display: flex;
  align-items: stretch;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  flex: 1;
}

.rdo-sim__horario-slots {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 12px 2fr 12px 1fr;
  align-items: end;
  gap: 0 0.5rem;
  padding: 0.75rem 0.85rem;
  min-width: 0;
}

.rdo-sim__slot {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a8694;
}

.rdo-sim__slot input[type="time"] {
  width: 100%;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  padding: 0.4rem 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1f27;
  background: #fff;
  font-variant-numeric: tabular-nums;
}

.rdo-sim__ht-connector {
  width: 100%;
  height: 1px;
  margin-bottom: 1.1rem;
  justify-self: center;
  align-self: end;
  background: linear-gradient(90deg, transparent, rgba(11, 139, 126, 0.45), transparent);
  position: relative;
}

.rdo-sim__ht-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(11, 139, 126, 0.55);
  transform: translate(-50%, -50%);
}

.rdo-sim__jornada {
  flex: 0 0 7.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem;
  border-left: 1px solid #e3e8ee;
  background: linear-gradient(180deg, rgba(11, 139, 126, 0.08), rgba(11, 139, 126, 0.03));
}

.rdo-sim__jornada strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b8b7e;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.rdo-sim__jornada span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11, 139, 126, 0.75);
}

.rdo-sim__jornada small {
  margin-top: 0.2rem;
  font-size: 0.6875rem;
  color: rgba(11, 139, 126, 0.7);
  text-transform: capitalize;
}

.rdo-sim__dados-meta {
  display: grid;
  grid-template-columns: auto 1px 1fr;
  gap: 0.85rem;
  align-items: stretch;
  padding: 0.85rem;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  background: #fff;
}

.rdo-sim__dados-numero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 4.5rem;
}

.rdo-sim__dados-numero strong {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b8b7e;
  line-height: 1.1;
}

.rdo-sim__dados-divider {
  width: 1px;
  background: #e3e8ee;
}

.rdo-sim__dados-data {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rdo-sim__dados-data input[type="date"] {
  width: 100%;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: #fff;
}

.rdo-sim__dados-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(29, 79, 145, 0.18);
  background: rgba(29, 79, 145, 0.08);
  flex: 1;
  min-height: 4rem;
}

.rdo-sim__dados-status[data-tone="warning"] {
  background: rgba(166, 107, 0, 0.1);
  border-color: rgba(166, 107, 0, 0.22);
}

.rdo-sim__dados-status[data-tone="success"] {
  background: rgba(11, 139, 126, 0.1);
  border-color: rgba(11, 139, 126, 0.22);
}

.rdo-sim__dados-status-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(29, 79, 145, 0.14);
  color: #1d4f91;
  flex-shrink: 0;
}

.rdo-sim__dados-status[data-tone="warning"] .rdo-sim__dados-status-icon {
  background: rgba(166, 107, 0, 0.16);
  color: #a66b00;
}

.rdo-sim__dados-status[data-tone="success"] .rdo-sim__dados-status-icon {
  background: rgba(11, 139, 126, 0.16);
  color: #0b8b7e;
}

.rdo-sim__dados-status strong {
  display: block;
  font-size: 0.95rem;
  color: #0f141b;
  line-height: 1.25;
}

.rdo-sim__dados-status small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.75rem;
  color: #5b6572;
  line-height: 1.35;
}

/* Inventory card (tabs verdes) */
.rdo-sim__inventory {
  background: #0b8b7e;
  border-radius: 0.85rem;
  padding: 0.65rem;
  margin-bottom: 0.35rem;
  box-shadow: 0 8px 24px rgba(11, 139, 126, 0.22);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.rdo-sim__tabs--pill {
  background: transparent;
  padding: 0.15rem 0.25rem 0.55rem;
  margin-bottom: 0;
  gap: 0.25rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.55) rgba(255, 255, 255, 0.12);
}

.rdo-sim__tabs--pill::-webkit-scrollbar {
  height: 5px;
}

.rdo-sim__tabs--pill::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.rdo-sim__tabs--pill::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}

.rdo-sim__tabs--pill .rdo-sim__tab {
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
}

.rdo-sim__tabs--pill .rdo-sim__tab.is-active {
  background: #fff;
  color: #0b8b7e;
  box-shadow: 0 2px 8px rgba(15, 20, 27, 0.12);
}

.rdo-sim__inventory-body {
  background: #f7f8fa;
  border-radius: 0.65rem;
  padding: 0.65rem;
}

.rdo-sim__inventory-body .rdo-sim__tab-pane {
  margin: 0;
}

/* Sheet = rdo-section */
.rdo-sim__sheet {
  margin: 0;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.rdo-sim__sheet-toolbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0 0.75rem;
  background: rgba(15, 20, 27, 0.03);
  border-bottom: 1px solid #e8edf2;
}

.rdo-sim__sheet-toolbar > i {
  color: #5b6572;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.rdo-sim__sheet-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #425061;
  white-space: nowrap;
}

.rdo-sim__sheet-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: #7a8694;
  margin-left: 0.35rem;
  margin-right: auto;
  min-width: 0;
}

.rdo-sim__sheet-stats .is-ok { color: #0b8b7e; }
.rdo-sim__sheet-stats .is-off { color: #c0392b; }
.rdo-sim__dot { opacity: 0.45; }

.rdo-sim__sheet-toolbar .btn {
  margin-left: 0.35rem;
  flex-shrink: 0;
}

.rdo-sim__sheet-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.75rem;
  min-height: 2.5rem;
  border-bottom: 1px solid #e8edf2;
}

.rdo-sim__underline-tabs {
  display: flex;
  align-items: stretch;
  height: 2.5rem;
  gap: 0;
}

.rdo-sim__underline-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #7a8694;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.rdo-sim__underline-tabs button:hover { color: #425061; }
.rdo-sim__underline-tabs button.is-active {
  color: #0b8b7e;
  border-bottom-color: #0b8b7e;
}

.rdo-sim__search {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: 11rem;
  max-width: 40%;
  color: #7a8694;
  font-size: 0.8rem;
}

.rdo-sim__search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.8rem;
  color: #1a1f27;
  padding: 0.25rem 0;
}

.rdo-sim__sheet-body {
  padding: 0.75rem;
}

.rdo-sim__sheet-body--tight {
  padding: 0;
}

.rdo-sim__sheet-empty {
  padding: 1.25rem 0.9rem;
  color: #7a8694;
  font-size: 0.9rem;
  text-align: center;
}

.rdo-sim__hidden-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* MO grid sheet */
.rdo-sim__sheet-table {
  overflow-x: auto;
}

.rdo-sim__mo-head,
.rdo-sim__mo-row {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.6fr)
    88px
    168px
    88px
    64px
    118px
    48px;
  align-items: center;
  column-gap: 10px;
  min-width: 820px;
  padding: 0.55rem 0.85rem;
}

.rdo-sim__mo-head {
  background: rgba(15, 20, 27, 0.03);
  border-bottom: 1px solid #e8edf2;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a8694;
}

.rdo-sim__mo-row {
  border-bottom: 1px solid #e8edf2;
  transition: background 0.12s ease;
}

.rdo-sim__mo-row:last-child { border-bottom: 0; }
.rdo-sim__mo-row:hover { background: rgba(11, 139, 126, 0.025); }
.rdo-sim__mo-row.is-ausente { background: rgba(192, 57, 43, 0.02); }
.rdo-sim__mo-row.is-atraso { background: rgba(192, 57, 43, 0.025); }

.rdo-sim__mo-col--intervalo {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rdo-sim__mo-col--intervalo span {
  color: #a0aab6;
  font-size: 0.75rem;
}

.rdo-sim__mo-col--span {
  grid-column: 2 / 6;
}

.rdo-sim__mo-col--total {
  text-align: center;
}

.rdo-sim__mo-col input[type="time"] {
  width: 84px;
  max-width: 84px;
  border: 1px solid #d5dbe3;
  border-radius: 6px;
  padding: 0.3rem 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #fff;
  font-variant-numeric: tabular-nums;
}

.rdo-sim__mo-col input[type="time"].is-alert {
  border-color: rgba(192, 57, 43, 0.55);
  background: rgba(192, 57, 43, 0.04);
  color: #c0392b;
}

.rdo-sim__person {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.rdo-sim__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(11, 139, 126, 0.1);
  color: #0b8b7e;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

.rdo-sim__person-text {
  min-width: 0;
}

.rdo-sim__person-text strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 650;
  color: #0f141b;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rdo-sim__status-select,
.rdo-sim__motivo {
  border: 1px solid #d5dbe3;
  border-radius: 6px;
  padding: 0.3rem 0.4rem;
  background: #fff;
  font-size: 0.75rem;
  width: 100%;
}

.rdo-sim__status-select.is-presente {
  color: #0b8b7e;
  border-color: rgba(11, 139, 126, 0.4);
  background: rgba(11, 139, 126, 0.06);
  font-weight: 650;
}

.rdo-sim__status-select.is-ausente {
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.55);
  background: rgba(192, 57, 43, 0.08);
  font-weight: 700;
}

.rdo-sim__hh {
  color: #0b8b7e !important;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.rdo-sim__mo-actions {
  display: flex;
  justify-content: flex-end;
}

.rdo-sim__mo-extra {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #e3e8ee;
}

.rdo-sim__chip-alert {
  display: inline-block;
  background: #ffe3e3;
  color: #c0392b;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
}

.rdo-sim__icon-btn.is-muted { color: #7a8694; }
.rdo-sim__icon-btn.is-primary { color: #0b8b7e; }

/* Atividades grid */
.rdo-sim__atv-table { overflow-x: auto; }

.rdo-sim__atv-head,
.rdo-sim__atv-row {
  display: grid;
  grid-template-columns:
    minmax(220px, 2fr)
    minmax(100px, 0.9fr)
    90px
    90px
    90px
    120px
    96px;
  align-items: center;
  column-gap: 10px;
  min-width: 900px;
  padding: 0.65rem 0.85rem;
}

.rdo-sim__atv-head {
  background: rgba(15, 20, 27, 0.03);
  border-bottom: 1px solid #e8edf2;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a8694;
}

.rdo-sim__atv-row {
  border-bottom: 1px solid #e8edf2;
  cursor: pointer;
  transition: background 0.12s ease;
}

.rdo-sim__atv-row:hover { background: rgba(11, 139, 126, 0.03); }
.rdo-sim__atv-row.is-done { background: rgba(11, 139, 126, 0.02); }
.rdo-sim__atv-row:last-child { border-bottom: 0; }

.rdo-sim__atv-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.rdo-sim__atv-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  background: #eef2f6;
  color: #5b6572;
}

.rdo-sim__atv-mark--ok { background: rgba(11, 139, 126, 0.12); color: #0b8b7e; }
.rdo-sim__atv-mark--mid { background: rgba(245, 185, 66, 0.18); color: #a66b00; }
.rdo-sim__atv-mark--low { background: rgba(29, 79, 145, 0.12); color: #1d4f91; }

.rdo-sim__atv-text {
  min-width: 0;
}

.rdo-sim__atv-text strong {
  display: block;
  font-size: 0.85rem;
  color: #0f141b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rdo-sim__prog {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rdo-sim__prog-bar {
  flex: 1;
  height: 0.45rem;
  background: #e8edf2;
  border-radius: 999px;
  overflow: hidden;
  min-width: 3.2rem;
}

.rdo-sim__prog-bar i {
  display: block;
  height: 100%;
  background: #0b8b7e;
}

.rdo-sim__prog-bar i.tone-mid { background: #f5b942; }
.rdo-sim__prog-bar i.tone-low { background: #1d4f91; }
.rdo-sim__prog-bar i.tone-none { background: #c5ccd6; }

.rdo-sim__prog strong {
  font-size: 0.75rem;
  min-width: 2.2rem;
}

.rdo-sim__prog strong.tone-ok { color: #0b8b7e; }
.rdo-sim__prog strong.tone-mid { color: #a66b00; }

.rdo-sim__row-actions {
  display: flex;
  gap: 0.15rem;
  justify-content: flex-end;
}

.rdo-sim__tag {
  display: inline-block;
  background: #eef2f6;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #425061;
  text-transform: capitalize;
}

.rdo-sim__add-row--mat {
  grid-template-columns: 1fr 90px auto;
}

.rdo-sim__add-row--ocor2 {
  grid-template-columns: 140px 140px 1fr auto;
}

/* Drawer */
.rdo-sim__drawer[hidden] { display: none !important; }

.rdo-sim__drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.rdo-sim__drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.55);
}

.rdo-sim__drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(720px, 100%);
  height: 100%;
  background: #f7f8fa;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
}

.rdo-sim__drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border-bottom: 1px solid #e8edf2;
}

.rdo-sim__drawer-head strong {
  display: block;
  color: #0f141b;
  letter-spacing: 0.02em;
}

.rdo-sim__drawer-head small { color: #5b6572; }

.rdo-sim__drawer-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.55rem 0.85rem;
  background: #eef2f6;
  overflow-x: auto;
}

.rdo-sim__drawer-tabs button {
  border: none;
  background: transparent;
  padding: 0.5rem 0.75rem;
  border-radius: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5b6572;
  white-space: nowrap;
}

.rdo-sim__drawer-tabs button.is-active {
  background: #fff;
  color: #0b8b7e;
}

.rdo-sim__drawer-body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.1rem;
}

.rdo-sim__drawer-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 0.85rem 1.1rem;
  background: #fff;
  border-top: 1px solid #e8edf2;
}

.rdo-sim__drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.rdo-sim__field--full { grid-column: 1 / -1; }

.rdo-sim__field textarea {
  border: 1px solid #d5dbe3;
  border-radius: 0.65rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
  resize: vertical;
  width: 100%;
}

.rdo-sim__drawer-kpi {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.rdo-sim__drawer-kpi > div {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 0.7rem;
  padding: 0.7rem;
}

.rdo-sim__drawer-kpi small {
  display: block;
  color: #7a8694;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.rdo-sim__drawer-kpi strong {
  color: #0b8b7e;
  font-size: 1.1rem;
}

body.rdo-sim-drawer-open { overflow: hidden; }

@media (max-width: 992px) {
  .rdo-sim__topo {
    grid-template-columns: 1fr;
  }

  .rdo-sim__horario-slots {
    grid-template-columns: 1fr;
  }

  .rdo-sim__ht-connector { display: none; }

  .rdo-sim__horario-panel {
    flex-direction: column;
  }

  .rdo-sim__jornada {
    flex: none;
    border-left: 0;
    border-top: 1px solid #e3e8ee;
    flex-direction: row;
    gap: 0.65rem;
    justify-content: center;
  }

  .rdo-sim__drawer-grid,
  .rdo-sim__add-row--ocor2 {
    grid-template-columns: 1fr;
  }
}

/* Cards de recurso na atividade (MO / Equipamentos) */
.rdo-sim__res-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.rdo-sim__res-toolbar strong {
  display: block;
  font-size: 0.9rem;
  color: #0f141b;
}

.rdo-sim__res-toolbar small {
  display: block;
  margin-top: 0.15rem;
  color: #7a8694;
  font-size: 0.78rem;
}

.rdo-sim__res-add {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  min-width: min(100%, 320px);
  flex: 1;
  justify-content: flex-end;
}

.rdo-sim__res-add select {
  flex: 1;
  min-width: 0;
  border: 1px solid #d5dbe3;
  border-radius: 0.55rem;
  padding: 0.4rem 0.55rem;
  background: #fff;
  font-size: 0.85rem;
}

.rdo-sim__res-list {
  display: grid;
  gap: 0.65rem;
}

.rdo-sim__res-card {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  box-shadow: 0 1px 4px rgba(15, 20, 27, 0.04);
}

.rdo-sim__res-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}

.rdo-sim__res-card-who {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.rdo-sim__res-card-who strong {
  display: block;
  font-size: 0.875rem;
  color: #0f141b;
  line-height: 1.25;
}

.rdo-sim__res-card-who span {
  display: block;
  font-size: 0.72rem;
  color: #7a8694;
}

.rdo-sim__avatar--equip {
  background: rgba(29, 79, 145, 0.1);
  color: #1d4f91;
  font-size: 0.75rem;
}

.rdo-sim__res-card-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.rdo-sim__res-card-fields > label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a8694;
}

.rdo-sim__res-input {
  display: flex;
  align-items: center;
  border: 1px solid #d5dbe3;
  border-radius: 0.5rem;
  background: #fff;
  overflow: hidden;
}

.rdo-sim__res-input input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  width: 100%;
  min-width: 0;
  padding: 0.4rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1f27;
  background: transparent;
}

.rdo-sim__res-input em {
  flex-shrink: 0;
  padding: 0 0.55rem;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  color: #7a8694;
  border-left: 1px solid #e8edf2;
  background: #f7f8fa;
  align-self: stretch;
  display: grid;
  place-items: center;
}

.rdo-sim__res-card-prog {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.rdo-sim__res-card-prog strong {
  font-size: 0.75rem;
  color: #0b8b7e;
  min-width: 2.4rem;
}

.rdo-sim__res-total {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.85rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #e3e8ee;
  border-radius: 0.65rem;
  background: #fbfcfd;
}

.rdo-sim__res-total span {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.rdo-sim__res-total small {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a8694;
}

.rdo-sim__res-total strong {
  font-size: 0.9rem;
  color: #0f141b;
}

@media (max-width: 640px) {
  .rdo-sim__res-card-fields {
    grid-template-columns: 1fr;
  }

  .rdo-sim__res-add {
    width: 100%;
    justify-content: stretch;
  }
}

/* —— Medição (fiel a Editar Medição) —— */
.rdo-sim__med {
  display: grid;
  gap: 0.75rem;
}

.rdo-sim__med-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.65rem;
  background: #0b8b7e;
  color: #fff;
}

.rdo-sim__med-toolbar > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rdo-sim__med-toolbar strong {
  font-size: 0.95rem;
}

.rdo-sim__med-card {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 0.75rem;
  padding: 0.9rem;
}

.rdo-sim__med-card--table {
  padding: 0;
  overflow: hidden;
}

.rdo-sim__med-kpis {
  display: grid;
  grid-template-columns:
    minmax(3.5rem, auto)
    minmax(5.5rem, auto)
    minmax(4rem, auto)
    minmax(6rem, auto)
    minmax(20rem, 1.6fr);
  gap: 1rem 1.25rem;
  align-items: start;
  margin-bottom: 0.85rem;
}

.rdo-sim__med-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.rdo-sim__med-kpi > span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a8694;
}

.rdo-sim__med-kpi > strong {
  font-size: 1.05rem;
  color: #0f141b;
  white-space: nowrap;
}

.rdo-sim__med-kpi > strong.is-ok { color: #0b8b7e; }
.rdo-sim__med-kpi > strong.is-primary { color: #1d4f91; }

.rdo-sim__med-kpi--periodo {
  min-width: 0;
}

.rdo-sim__med-periodo {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.5rem;
  width: max-content;
  max-width: 100%;
}

.rdo-sim__med-periodo label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.68rem;
  color: #7a8694;
  font-weight: 600;
  flex: 0 0 auto;
}

.rdo-sim__med-periodo input[type="date"] {
  box-sizing: border-box;
  width: 9.25rem;
  min-width: 9.25rem;
  border: 1px solid #d5dbe3;
  border-radius: 0.45rem;
  padding: 0.35rem 0.45rem;
  font-size: 0.8rem;
  line-height: 1.2;
  background: #fff;
}

.rdo-sim__med-periodo em {
  font-style: normal;
  color: #7a8694;
  font-size: 0.8rem;
  line-height: 1;
  padding-bottom: 0.55rem;
  flex: 0 0 auto;
  white-space: nowrap;
}

.rdo-sim__med-aprov {
  border-top: 1px solid #eef2f6;
  padding-top: 0.85rem;
}

.rdo-sim__med-aprov-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.rdo-sim__med-aprov-head strong {
  font-size: 0.875rem;
  color: #0f141b;
}

.rdo-sim__med-aprov-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.rdo-sim__med-aprov-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
}

.rdo-sim__med-aprov-pos {
  display: inline-grid;
  place-items: center;
  min-width: 1.8rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(11, 139, 126, 0.12);
  color: #0b8b7e;
  font-size: 0.72rem;
  font-weight: 700;
}

.rdo-sim__med-aprov-item select {
  width: 100%;
  border: 1px solid #d5dbe3;
  border-radius: 0.5rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  background: #fff;
}

.rdo-sim__med-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  background: rgba(29, 79, 145, 0.08);
  border: 1px solid rgba(29, 79, 145, 0.16);
  color: #1d4f91;
  font-size: 0.82rem;
  line-height: 1.4;
}

.rdo-sim__med-alert i {
  margin-top: 0.15rem;
}

.rdo-sim__med-table-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #e8edf2;
  font-size: 0.8rem;
  color: #0f141b;
}

.rdo-sim__med-table-wrap {
  max-height: 420px;
}

.rdo-sim__med-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  min-width: 1100px;
}

.rdo-sim__med-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef7f5;
  color: #425061;
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid #dce8e5;
  white-space: nowrap;
  text-align: center;
}

.rdo-sim__med-table th:nth-child(1),
.rdo-sim__med-table th:nth-child(2) {
  text-align: left;
}

.rdo-sim__med-table th.is-highlight {
  background: #d9efe9;
  color: #0b8b7e;
}

.rdo-sim__med-table td {
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid #eef2f6;
  vertical-align: middle;
  text-align: center;
  color: #1a1f27;
}

.rdo-sim__med-table td:nth-child(1),
.rdo-sim__med-table td:nth-child(2) {
  text-align: left;
}

.rdo-sim__med-row.is-etapa {
  background: #f3f5f7;
}

.rdo-sim__med-row.is-etapa strong {
  font-size: 0.82rem;
}

.rdo-sim__med-row.is-tarefa td:nth-child(2) {
  padding-left: 1.1rem;
}

.rdo-sim__med-row td.is-muted {
  color: #a0aab6;
}

.rdo-sim__med-row td.is-primary,
.rdo-sim__med-totais .is-primary {
  color: #1d4f91 !important;
  font-weight: 700;
}

.rdo-sim__med-totais .is-ok,
.rdo-sim__med-kpi .is-ok {
  color: #0b8b7e !important;
}

.rdo-sim__med-toggle {
  border: none;
  background: transparent;
  color: #5b6572;
  padding: 0.15rem;
  margin-right: 0.2rem;
  cursor: pointer;
}

.rdo-sim__med-edt {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #0b8b7e;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.rdo-sim__med-edt.is-outline {
  background: transparent;
  color: #0b8b7e;
  border: 1px solid rgba(11, 139, 126, 0.45);
}

.rdo-sim__med-table td.is-edit input {
  width: 4.8rem;
  border: 1px solid #0b8b7e;
  border-radius: 0.4rem;
  padding: 0.28rem 0.35rem;
  background: #eef9f6;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  color: #0b8b7e;
}

.rdo-sim__med-pill {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #3d4654;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.rdo-sim__med-prog {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 4.5rem;
}

.rdo-sim__med-prog strong {
  font-size: 0.68rem;
  color: #0b8b7e;
}

.rdo-sim__med-totais {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  background: #f1f3f6;
  border-radius: 0.75rem;
  padding: 0.85rem;
}

.rdo-sim__med-totais h4 {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0b8b7e;
}

.rdo-sim__med-totais > div > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.rdo-sim__med-totais span {
  color: #7a8694;
}

.rdo-sim__med-totais strong {
  color: #0f141b;
}

@media (max-width: 1100px) {
  .rdo-sim__med-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rdo-sim__med-kpi--periodo {
    grid-column: 1 / -1;
  }
}

@media (max-width: 992px) {
  .rdo-sim__med-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .rdo-sim__med-kpi--periodo {
    grid-column: 1 / -1;
  }

  .rdo-sim__med-aprov-list,
  .rdo-sim__med-totais {
    grid-template-columns: 1fr;
  }

  .rdo-sim__med-periodo {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .rdo-sim__med-periodo {
    flex-wrap: wrap;
  }

  .rdo-sim__med-periodo em {
    display: none;
  }
}

.rdo-sim__field--periodo {
  grid-column: auto;
  min-width: 0;
}

.rdo-sim__periodo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.rdo-sim__periodo input[type="date"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #d5dbe3;
  border-radius: 0.65rem;
  padding: 0.55rem 0.45rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #1a1f27;
  background: #fff;
  height: 2.7rem;
}

.rdo-sim__periodo input[type="date"]:focus {
  outline: 2px solid rgba(11, 139, 126, 0.35);
  border-color: #0b8b7e;
}

.rdo-sim__periodo em {
  font-style: normal;
  color: #7a8694;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  padding: 0;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 768px) {
  .rdo-sim__field--periodo {
    grid-column: 1 / -1;
  }
}

/* —— Planejamento / Lista de Etapas —— */
.rdo-sim__plan {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 0.75rem;
  overflow: hidden;
}

.rdo-sim__plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #e8edf2;
}

.rdo-sim__plan-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #0f141b;
  font-size: 0.95rem;
}

.rdo-sim__plan-title i {
  color: #0b8b7e;
}

.rdo-sim__plan-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rdo-sim__plan-niveis {
  display: inline-flex;
  border: 1px solid #d5dbe3;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-right: 0.25rem;
}

.rdo-sim__plan-niveis button {
  border: none;
  background: #fff;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #5b6572;
  border-right: 1px solid #d5dbe3;
}

.rdo-sim__plan-niveis button:last-child {
  border-right: none;
}

.rdo-sim__plan-niveis button.is-active {
  background: rgba(11, 139, 126, 0.12);
  color: #0b8b7e;
}

.rdo-sim__plan-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: #f7f8fa;
  border-bottom: 1px solid #e8edf2;
}

.rdo-sim__plan-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eef2f6;
  color: #425061;
  font-size: 0.72rem;
  font-weight: 700;
}

.rdo-sim__plan-chip.is-etapa { background: #e3f2fd; color: #1565c0; }
.rdo-sim__plan-chip.is-tarefa { background: #e8f5e9; color: #2e7d32; }
.rdo-sim__plan-chip.is-comp { background: #fff3e0; color: #ef6c00; }
.rdo-sim__plan-chip.is-valor { background: #e3f2fd; color: #0d47a1; }

.rdo-sim__plan-table-wrap {
  max-height: 460px;
}

.rdo-sim__plan-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
  font-size: 0.78rem;
}

.rdo-sim__plan-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef7f5;
  color: #425061;
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid #dce8e5;
  text-align: center;
  white-space: nowrap;
}

.rdo-sim__plan-table th.group {
  background: #0b8b7e;
  color: #fff;
  text-align: center;
}

.rdo-sim__plan-table th:nth-child(1),
.rdo-sim__plan-table th:nth-child(2),
.rdo-sim__plan-table td:nth-child(1),
.rdo-sim__plan-table td:nth-child(2) {
  text-align: left;
}

.rdo-sim__plan-table td {
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid #eef2f6;
  vertical-align: middle;
  text-align: center;
  color: #1a1f27;
}

.rdo-sim__plan-row.is-etapa {
  background: rgba(11, 139, 126, 0.08);
}

.rdo-sim__plan-row.is-etapa strong {
  color: #0b8b7e;
}

.rdo-sim__plan-edt {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #0b8b7e;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.rdo-sim__plan-edt.is-outline {
  background: transparent;
  color: #0b8b7e;
  border: 1px solid rgba(11, 139, 126, 0.45);
}

.rdo-sim__plan-tipo {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: #eef2f6;
  color: #425061;
  white-space: nowrap;
}

.rdo-sim__plan-tipo.is-etapa { background: #bbdefb; color: #0d47a1; }
.rdo-sim__plan-tipo.is-tarefa { background: #c8e6c9; color: #1b5e20; }
.rdo-sim__plan-tipo.is-equip { background: #ffe0b2; color: #e65100; }
.rdo-sim__plan-tipo.is-mo { background: #e1bee7; color: #6a1b9a; }
.rdo-sim__plan-tipo.is-insumo { background: #fff9c4; color: #f57f17; }

.rdo-sim__plan-prog {
  min-width: 4.5rem;
}

.rdo-sim__plan-prog .rdo-sim__prog-bar {
  height: 0.55rem;
}

@media (max-width: 992px) and (min-width: 769px) {
  .rdo-sim__steps {
    grid-template-columns: 1fr 1fr;
  }
}

/* ——— Preview RDO (fiel a /relatorios/show) ——— */
.rdo-sim__preview {
  background: #fff;
  border: 1px solid #d5e3e8;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 1rem;
}

.rdo-sim__preview .print-template {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 12px;
  line-height: 1.3;
  color: #333;
  padding: 12px;
}

.rdo-sim__preview .rdo-masthead {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 8px;
  padding: 10px 12px 10px 16px;
  border: 1px solid #d5e3e8;
  border-radius: 8px;
  background: linear-gradient(180deg, #f4fafb 0%, #ffffff 48%);
  position: relative;
  overflow: hidden;
}

.rdo-sim__preview .rdo-masthead::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #0d7c8d;
}

.rdo-sim__preview .rdo-masthead__main {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.9fr);
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

.rdo-sim__preview .rdo-masthead__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rdo-sim__preview .rdo-masthead__doc-type {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d7c8d;
}

.rdo-sim__preview .rdo-masthead__obra {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: #1a2b32;
  word-break: break-word;
}

.rdo-sim__preview .rdo-masthead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rdo-sim__preview .rdo-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid #dce6ea;
  border-radius: 8px;
  background: #fff;
}

.rdo-sim__preview .rdo-meta-chip__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #90a4ae;
}

.rdo-sim__preview .rdo-meta-chip__value {
  font-size: 13px;
  font-weight: 700;
  color: #263238;
  font-variant-numeric: tabular-nums;
}

.rdo-sim__preview .rdo-masthead__aside {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #d5e3e8;
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}

.rdo-sim__preview .rdo-aside-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8f0f3;
}

.rdo-sim__preview .rdo-aside-status__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #90a4ae;
}

.rdo-sim__preview .rdo-aside-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.rdo-sim__preview .rdo-aside-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rdo-sim__preview .rdo-aside-field__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #90a4ae;
}

.rdo-sim__preview .rdo-aside-field__value {
  font-size: 12px;
  font-weight: 700;
  color: #263238;
  line-height: 1.25;
  word-break: break-word;
}

.rdo-sim__preview .status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.rdo-sim__preview .status-em-andamento { background: #3182ce; }
.rdo-sim__preview .status-concluido { background: #38a169; }
.rdo-sim__preview .status-pendente { background: #ed8936; }
.rdo-sim__preview .status-cancelado { background: #e53e3e; }

.rdo-sim__preview .section {
  /* anula .section { padding: 80px 0 } do style.css da LP */
  padding: 0 !important;
  margin: 0 0 8px !important;
}

.rdo-sim__preview .section-title {
  font-size: 12px;
  font-weight: 700;
  color: #007c8d;
  padding: 0 0 4px !important;
  margin: 0 0 6px !important;
  border-bottom: 1px solid #e0e0e0;
  text-transform: uppercase;
  text-align: left !important;
  max-width: none !important;
}

.rdo-sim__preview .section-title h2,
.rdo-sim__preview .section-title p {
  margin: 0 !important;
  max-width: none !important;
  text-align: left !important;
}

.rdo-sim__preview .ri-card,
.rdo-sim__preview .mc-card {
  border: 1px solid #d5e3e8;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.rdo-sim__preview .ri-card__head,
.rdo-sim__preview .mc-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #eef6f8;
  border-bottom: 1px solid #d5e8ed;
  color: #0d5c6a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rdo-sim__preview .mc-card__count {
  margin-left: auto;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 10px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.rdo-sim__preview .ri-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.rdo-sim__preview .ri-field {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 12px;
  border-right: 1px solid #e8f0f3;
  border-bottom: 1px solid #e8f0f3;
  min-width: 0;
}

.rdo-sim__preview .ri-field:nth-child(3n) {
  border-right: none;
}

.rdo-sim__preview .ri-field__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #90a4ae;
}

.rdo-sim__preview .ri-field__value {
  color: #263238;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}

.rdo-sim__preview .ri-field__value small {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: #78909c;
  margin-left: 2px;
}

.rdo-sim__preview .ri-field__value--accent { color: #0d5c6a; }
.rdo-sim__preview .ri-field__value--alert { color: #c62828; }

.rdo-sim__preview .mc-table,
.rdo-sim__preview .table {
  width: 100%;
  border-collapse: collapse;
}

.rdo-sim__preview .mc-table th {
  padding: 5px 10px;
  background: #f7fafb;
  border-bottom: 1px solid #dce6ea;
  border-right: 1px solid #e4eef1;
  color: #607d8b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: left;
}

.rdo-sim__preview .mc-table th:last-child { border-right: none; }

.rdo-sim__preview .mc-table td {
  padding: 5px 10px;
  border-bottom: 1px solid #eef3f5;
  border-right: 1px solid #eef3f5;
  color: #37474f;
  font-size: 12px;
  vertical-align: middle;
  word-break: break-word;
}

.rdo-sim__preview .mc-table td:last-child { border-right: none; }
.rdo-sim__preview .mc-table tbody tr:last-child td { border-bottom: none; }
.rdo-sim__preview .mc-table tbody tr:nth-child(even) td { background: #fbfdfe; }

.rdo-sim__preview .ht-table th,
.rdo-sim__preview .ht-table td {
  text-align: center !important;
}

.rdo-sim__preview .ht-value {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #263238;
  font-variant-numeric: tabular-nums;
}

.rdo-sim__preview .ht-value--accent { color: #0d5c6a; }
.rdo-sim__preview .ht-value small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #78909c;
}

.rdo-sim__preview .mo-table-scroll,
.rdo-sim__preview .table-atividades-scroll {
  width: 100%;
  overflow-x: auto;
}

.rdo-sim__preview .mo-table { min-width: 860px; }
.rdo-sim__preview .mo-td-nome { font-weight: 700 !important; color: #263238 !important; }
.rdo-sim__preview .mo-td-hrs {
  font-weight: 700 !important;
  color: #0d5c6a !important;
  font-variant-numeric: tabular-nums;
}

.rdo-sim__preview .mo-presenca {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: #eceff1;
  color: #546e7a;
  white-space: nowrap;
}

.rdo-sim__preview .mo-presenca--ok { background: #e8f5e9; color: #2e7d32; }
.rdo-sim__preview .mo-presenca--warn { background: #fff8e1; color: #f57f17; }
.rdo-sim__preview .mo-presenca--bad { background: #ffebee; color: #c62828; }

.rdo-sim__preview .mc-empty {
  padding: 14px;
  color: #90a4ae;
  font-size: 12px;
  font-style: italic;
  text-align: center;
}

.rdo-sim__preview .mc-td-desc { font-weight: 600; color: #263238; }
.rdo-sim__preview .mc-th-qtd,
.rdo-sim__preview .mc-td-qtd { text-align: right !important; width: 140px; }

.rdo-sim__preview .mc-qtd {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #eef6f8;
  font-weight: 700;
  color: #0d5c6a;
}

.rdo-sim__preview .table th {
  background: #007c8d;
  color: #fff;
  font-weight: 700;
  padding: 6px 8px;
  text-align: left;
  border: 1px solid #ddd;
  font-size: 11px;
}

.rdo-sim__preview .table td {
  padding: 6px 8px;
  border: 1px solid #ddd;
  vertical-align: top;
  font-size: 11px;
}

.rdo-sim__preview .text-left { text-align: left; }
.rdo-sim__preview .text-center { text-align: center; }
.rdo-sim__preview .text-right { text-align: right; }

.rdo-sim__preview-note {
  margin-top: 2px;
  font-size: 10px;
  color: #78909c;
  font-weight: 500;
}

.rdo-sim__preview .photos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 0;
  align-items: stretch;
}

.rdo-sim__preview .photo-cell {
  width: calc((100% - 24px) / 3);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.rdo-sim__preview .photo-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eef3f5;
  border: 1px solid #d5e3e8;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rdo-sim__preview .photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rdo-sim__preview .photo-caption {
  font-size: 10px;
  color: #666;
  margin-top: 6px;
  line-height: 1.25;
  min-height: 2.5em;
}

.rdo-sim__preview-clima {
  padding: 8px 12px;
  border: 1px dashed #d5e3e8;
  border-radius: 8px;
  background: #f7fafb;
  color: #546e7a;
  font-size: 12px;
}

@media (max-width: 900px) {
  .rdo-sim__preview .rdo-masthead__main {
    grid-template-columns: 1fr;
  }

  .rdo-sim__preview .ri-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rdo-sim__preview .ri-field:nth-child(3n) {
    border-right: 1px solid #e8f0f3;
  }

  .rdo-sim__preview .ri-field:nth-child(2n) {
    border-right: none;
  }

  .rdo-sim__preview .photo-cell {
    width: calc((100% - 12px) / 2);
  }
}

@media (max-width: 560px) {
  .rdo-sim__preview .ri-grid {
    grid-template-columns: 1fr;
  }

  .rdo-sim__preview .ri-field,
  .rdo-sim__preview .ri-field:nth-child(2n),
  .rdo-sim__preview .ri-field:nth-child(3n) {
    border-right: none;
  }

  .rdo-sim__preview .photo-cell {
    width: 100%;
  }
}

/* Atividades preview — layout fiel ao sistema */
.rdo-sim__preview .table-atividades-web {
  table-layout: fixed;
  min-width: 920px;
}

.rdo-sim__preview .table-atividades-web th {
  background: #eef6f8 !important;
  color: #0d5c6a !important;
  border: 1px solid #d5e3e8 !important;
  font-size: 10px;
  padding: 5px 6px !important;
}

.rdo-sim__preview .table-atividades-web td {
  border: 1px solid #e4eef1 !important;
  padding: 5px 6px !important;
  vertical-align: top;
  background: #fff;
}

.rdo-sim__preview .at-col-etapa { width: 9%; }
.rdo-sim__preview .at-col-desc { width: 22%; }
.rdo-sim__preview .at-col-local { width: 12%; }
.rdo-sim__preview .at-col-qtd { width: 8%; }
.rdo-sim__preview .at-col-recurso { width: 11%; }
.rdo-sim__preview .at-col-status { width: 12%; }

.rdo-sim__preview .at-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rdo-sim__preview .at-cell--center { align-items: center; text-align: center; }

.rdo-sim__preview .at-cell__label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #90a4ae;
}

.rdo-sim__preview .at-cell__value {
  color: #37474f;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  word-break: break-word;
}

.rdo-sim__preview .at-cell__value--etapa {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  background: #e8f4f7;
  color: #0d5c6a;
  font-size: 10px;
  font-weight: 600;
}

.rdo-sim__preview .at-cell__value--desc {
  color: #1a2b32;
  font-size: 12px;
  font-weight: 700;
}

.rdo-sim__preview .at-cell__value--strong {
  color: #0d5c6a;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rdo-sim__preview .at-cell__sub {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #78909c;
}

.rdo-sim__preview .at-metrics {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.rdo-sim__preview .at-metric {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #eef5f7;
  border: 1px solid #e0ecf0;
}

.rdo-sim__preview .at-metric__k {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #78909c;
}

.rdo-sim__preview .at-metric__v {
  font-size: 11px;
  font-weight: 700;
  color: #0d5c6a;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rdo-sim__preview .at-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
  max-width: 88px;
  margin-top: 2px;
}

.rdo-sim__preview .at-progress .progress-container {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #dce8ec;
  overflow: hidden;
}

.rdo-sim__preview .at-progress .progress-bar {
  height: 100%;
  border-radius: 999px;
  background: #0d9488;
}

.rdo-sim__preview .at-progress__pct {
  font-size: 11px;
  font-weight: 700;
  color: #0d5c6a;
}

.rdo-sim__preview .atividade-pdf-main--com-itens td {
  border-bottom-color: transparent !important;
}

.rdo-sim__preview .atividade-pdf-detalhe-cell {
  padding: 0 6px 8px !important;
  background: #f8fbfc !important;
}

.rdo-sim__preview .atv-detalhe {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rdo-sim__preview .atv-block {
  border: 1px solid #d5e3e8;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.rdo-sim__preview .atv-block__head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid #e2ecef;
  background: #f7fafb;
  color: #455a64;
}

.rdo-sim__preview .atv-block--obs .atv-block__head { color: #546e7a; background: #f5f7f8; }
.rdo-sim__preview .atv-block--mo .atv-block__head { color: #0d5c6a; background: #eef7f9; }
.rdo-sim__preview .atv-block--in .atv-block__head { color: #1b5e40; background: #eef7f2; }
.rdo-sim__preview .atv-block--eq .atv-block__head { color: #6d4c1e; background: #f8f4ec; }

.rdo-sim__preview .atv-block__count {
  margin-left: auto;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.rdo-sim__preview .atv-block__body,
.rdo-sim__preview .atv-block__obs {
  padding: 8px 10px;
  color: #37474f;
  font-size: 12px;
  line-height: 1.4;
}

.rdo-sim__preview .atv-block__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.rdo-sim__preview .atv-block__table th {
  padding: 3px 10px !important;
  border: none !important;
  border-right: 1px solid #d5e3e8 !important;
  border-bottom: 1px solid #d5e3e8 !important;
  background: #f0f5f7 !important;
  color: #607d8b !important;
  font-size: 9.5px !important;
  font-weight: 700;
  text-transform: uppercase;
}

.rdo-sim__preview .atv-block__table td {
  padding: 4px 10px !important;
  border: none !important;
  border-right: 1px solid #eef3f5 !important;
  border-bottom: 1px solid #eef3f5 !important;
  background: #fff !important;
  font-size: 11.5px;
  color: #37474f;
}

.rdo-sim__preview .atv-block__table th:last-child,
.rdo-sim__preview .atv-block__table td:last-child { border-right: none !important; }

.rdo-sim__preview .atv-td-nome { font-weight: 700; color: #263238; }
.rdo-sim__preview .atv-td-qtd {
  text-align: right;
  font-weight: 700;
  color: #0d5c6a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rdo-sim__preview .atv-td-qtd small {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: #78909c;
  margin-left: 2px;
}

.rdo-sim__preview .atv-th-nome { width: 46%; }
.rdo-sim__preview .atv-th-cargo { width: 28%; }
.rdo-sim__preview .atv-th-qtd { width: 13%; text-align: right !important; }

.rdo-sim__preview .ri-card__head,
.rdo-sim__preview .mc-card__head {
  padding: 6px 10px;
}

.rdo-sim__preview .ri-field {
  padding: 4px 10px;
}

.rdo-sim__preview .mc-table th,
.rdo-sim__preview .mc-table td {
  padding: 4px 8px;
}

.rdo-sim__preview .photos-grid {
  gap: 8px;
  margin: 0;
}

.rdo-sim__preview .photo-caption {
  min-height: 1.8em;
  margin-top: 4px;
}

.rdo-sim__preview-clima {
  margin-top: 4px;
  padding: 6px 10px;
}
