html {
  font-size: 14px;
}

/* Tema personalizado: color "perico" */
:root {
  --perico: #2bb673; /* verde perico */
  --perico-dark: #219a58;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(43,182,115,0.35);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.invoice-sheet {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1.25rem;
}

.invoice-header {
  line-height: 1.45;
}

@media print {
  .no-print,
  .navbar,
  aside,
  footer {
    display: none !important;
  }

  main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .invoice-sheet {
    border: none;
    padding: 0;
  }
}

.login-hero {
  position: relative;
  min-height: calc(100vh - 170px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
  /* Nuevo fondo perico suave */
  background: linear-gradient(135deg, rgba(43,182,115,0.06), rgba(33,154,88,0.04) 45%, rgba(43,182,115,0.03));
}

.login-panel {
  width: 100%;
  z-index: 2;
}

.login-card {
  border-radius: 1rem;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,255,250,0.95));
  border: 1px solid rgba(43,182,115,0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.login-card:hover {
  box-shadow: 0 20px 45px rgba(43,182,115, 0.12) !important;
}

.login-logo {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}

.login-input-group .input-group-text {
  background: #f8f9fa;
  border-right: 0;
}

.login-input-group .form-control {
  border-left: 0;
}

.login-submit-btn {
  background: none;
  border: none;
  padding: 0.6rem 1rem;
  font-weight: 600;
}

.btn-perico {
  background: linear-gradient(90deg, var(--perico), var(--perico-dark));
  color: #fff;
  border: none;
}
.btn-perico:hover { filter: brightness(0.98); }

.login-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(1px);
  animation: login-float 9s ease-in-out infinite;
}

.login-orb-1 {
  width: 220px;
  height: 220px;
  top: 8%;
  left: 8%;
  background: #86efac;
}

.login-orb-2 {
  width: 260px;
  height: 260px;
  right: 8%;
  bottom: 10%;
  background: #93c5fd;
  animation-delay: 1.2s;
}

.login-orb-3 {
  width: 140px;
  height: 140px;
  left: 55%;
  top: 18%;
  background: #c4b5fd;
  animation-delay: 2.2s;
}

@keyframes login-float {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  50% {
    transform: translateY(-16px) translateX(8px) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-card,
  .login-orb,
  .login-submit-btn {
    transition: none !important;
    animation: none !important;
  }
}

.form-select option:focus,
.form-select option:active,
.form-select option:hover,
.form-select option:checked {
  background-color: #6c757d !important;
  color: #ffffff !important;
}

.ts-dropdown .option.active,
.ts-dropdown .option.selected,
.tom-select .ts-dropdown .option.active,
.tom-select .ts-dropdown .option.selected {
  background-color: var(--perico-dark) !important;
  color: #ffffff !important;
}

/* Botón perico personalizado */
.btn-perico {
  background-color: var(--perico);
  color: #fff;
  border-color: var(--perico-dark);
}
.btn-perico:hover {
  background-color: var(--perico-dark);
  border-color: var(--perico-dark);
}
.btn-outline-perico {
  color: var(--perico);
  border-color: var(--perico);
}
.btn-outline-perico:hover {
  color: #fff;
  background-color: var(--perico);
  border-color: var(--perico-dark);
}

.text-perico { color: var(--perico) !important; }

/* Fondo marca (logo) como watermark en el panel principal */
.main-bg {
  position: relative;
  overflow: visible;
}
.main-bg::before { display: none; }
.main-bg > * {
  position: relative;
  z-index: 1; /* ensure content sits above watermark */
}

/* Sidebar buttons styled as perico and reordered */
.nav-pills .nav-link.btn-perico {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;
}

/* Top actions (perfil/salir) */
.top-actions { position: relative; z-index: 2; }

/* Centro del módulo: logo grande entre columnas */
.module-center .module-logo img { max-width: 320px; opacity: 1; filter: none; }
.module-center { min-height: 420px; }

/* =========================================================
   DISEÑO PROPIO - MÓDULOS CÍTRICOS LOS PERICOS
   ========================================================= */

.pericos-module {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 10px 5px 40px;
}

.pericos-module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f1fff7 100%);
    border: 1px solid rgba(43, 182, 115, .16);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(30, 80, 55, .07);
}

.pericos-module-kicker {
    display: block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #219a58;
    margin-bottom: 5px;
}

.pericos-module-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: #173b2a;
}

