/* =====================================================
   WORKPREVENT APP - BASE
===================================================== */
:root {
  --wp-blue: #06284A;
  --wp-blue-2: #073763;
  --wp-blue-3: #0A4F99;
  --wp-red: #D7192A;
  --wp-light: #F4F8FC;
  --wp-muted: #6B7280;
  --wp-border: #E5EAF0;
  --wp-card: #FFFFFF;
  --wp-dark-text: #102033;
  --wp-shadow: 0 22px 60px rgba(6, 40, 74, .18);
  --wp-radius: 24px;
}

/* =====================================================
   RESET / BASE
===================================================== */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  color: var(--wp-dark-text);
}

* {
  box-sizing: border-box;
}

/* =====================================================
   AUTH / LOGIN WORKPREVENT
===================================================== */
.wp-auth-body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 84% 26%, rgba(215, 25, 42, .30) 0, rgba(215, 25, 42, .18) 18%, transparent 36%),
    radial-gradient(circle at 18% 82%, rgba(10, 79, 153, .20) 0, transparent 34%),
    linear-gradient(135deg, #061F3A 0%, #06284A 42%, #08477E 100%);
}

.wp-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 32px 0;
  position: relative;
  overflow: hidden;
}

.wp-auth-page::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  top: -210px;
  right: -180px;
  pointer-events: none;
}

.wp-auth-page::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(215, 25, 42, .16);
  bottom: -160px;
  left: -120px;
  pointer-events: none;
}

.wp-shell {
  position: relative;
  z-index: 2;
}

.wp-main-card {
  width: 100%;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 32px;
  box-shadow: var(--wp-shadow);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.wp-info-panel {
  min-height: 100%;
  padding: 44px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 24%, rgba(215, 25, 42, .28) 0, transparent 34%),
    linear-gradient(145deg, var(--wp-blue) 0%, var(--wp-blue-2) 62%, #09223E 100%);
  position: relative;
  overflow: hidden;
}

.wp-info-panel::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -120px;
  bottom: -100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.wp-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 46px;
  position: relative;
  z-index: 2;
}

.wp-logo-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  overflow: hidden;
  flex-shrink: 0;
}

.wp-logo-box img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.wp-logo-fallback {
  color: var(--wp-blue);
  font-size: 34px;
  line-height: 1;
}

.wp-brand-title {
  font-weight: 900;
  letter-spacing: -.04em;
  font-size: 1.45rem;
  line-height: 1;
  margin: 0;
}

.wp-brand-subtitle {
  font-size: .85rem;
  color: rgba(255, 255, 255, .78);
  margin: 4px 0 0;
}

.wp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--wp-red);
  color: #fff;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.wp-info-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1.02;
  margin: 0 0 18px;
  position: relative;
  z-index: 2;
}

.wp-info-text {
  color: rgba(255, 255, 255, .82);
  font-size: .98rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 0 34px;
  position: relative;
  z-index: 2;
}

.wp-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 2;
}

.wp-feature-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .16);
  min-height: 104px;
}

.wp-feature-card i {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 10px;
  display: inline-block;
}

.wp-feature-card strong {
  display: block;
  font-size: .88rem;
  margin-bottom: 4px;
}

.wp-feature-card span {
  display: block;
  font-size: .76rem;
  color: rgba(255, 255, 255, .72);
  line-height: 1.45;
}

.wp-login-panel {
  padding: 44px;
  background: var(--wp-card);
}

.wp-mobile-logo {
  display: none;
  text-align: center;
  margin-bottom: 24px;
}

.wp-mobile-logo img {
  max-width: 210px;
  max-height: 82px;
  object-fit: contain;
}

.wp-login-header {
  margin-bottom: 28px;
}

.wp-login-eyebrow {
  color: var(--wp-red);
  text-transform: uppercase;
  font-size: .74rem;
  letter-spacing: .09em;
  font-weight: 900;
  margin-bottom: 8px;
}

.wp-login-title {
  color: var(--wp-blue);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.04em;
  margin: 0 0 8px;
}

.wp-login-description {
  color: var(--wp-muted);
  font-size: .94rem;
  margin: 0;
  line-height: 1.6;
}

.wp-form-label {
  color: #263445;
  font-weight: 700;
  font-size: .84rem;
  margin-bottom: 8px;
}

.wp-input-group {
  border: 1px solid var(--wp-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: all .2s ease;
}

.wp-input-group:focus-within {
  border-color: rgba(10, 79, 153, .55);
  box-shadow: 0 0 0 4px rgba(10, 79, 153, .09);
}

.wp-input-group .input-group-text {
  border: 0;
  background: #fff;
  color: var(--wp-blue);
  padding-left: 16px;
  padding-right: 12px;
}

.wp-input-group .form-control {
  border: 0;
  min-height: 52px;
  color: #1F2937;
  font-size: .95rem;
  box-shadow: none;
}

.wp-input-group .form-control::placeholder {
  color: #9CA3AF;
}

.wp-toggle-password {
  cursor: pointer;
  color: var(--wp-muted) !important;
  padding-right: 16px !important;
}

.wp-btn-primary {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--wp-blue) 0%, var(--wp-blue-3) 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(6, 40, 74, .26);
  transition: all .2s ease;
}

.wp-btn-primary:hover,
.wp-btn-primary:focus {
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 18px 38px rgba(6, 40, 74, .32);
}

.wp-link {
  color: var(--wp-blue-3);
  font-weight: 700;
  text-decoration: none;
  font-size: .86rem;
}

.wp-link:hover {
  color: var(--wp-red);
  text-decoration: underline;
}

.wp-alert {
  border-radius: 14px;
  border: 0;
  font-size: .86rem;
}

.wp-install-banner {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  backdrop-filter: blur(12px);
}

.wp-install-banner .btn {
  border-radius: 12px;
  font-weight: 700;
}

.wp-footer {
  color: rgba(255, 255, 255, .72);
  font-size: .82rem;
  text-align: center;
  margin-top: 20px;
}

