html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
}

a {
  color: var(--info);
  text-decoration: none;
}

.pigma-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 16px;
}

.pigma-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.pigma-header .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.pigma-brand {
  padding-top: 0;
  padding-bottom: 0;
}

.pigma-logo {
  height: 76px;
  width: auto;
  margin-right: 12px;
}
.pigma-logo-subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  color: #4b5d77;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.pigma-nav .navbar-nav {
  gap: 4px;
}

.pigma-nav a,
.pigma-nav .nav-link {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-muted);
}

.pigma-nav button.nav-link {
  border: 0;
  background: transparent;
}

.pigma-nav a:hover,
.pigma-nav .nav-link:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
}

.pigma-nav a.is-active,
.pigma-nav .nav-link.is-active {
  color: var(--text);
  border-bottom: 2px solid var(--brand);
  border-radius: 0;
  font-weight: 600;
}

.pigma-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px rgba(15, 23, 42, 0.06);
}

.pigma-card__title {
  color: var(--text);
  font-weight: 600;
}

.pigma-card__muted {
  color: var(--text-muted);
}

.btn-pigma-primary {
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
}

.btn-pigma-primary:hover {
  background: var(--brand-hover);
  color: #fff;
}

.btn-pigma-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  height: 40px;
  padding: 0 14px;
}

.btn-pigma-secondary:hover {
  background: var(--surface-2);
}

.input-pigma {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 40px;
  padding: 0 12px;
}

.input-pigma:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus);
}

.table-pigma {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-pigma thead th {
  background: var(--surface-2);
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.table-pigma td {
  border-bottom: 1px solid var(--border);
}

.table-pigma tbody tr:hover {
  background: rgba(15, 23, 42, 0.02);
}

.badge-pigma-success {
  background: var(--brand-soft);
  color: var(--brand);
}

.badge-pigma-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #92400e;
}

.badge-pigma-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.pigma-dropdown {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  min-width: 220px;
  padding: 6px;
}

.pigma-dropdown .dropdown-item {
  border-radius: 8px;
  color: var(--text-muted);
  padding: 8px 10px;
}

.pigma-dropdown .dropdown-item:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
}

.pigma-alert {
  border: 1px solid #9cb3cf;
  border-radius: 12px;
  background: #edf4ff;
  color: #1d3d67;
}

.pigma-alert--success {
  background: #e9f7ef;
  border-color: #67b786;
  color: #1f5a33;
}

.pigma-alert--error,
.pigma-alert--danger {
  background: #fbeaea;
  border-color: #d47676;
  color: #812c2c;
}

.pigma-alert--warning {
  background: #fff4df;
  border-color: #d7a453;
  color: #7a5208;
}

.pigma-alert--info,
.pigma-alert--debug {
  background: #edf4ff;
  border-color: #88acd5;
  color: #1d3d67;
}

.pigma-message-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.pigma-message {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 14px;
  border-width: 1px;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.05);
}

.pigma-message__icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex: 0 0 auto;
}

.pigma-message__label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pigma-message__text {
  font-size: 15px;
  line-height: 1.5;
}

.pigma-message .btn-close {
  padding: 8px;
  margin: 0;
}

.pigma-message--success {
  background: #eef9f2;
  border-color: #91d1a8;
  color: #1d5b34;
}

.pigma-message--success .pigma-message__icon {
  background: #d9f0e1;
  color: #1d7d45;
}

.pigma-message--warning {
  background: #fff6e7;
  border-color: #e6c27b;
  color: #7c550d;
}

.pigma-message--warning .pigma-message__icon {
  background: #ffebc8;
  color: #b36c00;
}

.pigma-message--error,
.pigma-message--danger {
  background: #fff0f0;
  border-color: #e39a9a;
  color: #8a2f2f;
}

.pigma-message--error .pigma-message__icon,
.pigma-message--danger .pigma-message__icon {
  background: #ffdede;
  color: #c03a3a;
}

.pigma-message--info,
.pigma-message--debug {
  background: #eef5ff;
  border-color: #9bbce2;
  color: #214c7a;
}

.pigma-message--info .pigma-message__icon,
.pigma-message--debug .pigma-message__icon {
  background: #dfeeff;
  color: #2c6ba4;
}

.pigma-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.pigma-timeline__item {
  position: relative;
  border-left: 2px solid #dbe5f2;
  padding-left: 12px;
}

.pigma-timeline__item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7da5dc;
}

.pigma-timeline__meta {
  color: #7a8ba2;
  font-size: 12px;
}

.pigma-timeline__body {
  color: #4b5d77;
}

.pigma-user-chip {
  color: var(--text-subtle);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px !important;
}

.pigma-help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  color: var(--text) !important;
  padding: 8px 12px !important;
}

.pigma-help-link:hover {
  border-color: #a9bfdc;
  background: #eef4fb !important;
}

.pigma-help-link.is-active {
  border-bottom: 1px solid #9eb9da !important;
  background: #eaf2fc !important;
  color: #24476a !important;
}

.pigma-help-link__label {
  font-weight: 600;
}

.pigma-logout-btn {
  color: var(--text-muted);
}

.pigma-logout-btn:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08) !important;
}

.pigma-role-picker {
  display: grid;
  gap: 8px;
}

.pigma-role-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.pigma-role-option:hover {
  border-color: var(--brand);
  background: rgba(15, 23, 42, 0.02);
}

.pigma-role-option input {
  margin: 0;
}

.auth-logo {
  width: min(220px, 78%);
  max-height: 64px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  .pigma-page {
    padding: 16px;
  }

  .pigma-logo {
    height: 34px;
  }

  .pigma-user-chip {
    margin: 8px 0;
    width: fit-content;
  }
}

.dashboard-v2 {
  padding: 10px 0 6px;
}

.dashboard-v2__header {
  margin-bottom: 14px;
}

.dashboard-v2__title {
  margin: 0;
  color: #40506a;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: 0.2px;
  font-weight: 700;
}

.dashboard-v2__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.help-center {
  display: grid;
  gap: 18px;
  padding-bottom: 28px;
}

.help-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #d5e0ec;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(126, 164, 210, 0.3), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eef4fb 52%, #ffffff 100%);
  box-shadow: 0 18px 40px rgba(25, 55, 88, 0.08);
}

.help-hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
  gap: 22px;
  padding: 28px;
}

.help-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  color: #547191;
}

.help-hero h1 {
  margin: 0 0 10px;
  color: #233a54;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.03;
}

.help-hero p {
  color: #51657f;
  max-width: 62ch;
}

.help-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.help-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d3dfec;
  color: #35516f;
  font-weight: 600;
}

.help-hero__visual {
  align-self: stretch;
  display: grid;
  gap: 12px;
}

.help-preview-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #d6e1ec;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(34, 63, 94, 0.08);
}

.help-preview-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #2f4865;
  font-weight: 700;
  margin-bottom: 14px;
}

.help-preview-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.help-preview-metric {
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, #f6faff 0%, #edf4fb 100%);
  border: 1px solid #d9e5f2;
}

.help-preview-metric strong {
  display: block;
  color: #27435f;
  font-size: 22px;
  line-height: 1;
}

.help-preview-metric span {
  display: block;
  color: #64809e;
  font-size: 12px;
  margin-top: 6px;
}

.help-preview-flow {
  display: grid;
  gap: 8px;
}

.help-preview-flow__step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.help-preview-flow__step span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f5d94;
  color: #fff;
  font-weight: 700;
}

.help-preview-flow__step strong {
  display: block;
  color: #27435f;
}

.help-preview-flow__step small {
  color: #67819b;
}

.help-layout {
  display: grid;
  grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.help-menu {
  position: sticky;
  top: 88px;
  padding: 16px;
  border-radius: 18px;
}

.help-menu__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #6a8097;
  margin-bottom: 12px;
}

.help-menu__list {
  display: grid;
  gap: 10px;
}

.help-menu__button {
  width: 100%;
  text-align: left;
  border: 1px solid #d6e1ec;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  color: #3a556f;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.help-menu__button:hover {
  border-color: #a6bddb;
  background: #f5f9fd;
  transform: translateY(-1px);
}

