body.alt-body {
    min-height: 100vh;
    margin: 0;
    color: #e9edf7;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.alt-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100vh;
}

.alt-sidebar {
    backdrop-filter: blur(18px);
    background: rgba(7, 10, 27, 0.9);
    border-right: 1px solid rgba(148, 163, 184, 0.35);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.alt-sidebar-brand {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.alt-brand-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: inherit;
}

.alt-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 0, #4cc9f0, #4361ee);
    color: #f9fafb;
}

.alt-brand-logo i {
    width: 20px;
    height: 20px;
}

.alt-brand-logo.alt-brand-logo-img {
    width: 52px;
    height: 52px;
    min-width: 52px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.alt-brand-logo-img .alt-upc-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.alt-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.alt-brand-title {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.alt-brand-subtitle {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ========== Page de connexion ========== */
.alt-content:has(.login-page) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 1rem;
}

.login-panel {
    width: 100%;
    max-width: 400px;
    background: rgba(7, 10, 27, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    border-left: 3px solid #4361ee;
    overflow: hidden;
}

.login-panel--wide {
    max-width: 560px;
}

.login-panel-header {
    padding: 1.5rem 1.75rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.login-panel-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e9edf7;
    margin: 0 0 0.25rem;
    letter-spacing: 0.02em;
}

.login-panel-desc {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.9);
    margin: 0;
}

.login-panel-body {
    padding: 1.5rem 1.75rem;
}

.login-panel-footer {
    padding: 1rem 1.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.login-footer-text {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.75);
    margin: 0;
    line-height: 1.45;
}

/* Carte register */
.login-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-wrapper--wide {
    max-width: 560px;
}

.login-card {
    background: rgba(15, 18, 35, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.login-card-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.login-logo-wrap {
    margin-bottom: 1.25rem;
}

.login-logo {
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #f1f5f9;
    margin: 0 0 0.25rem;
}

.login-subtitle {
    font-size: 0.875rem;
    color: rgba(148, 163, 184, 0.9);
    margin: 0;
}

.login-card-body {
    padding: 1.75rem 2rem;
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.login-alert i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.login-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.login-alert-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.login-form--pairs .login-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
}

.login-form--pairs .login-field--full {
    grid-column: 1 / -1;
}

@media (max-width: 480px) {
    .login-form--pairs .login-form-row {
        grid-template-columns: 1fr;
    }
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.login-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.95);
}

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

.login-input-icon {
    position: absolute;
    left: 1rem;
    width: 18px;
    height: 18px;
    color: rgba(148, 163, 184, 0.7);
    pointer-events: none;
}

.login-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 0.9375rem;
    color: #f1f5f9;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.login-input:hover {
    border-color: rgba(148, 163, 184, 0.4);
}

.login-input:focus {
    outline: none;
    border-color: rgba(67, 97, 238, 0.7);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: radial-gradient(circle at 10% 0, #4cc9f0, #4361ee);
    border: none;
    border-radius: 0.7rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.login-submit i {
    width: 18px;
    height: 18px;
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -4px rgba(67, 97, 238, 0.45);
}

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

.login-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.login-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: rgba(148, 163, 184, 0.95);
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-back-link i {
    width: 16px;
    height: 16px;
}

.login-back-link:hover {
    color: #e2e8f0;
}

.login-card-footer {
    padding: 1rem 2rem 1.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.login-footer-text {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.75);
    text-align: center;
    margin: 0;
    line-height: 1.45;
}

.login-legal {
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.5);
    text-align: center;
    margin: 1.25rem 0 0;
}

.alt-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.alt-nav-section {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.alt-nav-label {
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.9);
    margin-top: 0.35rem;
    margin-bottom: 0.25rem;
}

.alt-nav-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.7rem;
    color: rgba(226, 232, 240, 0.92);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.18s ease-out;
}

.alt-nav-link i {
    width: 17px;
    height: 17px;
    opacity: 0.9;
}

.alt-nav-link:hover {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.12), rgba(56, 189, 248, 0.08));
    transform: translateX(2px);
}

.alt-nav-link-ghost {
    border: 1px dashed rgba(148, 163, 184, 0.6);
    background: transparent;
}

.alt-nav-link-ghost:hover {
    border-style: solid;
}

.alt-nav-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.4);
}

.alt-user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.85));
}