.wp-footer strong {
  color: #fff;
}

.wp-powered-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin: 0 4px;
  vertical-align: -4px;
}

/* =====================================================
   MODAL
===================================================== */
.modal-content {
  border: 0;
  border-radius: 24px;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--wp-blue) 0%, var(--wp-blue-3) 100%) !important;
}

/* =====================================================
   GLOBAL LOADING
===================================================== */
.global-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 40, 74, .50);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.global-loading.hidden,
.global-loading.d-none {
  display: none !important;
}

.loading-box {
  background: #fff;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: var(--wp-shadow);
  min-width: 180px;
}

/* =====================================================
   LAYOUT INTERNO APP
   Puedes usar esto para pantallas posteriores:
   dashboard, clientes, informes, usuarios, etc.
===================================================== */
#layout-root,
#app-layout {
  height: 100vh;
  width: 100%;
}

#app-layout {
  display: flex;
  flex-direction: row;
}

.sidebar {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  height: 100vh;
  background: linear-gradient(180deg, var(--wp-blue) 0%, #041B32 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .08);
  transition: transform .3s ease;
}

.sidebar-header {
  padding: 1.5rem 1rem;
}

.sidebar .nav {
  flex: 1;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, .75);
  border-radius: .75rem;
  margin-bottom: 4px;
  padding: .6rem .8rem;
  transition: background-color .15s ease, color .15s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background-color: rgba(255, 255, 255, .12);
  color: #fff;
}

.sidebar .nav-link.active {
  font-weight: 700;
}

.sidebar .text-muted {
  opacity: .7;
}

.main,
.main-content {
  display: flex;
  flex-direction: column;
  height: 100vh;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background-color: var(--wp-light);
}

.topbar {
  height: 64px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid var(--wp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#page-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.card {
  border-radius: 16px;
  border: 1px solid var(--wp-border);
  box-shadow: 0 12px 30px rgba(6, 40, 74, .06);
}

.btn-primary {
  background-color: var(--wp-blue);
  border-color: var(--wp-blue);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--wp-blue-3);
  border-color: var(--wp-blue-3);
}

/* =====================================================
   UTILIDADES
===================================================== */
.text-muted {
  color: #6c757d !important;
}

.small {
  font-size: .875rem;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 991.98px) {
  .wp-info-panel {
    display: none;
  }

  .wp-login-panel {
    padding: 34px 26px;
  }

  .wp-mobile-logo {
    display: block;
  }

  .wp-login-title {
    font-size: 1.72rem;
  }

  .wp-main-card {
    border-radius: 26px;
  }
}

@media (max-width: 767.98px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, .4);
    z-index: 1030;
  }
}

@media (max-width: 575.98px) {
  .wp-auth-page {
    padding: 18px 0;
  }

  .wp-login-panel {
    padding: 28px 20px;
  }

  .wp-login-title {
    font-size: 1.55rem;
  }

  .wp-feature-grid {
    grid-template-columns: 1fr;
  }
}

.wp-info-panel-simple {
  display: flex;
  flex-direction: column;
}

.wp-auth-brand-center {
  position: relative;
  z-index: 2;
  margin-top: auto;
  margin-bottom: auto;
}


.wp-dashboard-hero {
  background: linear-gradient(135deg, #06284A 0%, #0A4F99 58%, #0F766E 100%);
  color: #ffffff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 22px 55px rgba(6, 40, 74, 0.18);
  position: relative;
  overflow: hidden;
}

.wp-dashboard-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.wp-dashboard-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex: 0 0 auto;
}

.wp-dashboard-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .85;
  font-weight: 700;
}

.wp-dashboard-title {
  font-weight: 800;
  color: #ffffff;
}

.wp-dashboard-subtitle {
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.wp-card,
.wp-metric-card {
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(6, 40, 74, 0.08);
  border: 1px solid rgba(6, 40, 74, 0.06) !important;
}

.wp-soft-badge {
  background: rgba(10, 79, 153, .08);
  color: #06284A;
  border: 1px solid rgba(10, 79, 153, .16);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.wp-metric-card {
  transition: .2s ease;
}

.wp-metric-card:hover {
  transform: translateY(-3px);
}

.wp-metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(6, 40, 74, .1), rgba(10, 79, 153, .12));
  color: #0A4F99;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.wp-metric-label {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.wp-metric-value {
  color: #06284A;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}

.wp-metric-help {
  color: #94a3b8;
  font-size: 12px;
  margin-top: 4px;
}

.wp-action-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 20px;
  min-height: 150px;
  display: flex;
  gap: 14px;
  color: #06284A;
  border: 1px solid rgba(6, 40, 74, 0.06);
  box-shadow: 0 16px 38px rgba(6, 40, 74, 0.08);
  transition: .2s ease;
}

.wp-action-card:hover {
  transform: translateY(-3px);
  color: #06284A;
  box-shadow: 0 22px 48px rgba(6, 40, 74, 0.13);
}

.wp-action-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #06284A, #0A4F99);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex: 0 0 auto;
}

.wp-action-card h6 {
  margin-bottom: 6px;
  font-weight: 800;
}

.wp-action-card p {
  margin-bottom: 0;
  color: #64748b;
  font-size: 13px;
}

.wp-process-list {
  display: grid;
  gap: 14px;
}

.wp-process-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(6, 40, 74, 0.05);
}

.wp-process-number {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #0A4F99;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: 0 0 auto;
}

.wp-process-item h6 {
  margin-bottom: 3px;
  font-weight: 800;
  color: #06284A;
}

.wp-process-item p {
  margin-bottom: 0;
  color: #64748b;
  font-size: 13px;
}

.wp-indicator-list {
  display: grid;
  gap: 11px;
}

.wp-indicator-list div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #334155;
  font-size: 14px;
}

.wp-indicator-list i {
  color: #0F766E;
}

.wp-table thead {
  background: #f8fafc;
}

.wp-table thead th {
  color: #475569;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid #e2e8f0;
}