.help-menu__button.is-active {
  border-color: #8eb2d9;
  background: linear-gradient(180deg, #edf5ff 0%, #f8fbff 100%);
  box-shadow: inset 0 0 0 1px rgba(84, 122, 162, 0.12);
}

.help-menu__button strong {
  display: block;
  margin-bottom: 4px;
  color: #264561;
}

.help-menu__button span {
  display: block;
  color: #6d8298;
  font-size: 12px;
}

.help-content {
  display: grid;
  gap: 18px;
}

.help-section {
  border-radius: 20px;
}

.help-section__body {
  padding: 24px;
}

.help-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.help-section__header h2 {
  margin: 0 0 6px;
  color: #243a53;
}

.help-section__header p {
  margin: 0;
  color: #5d738b;
  max-width: 70ch;
}

.help-anchor-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #f4f8fc;
  border: 1px solid #d6e1ed;
  color: #476481;
  font-size: 12px;
  padding: 8px 12px;
}

.help-overview-grid,
.help-family-grid,
.help-role-grid,
.help-form-grid,
.help-tip-grid,
.help-link-grid {
  display: grid;
  gap: 14px;
}

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

.help-overview-card,
.help-family-card,
.help-role-card,
.help-form-card,
.help-tip-card,
.help-link-card,
.help-sample {
  border: 1px solid #dbe5ef;
  border-radius: 18px;
  background: #fff;
  padding: 18px;
}

.help-overview-card i,
.help-form-card__icon,
.help-link-card i {
  font-size: 20px;
  color: #2a669d;
}

.help-overview-card h3,
.help-family-card h3,
.help-role-card h3,
.help-form-card h3,
.help-link-card h3,
.help-sample h3 {
  margin: 10px 0 8px;
  color: #27435f;
  font-size: 18px;
}

.help-overview-card p,
.help-family-card p,
.help-role-card p,
.help-form-card p,
.help-link-card p,
.help-tip-card p,
.help-sample p {
  color: #5d738b;
}

.help-sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.help-sample__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0;
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
  color: #20486d;
}

.help-sample__value small {
  font-size: 14px;
  color: #65819d;
}

.help-mini-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.help-mini-list__item,
.help-mini-bars__item {
  border-radius: 12px;
  background: #f5f9fd;
  border: 1px solid #dbe7f1;
  padding: 10px 12px;
  color: #46627e;
}

.help-mini-bars {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.help-mini-bars__meter {
  position: relative;
  overflow: hidden;
  display: block;
  margin-top: 6px;
  height: 10px;
  border-radius: 999px;
  background: #e4edf5;
}

.help-mini-bars__meter::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--meter-width, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, #7ba7d7 0%, #2b679b 100%);
}

.help-field-list,
.help-step-list,
.help-metric-list {
  display: grid;
  gap: 10px;
}

.help-field-item,
.help-step-item,
.help-metric-item {
  border-radius: 14px;
  background: #f8fbfd;
  border: 1px solid #dbe5ef;
  padding: 12px 14px;
}

.help-field-item strong,
.help-step-item strong,
.help-metric-item strong {
  display: block;
  color: #29445f;
  margin-bottom: 4px;
}

.help-role-grid,
.help-form-grid,
.help-link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.help-metric-list {
  margin-top: 14px;
}

.help-metric-item span,
.help-field-item span,
.help-step-item span,
.help-link-card span {
  color: #688098;
  font-size: 13px;
}

.help-form-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.help-form-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf5ff;
  border: 1px solid #d6e5f6;
}

.help-form-card__blocks {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.help-tip-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.help-tip-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.help-tip-card i {
  color: #2a669d;
  font-size: 18px;
  margin-top: 2px;
}

.help-link-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.help-link-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f5d94;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .pigma-help-link__label {
    display: inline;
  }

  .help-hero__content,
  .help-layout,
  .help-overview-grid,
  .help-sample-grid,
  .help-role-grid,
  .help-form-grid,
  .help-tip-grid,
  .help-link-grid {
    grid-template-columns: 1fr;
  }

  .help-menu {
    position: static;
  }

  .help-section__header {
    flex-direction: column;
  }
}

.dashboard-card {
  background: #ffffff;
  border: 1px solid #e9edf3;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
}

.dashboard-kpi {
  padding: 14px 16px;
}