.pericos-module-header p {
    margin: 5px 0 0;
    color: #718078;
    font-size: .92rem;
}

.pericos-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    padding: 11px 18px;
    text-decoration: none;
    font-weight: 700;
    transition: all .18s ease;
}

.pericos-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #2bb673, #168a4b);
    box-shadow: 0 6px 16px rgba(43, 182, 115, .22);
}

.pericos-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(43, 182, 115, .30);
}

.pericos-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    padding: 13px 16px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.pericos-alert-danger {
    color: #842029;
    background: #fff1f2;
    border-color: #f5c2c7;
}

.pericos-alert-success {
    color: #146c43;
    background: #edfff5;
    border-color: #b7ebcd;
}

.pericos-table-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e6eee9;
    box-shadow: 0 10px 30px rgba(30, 80, 55, .08);
}

.pericos-table-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 19px 22px;
    border-bottom: 1px solid #e8eee9;
    background: #fbfefc;
}

.pericos-table-top strong {
    display: block;
    color: #173b2a;
    font-size: 1rem;
}

.pericos-table-top span {
    color: #7b8780;
    font-size: .82rem;
}

.pericos-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 20px;
    background: #eaf9f0;
    color: #198754;
    font-size: .82rem;
    font-weight: 700;
}

.pericos-table {
    margin: 0;
    border: 0 !important;
}

.pericos-table thead th {
    background: #f2f7f4;
    color: #617068;
    font-size: .70rem;
    letter-spacing: .7px;
    font-weight: 800;
    border: 0;
    padding: 14px 15px;
    white-space: nowrap;
}

.pericos-table tbody td {
    padding: 15px;
    border-color: #edf1ee;
    color: #39453f;
    font-size: .9rem;
}

.pericos-table tbody tr {
    transition: background .15s ease;
}

.pericos-table tbody tr:hover {
    background: #f8fcfa;
}

.pericos-code {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 7px;
    background: #eef5f1;
    color: #38604a;
    font-size: .78rem;
    font-weight: 700;
}

.pericos-product-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #20372b;
}

.pericos-product-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #e7f8ee;
    color: #20975a;
}

.pericos-money {
    font-weight: 700;
    white-space: nowrap;
}

.pericos-stock {
    display: inline-block;
    min-width: 65px;
    padding: 5px 9px;
    text-align: center;
    border-radius: 8px;
    background: #f5f7f6;
    font-weight: 700;
}

.pericos-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 700;
}

.pericos-status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.pericos-status-active {
    color: #198754;
}

.pericos-status-active > span {
    background: #20c997;
}

.pericos-status-inactive {
    color: #6c757d;
}

.pericos-status-inactive > span {
    background: #adb5bd;
}

.pericos-actions {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.pericos-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    text-decoration: none;
    transition: all .16s ease;
}

.pericos-action:hover {
    transform: translateY(-2px);
}

.pericos-action-view {
    color: #0d6efd;
    background: #edf5ff;
}

.pericos-action-edit {
    color: #b58105;
    background: #fff8df;
}

.pericos-action-delete {
    color: #dc3545;
    background: #fff0f1;
}

.pericos-empty {
    height: 220px;
    text-align: center;
    vertical-align: middle;
}

.pericos-empty i {
    display: block;
    font-size: 2.5rem;
    color: #9aaca1;
    margin-bottom: 10px;
}

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

.pericos-empty strong {
    color: #45534b;
}

.pericos-empty span {
    margin-top: 4px;
    color: #8a968f;
    font-size: .85rem;
}

@media (max-width: 768px) {
    .pericos-module-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .pericos-table-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .pericos-table {
        min-width: 1000px;
    }
}

/* =========================================================
   FIN DISEÑO PROPIO - MÓDULOS CÍTRICOS LOS PERICOS
   =========================================================

/* ============================================================
   CÍTRICOS LOS PERICOS
   DISEÑO VISUAL PROPIO PARA TODOS LOS MÓDULOS
   ============================================================ */

.pericos-module {
    max-width: 1450px;
    margin: 0 auto;
    padding: 8px 4px 35px;
}

/* ---------- ENCABEZADO ---------- */

.pericos-module > h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #174d32;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.pericos-module > div:first-child {
    margin-bottom: 20px;
}

/* ---------- BOTÓN NUEVO ---------- */