.alt-user-infos {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.alt-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.alt-user-meta {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.alt-user-name {
    font-size: 0.85rem;
}

.alt-user-id {
    font-size: 0.7rem;
    opacity: 0.7;
}

.alt-logout-link {
    color: rgba(248, 250, 252, 0.8);
    display: inline-flex;
    padding: 0.25rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.alt-logout-link:hover {
    background: rgba(15, 23, 42, 0.8);
}

.alt-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.alt-topbar {
    padding: 1.4rem 2rem 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.alt-topbar-left {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.alt-topbar-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.alt-topbar-subtitle {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.9);
}

.alt-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alt-pill-btn {
    border-radius: 999px;
    padding-inline: 1rem;
    font-size: 0.8rem;
}

.alt-dot-separator {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.9);
}

.alt-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(34, 197, 94, 0.12);
    color: rgb(187, 247, 208);
}

.alt-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.29);
}

.alt-content {
    flex: 1;
    padding-inline: 2rem;
    padding-bottom: 1.5rem;
}

.alt-footer {
    padding: 0.9rem 2rem 1.3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.9);
}

.alt-footer-left {
    display: flex;
    flex-direction: column;
}

.alt-footer-title {
    font-weight: 500;
}

.alt-footer-subtitle {
    font-size: 0.78rem;
    opacity: 0.8;
}

.alt-footer-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.alt-footer-tag {
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.alt-footer-divider {
    opacity: 0.55;
}

.alt-alerts {
    margin-bottom: 1rem;
}

.alt-alert-glass {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(59, 130, 246, 0.08));
    border-radius: 0.9rem;
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #e5f3ff;
}

/* Hero & cartes */
.alt-hero-row {
    align-items: stretch;
}

.alt-hero-card {
    border-radius: 1.2rem;
    padding: 1.6rem 1.5rem;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.24), transparent 55%),
        radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.3), transparent 55%),
        rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.48);
    box-shadow:
        0 22px 55px rgba(15, 23, 42, 0.95),
        0 0 0 1px rgba(148, 163, 184, 0.25);
}

.alt-hero-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.alt-chip {
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.alt-chip-primary {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(129, 140, 248, 0.9);
}

.alt-chip-soft {
    background: rgba(15, 23, 42, 0.8);
}

.alt-hero-title {
    font-size: 1.9rem;
    font-weight: 650;
    margin-bottom: 0.5rem;
}

.alt-hero-title span {
    background: linear-gradient(135deg, #22d3ee, #a855f7, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.alt-hero-text {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.92);
    max-width: 34rem;
}

.alt-hero-actions {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.alt-btn-gradient {
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    border: none;
    font-weight: 500;
    background-image: linear-gradient(120deg, #22d3ee, #6366f1, #f97316);
    color: #0b1022;
    box-shadow: 0 14px 35px rgba(59, 130, 246, 0.5);
}

/* rajout de derniere minute */
/* modification des elements de la sidebar */
.alt-nav {
    display: flex;
    flex-direction: column;
    height: calc(100% - 80px);
}

.alt-nav-section:first-child {
    flex-grow: 1;
}

.alt-nav-login-btn {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.alt-nav-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #3b82f6;
}

/* section support */
.alt-nav-support {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    margin-top: auto;
}

.alt-nav-link-sub {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1 px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.alt-nav-link-sub .icon {
    width: 32px;
    height: 32px;
    padding: 7px;
    margin-right: 12px;
    border-radius: 8px;
    color: #bbf7d0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.alt-nav-link-sub:hover i[data-feather="help-circle"] {
    border-color: #3b82f6;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.alt-nav-link-sub:hover i[data-feather="mail"] {
    border-color: #06b6d4;
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
}

.alt-nav-link-sub:hover i[data-feather="phone"] {
    border-color: #f59e0b;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.alt-nav-link-sub:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #bbf7d0;
}

.alt-nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    padding: 10px 25px;
    font-weight: 600;
}

.alt-legal-links a:hover {
    color: #ffffff !important;
}

.alt-sidebar-illustration i {
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
    animation: pulse-soft 3s infinite ease-in-out;
}

@keyframes pulse-soft {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-5px);
        opacity: 0.7;
    }
}

/* -------------------------------------------------------- */

.alt-btn-gradient:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.alt-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: rgba(191, 219, 254, 0.94);
}

.alt-hero-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
}