.dashboard-kpi--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.dashboard-kpi--link:hover {
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.dashboard-kpi--link:focus,
.dashboard-kpi--link:active,
.dashboard-kpi--link:visited {
  color: inherit;
  text-decoration: none;
}

.dashboard-kpi__label {
  margin: 0;
  color: #71839d;
  font-size: 14px;
  font-weight: 500;
}

.dashboard-kpi__value {
  margin: 6px 0 2px;
  color: #40506a;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.dashboard-kpi__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-kpi__sub {
  color: #df7373;
  font-size: 13px;
  font-weight: 600;
}

.trend {
  font-size: 14px;
  font-weight: 600;
}

.trend-up {
  color: #58b67f;
}

.trend-down {
  color: #dc7373;
}

.sparkline {
  width: 90px;
  height: 26px;
  border-radius: 999px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.sparkline-peach {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 26'%3E%3Cpath d='M2 19 C17 18, 24 13, 40 14 C53 15, 62 16, 77 9' stroke='%23f0ba95' stroke-width='2' fill='none'/%3E%3Ccircle cx='40' cy='14' r='2.6' fill='%23f0ba95'/%3E%3Ccircle cx='77' cy='9' r='2.6' fill='%23f0ba95'/%3E%3C/svg%3E");
}

.sparkline-red {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 26'%3E%3Cpath d='M2 10 C17 11, 24 14, 40 15 C53 16, 62 13, 77 17' stroke='%23df8b8b' stroke-width='2' fill='none'/%3E%3Ccircle cx='40' cy='15' r='2.6' fill='%23df8b8b'/%3E%3Ccircle cx='77' cy='17' r='2.6' fill='%23df8b8b'/%3E%3C/svg%3E");
}

.sparkline-green {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 26'%3E%3Cpath d='M2 22 C17 20, 24 15, 40 12 C53 10, 62 7, 77 3' stroke='%2358b67f' stroke-width='2' fill='none'/%3E%3Ccircle cx='40' cy='12' r='2.6' fill='%2358b67f'/%3E%3Ccircle cx='77' cy='3' r='2.6' fill='%2358b67f'/%3E%3C/svg%3E");
}

.dashboard-v2__middle {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.dashboard-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}

.dashboard-card__head h2 {
  margin: 0;
  color: #40506a;
  font-size: 25px;
  font-weight: 700;
}

.status-panel {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 14px;
  align-items: center;
  padding: 4px 16px 16px;
}

.donut-wrap {
  display: flex;
  justify-content: center;
}

.donut-chart {
  --completed-angle: calc((var(--completed) / var(--total)) * 360deg);
  --open-angle: calc((var(--open) / var(--total)) * 360deg);
  --late-angle: calc((var(--late) / var(--total)) * 360deg);
  --scheduled-angle: calc((var(--scheduled) / var(--total)) * 360deg);
  width: 182px;
  height: 182px;
  border-radius: 50%;
  background:
    conic-gradient(
      #5bbf8b 0deg var(--completed-angle),
      #73a9e7 var(--completed-angle) calc(var(--completed-angle) + var(--open-angle)),
      #efb890 calc(var(--completed-angle) + var(--open-angle)) calc(var(--completed-angle) + var(--open-angle) + var(--late-angle)),
      #f2d58a calc(var(--completed-angle) + var(--open-angle) + var(--late-angle)) 360deg
    );
  display: grid;
  place-items: center;
}

.donut-center {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  line-height: 1.1;
}

.donut-center strong {
  color: #40506a;
  font-size: 42px;
  font-weight: 700;
}

.donut-center span {
  color: #8997a8;
  font-size: 12px;
  font-weight: 600;
}

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.status-list li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 10px;
  color: #6f829c;
  font-size: 22px;
  font-weight: 500;
}

.status-list strong {
  color: #41546e;
  font-size: 22px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-complete {
  background: #5bbf8b;
}

.dot-open {
  background: #73a9e7;
}

.dot-late {
  background: #efb890;
}

.dot-scheduled {
  background: #f2d58a;
}

.program-chart {
  padding: 2px 16px 16px;
}

.program-chart__grid {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: stretch;
  gap: 10px;
}

.program-chart__axis {
  display: grid;
  align-content: stretch;
  justify-items: end;
  color: #7b8a9c;
  font-size: 11px;
  font-weight: 600;
}

.program-chart__axis-title {
  align-self: start;
  margin-bottom: 8px;
}

.program-chart__axis-label {
  align-self: center;
}

.program-chart__plot {
  height: 198px;
  border-radius: 8px;
  padding: 22px 12px 8px;
  background:
    linear-gradient(to top, rgba(86, 141, 235, 0.12), rgba(86, 141, 235, 0.02) 72%, transparent 72%),
    repeating-linear-gradient(to top, #eef2f8 0px, #eef2f8 1px, transparent 1px, transparent 36px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: end;
}

.program-chart__bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 100%;
}

.program-chart__value {
  color: #6f7f94;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.program-chart__bar {
  width: 34px;
  min-height: 8px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #4f8ef0 0%, #7ac3ff 100%);
}

.program-chart__bar-wrap span {
  color: #7b8a9c;
  font-size: 11px;
  font-weight: 500;
}

.dashboard-v2__table-wrap {
  background: #ffffff;
  border: 1px solid #e9edf3;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
  overflow: hidden;
}

.dashboard-v2__table-head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px;
}

.dashboard-v2__table-head h2 {
  margin: 0;
  color: #40506a;
  font-size: 30px;
  font-weight: 700;
}

.dashboard-v2__new-btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table thead th {
  background: #f7f9fc;
  color: #8a96a8;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 14px;
  border-top: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
}

.dashboard-table tbody td {
  color: #667891;
  font-size: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf1f6;
}

.dashboard-table tbody tr:hover {
  background: #fbfcff;
}

.priority-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.priority-high {
  background: #f09393;
}

.priority-medium {
  background: #f3d07a;
}

.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.status-open {
  color: #805f0f;
  background: #fff0cb;
  border: 1px solid #ebc573;
}

.status-in-progress {
  color: #1f5374;
  background: #dff0ff;
  border: 1px solid #91bde0;
}

.status-done {
  color: #1f5a33;
  background: #e7f7ee;
  border: 1px solid #7bc196;
}

.badge-status-abierta {
  background: #fff4d6;
  color: #7a4b00;
  border: 1px solid #d9a441;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.badge-status-en_curso {
  background: #d9efff;
  color: #0f4f73;
  border: 1px solid #5da6d1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.badge-status-cerrada,
.badge-status-ejecutada {
  background: #dff5e6;
  color: #155b2c;
  border: 1px solid #51a56c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.badge-status-programada {
  background: #eaf2ff;
  color: #274f87;
  border: 1px solid #9dbbe2;
}

.badge-status-pospuesta {
  background: #ffe5c7;
  color: #8a3e00;
  border: 1px solid #dc8f42;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.badge-status-cancelada {
  background: #f4f0fb;
  color: #5f3f96;
  border: 1px solid #b9a2dd;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 120px;
  padding: 0.45rem 0.8rem;
  border-width: 1.5px;
  border-style: solid;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 1px 2px rgba(31, 43, 61, 0.08);
}

.listing-table .badge,
.ot-panel .badge,
.card .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-width: 1.5px;
  border-style: solid;
}

.status-pill i {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.status-pill--preventivo.badge-status-programada {
  background: linear-gradient(180deg, #f4f8ff 0%, #e6f0ff 100%);
  color: #204d87;
  border-color: #87acd9;
}

.status-pill--preventivo.badge-status-programada i {
  color: #2d68ab;
}

.status-pill--preventivo.badge-status-pospuesta {
  background: linear-gradient(180deg, #fff7e5 0%, #ffefcf 100%);
  color: #7a580f;
  border-color: #ddb661;
}

.status-pill--preventivo.badge-status-pospuesta i {
  color: #a16900;
}

.status-pill--preventivo.badge-status-ejecutada {
  background: linear-gradient(180deg, #f1fbf5 0%, #e5f6ec 100%);
  color: #1f653a;
  border-color: #76bf95;
}

.status-pill--preventivo.badge-status-ejecutada i {
  color: #2e8a56;
}

.status-pill--preventivo.badge-status-cancelada {
  background: linear-gradient(180deg, #faf6ff 0%, #f2ebff 100%);
  color: #68459e;
  border-color: #b496e1;
}

.status-pill--preventivo.badge-status-cancelada i {
  color: #8662bf;
}

.status-pill--correctivo.badge-status-abierta {
  background: linear-gradient(180deg, #fff7e5 0%, #ffefcf 100%);
  color: #7a580f;
  border-color: #ddb661;
}

.status-pill--correctivo.badge-status-abierta i {
  color: #a16900;
}

.status-pill--correctivo.badge-status-en_curso {
  background: linear-gradient(180deg, #eef8ff 0%, #deefff 100%);
  color: #16507d;
  border-color: #7fb0d9;
}

.status-pill--correctivo.badge-status-en_curso i {
  color: #1d70aa;
}

.status-pill--correctivo.badge-status-pospuesta {
  background: linear-gradient(180deg, #fff0e4 0%, #ffdcca 100%);
  color: #8a4308;
  border-color: #e0a171;
}

.status-pill--correctivo.badge-status-pospuesta i {
  color: #b35a12;
}

.status-pill--correctivo.badge-status-cerrada {
  background: linear-gradient(180deg, #f1fbf5 0%, #e5f6ec 100%);
  color: #1f653a;
  border-color: #76bf95;
}

.status-pill--correctivo.badge-status-cerrada i {
  color: #2e8a56;
}

.text-danger-soft {
  color: #df7373;
}

.text-success-soft {
  color: #58b67f;
}

@media (max-width: 1200px) {
  .dashboard-v2__title {
    font-size: 30px;
  }

  .dashboard-kpi__value,
  .donut-center strong {
    font-size: 34px;
  }

  .status-list li,
  .status-list strong {
    font-size: 18px;
  }

  .dashboard-v2__table-head h2,
  .dashboard-card__head h2 {
    font-size: 24px;
  }
}

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

  .dashboard-v2__middle {
    grid-template-columns: 1fr;
  }

  .status-panel {
    grid-template-columns: 1fr;
  }

  .program-chart__plot {
    grid-template-columns: repeat(5, minmax(46px, 1fr));
    overflow-x: auto;
  }

  .program-chart__grid {
    grid-template-columns: 1fr;
  }

  .program-chart__axis {
    grid-auto-flow: column;
    justify-content: start;
    gap: 10px;
  }
}

.public-entry {
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 22%),
    linear-gradient(180deg, #f3f7fb 0%, #eef3f8 100%);
}

.public-entry .pigma-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.public-entry .pigma-brand {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.public-entry .pigma-logo {
  height: 68px;
  margin-right: 8px;
}

.public-entry .pigma-nav .nav-link {
  color: #5f7087;
}

.public-entry .pigma-nav .nav-link:hover {
  background: rgba(15, 23, 42, 0.05);
  color: #122033;
}

.public-entry .pigma-nav__login {
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.95), rgba(224, 242, 254, 0.95));
  color: #0f4c64;
  font-weight: 700;
}

.public-entry .pigma-nav__login:hover {
  background: linear-gradient(135deg, rgba(207, 250, 254, 0.98), rgba(186, 230, 253, 0.98));
  color: #0b3b4d;
}

.public-showcase {
  position: relative;
  isolation: isolate;
  padding: 22px 0 14px;
  font-family: "Sora", "Segoe UI", sans-serif;
}

.public-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(145deg, rgba(7, 12, 21, 0.96) 0%, rgba(13, 23, 38, 0.98) 52%, rgba(10, 17, 30, 0.96) 100%);
  border: 1px solid rgba(71, 85, 105, 0.34);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 28px;
}

.public-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(34, 211, 238, 0.16), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(16, 185, 129, 0.18), transparent 22%),
    linear-gradient(90deg, transparent 0%, rgba(34, 211, 238, 0.04) 48%, transparent 100%);
  pointer-events: none;
}

.public-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  background: rgba(8, 145, 178, 0.12);
  color: #67e8f9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.public-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.public-hero__title {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.35rem, 5vw, 4.35rem);
  line-height: 0.96;
  color: #f8fafc;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.public-hero__lead {
  margin-top: 18px;
  max-width: 44ch;
  color: #b8c4d3;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.6;
}

.public-hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  max-width: 520px;
}

.public-hero__metrics div {
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(10, 17, 30, 0.58);
}

.public-hero__metrics strong {
  display: block;
  color: #f8fafc;
  font-size: 1.25rem;
  font-weight: 700;
}

.public-hero__metrics span {
  display: block;
  margin-top: 4px;
  color: #7dd3fc;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.public-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.public-cta-group .btn {
  min-height: 50px;
  padding-inline: 22px;
  border-radius: 14px;
  font-weight: 700;
}

.public-cta-group .btn-primary {
  border: 0;
  background: linear-gradient(135deg, #22d3ee 0%, #14b8a6 100%);
  color: #082032;
  box-shadow: 0 12px 32px rgba(20, 184, 166, 0.25);
}

.public-cta-group .btn-primary:hover {
  color: #06141f;
  filter: brightness(1.04);
}

.public-cta-group .btn-outline-light {
  border-color: rgba(148, 163, 184, 0.5);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.22);
}

.public-hero__visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.public-dashboard-preview {
  width: 100%;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(71, 85, 105, 0.42);
  background:
    linear-gradient(180deg, rgba(5, 10, 18, 0.96) 0%, rgba(12, 20, 34, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08), 0 18px 44px rgba(2, 6, 23, 0.35);
}

.public-dashboard-preview .dashboard-role__hero {
  margin-bottom: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border-color: #dce5ef;
  background: linear-gradient(140deg, #eef8ff 0%, #ffffff 60%);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.public-dashboard-preview__title {
  margin: 0;
  font-size: 1.1rem;
  color: #31445c;
}

.public-dashboard-preview__subtitle,
.public-dashboard-preview__timestamp {
  margin: 4px 0 0;
  color: #6d8098;
  font-size: 0.79rem;
}

.public-dashboard-preview__actions {
  gap: 8px;
  margin-bottom: 10px;
}

.public-dashboard-preview__actions .dashboard-role__action {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.76rem;
}

.public-dashboard-preview__top {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.public-dashboard-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.public-dashboard-preview__grid .dashboard-role-card--asset_risk_table {
  grid-column: span 2;
}

.public-dashboard-preview .dashboard-role-card {
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.045);
}

.public-dashboard-preview .dashboard-role-card__head {
  margin-bottom: 10px;
}

.public-dashboard-preview .dashboard-role-card__head h2 {
  font-size: 0.94rem;
}

.public-dashboard-preview .dashboard-kpi-block__value {
  font-size: 1.85rem;
}

.public-dashboard-preview .dashboard-kpi-block__unit {
  font-size: 0.78rem;
}

.public-dashboard-preview .dashboard-kpi-block__spark {
  height: 38px;
}

.public-dashboard-preview .dashboard-kpi-block__spark span {
  width: 8px;
}

.public-dashboard-preview .dashboard-role-statuses,
.public-dashboard-preview .dashboard-role-list,
.public-dashboard-preview .dashboard-table {
  font-size: 0.78rem;
}

.public-dashboard-preview .dashboard-role-statuses li,
.public-dashboard-preview .dashboard-role-list__item {
  gap: 8px;
  padding-top: 8px;
}

.public-dashboard-preview .dashboard-role-list__meta {
  font-size: 0.74rem;
}

.public-dashboard-preview .dashboard-table thead th,
.public-dashboard-preview .dashboard-table tbody td {
  padding: 8px 10px;
}

.public-dashboard-preview .table-responsive {
  border-radius: 12px;
  overflow: hidden;
}

.public-modules-panel {
  margin-top: 18px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(203, 213, 225, 0.75);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: 0 14px 38px rgba(148, 163, 184, 0.14);
}

.public-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.public-section-heading span {
  display: block;
  color: #0891b2;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.public-section-heading h2 {
  margin: 6px 0 0;
  max-width: 24ch;
  color: #0f172a;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.1;
}

.public-modules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.public-module-card {
  min-height: 158px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid #dbe3ec;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 24px rgba(148, 163, 184, 0.1);
}

.public-module-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #dbeafe 0%, #ecfeff 100%);
  color: #0369a1;
  font-size: 1.1rem;
}

.public-module-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}

.public-module-card p {
  margin: 10px 0 0;
  color: #5b6b80;
  font-size: 0.92rem;
  line-height: 1.55;
}

.public-bottom-cta {
  margin-top: 18px;
  padding: 18px 24px;
  border-radius: 18px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: linear-gradient(90deg, #08101c 0%, #0d1b2d 52%, #0b1627 100%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.public-bottom-cta p {
  margin: 0;
  color: #e2e8f0;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

@media (max-width: 1200px) {
  .public-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-hero__title {
    max-width: 12ch;
  }

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

  .public-dashboard-preview__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .public-hero__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .public-section-heading {
    display: block;
  }

  .public-modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-dashboard-preview__grid {
    grid-template-columns: 1fr;
  }

  .public-dashboard-preview__grid .dashboard-role-card--asset_risk_table {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .public-showcase {
    padding-top: 10px;
  }

  .public-hero {
    padding: 20px;
    border-radius: 22px;
  }

  .public-hero__title {
    max-width: 100%;
    font-size: 2.5rem;
  }

  .public-hero__metrics {
    grid-template-columns: 1fr;
  }

  .public-dashboard-preview__top {
    grid-template-columns: 1fr;
  }

  .public-modules-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .public-modules-grid {
    grid-template-columns: 1fr;
  }

  .public-bottom-cta {
    padding: 16px 18px;
  }
}

.dashboard-role {
  padding: 10px 0 16px;
}

.dashboard-role__hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border: 1px solid #e4ebf3;
  border-radius: 18px;
  background: linear-gradient(140deg, #ffffff 0%, #f5f8fb 100%);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.dashboard-role--supervisor .dashboard-role__hero {
  border-color: #e8d3be;
  background:
    radial-gradient(circle at 85% -10%, rgba(226, 110, 64, 0.18) 0%, transparent 36%),
    radial-gradient(circle at -6% 116%, rgba(34, 115, 159, 0.18) 0%, transparent 40%),
    linear-gradient(135deg, #fff4e8 0%, #fffdf8 42%, #f4fbff 100%);
}

.dashboard-role--responsable .dashboard-role__hero {
  border-color: #dce6f0;
  background:
    radial-gradient(circle at 90% -5%, rgba(79, 140, 199, 0.16) 0%, transparent 38%),
    radial-gradient(circle at -8% 110%, rgba(34, 115, 159, 0.14) 0%, transparent 40%),
    linear-gradient(135deg, #f0f7ff 0%, #ffffff 48%, #fafbff 100%);
}

.dashboard-role--tecnico .dashboard-role__hero {
  background: linear-gradient(140deg, #eefaf4 0%, #ffffff 60%);
}

.dashboard-role--operario .dashboard-role__hero {
  border-color: #d7e4ef;
  background:
    radial-gradient(circle at 100% 0%, rgba(72, 140, 199, 0.14) 0%, transparent 34%),
    radial-gradient(circle at -12% 120%, rgba(224, 132, 78, 0.1) 0%, transparent 36%),
    linear-gradient(140deg, #f3f9ff 0%, #ffffff 64%);
}

.dashboard-role__eyebrow {
  margin: 0 0 4px;
  color: #58718f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-role__title {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  color: #31445c;
}

.dashboard-role__subtitle,
.dashboard-role__timestamp {
  margin: 8px 0 0;
  color: #6d8098;
}

.dashboard-role__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.dashboard-role__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d5e1ec;
  background: #fff;
  color: #355170;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-role__action:hover {
  color: #21374e;
  background: #f7fbff;
}

.dashboard-role__action--inline {
  width: 100%;
  justify-content: flex-start;
}

.dashboard-role__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.dashboard-role__top,
.dashboard-role__main,
.dashboard-role__side {
  display: grid;
  gap: 16px;
}

.dashboard-role__top {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dashboard-role__grid--operations_control .dashboard-role__main {
  grid-template-columns: 1.4fr 1fr;
}

.dashboard-role__grid--operations_control .dashboard-role-card--location_heatmap {
  grid-column: 1 / -1;
}

.dashboard-role--supervisor .dashboard-role-card {
  border-color: #e8e3dd;
  box-shadow: 0 10px 30px rgba(34, 51, 68, 0.07);
  animation: dashboardCardIn 420ms ease both;
}

.dashboard-role--supervisor .dashboard-role-card--kpi {
  background: linear-gradient(150deg, #ffffff 0%, #fffaf4 100%);
}

.dashboard-role--supervisor .dashboard-role-card:nth-child(2) { animation-delay: 45ms; }
.dashboard-role--supervisor .dashboard-role-card:nth-child(3) { animation-delay: 90ms; }
.dashboard-role--supervisor .dashboard-role-card:nth-child(4) { animation-delay: 135ms; }

.dashboard-role-card {
  background: #fff;
  border: 1px solid #e7edf4;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.dashboard-role-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #d7e3ee;
}

.dashboard-role-card--kpi::before {
  background: linear-gradient(180deg, #5d93db, #83bad6);
}

.dashboard-role-card--alert_list::before {
  background: linear-gradient(180deg, #e38972, #efb676);
}

.dashboard-role-card--activity_feed::before {
  background: linear-gradient(180deg, #7b96c8, #b3c3de);
}

.dashboard-role-card--quick_actions::before {
  background: linear-gradient(180deg, #7b72d8, #b7a6f0);
}

.dashboard-role-card--stock_alerts::before,
.dashboard-role-card--asset_risk_table::before {
  background: linear-gradient(180deg, #4694a8, #8bd0cd);
}

.dashboard-role-card__head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-role-card__head h2 {
  margin: 2px 0 0;
  font-size: 20px;
  color: #334a65;
}

.dashboard-role-card__eyebrow {
  margin: 0;
  color: #8394aa;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-role-card__mini-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: #315f93;
  font-size: 13px;
  font-weight: 600;
}

.dashboard-kpi-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-kpi-block__value {
  font-size: 42px;
  line-height: 1;
  color: #31445c;
}

.dashboard-kpi-block__unit {
  color: #7d8da2;
  font-size: 15px;
  font-weight: 600;
}

.dashboard-kpi-block__spark {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 52px;
}

.dashboard-kpi-block__spark span {
  display: block;
  width: 10px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, #bdd6ff 0%, #5e93d8 100%);
}

.dashboard-kpi-block__spark span:nth-child(1) { height: 20px; }
.dashboard-kpi-block__spark span:nth-child(2) { height: 34px; }
.dashboard-kpi-block__spark span:nth-child(3) { height: 48px; }

.dashboard-role-card--kpi_backlog_total .dashboard-kpi-block__value,
.dashboard-role-card--kpi_overdue_work .dashboard-kpi-block__value {
  color: #b76438;
}

.dashboard-role-card--kpi_preventive_compliance .dashboard-kpi-block__value,
.dashboard-role-card--my_execution_rate .dashboard-kpi-block__value {
  color: #2b8b62;
}

.dashboard-role-card--kpi_mttr .dashboard-kpi-block__value,
.dashboard-role-card--maintenance_cost_summary .dashboard-kpi-block__value {
  color: #3c6db0;
}

.dashboard-role-list,
.dashboard-role-feed,
.dashboard-role-statuses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.dashboard-role-list__item,
.dashboard-role-feed li,
.dashboard-role-statuses li {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #edf2f7;
}

.dashboard-role-list__item:first-child,
.dashboard-role-feed li:first-child,
.dashboard-role-statuses li:first-child {
  padding-top: 0;
  border-top: 0;
}

.dashboard-role-list__body {
  min-width: 0;
}

.dashboard-role-list__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-role-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 4px;
  color: #78879a;
  font-size: 13px;
}

.dashboard-role-severity {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e4b36d;
  flex: 0 0 auto;
}

.dashboard-role-severity--high {
  background: #d66a62;
  box-shadow: 0 0 0 4px rgba(214, 106, 98, 0.14);
}

.dashboard-role-severity--medium {
  background: #dca55a;
  box-shadow: 0 0 0 4px rgba(220, 165, 90, 0.14);
}

.dashboard-status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid #dae3ec;
  background: #f4f7fb;
  color: #58708d;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.dashboard-status-tag--abierta,
.dashboard-status-tag--programada {
  background: #fff3d8;
  color: #8a6414;
  border-color: #eed199;
}

.dashboard-status-tag--en-curso,
.dashboard-status-tag--en_curso,
.dashboard-status-tag--ot {
  background: #e2f0ff;
  color: #1d5a84;
  border-color: #a7c6ea;
}

.dashboard-status-tag--cerrada,
.dashboard-status-tag--ejecutada {
  background: #e6f6ed;
  color: #1e6a44;
  border-color: #95d0ae;
}

.dashboard-role-feed li {
  position: relative;
  align-items: start;
}

.dashboard-role-feed__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #76a4d6;
  margin-top: 7px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 5px rgba(118, 164, 214, 0.12);
}

.dashboard-role-feed__body {
  flex: 1 1 auto;
}

.dashboard-role-feed p {
  margin: 4px 0;
  color: #51657e;
}

.dashboard-role-feed span {
  color: #8394aa;
  font-size: 12px;
}

.dashboard-role-bars,
.dashboard-role-trend {
  display: grid;
  gap: 10px;
}

.dashboard-role-bars__row,
.dashboard-role-trend__point {
  display: grid;
  grid-template-columns: minmax(80px, 140px) 1fr auto;
  gap: 12px;
  align-items: center;
}

.dashboard-role-bars__track {
  height: 10px;
  overflow: hidden;
  background: #eef3f8;
  border-radius: 999px;
}

.dashboard-role-bars__fill {
  height: 100%;
  min-width: 8px;
  max-width: 100%;
  background: linear-gradient(90deg, #5f93d5, #87c5ff);
  border-radius: inherit;
}

.dashboard-role-card--team_workload .dashboard-role-bars__fill {
  background: linear-gradient(90deg, #df8c67, #f5c58f);
}

.dashboard-role-line {
  margin-bottom: 14px;
}

.dashboard-role-line__plot {
  height: 180px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 16px 12px 8px;
  border-radius: 14px;
  background:
    linear-gradient(to top, rgba(111, 160, 221, 0.14), rgba(111, 160, 221, 0.03) 72%, transparent 72%),
    repeating-linear-gradient(to top, #edf3f8 0px, #edf3f8 1px, transparent 1px, transparent 34px);
}

.dashboard-role-line__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 8px;
  min-height: 100%;
}

.dashboard-role-line__value,
.dashboard-role-line__label {
  font-size: 11px;
  color: #74859c;
  font-weight: 700;
}

.dashboard-role-line__bar {
  width: 26px;
  min-height: 8px;
  max-height: 120px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #548ee0, #8bc7ff);
}

.dashboard-role-stack {
  display: flex;
  overflow: hidden;
  height: 16px;
  border-radius: 999px;
  background: #eef3f8;
  margin-bottom: 14px;
}

.dashboard-role-stack__segment {
  min-width: 6px;
}

.dashboard-role-stack__segment--1 { background: #efb56d; }
.dashboard-role-stack__segment--2 { background: #78a9e0; }
.dashboard-role-stack__segment--3 { background: #66bb8a; }
.dashboard-role-stack__segment--4 { background: #b49bdd; }

.dashboard-role-trend__point {
  grid-template-columns: 1fr auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f9fc;
}

.dashboard-donut-card {
  display: grid;
  grid-template-columns: minmax(170px, 220px) 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e7edf3;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
}

.dashboard-donut {
  --open-pct: 0;
  --in-progress-pct: 0;
  --closed-pct: 0;
  --donut-open: #e39a43;
  --donut-progress: #4f93de;
  --donut-closed: #48ae76;
  width: clamp(152px, 18vw, 188px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(
      var(--donut-open) 0 calc(var(--open-pct) * 1%),
      var(--donut-progress) calc(var(--open-pct) * 1%) calc((var(--open-pct) + var(--in-progress-pct)) * 1%),
      var(--donut-closed) calc((var(--open-pct) + var(--in-progress-pct)) * 1%) 100%
    );
  display: grid;
  place-items: center;
  margin-inline: auto;
}

.dashboard-donut--empty {
  background: conic-gradient(#e4ebf3 0 100%);
}

.dashboard-donut--preventive {
  --scheduled-pct: 0;
  --postponed-pct: 0;
  --executed-pct: 0;
  --canceled-pct: 0;
  --donut-scheduled: #e9a44f;
  --donut-postponed: #6ea4df;
  --donut-executed: #53b985;
  --donut-canceled: #a792d8;
  background:
    conic-gradient(
      var(--donut-scheduled) 0 calc(var(--scheduled-pct) * 1%),
      var(--donut-postponed) calc(var(--scheduled-pct) * 1%) calc((var(--scheduled-pct) + var(--postponed-pct)) * 1%),
      var(--donut-executed) calc((var(--scheduled-pct) + var(--postponed-pct)) * 1%) calc((var(--scheduled-pct) + var(--postponed-pct) + var(--executed-pct)) * 1%),
      var(--donut-canceled) calc((var(--scheduled-pct) + var(--postponed-pct) + var(--executed-pct)) * 1%) 100%
    );
}

.dashboard-donut__center {
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e6edf5;
  display: grid;
  place-items: center;
  align-content: center;
  line-height: 1.05;
}

.dashboard-donut__center strong {
  color: #3f556f;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  font-weight: 800;
}

.dashboard-donut__center span {
  color: #7388a1;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dashboard-donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.dashboard-donut-legend li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #edf2f8;
}

.dashboard-donut-legend__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #59718d;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-donut-legend__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dashboard-donut-legend__dot--abierta {
  background: #e39a43;
}

.dashboard-donut-legend__dot--en_curso {
  background: #4f93de;
}

.dashboard-donut-legend__dot--cerrada {
  background: #48ae76;
}

.dashboard-donut-legend__dot--programada {
  background: #e9a44f;
}

.dashboard-donut-legend__dot--pospuesta {
  background: #6ea4df;
}

.dashboard-donut-legend__dot--ejecutada {
  background: #53b985;
}

.dashboard-donut-legend__dot--cancelada {
  background: #a792d8;
}

.dashboard-donut-legend strong {
  color: #3f556f;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 600px) {
  .dashboard-donut-card {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .dashboard-donut-legend {
    width: 100%;
  }
}

.dashboard-location-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.dashboard-location-summary__item {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d9e2eb;
  background: #f8fbfe;
  color: #4a617c;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-location-summary__item--critical {
  border-color: #efc6bd;
  background: #fff1ee;
  color: #99423d;
}

.dashboard-location-summary__item--warning {
  border-color: #eedab7;
  background: #fff8e8;
  color: #8e6a1e;
}

.dashboard-location-summary__item--healthy {
  border-color: #b9e0cc;
  background: #eefaf3;
  color: #2f6f4e;
}

.dashboard-location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.dashboard-location-tile {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e6edf4;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.dashboard-location-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(35, 54, 75, 0.1);
}

.dashboard-location-tile__head {
  display: grid;
  gap: 2px;
}

.dashboard-location-tile__head strong {
  color: #2f4865;
}

.dashboard-location-tile__head span {
  color: #6d8098;
  font-size: 12px;
}

.dashboard-location-tile__stats {
  display: grid;
  gap: 4px;
  color: #5f748e;
  font-size: 12px;
}

.dashboard-location-tile--critical {
  border-color: #efcdc5;
  background: linear-gradient(160deg, #fff4f1 0%, #ffffff 100%);
}

.dashboard-location-tile--warning {
  border-color: #f1dfbd;
  background: linear-gradient(160deg, #fff9ef 0%, #ffffff 100%);
}

.dashboard-location-tile--healthy {
  border-color: #cce8d8;
  background: linear-gradient(160deg, #f1faf5 0%, #ffffff 100%);
}

.dashboard-week {
  height: 220px;
  display: grid;
  grid-template-columns: repeat(7, minmax(42px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 10px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(to top, #ebf1f7 0px, #ebf1f7 1px, transparent 1px, transparent 34px),
    linear-gradient(180deg, #fbfdff 0%, #f3f7fc 100%);
}

.dashboard-week__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dashboard-week__label,
.dashboard-week__meta {
  color: #6f8298;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-week__bars {
  width: 30px;
  height: 126px;
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
}

.dashboard-week__bar {
  position: absolute;
  bottom: 0;
  border-radius: 9px 9px 3px 3px;
  min-height: 5px;
}

.dashboard-week__bar--total {
  width: 26px;
  background: linear-gradient(180deg, #9bc3f0, #4d8ed3);
}

.dashboard-week__bar--executed {
  width: 16px;
  background: linear-gradient(180deg, #88d5a6, #2f9f66);
}

@keyframes dashboardCardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-role-statuses li {
  align-items: center;
}

.dashboard-role-statuses__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-role-statuses__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dashboard-role-statuses__dot--1 { background: #efb56d; }
.dashboard-role-statuses__dot--2 { background: #78a9e0; }
.dashboard-role-statuses__dot--3 { background: #66bb8a; }
.dashboard-role-statuses__dot--4 { background: #b49bdd; }

.dashboard-role-actions-inline {
  display: grid;
  gap: 10px;
}

.dashboard-table--insights thead th {
  text-transform: capitalize;
}

.dashboard-table__metric {
  font-weight: 700;
  color: #355a82;
}

.listing-card {
  border: 1px solid #e6edf4;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.04);
}

.ot-shell {
  display: grid;
  gap: 16px;
}

.ot-panel {
  border: 1px solid #e6edf4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.ot-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 16px 18px 0;
}

.ot-panel__header h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #31445c;
}

.ot-panel__body {
  padding: 16px 18px 18px;
}

.ot-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.ot-kpi {
  border: 1px solid #e8eef5;
  border-radius: 12px;
  background: #f9fbfd;
  padding: 12px 14px;
}

.ot-kpi__label {
  display: block;
  margin-bottom: 4px;
  color: #7b8da4;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ot-kpi__value {
  color: #31445c;
  font-weight: 700;
}

.ot-instructions {
  border-left: 4px solid #5f93d5;
  background: #f5f9ff;
  border-radius: 12px;
  padding: 14px 16px;
}

.ot-instructions__label {
  margin: 0 0 6px;
  color: #35557c;
  font-weight: 700;
}

/* Responsable Dashboard Styles */
.dashboard-role--responsable .dashboard-role-card {
  border-color: #dce6f0;
  box-shadow: 0 10px 30px rgba(48, 96, 136, 0.07);
  animation: dashboardCardIn 420ms ease both;
}

.dashboard-role--responsable .dashboard-role-card--kpi {
  background: linear-gradient(150deg, #ffffff 0%, #f5f9ff 100%);
}

.dashboard-role--responsable .dashboard-role-card:nth-child(2) { animation-delay: 45ms; }
.dashboard-role--responsable .dashboard-role-card:nth-child(3) { animation-delay: 90ms; }
.dashboard-role--responsable .dashboard-role-card:nth-child(4) { animation-delay: 135ms; }

.dashboard-live--no-card-anim .dashboard-role-card {
  animation: none !important;
}

/* Stock Parts List */
.dashboard-stock-parts {
  display: flex;
  flex-direction: column;
}

.dashboard-stock-parts__header {
  margin: 0 0 12px;
  color: #4f6b8f;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.dashboard-stock-parts .dashboard-role-list__item {
  border-bottom: 1px solid #f0f2f5;
  padding: 10px 0;
}

.dashboard-stock-parts .dashboard-role-list__item:last-child {
  border-bottom: none;
}

/* Location Risk Summary */
.dashboard-location-risk {
  display: grid;
  gap: 12px;
}

.dashboard-location-risk-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid;
  text-decoration: none;
  transition: all 280ms ease;
  cursor: pointer;
}

.dashboard-location-risk-tile--healthy {
  border-color: #5fbe80;
  background: #f5fdf8;
  color: #1d5e35;
}

.dashboard-location-risk-tile--warning {
  border-color: #ffa733;
  background: #fff8f0;
  color: #7a4a04;
}

.dashboard-location-risk-tile--critical {
  border-color: #f85e5e;
  background: #fff5f5;
  color: #9b1e1e;
}

.dashboard-location-risk-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.dashboard-location-risk-tile__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.dashboard-location-risk-tile__head strong {
  font-weight: 700;
  font-size: 15px;
}

.dashboard-location-risk-tile__name {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 2px;
  opacity: 0.8;
}

.dashboard-location-risk-tile__score {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.dashboard-location-risk-tile__metrics {
  display: flex;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 8px;
}

.dashboard-location-risk-tile__metric {
  display: inline-block;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
}

.dashboard-location-risk-tile__state {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.7;
  text-transform: uppercase;
}

/* Preventive Week Timeline */
.dashboard-preventive-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  background: linear-gradient(to right, rgba(100, 150, 200, 0.02) 0%, transparent 25%, transparent 75%, rgba(100, 150, 200, 0.02) 100%);
  padding: 16px 12px;
  border-radius: 8px;
  min-height: 200px;
}

.dashboard-preventive-week__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dashboard-preventive-week__label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7e94;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-preventive-week__bars {
  display: flex;
  gap: 3px;
  width: 100%;
  height: 160px;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.dashboard-preventive-week__bar {
  flex: 1;
  max-width: 20px;
  border-radius: 2px 2px 0 0;
  transition: all 180ms ease;
  min-height: 3px;
}

.dashboard-preventive-week__bar--planned {
  background: linear-gradient(to top, #488fcc 0%, #5fa1d8 100%);
  position: relative;
  z-index: 1;
}

.dashboard-preventive-week__bar--executed {
  background: linear-gradient(to top, #4fc963 0%, #5fd972 100%);
  opacity: 0.75;
  position: relative;
  z-index: 2;
  margin-left: -2px;
}

.dashboard-preventive-week__pending {
  font-size: 10px;
  font-weight: 600;
  color: #8096a8;
  margin-top: 4px;
}

.dashboard-preventive-week-mini {
  display: grid;
  gap: 14px;
}

.dashboard-preventive-week-mini__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-preventive-week-mini__range {
  margin: 0;
  color: #55708c;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-preventive-week-mini__scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}

.dashboard-preventive-week-mini__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(156px, 1fr));
  gap: 10px;
  min-width: 1120px;
}

.dashboard-preventive-week-mini__day {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 230px;
  padding: 12px;
  border: 1px solid #dbe6f2;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-preventive-week-mini__day.is-today {
  background: linear-gradient(180deg, #f5faff 0%, #eaf4ff 100%);
  border-color: #9fc1e8;
  box-shadow: inset 0 0 0 1px rgba(63, 114, 176, 0.18);
}

.dashboard-preventive-week-mini__day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8eef5;
}

.dashboard-preventive-week-mini__weekday {
  color: #2f4b67;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-preventive-week-mini__date {
  color: #69829a;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-preventive-week-mini__count {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #edf3fa;
  color: #36506d;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-preventive-week-mini__items {
  display: grid;
  gap: 8px;
  align-content: start;
}

.dashboard-preventive-week-mini__card {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #d7e3ef;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 62, 88, 0.05);
}

.dashboard-preventive-week-mini__card:hover {
  border-color: #adc6e2;
  box-shadow: 0 8px 16px rgba(37, 62, 88, 0.08);
}

.dashboard-preventive-week-mini__title {
  color: #274766;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.dashboard-preventive-week-mini__asset {
  color: #6a839d;
  font-size: 12px;
  line-height: 1.3;
}

.dashboard-preventive-week-mini__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: #5b748d;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-preventive-week-mini__empty,
.dashboard-preventive-week-mini__more {
  color: #8aa0b5;
  font-size: 12px;
  font-weight: 700;
}

/* Responsive Preventive Week */
@media (max-width: 768px) {
  .dashboard-preventive-week {
    grid-template-columns: repeat(7, 1fr);
    min-height: 160px;
    padding: 14px 10px;
  }

  .dashboard-preventive-week__bars {
    height: 120px;
  }

  .dashboard-preventive-week__bar {
    max-width: 16px;
  }

  .dashboard-preventive-week-mini__grid {
    min-width: 980px;
  }

  .dashboard-preventive-week-mini__day {
    min-height: 210px;
  }
}

.ot-meta-list {
  display: grid;
  gap: 10px;
}

.ot-meta-list__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
}

.ot-meta-list__row strong {
  color: #5d7189;
}

.ot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ot-actions .btn {
  min-width: 128px;
}

.listing-filters .form-control,
.listing-filters .form-select {
  min-height: 40px;
}

.filter-form-actions {
  flex-wrap: wrap;
}

.filter-form-actions .btn {
  min-width: 108px;
  flex: 1 1 108px;
  white-space: nowrap;
}

.listing-table {
  vertical-align: middle;
}

.listing-table thead th {
  padding: 0.9rem 1rem;
  color: #677a92;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #e6edf4;
}

.listing-table tbody td {
  padding: 0.95rem 1rem;
  vertical-align: middle;
}

.listing-table__actions {
  white-space: nowrap;
}

.listing-table__actions .btn,
.listing-table__actions form .btn {
  min-width: 88px;
}

.listing-table__toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e7edf5;
}

.listing-table__batch-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4c617c;
}

.listing-table__display-tools {
  position: relative;
}

.listing-columns-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  width: min(340px, 90vw);
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #d7e2ef;
  background: #fff;
  box-shadow: 0 16px 30px rgba(16, 43, 72, 0.12);
  display: grid;
  gap: 12px;
}

.listing-columns-panel__section {
  display: grid;
  gap: 8px;
}

.listing-columns-panel__section h3 {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #658099;
}

.listing-columns-panel__section label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3f566f;
  font-size: 13px;
}

.listing-columns-panel input[type="range"] {
  width: 100%;
}

.listing-table__selector-col {
  width: 44px;
  text-align: center;
}

.listing-row--selected td {
  background: #eaf4ff !important;
}

.listing-row--batch-selected td {
  background: #f4f9ff;
}

.listing-highlight {
  border-radius: 6px;
  padding: 0 3px;
  background: #fff2c4;
  color: #6c4b00;
}

.sort-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
}

.sort-link:hover {
  color: #2f4f73;
}

.sort-link.is-active {
  color: #244a77;
}

.sort-link__icon {
  color: #54749a;
  font-size: 1rem;
  line-height: 1;
}

.sort-link.is-active .sort-link__icon {
  color: #1e4f80;
}

.listing-empty {
  padding: 1.5rem 1rem !important;
  text-align: center;
  color: #6e7f94;
}

.listing-empty strong,
.listing-empty span {
  display: block;
}

.listing-empty strong {
  color: #465b76;
  margin-bottom: 0.35rem;
}

.listing-empty--compact {
  padding: 1rem !important;
}

.preventivo-calendar-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.preventivo-calendar-page-head__copy {
  max-width: 760px;
}

.preventivo-calendar-page-head__text {
  max-width: 62ch;
}

.preventivo-calendar-page-head__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.preventivo-calendar-shell {
  overflow: hidden;
  border-radius: 18px;
}

.preventivo-calendar-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid #e8eef5;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.preventivo-calendar-toolbar__main {
  display: grid;
  gap: 0.35rem;
}

.preventivo-calendar-toolbar__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.preventivo-calendar-toolbar__eyebrow {
  color: #70849c;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.preventivo-calendar-toolbar__title {
  margin: 0;
  color: #30485f;
  font-size: 1.45rem;
}

.preventivo-calendar-toolbar__subtitle {
  margin: 0;
  color: #70849c;
  font-size: 0.92rem;
  max-width: 62ch;
}

.preventivo-week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
  background: #f9fbfe;
  border-bottom: 1px solid #e8eef5;
}

.preventivo-week-nav__group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.preventivo-week-nav__group--end {
  margin-left: auto;
}

.preventivo-week-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #e6edf4;
}

.preventivo-week-board__day {
  min-height: 420px;
  padding: 0.9rem;
  border-right: 1px solid #e6edf4;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.preventivo-week-board__day:last-child {
  border-right: 0;
}

.preventivo-week-board__day.is-today {
  background: linear-gradient(180deg, #f7fbff 0%, #ebf4ff 100%);
  box-shadow: inset 0 0 0 2px rgba(63, 114, 176, 0.2);
}

.preventivo-week-board__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #e8eef5;
}

.preventivo-week-board__weekday {
  color: #2f4b67;
  font-size: 0.92rem;
  font-weight: 800;
}

.preventivo-week-board__date {
  color: #6c839c;
  font-size: 0.8rem;
  font-weight: 600;
}

.preventivo-week-board__count {
  color: #7390ad;
  font-size: 0.76rem;
  font-weight: 700;
}

.preventivo-week-board__entries {
  display: grid;
  gap: 0.65rem;
}

.preventivo-week-board__entry {
  padding: 0.8rem;
  border: 1px solid #dce7f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  box-shadow: 0 6px 16px rgba(37, 62, 88, 0.05);
}

.preventivo-week-board__entry-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.preventivo-week-board__entry-title {
  color: #274766;
  font-weight: 800;
  line-height: 1.25;
}

.preventivo-week-board__entry-title:hover {
  color: #1d5b96;
}

.preventivo-week-board__meta {
  margin-top: 0.4rem;
  color: #69829a;
  font-size: 0.78rem;
}

.preventivo-week-board__status {
  margin-top: 0.65rem;
}

.preventivo-week-board__status .status-pill {
  min-width: 0;
  width: 100%;
  justify-content: flex-start;
}

.preventivo-week-board__time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  color: #58718a;
  font-size: 0.78rem;
  font-weight: 700;
}

.preventivo-week-board__empty {
  color: #97a8ba;
  font-size: 0.82rem;
}

.preventivo-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid #e6edf4;
}

.preventivo-calendar__weekday {
  padding: 0.75rem 0.85rem;
  background: #f7fafe;
  border-right: 1px solid #e6edf4;
  border-bottom: 1px solid #e6edf4;
  color: #69809a;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.preventivo-calendar__weekday:nth-child(7) {
  border-right: 0;
}

.preventivo-calendar__day {
  min-height: 250px;
  padding: 0.8rem;
  background: #fff;
  border-right: 1px solid #e6edf4;
  border-bottom: 1px solid #e6edf4;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.preventivo-calendar__day.is-outside {
  background: #f8fafc;
}

.preventivo-calendar__day.is-today {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.preventivo-calendar__day.is-current-week {
  background: linear-gradient(180deg, #fcfdff 0%, #f2f7ff 100%);
  box-shadow: inset 0 0 0 2px rgba(97, 143, 204, 0.18);
}

.preventivo-calendar__day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.preventivo-calendar__day-number {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4fb;
  color: #31506f;
  font-weight: 700;
}

.preventivo-calendar__day.is-today .preventivo-calendar__day-number {
  background: #2e6fb2;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(46, 111, 178, 0.14);
}

.preventivo-calendar__day-count {
  color: #7c90a7;
  font-size: 0.76rem;
  font-weight: 600;
}

.preventivo-calendar__day-label {
  color: #607893;
  font-size: 0.8rem;
  font-weight: 700;
}

.preventivo-calendar__entries {
  display: grid;
  gap: 0.6rem;
}

.preventivo-calendar__entry {
  padding: 0.75rem;
  border: 1px solid #dbe6f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 6px 14px rgba(36, 61, 86, 0.05);
}

.preventivo-calendar__entry-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.preventivo-calendar__entry-title {
  color: #284666;
  font-weight: 700;
  line-height: 1.25;
}

.preventivo-calendar__entry-title:hover {
  color: #1a5d99;
}

.preventivo-calendar__edit-toggle {
  padding: 0;
  color: #456e9a;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.preventivo-calendar__meta {
  margin-top: 0.35rem;
  color: #6f849c;
  font-size: 0.78rem;
}

.preventivo-calendar__status-row {
  margin-top: 0.6rem;
}

.preventivo-calendar__status-row .status-pill {
  min-width: 0;
  width: 100%;
  justify-content: flex-start;
}

.preventivo-calendar__time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  color: #567089;
  font-size: 0.78rem;
  font-weight: 600;
}

.preventivo-calendar__edit-form {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.7rem;
  border-top: 1px dashed #d8e2ed;
}

.preventivo-calendar__edit-form .form-control {
  min-height: 36px;
  font-size: 0.82rem;
}

.preventivo-calendar__empty {
  color: #97a7b8;
  font-size: 0.82rem;
}

.activos-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(320px, 36%) minmax(0, 1fr);
  align-items: start;
}

.activos-layout__tree-panel {
  position: sticky;
  top: 88px;
  resize: horizontal;
  overflow: auto;
  min-width: 320px;
  max-width: 760px;
}

.activos-tree__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.activos-tree__toggle {
  display: none;
  align-items: center;
  gap: 6px;
}

.activos-tree__search .input-group-text {
  background: #f6f9fc;
  border-color: #dbe6f1;
  color: #6080a3;
}

.activos-tree {
  max-height: none;
  overflow: visible;
  padding-right: 2px;
}

.activos-tree__list,
.activos-tree__children {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.activos-tree__children {
  margin-left: 18px;
  padding-left: 8px;
  border-left: 1px dashed #d8e2ee;
}

.activos-tree__children.is-collapsed {
  display: none;
}

.activos-tree__row,
.activos-tree__node--asset {
  display: flex;
  align-items: center;
  gap: 6px;
}

.activos-tree__expand {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #dbe5f0;
  background: #fff;
  color: #6c7f97;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.activos-tree__expand i {
  transition: transform 0.15s ease;
}

.activos-tree__expand.is-expanded i {
  transform: rotate(90deg);
}

.activos-tree__link {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #395470;
  flex: 1 1 auto;
  min-width: 0;
}

.activos-tree__link:hover {
  background: #f6f9fd;
  border-color: #e2eaf3;
  color: #1f3e61;
}

.activos-tree__link.is-selected {
  border-color: #76a9df;
  background: linear-gradient(180deg, #ddebff 0%, #d6e9ff 100%);
  color: #113b64;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(40, 92, 150, 0.15);
}

.activos-tree__link.is-match {
  background: #eef7e8;
  border-color: #b8d6a3;
}

.activos-tree__link.is-dimmed {
  opacity: 0.55;
}

.activos-tree__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activos-tree__stats {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.activos-tree__count {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}

.activos-tree__count.is-assets {
  color: #415a77;
  border-color: #d6e0eb;
  background: #f7fafc;
}

.activos-tree__count.is-incidents {
  color: #91591d;
  border-color: #efcf98;
  background: #fff4df;
}

.activos-tree__count.is-ots {
  color: #205e8a;
  border-color: #a6c7e6;
  background: #e7f2ff;
}

.listing-table--activos {
  --activos-col-nombre-width: 300px;
  --activos-col-relacionados-width: 240px;
}

.listing-table--activos [data-col="nombre"] {
  min-width: var(--activos-col-nombre-width);
}

.listing-table--activos [data-col="relacionados"] {
  min-width: var(--activos-col-relacionados-width);
}

.related-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.related-links__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid #d7e2ef;
  background: #f8fbfd;
  color: #36536f;
  padding: 2px 8px;
}

.related-links__item strong {
  color: #214968;
}

.related-links__item.is-disabled {
  opacity: 0.72;
}

.modal-actions {
  align-items: center;
  justify-content: flex-end;
}

.modal-actions .btn {
  min-width: 108px;
}

@media (min-width: 992px) {
  .dashboard-role__grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas:
      "top top"
      "main side";
    align-items: start;
  }

  .dashboard-role__top {
    grid-area: top;
  }

  .dashboard-role__main {
    grid-area: main;
  }

  .dashboard-role__side {
    grid-area: side;
  }
}

@media (max-width: 991.98px) {
  .preventivo-calendar-page-head {
    align-items: stretch;
  }

  .preventivo-calendar-page-head__actions {
    justify-content: flex-start;
  }

  .preventivo-calendar-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .preventivo-calendar-toolbar__controls {
    justify-content: flex-start;
  }

  .preventivo-week-nav {
    align-items: stretch;
  }

  .preventivo-week-nav__group--end {
    margin-left: 0;
  }

  .preventivo-week-board,
  .preventivo-calendar {
    grid-template-columns: 1fr;
  }

  .preventivo-calendar__weekday {
    display: none;
  }

  .preventivo-week-board__day,
  .preventivo-calendar__day {
    min-height: 0;
  }

  .activos-layout {
    grid-template-columns: 1fr;
  }

  .activos-layout__tree-panel {
    position: static;
    resize: none;
    min-width: 0;
    max-width: none;
  }

  .activos-tree {
    display: none;
    max-height: none;
  }

  .activos-layout__tree-panel.is-open .activos-tree {
    display: block;
  }

  .activos-tree__toggle {
    display: inline-flex;
  }

  .dashboard-role__hero {
    flex-direction: column;
  }

  .dashboard-role__title {
    font-size: 28px;
  }

  .dashboard-role__grid--operations_control .dashboard-role__main {
    grid-template-columns: 1fr;
  }

  .dashboard-week {
    grid-template-columns: repeat(7, minmax(30px, 1fr));
    gap: 6px;
  }

  .dashboard-week__bars {
    width: 24px;
    height: 92px;
  }

  .dashboard-week__bar--total {
    width: 20px;
  }

  .dashboard-week__bar--executed {
    width: 12px;
  }

  .listing-table__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .listing-table__batch-tools {
    justify-content: space-between;
  }
}