.wp-table tbody td {
  font-size: 14px;
  color: #334155;
}

.wp-modal-header {
  background: linear-gradient(135deg, #06284A, #0A4F99);
  color: #ffffff;
}

@media (max-width: 767.98px) {
  .wp-dashboard-hero {
    padding: 22px;
    border-radius: 22px;
  }

  .wp-dashboard-icon {
    width: 54px;
    height: 54px;
    font-size: 24px;
  }

  .wp-dashboard-title {
    font-size: 20px;
  }

  .wp-action-card {
    min-height: auto;
  }
}

.wp-detail-box {
  background: #f8fafc;
  border: 1px solid rgba(6, 40, 74, 0.06);
  border-radius: 16px;
  padding: 14px;
}


/* =====================================================
   CREATE INFORME - LINEA GRAFICA LOGIN
===================================================== */

body,
.main,
.main-content {
  background:
    radial-gradient(circle at 88% 8%, rgba(215, 25, 42, .08) 0, transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(10, 79, 153, .10) 0, transparent 32%),
    linear-gradient(180deg, #F4F8FC 0%, #EEF4FA 100%);
}

/* Contenedor general */
#page-content {
  padding: 26px;
}

/* HERO SUPERIOR */
.wp-dashboard-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .12) 0, transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(215, 25, 42, .18) 0, transparent 34%),
    linear-gradient(135deg, var(--wp-blue) 0%, var(--wp-blue-2) 54%, #09223E 100%);
  border-radius: 32px;
  padding: 32px 34px;
  box-shadow: 0 24px 60px rgba(6, 40, 74, .20);
  border: 1px solid rgba(255, 255, 255, .14);
}

.wp-dashboard-hero::after {
  width: 310px;
  height: 310px;
  right: -110px;
  top: -120px;
  background: rgba(255, 255, 255, .08);
}

.wp-dashboard-icon {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.wp-dashboard-eyebrow {
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.wp-dashboard-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.wp-dashboard-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, .78);
}

.wp-dashboard-hero .btn {
  border: 0;
  border-radius: 14px;
  min-height: 44px;
  padding: 10px 18px;
  font-weight: 700;
  color: var(--wp-blue);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
}

/* CARD PRINCIPAL */
.wp-card {
  border-radius: 30px;
  border: 1px solid rgba(6, 40, 74, .08) !important;
  box-shadow: 0 22px 55px rgba(6, 40, 74, .10);
  background: rgba(255, 255, 255, .96);
  overflow: hidden;
}

.wp-card > .card-body {
  padding: 32px;
}

/* TITULO CARD */
.wp-card h6 {
  color: var(--wp-blue);
  font-weight: 900;
  letter-spacing: -.02em;
}

.wp-card h6 i {
  color: var(--wp-red) !important;
}

.wp-card small,
.wp-card .form-text,
.wp-card .text-muted {
  color: var(--wp-muted) !important;
}

/* BADGE BORRADOR */
.badge.bg-secondary {
  background: rgba(215, 25, 42, .10) !important;
  color: var(--wp-red);
  border: 1px solid rgba(215, 25, 42, .18);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

/* ALERTAS */
.alert-warning {
  border: 1px solid rgba(245, 158, 11, .26);
  background: #FFF7E2;
  color: #755100;
  border-radius: 18px;
  padding: 16px 18px;
}

/* LABELS */
.form-label {
  color: #243244;
  font-size: 14px;
  margin-bottom: 8px;
}

/* INPUTS Y SELECTS */
.form-control,
.form-select {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--wp-border);
  color: #1F2937;
  font-size: 15px;
  background-color: #fff;
  box-shadow: none;
  transition: all .18s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(10, 79, 153, .55);
  box-shadow: 0 0 0 4px rgba(10, 79, 153, .09);
}

.form-control::placeholder {
  color: #8F9AAB;
}

textarea.form-control {
  min-height: auto;
  resize: vertical;
}

/* INPUT READONLY */
.form-control[readonly] {
  background: #F8FAFC;
  color: var(--wp-blue);
  font-weight: 700;
}

/* FILE INPUT */
input[type="file"].form-control {
  padding: 0;
  overflow: hidden;
}

input[type="file"].form-control::file-selector-button {
  min-height: 48px;
  border: 0;
  border-right: 1px solid var(--wp-border);
  padding: 0 18px;
  margin-right: 14px;
  color: var(--wp-blue);
  background: #F4F8FC;
  font-weight: 800;
  cursor: pointer;
  transition: all .18s ease;
}

input[type="file"].form-control::file-selector-button:hover {
  background: rgba(10, 79, 153, .10);
}

/* CAJA DEL EXCEL */
.wp-excel-box,
.border.rounded-4.bg-light {
  background: #F8FAFC !important;
  border: 1px solid rgba(6, 40, 74, .08) !important;
  border-radius: 22px !important;
  padding: 18px !important;
}

/* VALIDACIONES RECOMENDADAS */
.wp-validations-box {
  background:
    radial-gradient(circle at 96% 0%, rgba(10, 79, 153, .10) 0, transparent 32%),
    #F8FAFC;
  border: 1px solid rgba(6, 40, 74, .08);
  border-radius: 24px;
  padding: 22px;
}

.wp-validations-box .wp-dashboard-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, var(--wp-blue), var(--wp-blue-3));
  color: #fff;
  font-size: 22px !important;
  border: 0;
}

.wp-validations-box h6 {
  color: var(--wp-blue);
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 12px;
}

.wp-validations-box .bi-check-circle {
  color: #0F766E !important;
  font-size: 15px;
}

.wp-validations-box span {
  color: #526174;
  line-height: 1.45;
}

/* SEPARADOR */
hr {
  border-color: rgba(6, 40, 74, .12);
  opacity: 1;
}

/* BOTONES */
.btn {
  border-radius: 14px;
  min-height: 48px;
  padding: 10px 18px;
  font-weight: 800;
}

.btn-secondary {
  background: #EEF2F7;
  border-color: #EEF2F7;
  color: #334155;
}