.alt-hero-footnote {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: rgba(251, 191, 36, 0.95);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.alt-hero-stats {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.alt-kpi-card {
    border-radius: 1rem;
    padding: 1.1rem 1.1rem 0.9rem 1.1rem;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(94, 234, 212, 0.45);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.8);
}

.alt-kpi-label {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.95);
}

.alt-kpi-value {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.25rem;
    margin-bottom: 0.6rem;
}

.alt-kpi-meter {
    height: 6px;
    border-radius: 999px;
    background: rgba(30, 64, 175, 0.7);
    overflow: hidden;
    margin-bottom: 0.45rem;
}

.alt-kpi-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #eab308, #f97316);
}

.alt-kpi-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: rgba(191, 219, 254, 0.9);
}

.alt-kpi-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    margin-bottom: 0.45rem;
    padding: 0.6rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 0.5rem;
    border: 1px dashed rgba(148, 163, 184, 0.4);
}

.alt-kpi-placeholder-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: rgba(148, 163, 184, 0.8);
}

.alt-kpi-placeholder-text {
    font-size: 0.8rem;
    color: rgba(203, 213, 225, 0.9);
}

.alt-timeline {
    border-radius: 1rem;
    padding: 0.8rem 0.9rem;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.alt-timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 0.7rem;
    align-items: flex-start;
    font-size: 0.8rem;
}

.alt-timeline-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    margin-top: 0.22rem;
}

.alt-timeline-dot-success {
    background: #22c55e;
}

.alt-timeline-dot-info {
    background: #0ea5e9;
}

.alt-timeline-dot-warning {
    background: #eab308;
}

.alt-timeline-dot-danger {
    background: #f97316;
}

.alt-timeline-title {
    font-weight: 500;
}

.alt-timeline-text {
    color: rgba(148, 163, 184, 0.95);
}

/* Section rôles */
.alt-section {
    margin-top: 1.6rem;
}

.alt-section-header {
    margin-bottom: 0.8rem;
}

.alt-section-header h3 {
    font-size: 1.05rem;
    font-weight: 550;
}

.alt-section-header p {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.95);
}

.alt-role-card {
    border-radius: 1rem;
    padding: 0.9rem 0.9rem 0.8rem 0.9rem;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.45);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.alt-role-card header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.alt-role-card h4 {
    margin: 0;
    font-size: 0.95rem;
}

.alt-role-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.8rem;
    color: rgba(209, 213, 219, 0.95);
}

.alt-role-card li+li {
    margin-top: 0.25rem;
}

.alt-role-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    border-color: rgba(94, 234, 212, 0.7);
}

.alt-role-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alt-role-icon i {
    width: 16px;
    height: 16px;
}

.alt-role-student {
    background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.7), transparent);
}

.alt-role-teacher {
    background: radial-gradient(circle at 0 0, rgba(234, 179, 8, 0.7), transparent);
}

.alt-role-admin {
    background: radial-gradient(circle at 0 0, rgba(244, 63, 94, 0.7), transparent);
}

/* Responsive */
@media (max-width: 992px) {
    .alt-layout {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .alt-sidebar {
        padding-inline: 0.6rem;
        align-items: center;
    }

    .alt-brand-text,
    .alt-nav-label,
    .alt-nav-link span,
    .alt-user-meta,
    .alt-footer-left span,
    .alt-footer-right span {
        display: none;
    }

    .alt-nav-link {
        justify-content: center;
        padding-inline: 0.4rem;
    }

    .alt-nav-footer {
        border-top: 0;
        margin-top: 0.5rem;
        padding-top: 0;
    }

    .alt-user-card {
        padding-inline: 0.3rem;
    }

    .alt-content,
    .alt-topbar,
    .alt-footer {
        padding-inline: 1.1rem;
    }

    .alt-hero-card {
        margin-bottom: 0.7rem;
    }
}

@media (max-width: 576px) {
    .alt-hero-title {
        font-size: 1.5rem;
    }

    .alt-layout {
        grid-template-columns: 52px minmax(0, 1fr);
    }
}

body.alt-body {
    background: #0b1120;
    /* bleu très sombre */
    color: #e5e7eb;
    font-family: Arial, sans-serif;
}

.alt-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    /* barre à gauche */
    min-height: 100vh;
}

