/* =============================================
   ADMIN TOUR - Intro.js completo (sin CSS por defecto)
   Incluye estructura necesaria + tema claro
   ============================================= */

/* ---------- Base Intro.js (estructura mínima) ---------- */
.introjs-overlay {
    position: absolute;
    box-sizing: content-box;
    z-index: 999999;
    transition: all 0.3s ease-out;
}
.introjs-showElement { z-index: 9999999 !important; }
tr.introjs-showElement > td { z-index: 9999999 !important; position: relative; }
tr.introjs-showElement > th { z-index: 9999999 !important; position: relative; }
.introjs-disableInteraction {
    z-index: 99999999 !important;
    position: absolute;
    background-color: #fff;
    opacity: 0;
}
.introjs-relativePosition { position: relative; }

.introjs-helperLayer {
    box-sizing: content-box;
    position: absolute;
    z-index: 9999998;
    transition: all 0.3s ease-out;
}
.introjs-helperLayer *,
.introjs-helperLayer :before,
.introjs-helperLayer :after { box-sizing: content-box; }

.introjs-tooltipReferenceLayer {
    font-family: inherit;
    box-sizing: content-box;
    position: absolute;
    visibility: hidden;
    z-index: 100000000;
    background-color: transparent;
    transition: all 0.3s ease-out;
}
.introjs-helperNumberLayer {
    font-family: inherit;
    color: #6b7280;
    text-align: center;
    padding: 8px 0;
    font-size: 0.8125rem;
}
.introjs-arrow {
    border: 5px solid transparent;
    content: "";
    position: absolute;
}
.introjs-arrow.top { top: -10px; left: 10px; }
.introjs-arrow.top-right { top: -10px; right: 10px; }
.introjs-arrow.top-middle { top: -10px; left: 50%; margin-left: -5px; }
.introjs-arrow.right { right: -10px; top: 10px; }
.introjs-arrow.right-bottom { bottom: 10px; right: -10px; }
.introjs-arrow.bottom { bottom: -10px; left: 10px; }
.introjs-arrow.bottom-right { bottom: -10px; right: 10px; }
.introjs-arrow.bottom-middle { bottom: -10px; left: 50%; margin-left: -5px; }
.introjs-arrow.left { left: -10px; top: 10px; }
.introjs-arrow.left-bottom { left: -10px; bottom: 10px; }
.introjsFloatingElement { position: absolute; height: 0; width: 0; left: 50%; top: 50%; }
.introjs-fixedTooltip { position: fixed; }
.introjs-hidden { display: none; }
.introjs-disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

/* ---------- TEMA: Overlay suave ---------- */
.introjs-overlay {
    background: rgba(0, 0, 0, 0.35) !important;
    opacity: 1 !important;
}

/* ---------- TEMA: Resaltado (solo anillo, elemento NO oscuro) ---------- */
.introjs-helperLayer,
.admin-tour-highlight {
    background: transparent !important;
    border-radius: 10px;
    border: 3px solid #10b981 !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9),
                0 0 0 4px rgba(16, 185, 129, 0.25) !important;
}

/* ---------- TEMA: Cajón (tooltip) ---------- */
.introjs-tooltip {
    box-sizing: content-box;
    position: absolute;
    visibility: visible;
    font-family: inherit;
    background: #fff !important;
    min-width: 280px;
    max-width: 340px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transition: opacity 0.15s ease-out;
}
.introjs-tooltiptext {
    padding: 18px 20px 12px;
}
.introjs-tooltip-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
    padding: 0;
    line-height: 1.35;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}
.introjs-tooltipintro {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
}
.introjs-tooltip-header {
    position: relative;
    padding: 0 20px;
    padding-top: 12px;
    min-height: 1.5em;
}
.introjs-tooltipstep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Barra progreso */
.introjs-progress {
    box-sizing: content-box;
    overflow: hidden;
    height: 4px;
    margin: 12px 20px 0;
    border-radius: 2px;
    background: #e5e7eb;
}
.introjs-progressbar {
    box-sizing: content-box;
    float: left;
    width: 0%;
    height: 100%;
    border-radius: 2px;
    background: #10b981;
    transition: width 0.3s ease;
}

/* ---------- TEMA: Botones (Anterior izq, Omitir centro, Siguiente der) ---------- */
.introjs-tooltipbuttons {
    border-top: 1px solid #e5e7eb;
    padding: 12px 20px 16px;
    background: #fafafa;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.introjs-tooltipbuttons::after {
    content: "";
    visibility: hidden;
    display: block;
    height: 0;
    clear: both;
}
.introjs-button {
    box-sizing: content-box;
    position: relative;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    outline: 0;
    border: none;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

/* Anterior: esquina izquierda */
.introjs-prevbutton {
    float: none;
    order: 1;
    color: #483D8B !important;
    background: #f5f3ff !important;
}
.introjs-prevbutton:hover {
    background: #ede9fe !important;
}

/* Omitir tour: centro */
.introjs-skipbutton {
    position: static !important;
    width: auto !important;
    height: auto !important;
    line-height: inherit !important;
    float: none !important;
    order: 2;
    margin: 0 auto;
    padding: 6px 14px !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    background: transparent !important;
    text-shadow: none !important;
}
.introjs-skipbutton:hover,
.introjs-skipbutton:focus {
    color: #374151 !important;
    background: #f3f4f6 !important;
    text-decoration: none;
    outline: 0;
}

/* Siguiente / Finalizar: esquina derecha */
.introjs-nextbutton,
.introjs-donebutton {
    float: none;
    order: 3;
    color: #fff !important;
    background: #10b981 !important;
}
.introjs-nextbutton:hover,
.introjs-donebutton:hover {
    background: #059669 !important;
}

/* Flechas */
.introjs-arrow.top,
.introjs-arrow.top-right,
.introjs-arrow.top-middle { border-bottom-color: #fff; }
.introjs-arrow.bottom,
.introjs-arrow.bottom-right,
.introjs-arrow.bottom-middle { border-top-color: #fff; }
.introjs-arrow.left,
.introjs-arrow.left-bottom { border-right-color: #fff; }
.introjs-arrow.right,
.introjs-arrow.right-bottom { border-left-color: #fff; }

/* Bullets (por si se usan) */
.introjs-bullets { text-align: center; padding: 8px 0; }
.introjs-bullets ul { margin: 0; padding: 0; display: inline-flex; gap: 6px; list-style: none; }
.introjs-bullets ul li a {
    display: block;
    width: 6px;
    height: 6px;
    background: #d1d5db;
    border-radius: 50%;
    transition: background 0.2s;
}
.introjs-bullets ul li a.active { background: #10b981; }