.btn-secondary:hover {
  background: #E2E8F0;
  border-color: #E2E8F0;
  color: #0F172A;
}

.wp-btn-primary {
  min-height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--wp-blue) 0%, var(--wp-blue-3) 100%);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(6, 40, 74, .24);
}

.wp-btn-primary:hover {
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 18px 38px rgba(6, 40, 74, .30);
}

.wp-btn-primary:disabled,
.wp-btn-primary.disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ALERTA DE RESPUESTA */
#create-report-alert {
  border-radius: 18px;
  border: 0;
  box-shadow: 0 14px 32px rgba(6, 40, 74, .08);
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
  #page-content {
    padding: 20px;
  }

  .wp-dashboard-hero {
    border-radius: 26px;
    padding: 26px;
  }

  .wp-card > .card-body {
    padding: 26px;
  }
}

@media (max-width: 767.98px) {
  #page-content {
    padding: 16px;
  }

  .wp-dashboard-hero {
    border-radius: 24px;
    padding: 22px;
  }

  .wp-dashboard-title {
    font-size: 22px;
  }

  .wp-dashboard-subtitle {
    font-size: 13px;
  }

  .wp-card {
    border-radius: 24px;
  }

  .wp-card > .card-body {
    padding: 22px;
  }

  .btn {
    width: 100%;
  }

  .wp-dashboard-hero .btn {
    width: auto;
  }
}



/* =====================================================
   SELECT2 - WORKPREVENT STYLE
===================================================== */

.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  height: 48px !important;
  min-height: 48px !important;
  border-radius: 14px !important;
  border: 1px solid var(--wp-border) !important;
  background-color: #fff !important;
  display: flex !important;
  align-items: center !important;
  box-shadow: none !important;
  transition: all .18s ease;
}

.select2-container--default .select2-selection--single:hover {
  border-color: rgba(10, 79, 153, .35) !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: rgba(10, 79, 153, .55) !important;
  box-shadow: 0 0 0 4px rgba(10, 79, 153, .09) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #1F2937 !important;
  font-size: 15px !important;
  font-weight: 500;
  line-height: 48px !important;
  padding-left: 14px !important;
  padding-right: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #8F9AAB !important;
  font-weight: 400;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px !important;
  width: 38px !important;
  right: 6px !important;
  top: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #64748B transparent transparent transparent !important;
  border-width: 5px 4px 0 4px !important;
  margin-left: -4px !important;
  margin-top: -2px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #64748B transparent !important;
  border-width: 0 4px 5px 4px !important;
}

/* Dropdown */
.select2-dropdown {
  border: 1px solid rgba(10, 79, 153, .22) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 42px rgba(6, 40, 74, .16) !important;
  background: #fff !important;
  z-index: 9999;
}

.select2-container--open .select2-dropdown--below {
  margin-top: 6px;
}

.select2-container--open .select2-dropdown--above {
  margin-top: -6px;
}

/* Buscador dentro del dropdown */
.select2-search--dropdown {
  padding: 10px !important;
  background: #F8FAFC;
  border-bottom: 1px solid var(--wp-border);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  height: 42px !important;
  border-radius: 12px !important;
  border: 1px solid var(--wp-border) !important;
  padding: 8px 12px !important;
  outline: none !important;
  color: #1F2937 !important;
  font-size: 14px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: rgba(10, 79, 153, .55) !important;
  box-shadow: 0 0 0 4px rgba(10, 79, 153, .09) !important;
}

/* Opciones */
.select2-results__options {
  padding: 6px !important;
  max-height: 260px !important;
}

.select2-results__option {
  border-radius: 12px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  color: #334155 !important;
  margin-bottom: 2px !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: linear-gradient(135deg, var(--wp-blue) 0%, var(--wp-blue-3) 100%) !important;
  color: #fff !important;
}

.select2-container--default .select2-results__option--selected {
  background: rgba(10, 79, 153, .08) !important;
  color: var(--wp-blue) !important;
  font-weight: 800;
}

/* Disabled */
.select2-container--default.select2-container--disabled .select2-selection--single {
  background: #F1F5F9 !important;
  cursor: not-allowed !important;
  opacity: .8;
}

.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__rendered {
  color: #94A3B8 !important;
}

/* Select2 dentro de formularios */
.form-label + .select2-container {
  display: block;
}

.select2-hidden-accessible + .select2-container {
  margin-bottom: 0;
}


/* =====================================================
   SIDEBAR - WORKPREVENT STYLE
===================================================== */

.wp-sidebar {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 80% 8%, rgba(215, 25, 42, .16) 0, transparent 30%),
    radial-gradient(circle at 20% 92%, rgba(10, 79, 153, .18) 0, transparent 34%),
    linear-gradient(180deg, var(--wp-blue) 0%, #041B32 100%);
  border-right: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 18px 0 42px rgba(6, 40, 74, .16);
  position: relative;
  overflow: hidden;
}

.wp-sidebar::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  right: -130px;
  top: -80px;
  background: rgba(255, 255, 255, .07);
  pointer-events: none;
}

.wp-sidebar::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  left: -110px;
  bottom: 40px;
  background: rgba(215, 25, 42, .12);
  pointer-events: none;
}

.wp-sidebar-brand,
.wp-sidebar-menu,
.wp-sidebar-footer {
  position: relative;
  z-index: 2;
}

/* BRAND */
.wp-sidebar-brand {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.wp-sidebar-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.wp-sidebar-logo-link:hover {
  color: #fff;
}

.wp-sidebar-logo-box {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.wp-sidebar-logo-box img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.wp-sidebar-logo-fallback {
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--wp-blue);
  font-size: 24px;
}

.wp-sidebar-brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.wp-sidebar-eyebrow {
  color: rgba(255, 255, 255, .62);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 4px;
}

.wp-sidebar-brand-text strong {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* MENU */
.wp-sidebar-menu {
  flex: 1;
  padding: 18px 10px;
  overflow-y: auto;
}

.wp-sidebar-nav {
  gap: 6px;
}

.wp-sidebar-link {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 16px;
  color: rgba(255, 255, 255, .76);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  transition: all .18s ease;
  position: relative;
}

.wp-sidebar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .10);
  transform: translateX(2px);
}