.alt-sidebar {
    position: fixed;
    /* fixe sur les écrans d'ordinateur */
    top: 0;
    left: 0;
    width: 230px;
    background: #111827;
    /* bleu nuit */
    color: #e5e7eb;
    padding: 8px 18px;
    border-right: none;
    border-bottom: 1px solid #020617;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.5);
    height: 100vh;
    /* occupe toujours toute la hauteur de la fenêtre */
}

.alt-sidebar-brand {
    border-bottom: none;
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.alt-brand-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.alt-brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #1f2937;
}

.alt-brand-subtitle {
    font-size: 0.7rem;
    opacity: 0.8;
}

.alt-nav {
    margin-top: 4px;
}

.alt-nav-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
}

.alt-nav-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #9ca3af;
    margin: 6px 2px 2px;
}

.alt-nav-link {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #e5e7eb;
}

.alt-nav-link:hover {
    background: rgba(59, 130, 246, 0.25);
    /* bleu discret */
    transform: none;
}

.alt-main {
    padding: 12px 18px 16px 18px;
    margin-left: 230px;
    /* espace réservé pour la sidebar fixe sur desktop */
}

.alt-topbar {
    padding: 4px 0 10px 0;
    border-bottom: 1px solid #1f2937;
    margin-bottom: 10px;
}

.alt-topbar-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.alt-topbar-subtitle {
    font-size: 0.85rem;
    color: #9ca3af;
}

.alt-badge-live {
    background: rgba(34, 197, 94, 0.15);
    color: #bbf7d0;
    box-shadow: none;
}

.alt-content {
    padding: 10px 0 15px 0;
}

.alt-footer {
    padding: 6px 0 10px 0;
    border-top: 1px solid #1f2937;
    font-size: 0.8rem;
    color: #9ca3af;
}

.alt-footer-tag {
    border-radius: 3px;
    border-color: #4b5563;
}

.alt-alerts {
    margin-bottom: 10px;
}

.alt-alert-glass {
    background: #020617;
    border-radius: 4px;
    border-color: #1f2937;
    color: #e5e7eb;
    box-shadow: none;
}

.alt-hero-card,
.alt-kpi-card,
.alt-timeline,
.alt-role-card {
    background: #020617;
    border-radius: 4px;
    border: 1px solid #1f2937;
    box-shadow: none;
}

.alt-hero-title span {
    background: none;
    color: #60a5fa;
    /* bleu moyen */
}

.alt-kpi-meter {
    background: #111827;
}

.alt-kpi-fill {
    background: #3b82f6;
}

.alt-role-icon {
    background: #111827;
}

.alt-user-card {
    background: #020617;
    border-radius: 4px;
}

.alt-user-avatar {
    background: #1e293b;
}

.alt-user-name,
.alt-user-id {
    color: #e5e7eb;
}

/* Bouton menu (visible uniquement sur petit écran) */
.alt-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 6px;
    color: #e5e7eb;
    cursor: pointer;
}

.alt-nav-toggle i {
    width: 20px;
    height: 20px;
}

/* Overlay pour fermer le menu au clic (masqué par défaut) */
.alt-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1038;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

/* ----- Responsive : tablette / mobile (drawer par défaut) ----- */
@media (max-width: 992px) {
    .alt-layout {
        grid-template-columns: 1fr;
        /* plus de colonne pour la barre, tout en largeur */
    }

    .alt-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 260px;
        max-width: 85vw;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1040;
        overflow-y: auto;
        border-right: 1px solid #1f2937;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
        padding: 12px 18px;
        align-items: stretch;
    }

    body.alt-nav-open .alt-sidebar {
        transform: translateX(0);
    }

    .alt-nav-toggle {
        display: flex;
    }

    .alt-topbar {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .alt-sidebar-overlay {
        display: block;
    }

    body.alt-nav-open .alt-sidebar-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Réafficher les textes dans le menu drawer (toujours à gauche) */
    .alt-sidebar .alt-brand-text,
    .alt-sidebar .alt-nav-label,
    .alt-sidebar .alt-nav-link span,
    .alt-sidebar .alt-user-meta {
        display: flex;
    }

    .alt-sidebar .alt-brand-text {
        flex-direction: column;
    }

    .alt-sidebar .alt-user-meta {
        flex-direction: column;
    }

    .alt-sidebar .alt-nav-label {
        display: block;
    }

    .alt-sidebar .alt-nav-link {
        justify-content: flex-start;
    }

    .alt-main {
        margin-left: 0;
        /* important: annule le mode desktop */
        padding: 12px 14px 16px 14px;
    }

    .alt-topbar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .alt-topbar-title {
        font-size: 1rem;
    }

    .alt-topbar-subtitle {
        font-size: 0.8rem;
    }

    .alt-content {
        padding-inline: 0;
        overflow-x: auto;
    }

    .alt-footer {
        flex-wrap: wrap;
        gap: 8px;
        padding-inline: 0;
    }
}

