/* Permisso Documentacion Plugin */

.permisso-wrap {
    width: 100%;
}

.permisso-header {
    width: 100%;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--permisso-primary, #002147);
    padding: 40px 16px;
    gap: 20px;
}

.permisso-logo {
    display: flex;
    justify-content: center;
}

.permisso-logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.permisso-header h1 {
    font-size: clamp(1.4rem, 3vw, 2.6rem);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0;
}

.permisso-body {
    width: 100%;
    background: #fff;
    padding: 0 0 40px;
    margin-bottom: 80px;
}

/* Loading */
.permisso-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.permisso-loading p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4b5563;
    margin-top: 16px;
}

.permisso-spinner {
    width: 64px;
    height: 64px;
    border: 4px solid #e5e7eb;
    border-bottom-color: var(--permisso-primary, #002147);
    border-radius: 50%;
    animation: permisso-spin 0.8s linear infinite;
}

@keyframes permisso-spin {
    to { transform: rotate(360deg); }
}

/* Error */
.permisso-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 16px;
    text-align: center;
}

.permisso-error svg {
    margin-bottom: 16px;
}

.permisso-error-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px;
}

.permisso-error p {
    color: #6b7280;
    margin: 0 0 16px;
}

.permisso-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--permisso-primary, #002147);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.permisso-btn:hover {
    opacity: 0.88;
}