.pericos-module .btn-success {
    background: linear-gradient(135deg, #2bb673, #147a48);
    border: none;
    color: white;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 700;
    box-shadow: 0 7px 18px rgba(43,182,115,.20);
    transition: all .2s ease;
}

.pericos-module .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(43,182,115,.28);
}

/* ---------- ALERTAS ---------- */

.pericos-module .alert {
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 5px 18px rgba(0,0,0,.06);
}

/* ---------- TABLAS ---------- */

.pericos-module > table,
.pericos-module .table {
    background: white;
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(23,77,50,.09);
}

/* Cabecera */

.pericos-module .table thead th {
    background: linear-gradient(135deg, #174d32, #23784d);
    color: white;
    border: none !important;
    padding: 15px 13px;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}

/* Cuerpo */

.pericos-module .table tbody td {
    background: #fff;
    border-color: #edf2ee !important;
    padding: 14px 13px;
    color: #35453c;
    vertical-align: middle;
}

.pericos-module .table tbody tr {
    transition: all .15s ease;
}

.pericos-module .table tbody tr:hover td {
    background: #f1faf5 !important;
}

/* ---------- ACCIONES ---------- */

.pericos-module .btn-outline-primary,
.pericos-module .btn-outline-warning,
.pericos-module .btn-outline-danger,
.pericos-module .btn-outline-secondary {
    border-radius: 9px;
    font-weight: 650;
    border-width: 1.5px;
    transition: all .18s ease;
}

.pericos-module .btn-outline-primary:hover,
.pericos-module .btn-outline-warning:hover,
.pericos-module .btn-outline-danger:hover,
.pericos-module .btn-outline-secondary:hover {
    transform: translateY(-1px);
}

/* ---------- FORMULARIOS ---------- */

.pericos-module .form-control,
.pericos-module .form-select {
    border: 1px solid #d7e7dd;
    border-radius: 11px;
    padding: 10px 13px;
    background-color: #fbfefc;
    transition: all .18s ease;
}

.pericos-module .form-control:focus,
.pericos-module .form-select:focus {
    background: white;
    border-color: #2bb673;
    box-shadow: 0 0 0 .22rem rgba(43,182,115,.13);
}

.pericos-module .form-label {
    color: #285c42;
    font-weight: 700;
    margin-bottom: 7px;
}

/* ---------- CARDS ---------- */

.pericos-module .card {
    border: 1px solid #dcebe1 !important;
    border-radius: 18px !important;
    box-shadow: 0 9px 28px rgba(23,77,50,.07) !important;
    overflow: hidden;
}

.pericos-module .card-header {
    background: linear-gradient(135deg, #edf9f2, #f8fcf9);
    color: #174d32;
    border-bottom: 1px solid #dcebe1;
    font-weight: 800;
}

/* ---------- FILTROS ---------- */

.pericos-module .card-body {
    background: #fff;
}

.pericos-module .card-body .btn-primary {
    background: linear-gradient(135deg, #23784d, #174d32);
    border: none;
    border-radius: 10px;
    font-weight: 700;
}

/* ---------- HISTORIAL ---------- */

.pericos-module.history-module > h2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pericos-module.history-module > h2::before {
    content: "📊";
    font-size: 1.6rem;
}

.pericos-module.history-module .border-info,
.pericos-module.history-module .border-warning {
    border-width: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 25px rgba(23,77,50,.08);
}

/* ---------- COMPRAS ---------- */

.pericos-module.purchase-module > h2::before {
    content: "🛒";
    margin-right: 10px;
}

.pericos-module.purchase-module .table thead th {
    background: linear-gradient(135deg, #795548, #9a6a55);
}

/* ---------- VENTAS ---------- */

.pericos-module.sale-module > h2::before {
    content: "💰";
    margin-right: 10px;
}

.pericos-module.sale-module .table thead th {
    background: linear-gradient(135deg, #1769aa, #2484c6);
}

/* ---------- PROVEEDORES ---------- */

.pericos-module.provider-module > h2::before {
    content: "🚜";
    margin-right: 10px;
}

.pericos-module.provider-module .table thead th {
    background: linear-gradient(135deg, #557a35, #729b48);
}

/* ---------- CLIENTES ---------- */

.pericos-module.client-module > h2::before {
    content: "👥";
    margin-right: 10px;
}

.pericos-module.client-module .table thead th {
    background: linear-gradient(135deg, #62548f, #7869a8);
}

/* ---------- ESTADOS ---------- */

.pericos-module .badge {
    border-radius: 20px;
    padding: 7px 11px;
    font-weight: 700;
}

/* ---------- BOTONES PEQUEÑOS ---------- */

.pericos-module .btn-sm {
    border-radius: 8px;
    font-weight: 650;
}

/* ---------- CELDAS IMPORTANTES ---------- */

.pericos-module td:first-child {
    font-weight: 650;
    color: #285c42;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {

    .pericos-module {
        padding-left: 5px;
        padding-right: 5px;
    }

    .pericos-module .table {
        font-size: .88rem;
    }

    .pericos-module .table-responsive {
        border-radius: 15px;
    }
}


/* ============================================================
   CÍTRICOS LOS PERICOS
   DISEÑO PROPIO - CREAR / EDITAR / DETALLES
   ============================================================ */

.pericos-form-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 5px 40px;
}

/* Encabezado */

.pericos-form-page > h2 {
    color: #174d32;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 22px;
    letter-spacing: -.5px;
}

.pericos-form-page > h2::before {
    margin-right: 10px;
}

/* Tarjetas */

.pericos-form-page .card {
    border: 1px solid #dcebe1 !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(23,77,50,.08) !important;
    background: #fff;
}

.pericos-form-page .card-header {
    background: linear-gradient(135deg,#edf9f2,#f8fcf9) !important;
    color: #174d32 !important;
    border-bottom: 1px solid #dcebe1 !important;
    font-weight: 800;
}

/* Etiquetas */

.pericos-form-page .form-label {
    color: #285c42;
    font-weight: 700;
    margin-bottom: 7px;
}

/* Inputs */

.pericos-form-page .form-control,
.pericos-form-page .form-select,
.pericos-form-page textarea {
    border: 1px solid #d5e6dc;
    border-radius: 11px;
    background: #fbfefc;
    padding: 10px 13px;
    transition: all .18s ease;
}

.pericos-form-page .form-control:focus,
.pericos-form-page .form-select:focus,
.pericos-form-page textarea:focus {
    background: white;
    border-color: #2bb673;
    box-shadow: 0 0 0 .22rem rgba(43,182,115,.13);
}

/* Botón principal */

.pericos-form-page .btn-primary,
.pericos-form-page .btn-success {
    background: linear-gradient(135deg,#2bb673,#147a48);
    border: none;
    color: white;
    border-radius: 11px;
    font-weight: 750;
    padding: 10px 20px;
    box-shadow: 0 6px 16px rgba(43,182,115,.18);
    transition: all .18s ease;
}

.pericos-form-page .btn-primary:hover,
.pericos-form-page .btn-success:hover {
    transform: translateY(-2px);
}

/* Cancelar */

.pericos-form-page .btn-secondary {
    border: none;
    border-radius: 11px;
    font-weight: 650;
    padding: 10px 18px;
}

/* Botones secundarios */

.pericos-form-page .btn-outline-primary,
.pericos-form-page .btn-outline-secondary,
.pericos-form-page .btn-outline-danger {
    border-radius: 10px;
    font-weight: 650;
}

/* Alertas */

.pericos-form-page .alert {
    border: none;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0,0,0,.05);
}

/* Tablas dentro de formularios */

.pericos-form-page .table {
    border-radius: 15px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 6px 20px rgba(23,77,50,.06);
}

.pericos-form-page .table thead th {
    background: #174d32 !important;
    color: white !important;
    border: none !important;
    padding: 12px;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pericos-form-page .table tbody td {
    padding: 11px;
    vertical-align: middle;
    border-color: #e8f0eb;
}

/* ============================================================
   IDENTIDAD DE CADA MÓDULO
   ============================================================ */

/* PRODUCTOS */

.product-form > h2::before {
    content: "🥭";
}

.product-form .card-header {
    border-left: 5px solid #2bb673 !important;
}

/* COMPRAS */

.purchase-form > h2::before {
    content: "🛒";
}

.purchase-form .card-header {
    border-left: 5px solid #9a6a55 !important;
}

.purchase-form .table thead th {
    background: #795548 !important;
}

/* VENTAS */

.sale-form > h2::before {
    content: "💰";
}

.sale-form .card-header {
    border-left: 5px solid #2484c6 !important;
}

.sale-form .table thead th {
    background: #1769aa !important;
}

/* PROVEEDORES */

.provider-form > h2::before {
    content: "🚜";
}

.provider-form .card-header {
    border-left: 5px solid #729b48 !important;
}

.provider-form .table thead th {
    background: #557a35 !important;
}

/* CLIENTES */

.client-form > h2::before {
    content: "👥";
}

.client-form .card-header {
    border-left: 5px solid #7869a8 !important;
}

.client-form .table thead th {
    background: #62548f !important;
}

/* DETALLES */

.pericos-form-page dl {
    margin-bottom: 0;
}

.pericos-form-page dt {
    color: #557064;
    font-weight: 750;
}

.pericos-form-page dd {
    color: #193d2a;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2ee;
}

/* Checkbox */

.pericos-form-page .form-check-input:checked {
    background-color: #2bb673;
    border-color: #2bb673;
}

.pericos-form-page .form-check-label {
    color: #285c42;
    font-weight: 650;
}

/* Responsive */

@media (max-width: 768px) {
    .pericos-form-page {
        padding-left: 4px;
        padding-right: 4px;
    }

    .pericos-form-page > h2 {
        font-size: 1.55rem;
    }
}


/* ============================================================
   CÍTRICOS LOS PERICOS
   DESPLEGABLE DE PRODUCTOS - TOM SELECT
   ============================================================ */

.pericos-form-page .ts-wrapper {
    width: 100%;
}

.pericos-form-page .ts-control {
    min-height: 38px;
    border: 1px solid #d5e6dc !important;
    border-radius: 10px !important;
    background: #fbfefc !important;
    box-shadow: none !important;
    padding: 7px 10px !important;
    font-size: .875rem;
}

.pericos-form-page .ts-control.focus {
    border-color: #2bb673 !important;
    box-shadow: 0 0 0 .22rem rgba(43,182,115,.13) !important;
}

.pericos-form-page .ts-dropdown {
    position: absolute !important;
    z-index: 99999 !important;
    border: 1px solid #cfe2d6 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 30px rgba(23,77,50,.18) !important;
    background: #ffffff !important;
    overflow: hidden !important;
    min-width: 100% !important;
}

.pericos-form-page .ts-dropdown .dropdown-input {
    width: calc(100% - 20px);
    margin: 10px;
    border: 1px solid #d5e6dc;
    border-radius: 9px;
    padding: 8px 10px;
}

.pericos-form-page .ts-dropdown .option {
    padding: 10px 13px !important;
    color: #193d2a !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
}

.pericos-form-page .ts-dropdown .option:hover,
.pericos-form-page .ts-dropdown .option.active {
    background: #eaf8f0 !important;
    color: #174d32 !important;
}

.pericos-form-page .ts-dropdown .option.selected {
    background: #dff3e7 !important;
    color: #174d32 !important;
    font-weight: 700;
}

.pericos-form-page .ts-control > input {
    min-width: 80px !important;
}

.pericos-form-page .ts-control .item {
    color: #193d2a !important;
    font-weight: 600;
}

@media (max-width: 768px) {

    .pericos-form-page .ts-dropdown {
        max-width: 90vw !important;
    }

    .pericos-form-page .ts-dropdown .option {
        padding: 9px 11px !important;
        font-size: .85rem;
    }
}


/* ============================================================
   CÍTRICOS LOS PERICOS
   LOGIN - DISEÑO MODERNO
   ============================================================ */

.pericos-login-page {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.16), transparent 28%),
        radial-gradient(circle at 85% 80%, rgba(255,255,255,.12), transparent 30%),
        linear-gradient(135deg, #0c4f31 0%, #16804b 48%, #2bb673 100%);
}

.pericos-login-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 5;
}

.pericos-login-card {
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 28px;
    padding: 38px 42px 30px;
    box-shadow:
        0 30px 70px rgba(0,0,0,.22),
        0 8px 25px rgba(20,80,50,.18);
    transition: transform .18s ease, box-shadow .25s ease;
    transform-style: preserve-3d;
}

.pericos-login-card:hover {
    box-shadow:
        0 35px 80px rgba(0,0,0,.25),
        0 10px 30px rgba(20,80,50,.20);
}

.pericos-login-logo-area {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.pericos-login-logo-circle {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow:
        0 10px 25px rgba(22,128,75,.18),
        0 0 0 7px rgba(43,182,115,.10);
}

.pericos-login-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
}

.pericos-login-heading {
    text-align: center;
    margin-bottom: 28px;
}

.pericos-login-kicker {
    display: block;
    color: #2b9c64;
    font-size: .70rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 7px;
}

.pericos-login-heading h1 {
    margin: 0;
    color: #174d32;
    font-size: 2rem;
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -.8px;
}

.pericos-login-heading h1 strong {
    display: block;
    color: #18804c;
    font-weight: 850;
}

.pericos-login-heading p {
    margin: 12px 0 0;
    color: #718178;
    font-size: .88rem;
    line-height: 1.5;
}

.pericos-login-alert {
    border-radius: 12px;
    border: none;
    font-size: .88rem;
    margin-bottom: 20px;
}

.pericos-login-field {
    margin-bottom: 20px;
}

.pericos-login-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #285c42;
    font-size: .86rem;
    font-weight: 750;
    margin-bottom: 8px;
}

.pericos-login-label i {
    color: #2bb673;
    font-size: .95rem;
}

.pericos-login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.pericos-login-input-icon {
    position: absolute;
    left: 14px;
    z-index: 3;
    color: #55a77d;
    font-size: 1rem;
    pointer-events: none;
}

.pericos-login-input {
    height: 48px;
    width: 100%;
    border: 1px solid #d6e7dc !important;
    border-radius: 13px !important;
    background: #f8fcf9 !important;
    padding: 10px 44px 10px 42px !important;
    color: #193d2a !important;
    font-size: .92rem;
    box-shadow: none !important;
    transition: all .2s ease;
}

.pericos-login-input::placeholder {
    color: #a2b0a8;
}

.pericos-login-input:focus {
    background: #ffffff !important;
    border-color: #2bb673 !important;
    box-shadow: 0 0 0 4px rgba(43,182,115,.11) !important;
}

.pericos-password-toggle {
    position: absolute;
    right: 7px;
    top: 6px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #71907e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .18s ease;
}

.pericos-password-toggle:hover {
    background: #eaf8f0;
    color: #18804c;
}

.pericos-login-field-error {
    display: block;
    font-size: .78rem;
    margin-top: 5px;
}

.pericos-login-validation {
    font-size: .82rem;
}

.pericos-login-submit {
    width: 100%;
    height: 51px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #2bb673 0%, #147a48 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: .94rem;
    font-weight: 800;
    letter-spacing: .15px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(21,122,72,.22);
    transition: all .2s ease;
}

.pericos-login-submit i {
    font-size: 1.15rem;
    transition: transform .2s ease;
}

.pericos-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(21,122,72,.28);
    background: linear-gradient(135deg, #31c27c 0%, #168551 100%);
}

.pericos-login-submit:hover i {
    transform: translateX(3px);
}

.pericos-login-submit:active {
    transform: translateY(0);
}

.pericos-login-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
}

.pericos-login-footer-line {
    height: 1px;
    flex: 1;
    background: #e1ece5;
}

.pericos-login-info {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #759082;
    white-space: nowrap;
    font-size: .70rem;
    font-weight: 650;
}

.pericos-login-info i {
    color: #2bb673;
    font-size: .82rem;
}

.pericos-login-version {
    text-align: center;
    color: #a0afa6;
    font-size: .68rem;
    margin-top: 13px;
    letter-spacing: .4px;
}

.pericos-login-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255,255,255,.07);
}

.pericos-login-decoration-1 {
    width: 420px;
    height: 420px;
    top: -180px;
    left: -130px;
}

.pericos-login-decoration-2 {
    width: 300px;
    height: 300px;
    right: -100px;
    bottom: -120px;
    background: rgba(255,255,255,.08);
}

.pericos-login-decoration-3 {
    width: 100px;
    height: 100px;
    right: 12%;
    top: 13%;
    border: 2px solid rgba(255,255,255,.13);
    background: transparent;
}

@media (max-width: 576px) {

    .pericos-login-page {
        padding: 25px 15px;
    }

    .pericos-login-card {
        padding: 32px 25px 26px;
        border-radius: 23px;
    }

    .pericos-login-heading h1 {
        font-size: 1.75rem;
    }

    .pericos-login-logo-circle {
        width: 105px;
        height: 105px;
    }

    .pericos-login-logo {
        width: 89px;
        height: 89px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .pericos-login-card,
    .pericos-login-submit,
    .pericos-password-toggle {
        transition: none;
    }
}


@media print {
    .top-actions {
        display: none !important;
    }
}