@media (max-width: 576px) {
    .alt-sidebar {
        width: 260px;
        max-width: 90vw;
    }

    .alt-main {
        padding: 10px 12px 14px 12px;
    }

    .alt-topbar-title {
        font-size: 0.95rem;
    }

    .alt-badge-live {
        font-size: 0.7rem;
    }
}

/* ======================================================================
   Scroll: sidebar fixe, contenu droit scrollable (desktop)
   Objectif: empêcher le body de scroller; seul .alt-content scrolle.
   ====================================================================== */
@media (min-width: 769px) {

    html,
    body {
        height: 100%;
    }

    body.alt-body {
        height: 100vh;
        overflow: hidden;
        /* stoppe le scroll global */
    }

    .alt-layout {
        height: 100vh;
        min-height: 0;
    }

    .alt-sidebar {
        position: sticky;
        /* évite le double décalage (grid + margin-left) */
        top: 0;
        left: auto;
        height: 100vh;
        overflow: hidden;
        /* la sidebar reste fixe, non scrollable */
    }

    .alt-main {
        margin-left: 0;
        /* annule l'ancien layout "sidebar fixed" */
        height: 100vh;
        min-height: 0;
        overflow: hidden;
        /* le scroll est délégué à .alt-content */
        display: flex;
        flex-direction: column;
    }

    .alt-content {
        flex: 1;
        min-height: 0;
        /* indispensable pour que overflow fonctionne en flex */
        overflow-y: auto;
        overflow-x: auto;
        /* évite de couper les tableaux (table-responsive) */
    }
}

/* ======================================================================
   Finitions UI administrateur : formulaires, listes et filtres
   ====================================================================== */
.alt-content>.row {
    --bs-gutter-x: 1.1rem;
    --bs-gutter-y: 1.1rem;
}

.alt-content h2 {
    font-size: 1.12rem;
    margin-bottom: 0;
    color: #e5e7eb;
}

.alt-content h2 .feather,
.alt-content h2 i {
    width: 1.05rem;
    height: 1.05rem;
    margin-right: 0.35rem;
    vertical-align: -0.15rem;
}

.alt-content .card {
    background: #020617;
    border: 1px solid #1f2937;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.alt-content .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 48px;
    padding: 0.85rem 1rem;
    background: #111827;
    border-bottom: 1px solid #1f2937;
    color: #e5e7eb;
    font-size: 0.9rem;
}

.alt-content .card-header h4,
.alt-content .card-header h5 {
    margin: 0;
    font-size: 0.95rem;
}

.alt-content .card-body {
    padding: 1rem;
}

.alt-content .row.justify-content-center .card-body {
    padding: 1.15rem;
}

.alt-content form .row {
    --bs-gutter-x: 0.95rem;
}

.alt-content .form-label {
    margin-bottom: 0.42rem;
    color: #e5e7eb;
    font-size: 0.78rem;
}

.alt-content .form-control,
.alt-content .form-select {
    min-height: 42px;
    padding: 0.58rem 0.75rem;
    background-color: #111827;
    border: 1px solid #1f2937;
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 0.9rem;
    box-shadow: none;
}

.alt-content .form-control::placeholder {
    color: #9ca3af;
    opacity: 0.8;
}

.alt-content .form-control:hover,
.alt-content .form-select:hover {
    border-color: #4b5563;
}

.alt-content .form-control:focus,
.alt-content .form-select:focus {
    background-color: #111827;
    border-color: #3b82f6;
    color: #e5e7eb;
    box-shadow: 0 0 0 0.18rem rgba(59, 130, 246, 0.18);
}

.alt-content .alert {
    border-radius: 6px;
    border-width: 1px;
    margin-bottom: 1rem;
}

.alt-content .d-grid.gap-2,
.alt-content form>.d-grid,
.alt-content form>.btn+.btn {
    margin-top: 0.35rem;
}

.alt-content .btn {
    min-height: 38px;
    border-radius: 6px;
}