.wp-sidebar-link.active {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .08));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .10),
    0 12px 26px rgba(0, 0, 0, .14);
}

.wp-sidebar-link.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: var(--wp-red);
}

.wp-sidebar-link-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
}

.wp-sidebar-link.active .wp-sidebar-link-icon {
  background: var(--wp-red);
  color: #fff;
}

/* FOOTER */
.wp-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.wp-sidebar-logout {
  min-height: 48px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .30);
  color: #fff;
  background: rgba(255, 255, 255, .04);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  transition: all .18s ease;
}

.wp-sidebar-logout:hover {
  color: #fff;
  border-color: rgba(215, 25, 42, .65);
  background: var(--wp-red);
  box-shadow: 0 14px 28px rgba(215, 25, 42, .22);
  transform: translateY(-1px);
}

/* SCROLLBAR */
.wp-sidebar-menu::-webkit-scrollbar {
  width: 6px;
}

.wp-sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .18);
  border-radius: 999px;
}

.wp-sidebar-menu::-webkit-scrollbar-track {
  background: transparent;
}

/* RESPONSIVE */
@media (max-width: 767.98px) {
  .wp-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }

  .wp-sidebar.show {
    transform: translateX(0);
  }
}


/* =====================================================
   TOPBAR - WORKPREVENT STYLE
===================================================== */

.wp-topbar {
  min-height: 74px;
  height: 74px;
  flex-shrink: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(248, 250, 252, .94) 100%);
  border-bottom: 1px solid rgba(6, 40, 74, .08);
  box-shadow: 0 10px 30px rgba(6, 40, 74, .06);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 20;
}

.wp-topbar-inner {
  height: 100%;
  padding: 0 26px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* BOTON MOBILE */
.wp-topbar-menu-btn {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  border: 1px solid rgba(6, 40, 74, .14);
  background: #fff;
  color: var(--wp-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 10px 24px rgba(6, 40, 74, .08);
  transition: all .18s ease;
}

.wp-topbar-menu-btn:hover {
  background: var(--wp-blue);
  color: #fff;
  transform: translateY(-1px);
}

/* CONTEXTO */
.wp-topbar-context {
  align-items: center;
  gap: 12px;
}

.wp-topbar-context-icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--wp-blue) 0%, var(--wp-blue-3) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 12px 26px rgba(6, 40, 74, .16);
}

.wp-topbar-eyebrow {
  color: var(--wp-red);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  line-height: 1;
  margin-bottom: 4px;
}

.wp-topbar-title {
  color: var(--wp-blue);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1;
}

/* USUARIO */
.wp-topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wp-topbar-user-info {
  text-align: right;
  line-height: 1.15;
}

.wp-topbar-user-name {
  color: #1F2937;
  font-size: 14px;
  font-weight: 850;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wp-topbar-user-role {
  color: var(--wp-muted);
  font-size: 12px;
  font-weight: 600;
  margin-top: 3px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wp-topbar-avatar {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(10, 79, 153, .10), rgba(215, 25, 42, .08));
  border: 1px solid rgba(6, 40, 74, .08);
  color: var(--wp-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* BOTON SALIR */
.wp-topbar-logout {
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 15px;
  border: 1px solid rgba(6, 40, 74, .16);
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  transition: all .18s ease;
}

.wp-topbar-logout:hover {
  color: #fff;
  border-color: var(--wp-red);
  background: var(--wp-red);
  box-shadow: 0 14px 28px rgba(215, 25, 42, .20);
  transform: translateY(-1px);
}

/* CUANDO EL TOPBAR ESTA DENTRO DEL LAYOUT */
.main .wp-topbar,
.main-content .wp-topbar {
  width: 100%;
}

/* RESPONSIVE */
@media (max-width: 767.98px) {
  .wp-topbar {
    height: 68px;
    min-height: 68px;
  }

  .wp-topbar-inner {
    padding: 0 16px;
  }

  .wp-topbar-user {
    gap: 8px;
  }

  .wp-topbar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .wp-topbar-logout {
    min-height: 40px;
    padding: 9px 13px;
    border-radius: 14px;
  }

  .wp-topbar-logout span {
    display: none;
  }
}


/* =====================================================
   SIDEBAR SECTIONS
===================================================== */

.wp-sidebar-section-title {
  color: rgba(255, 255, 255, .46);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: 0 12px;
  margin-bottom: 9px;
}

.wp-sidebar-nav + .wp-sidebar-section-title {
  margin-top: 24px;
}


/* =====================================================
   CREATE INFORME - EVIDENCIA FOTOGRAFICA / NUEVO FORM
===================================================== */

/* Layout del formulario nuevo */
#create-report-form {
  width: 100%;
}

/* Card lateral fijo */
.wp-sticky-summary {
  position: sticky;
  top: 96px;
}

/* Resumen lateral */
.wp-summary-list {
  display: grid;
  gap: 10px;
}

.wp-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 16px;
  background: #F8FAFC;
  border: 1px solid rgba(6, 40, 74, .07);
}

.wp-summary-item span {
  color: #64748B;
  font-size: 13px;
  font-weight: 700;
}

.wp-summary-item strong {
  color: var(--wp-blue);
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}

/* Boton outline propio */
.wp-btn-outline {
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(10, 79, 153, .22);
  background: rgba(10, 79, 153, .06);
  color: var(--wp-blue);
  font-weight: 900;
  box-shadow: none;
  transition: all .18s ease;
}

.wp-btn-outline:hover,
.wp-btn-outline:focus {
  background: linear-gradient(135deg, var(--wp-blue) 0%, var(--wp-blue-3) 100%);
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(6, 40, 74, .18);
}

/* Dropzone fotos */
.wp-photo-dropzone {
  width: 100%;
  min-height: 96px;
  border: 1px dashed rgba(10, 79, 153, .38);
  background:
    radial-gradient(circle at 96% 12%, rgba(215, 25, 42, .07) 0, transparent 34%),
    linear-gradient(180deg, rgba(10, 79, 153, .045) 0%, rgba(248, 250, 252, .95) 100%);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all .18s ease;
}

.wp-photo-dropzone:hover {
  border-color: rgba(10, 79, 153, .62);
  background:
    radial-gradient(circle at 96% 12%, rgba(215, 25, 42, .09) 0, transparent 34%),
    linear-gradient(180deg, rgba(10, 79, 153, .075) 0%, rgba(248, 250, 252, 1) 100%);
  transform: translateY(-1px);
}

.wp-photo-dropzone-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--wp-blue) 0%, var(--wp-blue-3) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex: 0 0 auto;
  box-shadow: 0 14px 28px rgba(6, 40, 74, .20);
}