.alt-content .btn-sm {
    min-height: 32px;
    padding: 0.3rem 0.58rem;
}

.alt-content td .btn-sm {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    vertical-align: middle;
}

.alt-content td .btn-sm .feather,
.alt-content td .btn-sm i {
    width: 15px;
    height: 15px;
}

.alt-content .table-responsive {
    border: 1px solid #1f2937;
    border-radius: 8px;
    overflow: auto;
}

.alt-content .table {
    margin-bottom: 0;
    vertical-align: middle;
}

.alt-content .table> :not(caption)>*>* {
    padding: 0.82rem 0.9rem;
    background-color: transparent;
    border-bottom-color: #1f2937;
    color: #e5e7eb;
}

.alt-content .table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #111827;
    color: #9ca3af;
    font-size: 0.72rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.alt-content .table tbody tr {
    transition: background-color 0.15s ease;
}

.alt-content .table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.08);
}

.alt-content .table tbody tr:last-child>* {
    border-bottom: 0;
}

.alt-content .table td:first-child,
.alt-content .table th:first-child {
    padding-left: 1rem;
}

.alt-content .table td:last-child,
.alt-content .table th:last-child {
    padding-right: 1rem;
}

.alt-content .table td form.d-inline {
    display: inline-flex !important;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.alt-content .badge {
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
    font-weight: 400;
}

.alt-content .btn .feather,
.alt-content .btn i {
    width: 16px;
    height: 16px;
    vertical-align: -0.15rem;
}

.alt-content .btn>.feather+span,
.alt-content .btn>i+span {
    margin-left: 0.35rem;
}

.pro-page {
    max-width: 100%;
}

.pro-page strong,
.presence-detail-page strong,
.alt-content .table td strong {
    font-weight: 400;
}

.pro-page-header,
.pro-panel-header,
.pro-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.pro-page-header {
    margin-bottom: 1rem;
}

.pro-page-header h2,
.pro-panel-header h3,
.pro-card-header h3 {
    margin: 0.12rem 0 0.25rem;
    color: #f8fafc;
    font-size: 1.2rem;
    font-weight: 500;
}

.pro-panel-header h3,
.pro-card-header h3 {
    font-size: 1rem;
}

.pro-page-header p,
.pro-panel-header p,
.pro-card-header p {
    margin: 0;
    color: #9ca3af;
}

.pro-overline {
    display: block;
    color: #93c5fd;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.pro-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.pro-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pro-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.pro-stat-card,
.pro-table-panel,
.pro-course-card,
.pro-empty-panel {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
    border: 1px solid rgba(51, 65, 85, 0.95);
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.pro-stat-card {
    min-height: 102px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem;
}

.pro-stat-icon,
.pro-course-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: #111827;
    border: 1px solid #334155;
}

.pro-stat-icon {
    width: 42px;
    height: 42px;
}

.pro-stat-icon .feather,
.pro-stat-icon i {
    width: 20px;
    height: 20px;
}

.pro-stat-icon.is-blue {
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.12);
}

.pro-stat-icon.is-green {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.12);
}

.pro-stat-icon.is-amber {
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.12);
}

.pro-stat-icon.is-slate {
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.32);
    background: rgba(100, 116, 139, 0.14);
}

.pro-stat-label {
    display: block;
    color: #9ca3af;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.pro-stat-value {
    display: block;
    margin-top: 0.2rem;
    color: #f8fafc;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.1;
}

.pro-stat-caption {
    display: block;
    margin-top: 0.28rem;
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.3;
}

.pro-table-panel {
    overflow: hidden;
}

.pro-panel-header,
.pro-card-header {
    min-height: 70px;
    padding: 0.9rem 1rem;
    background: #111827;
    border-bottom: 1px solid #253247;
}

.pro-panel-body {
    padding: 1rem;
}

.pro-table-panel .table-responsive {
    border: 0;
    border-radius: 0;
}

.pro-table-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.pro-table-title .feather,
.pro-table-title i {
    width: 18px;
    height: 18px;
    color: #93c5fd;
}

.pro-entity {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #e5e7eb;
    font-weight: 400;
}

.pro-entity-avatar {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 999px;
    color: #dbeafe;
    background: #1e293b;
    border: 1px solid #334155;
    font-size: 0.78rem;
}

.pro-code-chip,
.pro-time-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: rgba(59, 130, 246, 0.12);
    color: #dbeafe;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.84rem;
    font-weight: 400;
}

.pro-empty-panel {
    padding: 2.2rem 1rem;
    color: #9ca3af;
    text-align: center;
}

.pro-empty-panel .feather,
.pro-empty-panel i {
    width: 30px;
    height: 30px;
    margin-bottom: 0.65rem;
    color: #93c5fd;
}

.pro-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.pro-course-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

.pro-course-card.is-active {
    border-color: rgba(245, 158, 11, 0.5);
}

.pro-course-top {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pro-course-icon {
    width: 44px;
    height: 44px;
    color: #93c5fd;
}

.pro-course-icon .feather,
.pro-course-icon i {
    width: 20px;
    height: 20px;
}

.pro-course-card h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 500;
}

.pro-course-card p {
    margin: 0.3rem 0 0;
    color: #94a3b8;
}

.pro-course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.presence-detail-page {
    max-width: 100%;
}

.presence-detail-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.presence-commandbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.presence-commandbar h2 {
    margin: 0.15rem 0 0.25rem;
    font-size: 1.3rem;
    font-weight: 500;
    color: #f8fafc;
}

.presence-commandbar p {
    margin: 0;
    color: #9ca3af;
}

.presence-command-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.presence-overline {
    display: block;
    color: #93c5fd;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.presence-hero-panel,
.presence-distribution-panel,
.presence-result-card {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
    border: 1px solid rgba(51, 65, 85, 0.95);
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.presence-hero-panel {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    overflow: hidden;
}

.presence-hero-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #22c55e, #f59e0b);
}

.presence-hero-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.presence-course-icon,
.presence-kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.presence-course-icon {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    color: #bfdbfe;
    background: #0f172a;
    border: 1px solid #334155;
}

.presence-course-icon .feather,
.presence-course-icon i {
    width: 27px;
    height: 27px;
}

.presence-course-copy h3 {
    margin: 0.25rem 0 0.6rem;
    color: #f8fafc;
    font-size: clamp(1.45rem, 2vw, 2.1rem);
    font-weight: 500;
}

.presence-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    color: #cbd5e1;
}

.presence-hero-meta span,
.presence-status-pill {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #111827;
    border: 1px solid #334155;
    font-size: 0.82rem;
}

.presence-hero-meta .feather,
.presence-hero-meta i,
.presence-status-pill .feather,
.presence-status-pill i {
    width: 15px;
    height: 15px;
}

.presence-status-pill.is-closed {
    color: #e5e7eb;
    background: rgba(100, 116, 139, 0.22);
    border-color: rgba(148, 163, 184, 0.45);
}

.presence-status-pill.is-open {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.45);
}

.presence-code-card {
    min-width: 110px;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    background: #020617;
    border: 1px solid #334155;
    border-radius: 8px;
}

.presence-code-card span,
.presence-kpi-label {
    color: #9ca3af;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.presence-code-card code {
    margin-top: 0.25rem;
    color: #f472b6;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.12em;
}

.presence-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.presence-kpi-card {
    min-height: 106px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem;
    background: #0f172a;
    border: 1px solid #253247;
    border-radius: 8px;
}

.presence-kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.presence-kpi-icon .feather,
.presence-kpi-icon i {
    width: 20px;
    height: 20px;
}

.presence-kpi-icon.is-blue {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
}

.presence-kpi-icon.is-slate {
    color: #cbd5e1;
    background: rgba(100, 116, 139, 0.14);
    border-color: rgba(148, 163, 184, 0.32);
}

.presence-kpi-icon.is-green {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
}

.presence-kpi-icon.is-amber {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.4);
}

.presence-kpi-card strong {
    display: block;
    margin-top: 0.2rem;
    color: #f8fafc;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.1;
}

.presence-kpi-card small {
    display: block;
    margin-top: 0.28rem;
    color: #94a3b8;
    line-height: 1.3;
}

.presence-distribution-panel {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
}

.presence-distribution-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.presence-distribution-header h3,
.presence-result-header h3 {
    margin: 0.15rem 0 0;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 500;
}

.presence-distribution-header strong {
    color: #e5e7eb;
    font-size: 0.95rem;
    font-weight: 400;
}

.presence-distribution-bar {
    height: 12px;
    display: flex;
    overflow: hidden;
    background: #111827;
    border: 1px solid #253247;
    border-radius: 999px;
}