/* Contenedor de fotos */
.wp-photos-wrapper {
  display: grid;
  gap: 14px;
}

/* Item foto */
.wp-photo-item {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 22px;
  background: #FFFFFF;
  border: 1px solid rgba(6, 40, 74, .08);
  box-shadow: 0 14px 34px rgba(6, 40, 74, .07);
  position: relative;
  transition: all .18s ease;
}

.wp-photo-item:hover {
  border-color: rgba(10, 79, 153, .18);
  box-shadow: 0 18px 42px rgba(6, 40, 74, .10);
}

/* Preview imagen */
.wp-photo-preview {
  width: 154px;
  height: 124px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 80% 20%, rgba(10, 79, 153, .08) 0, transparent 32%),
    #F4F8FC;
  border: 1px solid rgba(6, 40, 74, .08);
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
}

.wp-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.wp-photo-preview-empty {
  width: 100%;
  height: 100%;
  color: #94A3B8;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.wp-photo-preview-empty i {
  color: rgba(10, 79, 153, .55);
  font-size: 28px;
}

/* Campos de cada foto */
.wp-photo-fields {
  min-width: 0;
}

.wp-photo-fields .form-label {
  margin-bottom: 6px;
  color: #334155;
}

.wp-photo-fields .form-control,
.wp-photo-fields .form-select {
  min-height: 42px;
  border-radius: 12px;
  font-size: 14px;
}

.wp-photo-fields textarea.form-control {
  min-height: 72px;
}

/* Input file pequeño */
.wp-photo-fields input[type="file"].form-control-sm {
  min-height: 42px;
  padding: 0;
}

.wp-photo-fields input[type="file"].form-control-sm::file-selector-button {
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--wp-border);
  padding: 0 12px;
  margin-right: 10px;
  color: var(--wp-blue);
  background: #F4F8FC;
  font-weight: 800;
  cursor: pointer;
}

/* Boton eliminar */
.wp-photo-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.wp-photo-actions .btn {
  min-height: 42px;
  width: 42px;
  padding: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wp-photo-actions .btn-outline-danger {
  border-color: rgba(215, 25, 42, .26);
  color: var(--wp-red);
  background: rgba(215, 25, 42, .04);
}

.wp-photo-actions .btn-outline-danger:hover {
  background: var(--wp-red);
  border-color: var(--wp-red);
  color: #fff;
}

/* Alert informativo dentro de evidencias */
.wp-card .alert.alert-light {
  border-radius: 18px;
  background: #F8FAFC !important;
  border: 1px solid rgba(6, 40, 74, .08) !important;
  color: #526174;
}

/* Mejoras para textos internos */
.wp-card .text-danger {
  color: var(--wp-red) !important;
}

.wp-card .bi-images,
.wp-card .bi-clipboard2-pulse,
.wp-card .bi-list-check {
  color: var(--wp-red) !important;
}

/* Cuando no hay margen por cards consecutivas */
.wp-card.mb-4:last-child {
  margin-bottom: 0 !important;
}

/* Alert de respuesta dentro del resumen lateral */
.wp-sticky-summary #create-report-alert {
  margin-bottom: 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.45;
}

.wp-sticky-summary #create-report-alert.alert-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid rgba(16, 185, 129, .20);
}

.wp-sticky-summary #create-report-alert.alert-danger {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid rgba(215, 25, 42, .18);
}

.wp-sticky-summary #create-report-alert.alert-warning {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid rgba(245, 158, 11, .24);
}

/* Mejor apariencia de botones en columna lateral */
.wp-sticky-summary .btn {
  width: 100%;
}

/* Corrige botones globales en desktop */
@media (min-width: 768px) {
  .wp-card .btn,
  .wp-sticky-summary .btn {
    width: auto;
  }

  .wp-sticky-summary .d-grid .btn {
    width: 100%;
  }
}

/* Responsive tablet */
@media (max-width: 1199.98px) {
  .wp-sticky-summary {
    position: static;
    top: auto;
  }
}

/* Responsive mobile */
@media (max-width: 767.98px) {
  .wp-photo-dropzone {
    align-items: flex-start;
    padding: 16px;
    border-radius: 20px;
  }

  .wp-photo-dropzone-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 23px;
  }

  .wp-photo-item {
    grid-template-columns: 1fr;
    padding: 13px;
    border-radius: 20px;
  }

  .wp-photo-preview {
    width: 100%;
    height: 190px;
  }

  .wp-photo-actions {
    justify-content: stretch;
  }

  .wp-photo-actions .btn {
    width: 100%;
  }

  .wp-summary-item {
    padding: 12px;
  }
}

/* Responsive muy pequeno */
@media (max-width: 575.98px) {
  .wp-photo-dropzone {
    flex-direction: column;
  }

  .wp-photo-dropzone-icon {
    width: 46px;
    height: 46px;
  }

  .wp-photo-preview {
    height: 170px;
  }

  .wp-summary-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .wp-summary-item strong {
    text-align: left;
  }
}