.presence-distribution-bar span {
    min-width: 0;
}

.presence-distribution-bar span:empty {
    display: block;
}

.presence-distribution-bar .is-accepted,
.legend-dot.is-accepted {
    background: #22c55e;
}

.presence-distribution-bar .is-outside,
.legend-dot.is-outside {
    background: #f59e0b;
}

.presence-distribution-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.65rem;
    color: #cbd5e1;
    font-size: 0.82rem;
}

.presence-distribution-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.legend-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    border-radius: 999px;
}

.presence-result-grid {
    align-items: stretch;
}

.presence-result-grid>[class*="col-"] {
    display: flex;
}

.presence-result-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.presence-result-header {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    background: #111827;
    border-bottom: 1px solid #253247;
}

.presence-result-success .presence-result-header {
    box-shadow: inset 4px 0 0 #22c55e;
}

.presence-result-warning .presence-result-header {
    box-shadow: inset 4px 0 0 #f59e0b;
}

.presence-result-body {
    flex: 1;
    padding: 1rem;
}

.presence-count-badge {
    min-width: 42px;
    height: 42px;
    padding: 0 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #020617;
    border: 1px solid #334155;
    color: #e5e7eb;
    font-weight: 500;
}

.presence-result-success .presence-count-badge {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.45);
}

.presence-result-warning .presence-count-badge {
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.55);
}

.presence-person {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    font-weight: 400;
}

.presence-person span {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 999px;
    color: #dbeafe;
    background: #1e293b;
    border: 1px solid #334155;
    font-size: 0.78rem;
}

.presence-time-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.28);
    font-weight: 400;
}

.presence-empty-state {
    min-height: 186px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.2rem;
    color: #9ca3af;
    text-align: center;
    border: 1px dashed #334155;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.55);
}

.presence-empty-state i,
.presence-empty-state .feather {
    width: 28px;
    height: 28px;
}

.presence-empty-state p {
    margin: 0;
    max-width: 24rem;
}

.alt-content .text-muted {
    color: #9ca3af !important;
}

.alt-content .card.mb-4 .card-body>form.row.g-3 {
    align-items: end;
}

.alt-content .card.mb-4 .card-body>form.row.g-3>[class*="col-"] {
    display: flex;
    flex-direction: column;
}

.alt-content .card.mb-4 .card-body>form.row.g-3 .btn {
    width: 100%;
    margin-top: 0;
}

.alt-content .col-md-8>.card,
.alt-content .col-md-6>.card,
.alt-content .col-md-8.col-lg-7>.card,
.alt-content .col-md-8.col-lg-6>.card {
    height: 100%;
}

.alt-content .col-md-4>.card {
    height: auto;
    align-self: flex-start;
}

@media (min-width: 768px) {
    .alt-content .row.justify-content-center .col-md-8.col-lg-7 {
        max-width: 760px;
    }

    .alt-content .row.justify-content-center .col-md-6 {
        max-width: 680px;
    }
}

@media (max-width: 767.98px) {
    .alt-content h2 {
        font-size: 1rem;
    }

    .alt-content .d-flex.justify-content-between.align-items-center {
        align-items: stretch !important;
        flex-direction: column;
        gap: 0.75rem;
    }

    .alt-content .d-flex.justify-content-between.align-items-center .btn {
        width: 100%;
    }

    .alt-content .card-header,
    .alt-content .card-body {
        padding-inline: 0.85rem;
    }

    .alt-content .table> :not(caption)>*>* {
        padding: 0.72rem 0.75rem;
    }

    .presence-commandbar,
    .presence-hero-panel,
    .presence-hero-main,
    .presence-distribution-header {
        align-items: stretch !important;
        flex-direction: column;
    }

    .presence-command-actions {
        justify-content: stretch;
    }

    .presence-command-actions .btn {
        flex: 1 1 150px;
    }

    .presence-code-card {
        min-width: 0;
        align-items: flex-start;
    }

    .presence-kpi-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .presence-kpi-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .pro-stat-grid,
    .pro-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {

    .pro-page-header,
    .pro-panel-header,
    .pro-card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .pro-actions {
        justify-content: stretch;
    }

    .pro-actions .btn {
        flex: 1 1 150px;
    }

    .pro-stat-grid,
    .pro-course-grid {
        grid-template-columns: 1fr;
    }
}