/* =====================================================
   INFORMES
===================================================== */

  .wp-reports-table thead th {
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
  }

  .wp-reports-table tbody td {
    font-size: 13px;
    vertical-align: middle;
  }

  .wp-report-title {
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
  }

  .wp-report-subtitle {
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
  }

  .wp-report-actions {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .wp-report-actions .btn {
    border-radius: 10px;
    font-weight: 700;
  }

  .wp-status-badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
  }

  .wp-status-borrador {
    background: #f1f5f9;
    color: #475569;
  }

  .wp-status-procesado {
    background: #e0f2fe;
    color: #0369a1;
  }

  .wp-status-generado {
    background: #dcfce7;
    color: #166534;
  }

  .wp-status-observado {
    background: #fef3c7;
    color: #92400e;
  }

  .wp-status-anulado {
    background: #fee2e2;
    color: #991b1b;
  }

  .dataTables_wrapper .dataTables_filter input {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 6px 10px;
    margin-left: 8px;
  }

  .dataTables_wrapper .dataTables_length select {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 5px 28px 5px 10px;
  }

  .page-link {
    border-radius: 10px;
    margin: 0 2px;
  }

  .wp-report-modal .modal-dialog {
    max-width: 1180px;
  }

  .wp-report-modal-content {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .35);
  }

  .wp-report-modal-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
  }

  .wp-report-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #eff6ff;
    color: #0A4F99;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    flex: 0 0 44px;
  }

  .wp-report-modal-title {
    color: white;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
  }

  .wp-report-modal-subtitle {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
  }

  .wp-report-modal-toolbar {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .wp-report-modal-btn {
    border-radius: 12px;
    font-weight: 700;
    padding: 8px 14px;
  }

  .wp-report-modal-btn-danger {
    background: #dc3545;
    border-color: #dc3545;
  }

  .wp-report-modal-body {
    padding: 0;
    background: #e2e8f0;
    height: calc(100vh - 190px);
    min-height: 620px;
  }

  .wp-report-modal-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #eef3f8;
    display: block;
  }

  @media (max-width: 768px) {
    .wp-report-modal-header {
      padding: 14px 16px;
    }

    .wp-report-modal-toolbar {
      padding: 10px 16px;
    }

    .wp-report-modal-body {
      height: calc(100vh - 180px);
      min-height: 520px;
    }

    .wp-report-modal-title {
      font-size: 16px;
    }

    .wp-report-modal-icon {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      font-size: 19px;
    }
  }


  .wp-dashboard-hero {
  position: relative;
  overflow: hidden;
}

.wp-dashboard-hero::before,
.wp-dashboard-hero::after {
  pointer-events: none;
  z-index: 0;
}

.wp-dashboard-hero > .row {
  position: relative;
  z-index: 2;
}

.wp-dashboard-hero .btn {
  position: relative;
  z-index: 3;
}


.modal-title{
  color:white;
}


/* CLIENTES */

.wp-dashboard-hero {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8fc 45%, #eaf2fb 100%);
  border: 1px solid rgba(10, 79, 153, 0.08);
  border-radius: 22px;
  padding: 1.4rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.wp-dashboard-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0A4F99;
  color: #ffffff;
  font-size: 1.45rem;
  flex: 0 0 auto;
  box-shadow: 0 14px 26px rgba(10, 79, 153, 0.22);
}

.wp-dashboard-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #0A4F99;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.wp-dashboard-title {
  color: #111827;
  font-weight: 800;
}

.wp-dashboard-subtitle {
  color: #64748b;
  font-size: 0.95rem;
}

.wp-card {
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.wp-btn-primary {
  background: #0A4F99;
  border-color: #0A4F99;
  color: #ffffff;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.58rem 1rem;
  box-shadow: 0 12px 24px rgba(10, 79, 153, 0.20);
}

.wp-btn-primary:hover,
.wp-btn-primary:focus {
  background: #083f7a;
  border-color: #083f7a;
  color: #ffffff;
}

.wp-clients-table {
  font-size: 0.9rem;
}

.wp-clients-table thead th {
  background: #f8fafc;
  color: #334155;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.wp-clients-table tbody td {
  vertical-align: middle;
  border-color: #eef2f7;
}

.wp-client-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.wp-client-actions .btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.wp-client-name {
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
}

.wp-client-subtitle {
  color: #64748b;
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.wp-client-path {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.wp-status-active {
  background: #dcfce7;
  color: #166534;
}

.wp-status-inactive {
  background: #fee2e2;
  color: #991b1b;
}

.wp-color-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wp-color-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

.wp-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  display: inline-block;
  flex: 0 0 auto;
}

.wp-color-empty {
  font-size: 0.78rem;
  color: #94a3b8;
}

.wp-client-modal-content {
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.20);
}

.wp-client-modal-header {
  background: linear-gradient(135deg, #0A4F99 0%, #083f7a 52%, #111827 100%);
  color: #ffffff;
  border-bottom: 0;
  padding: 1.2rem 1.35rem;
}

.wp-client-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex: 0 0 auto;
}

.wp-client-modal-title {
  font-weight: 800;
}

.wp-client-modal-subtitle {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.wp-client-modal-close {
  filter: invert(1) grayscale(100%);
  opacity: 0.9;
}

.wp-client-modal-body {
  padding: 1.35rem;
  background: #ffffff;
}

.wp-client-modal-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 1rem 1.35rem;
}

.wp-client-modal .form-label {
  color: #334155;
  font-size: 0.84rem;
}

.wp-client-modal .form-control,
.wp-client-modal .form-select {
  border-radius: 12px;
  border-color: #dbe3ef;
  min-height: 42px;
}

.wp-client-modal .form-control:focus,
.wp-client-modal .form-select:focus {
  border-color: #0A4F99;
  box-shadow: 0 0 0 0.16rem rgba(10, 79, 153, 0.14);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border-radius: 10px;
  border: 1px solid #dbe3ef;
  padding: 0.35rem 0.55rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 10px !important;
}

@media (max-width: 768px) {
  .wp-dashboard-hero {
    padding: 1rem;
  }

  .wp-dashboard-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .wp-dashboard-title {
    font-size: 1.1rem;
  }

  .wp-dashboard-subtitle {
    font-size: 0.85rem;
  }

  .wp-client-modal-header {
    padding: 1rem;
  }

  .wp-client-modal-body {
    padding: 1rem;
  }

  .wp-client-modal-footer {
    padding: 1rem;
  }
}
.wp-color-input {
  width: 100%;
  height: 42px;
  padding: 0.35rem;
  cursor: pointer;
}

.wp-logo-preview-wrap {
  margin-top: 0.85rem;
  padding: 0.75rem;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
}

.wp-logo-preview {
  max-width: 180px;
  max-height: 90px;
  object-fit: contain;
  display: block;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 0.4rem;
}

.wp-client-logo-table {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: #0A4F99;
}

.wp-client-logo-table img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
  background: #ffffff;
}

.wp-client-logo-table i {
  font-size: 1.15rem;
}

.wp-client-modal .modal-dialog {
  max-height: calc(100vh - 2rem);
}

.wp-client-modal .modal-content {
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}

.wp-client-modal-header {
  flex: 0 0 auto;
}

.wp-client-modal-footer {
  flex: 0 0 auto;
}

.wp-client-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  max-height: calc(100vh - 220px);
}

/* USUARIOS */

.wp-users-table {
  font-size: 0.92rem;
}

.wp-users-table thead th {
  background: #f8fafc;
  color: #334155;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-bottom: 1px solid #e5e7eb;
}

.wp-users-table tbody td {
  vertical-align: middle;
}

.wp-user-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.wp-user-photo-table {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eef4ff;
  color: #0A4F99;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #dbeafe;
  flex-shrink: 0;
}

.wp-user-photo-table img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-user-photo-table i {
  font-size: 1.3rem;
}

.wp-user-name {
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.wp-user-subtitle {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 0.1rem;
}

.wp-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: #eff6ff;
  color: #0A4F99;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}

.wp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.wp-status-active {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
}

.wp-status-inactive {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.wp-user-modal .modal-dialog {
  max-width: 920px;
}

.wp-user-modal-content {
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.20);
}

.wp-user-modal-header {
  background: linear-gradient(135deg, #0A4F99 0%, #073b73 55%, #111827 100%);
  color: #ffffff;
  border-bottom: 0;
  padding: 1.25rem 1.5rem;
}

.wp-user-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wp-user-modal-icon i {
  font-size: 1.45rem;
}

.wp-user-modal-title {
  font-weight: 800;
  color: #ffffff;
}

.wp-user-modal-subtitle {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.80);
}

.wp-user-modal-close {
  filter: invert(1) grayscale(100%);
  opacity: 0.9;
}

.wp-user-modal-body {
  padding: 1.5rem;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  background: #ffffff;
}

.wp-user-modal-footer {
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
}

.wp-file-preview-wrap {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.wp-user-photo-preview {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.wp-user-sign-preview {
  width: 180px;
  height: 90px;
  border-radius: 14px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 0.35rem;
}

.dataTables_wrapper .dataTables_filter input {
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  padding: 0.35rem 0.75rem;
  margin-left: 0.5rem;
}

.dataTables_wrapper .dataTables_length select {
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 0.25rem 1.75rem 0.25rem 0.5rem;
}

@media (max-width: 768px) {
  .wp-user-modal .modal-dialog {
    margin: 0.5rem;
  }

  .wp-user-modal-header {
    padding: 1rem;
  }

  .wp-user-modal-body {
    padding: 1rem;
    max-height: calc(100vh - 190px);
  }

  .wp-user-modal-footer {
    padding: 1rem;
  }
}


#reports-table {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
}

#reports-table thead th {
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  vertical-align: middle;
  padding: 12px 10px;
  border-bottom: 1px solid #cbd5e1;
}

#reports-table tbody td {
  padding: 14px 10px;
  vertical-align: middle;
  font-size: 13px;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
}

#reports-table tbody tr:hover {
  background: #f8fbff;
}

.wp-col-actions {
  min-width: 150px;
}

.wp-col-report {
  min-width: 240px;
  max-width: 280px;
}

.wp-col-client {
  min-width: 220px;
}

.wp-col-medico {
  min-width: 190px;
}

.wp-report-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.wp-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  font-size: 16px;
  transition: all .18s ease;
}

.wp-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
}

.wp-action-view {
  background: #073763;
  color: #ffffff;
}

.wp-action-view:hover {
  background: #052a4d;
  color: #ffffff;
}

.wp-action-edit {
  background: #fbbf24;
  color: #111827;
}

.wp-action-edit:hover {
  background: #f59e0b;
  color: #111827;
}

.wp-action-excel {
  background: #16a34a;
  color: #ffffff;
}

.wp-action-excel:hover {
  background: #15803d;
  color: #ffffff;
}

.wp-action-excel[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

.wp-report-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  max-width: 260px;
  white-space: normal;
  word-break: break-word;
}

.wp-report-subtitle {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
  max-width: 260px;
  white-space: normal;
  word-break: break-word;
}

.wp-main-text {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  color: #111827;
  white-space: normal;
  word-break: break-word;
}

.wp-muted-text {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
  white-space: normal;
  word-break: break-word;
}

.wp-dot-separator {
  display: inline-block;
  margin: 0 6px;
  color: #94a3b8;
}

.wp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.wp-status-generado {
  background: #dcfce7;
  color: #166534;
}

.wp-status-borrador {
  background: #fef3c7;
  color: #92400e;
}

.wp-status-procesado {
  background: #dbeafe;
  color: #1d4ed8;
}

.wp-status-observado {
  background: #ffedd5;
  color: #c2410c;
}

.wp-status-anulado {
  background: #fee2e2;
  color: #991b1b;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 7px 12px;
  outline: none;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  border-color: #0A4F99;
  box-shadow: 0 0 0 3px rgba(10, 79, 153, .12);
}