html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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 #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.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;
}
/* ============================================================
   CALENTIME - CHARTE GRAPHIQUE GLOBALE
   ============================================================ */

:root {
    --ct-navy-950: #0F5E9C;
    --ct-navy-900: #1568AD;
    --ct-navy-800: #1B74BD;
    --ct-blue-600: #1f6df5;
    --ct-blue-500: #2d83ff;
    --ct-blue-400: #4aa3ff;
    --ct-cyan-500: #2ac7d6;
    --ct-cyan-400: #42d7df;
    --ct-green-500: #20b486;
    --ct-red-500: #e65353;
    --ct-orange-500: #f4a340;
    --ct-bg: #f5f7fb;
    --ct-surface: #ffffff;
    --ct-border: #e5e9f2;
    --ct-border-soft: #edf0f6;
    --ct-text: #17233d;
    --ct-text-soft: #66728a;
    --ct-text-muted: #929cb0;
    --ct-sidebar-width: 275px;
    --ct-radius-sm: 8px;
    --ct-radius-md: 12px;
    --ct-radius-lg: 18px;
    --ct-shadow-sm: 0 2px 8px rgba(11, 29, 63, 0.05);
    --ct-shadow-md: 0 8px 24px rgba(11, 29, 63, 0.08);
    --ct-shadow-lg: 0 16px 40px rgba(11, 29, 63, 0.10);
}


/* ============================================================
   BASE
   ============================================================ */

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--ct-bg);
    color: var(--ct-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}


/* ============================================================
   STRUCTURE PRINCIPALE
   ============================================================ */

.ct-app {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: var(--ct-bg);
}


/* ============================================================
   SIDEBAR
   ============================================================ */

.ct-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--ct-sidebar-width);
    background: linear-gradient( 180deg, #1568AD 0%, #176FAF 55%, #1B78BC 100% );
    color: #ffffff;
    z-index: 1000;
    box-shadow: 6px 0 30px rgba(3, 12, 31, 0.08);
}


/* ============================================================
   ZONE PRINCIPALE
   ============================================================ */

.ct-main {
    width: calc(100% - var(--ct-sidebar-width));
    margin-left: var(--ct-sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* ============================================================
   TOPBAR
   ============================================================ */

.ct-topbar {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--ct-border);
    position: sticky;
    top: 0;
    z-index: 800;
    backdrop-filter: blur(10px);
}

.ct-topbar-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ct-topbar-title-main {
    font-size: 18px;
    font-weight: 700;
    color: var(--ct-text);
}

.ct-topbar-subtitle {
    font-size: 13px;
    color: var(--ct-text-muted);
}

.ct-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 999px;
    background: #f1faf7;
}

.ct-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ct-green-500);
    box-shadow: 0 0 0 4px rgba(32, 180, 134, 0.12);
}

.ct-status-text {
    font-size: 13px;
    font-weight: 600;
    color: #198864;
}


/* ============================================================
   CONTENU
   ============================================================ */

.ct-content {
    width: 100%;
    padding: 32px 38px 50px;
    box-sizing: border-box;
}

    .ct-content h1 {
        margin-top: 0;
        margin-bottom: 8px;
        font-size: 34px;
        font-weight: 700;
        letter-spacing: -0.6px;
        color: var(--ct-text);
    }

    .ct-content h2,
    .ct-content h3,
    .ct-content h4 {
        color: var(--ct-text);
    }


/* ============================================================
   NAVIGATION
   ============================================================ */

.ct-nav {
    height: 100%;
    display: flex;
    flex-direction: column;
}


/* ============================================================
   LOGO / MARQUE
   ============================================================ */

.ct-brand {
    min-height: 105px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ct-brand-link {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #ffffff;
    width: 100%;
}

    .ct-brand-link:hover {
        color: #ffffff;
    }


/* Logo Calentime provisoire CSS */

.ct-brand-logo {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 15px;
    background: linear-gradient( 135deg, var(--ct-blue-500), var(--ct-cyan-400) );
    box-shadow: 0 8px 20px rgba(45, 131, 255, 0.28);
    overflow: hidden;
}

.ct-brand-c {
    position: absolute;
    left: 9px;
    top: 3px;
    font-size: 30px;
    font-weight: 800;
    color: white;
}

.ct-brand-clock {
    position: absolute;
    width: 19px;
    height: 19px;
    right: 5px;
    bottom: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.ct-brand-clock-hand {
    position: absolute;
    left: 9px;
    top: 9px;
    width: 2px;
    border-radius: 2px;
    background: var(--ct-navy-900);
    transform-origin: bottom center;
}

.ct-hand-hour {
    height: 6px;
    transform: translateY(-6px) rotate(0deg);
}

.ct-hand-minute {
    height: 7px;
    background: var(--ct-cyan-500);
    transform: translateY(-7px) rotate(120deg);
}

.ct-brand-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ct-brand-name {
    color: #ffffff;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 750;
    letter-spacing: -0.4px;
}

    .ct-brand-name span {
        color: #49c6ff;
    }

.ct-brand-tagline {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.53);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.7px;
}


/* ============================================================
   CONTENU DU MENU
   ============================================================ */

.ct-nav-content {
    flex: 1;
    padding: 23px 14px;
    overflow-y: auto;
}

.ct-nav-section-title {
    padding: 0 13px;
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: rgba(255, 255, 255, 0.42);
}

.ct-nav-section-spaced {
    margin-top: 27px;
}


/* ============================================================
   LIENS NAVIGATION
   ============================================================ */

.ct-nav-link {
    position: relative;
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 13px;
    box-sizing: border-box;
    padding: 0 14px;
    margin-bottom: 5px;
    border: 0;
    border-radius: 11px;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

    .ct-nav-link:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.075);
        transform: translateX(2px);
    }

    .ct-nav-link.active {
        color: #ffffff;
        background: linear-gradient( 90deg, rgba(45, 131, 255, 0.28), rgba(42, 199, 214, 0.11) );
        box-shadow: inset 0 0 0 1px rgba(74, 163, 255, 0.15);
    }

        .ct-nav-link.active::before {
            content: "";
            position: absolute;
            left: 0;
            top: 10px;
            bottom: 10px;
            width: 3px;
            border-radius: 0 4px 4px 0;
            background: linear-gradient( 180deg, var(--ct-blue-400), var(--ct-cyan-400) );
        }


/* ============================================================
   ICONES MENU
   ============================================================ */

.ct-nav-icon {
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .ct-nav-icon svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


/* ============================================================
   BAS DU MENU
   ============================================================ */

.ct-nav-footer {
    padding: 16px 14px 19px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ct-nav-user {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 13px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
}

.ct-nav-avatar {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 11px;
    background: linear-gradient( 135deg, var(--ct-blue-500), var(--ct-cyan-500) );
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.ct-nav-user-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ct-nav-user-name {
    overflow: hidden;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ct-nav-user-role {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.43);
    font-size: 10px;
}

.ct-nav-logout {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.58);
}

    .ct-nav-logout:hover {
        color: #ffffff;
        background: rgba(230, 83, 83, 0.14);
    }


/* ============================================================
   CARTES
   ============================================================ */

.card {
    border: 1px solid var(--ct-border) !important;
    border-radius: var(--ct-radius-lg) !important;
    background: var(--ct-surface) !important;
    box-shadow: var(--ct-shadow-sm);
    overflow: hidden;
}

.card-body {
    padding: 22px;
}


/* ============================================================
   TABLEAUX
   ============================================================ */

.table {
    margin-bottom: 0;
    color: var(--ct-text);
    background: #ffffff;
}

    .table > :not(caption) > * > * {
        padding: 14px 15px;
        border-color: var(--ct-border-soft);
        vertical-align: middle;
    }

    .table thead th {
        background: #fafbfe;
        color: var(--ct-text-soft);
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        border-bottom: 1px solid var(--ct-border);
    }

    .table tbody tr {
        transition: background 0.15s ease;
    }

        .table tbody tr:hover {
            background: #f8faff;
        }


/* ============================================================
   BOUTONS
   ============================================================ */

.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
    border-color: var(--ct-blue-600);
    background: linear-gradient( 135deg, var(--ct-blue-600), var(--ct-blue-500) );
    box-shadow: 0 5px 14px rgba(31, 109, 245, 0.18);
}

    .btn-primary:hover {
        border-color: var(--ct-blue-600);
        background: linear-gradient( 135deg, #195ed6, #2477ed );
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(31, 109, 245, 0.24);
    }

.btn-outline-secondary {
    color: var(--ct-text-soft);
    border-color: #cdd4e1;
    background: #ffffff;
}

    .btn-outline-secondary:hover {
        color: var(--ct-text);
        border-color: #aeb8ca;
        background: #f5f7fb;
    }


/* ============================================================
   CHAMPS
   ============================================================ */

.form-control,
.form-select {
    min-height: 43px;
    border: 1px solid #dce1ea;
    border-radius: 10px;
    color: var(--ct-text);
    background: #ffffff;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--ct-blue-400);
        box-shadow: 0 0 0 3px rgba(45, 131, 255, 0.12);
    }

.form-label {
    margin-bottom: 7px;
    color: var(--ct-text-soft);
    font-size: 13px;
    font-weight: 600;
}


/* ============================================================
   BADGES
   ============================================================ */

.badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
}

.bg-success {
    background: #eaf8f3 !important;
    color: #198864 !important;
}

.bg-secondary {
    background: #eef1f6 !important;
    color: #657187 !important;
}


/* ============================================================
   ALERTES
   ============================================================ */

.alert {
    border: 0;
    border-radius: 12px;
    font-size: 13px;
}

.alert-danger {
    color: #a33a3a;
    background: #fff0f0;
}

.alert-info {
    color: #245c9f;
    background: #edf5ff;
}


/* ============================================================
   SCROLLBAR MENU
   ============================================================ */

.ct-nav-content::-webkit-scrollbar {
    width: 5px;
}

.ct-nav-content::-webkit-scrollbar-track {
    background: transparent;
}

.ct-nav-content::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
}


/* ============================================================
   BLAZOR ERROR
   ============================================================ */

#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 12px 20px;
    background: #fff3cd;
    color: #664d03;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.10);
}

    #blazor-error-ui .dismiss {
        position: absolute;
        right: 15px;
        cursor: pointer;
    }


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {

    :root {
        --ct-sidebar-width: 235px;
    }

    .ct-content {
        padding: 28px 26px 45px;
    }
}


@media (max-width: 760px) {

    .ct-app {
        display: block;
    }

    .ct-sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .ct-main {
        width: 100%;
        margin-left: 0;
    }

    .ct-topbar {
        height: 70px;
        padding: 0 18px;
    }

    .ct-content {
        padding: 22px 16px 40px;
    }

    .ct-brand {
        min-height: 82px;
    }

    .ct-nav-footer {
        padding-bottom: 15px;
    }

    .ct-content h1 {
        font-size: 28px;
    }
}
/* ============================================================
   CALENTIME - PAGE DE CONNEXION
   ============================================================ */

.ct-login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient( circle at top left, rgba(45, 131, 255, 0.12), transparent 35% ), radial-gradient( circle at bottom right, rgba(42, 199, 214, 0.10), transparent 35% ), #f6f8fc;
}

.ct-login-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 26px 34px;
}

.ct-login-logo {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 135deg, var(--ct-blue-600), var(--ct-cyan-400) );
    box-shadow: 0 10px 24px rgba(31, 109, 245, 0.22);
    overflow: hidden;
}

.ct-login-logo-c {
    position: absolute;
    left: 10px;
    top: 3px;
    font-size: 32px;
    font-weight: 800;
    color: white;
}

.ct-login-logo-clock {
    position: absolute;
    right: 5px;
    bottom: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.ct-login-hour,
.ct-login-minute {
    position: absolute;
    left: 9px;
    top: 9px;
    width: 2px;
    border-radius: 2px;
    transform-origin: bottom center;
}

.ct-login-hour {
    height: 6px;
    background: var(--ct-navy-900);
    transform: translateY(-6px) rotate(0deg);
}

.ct-login-minute {
    height: 7px;
    background: var(--ct-cyan-500);
    transform: translateY(-7px) rotate(120deg);
}

.ct-login-brand-text {
    display: flex;
    flex-direction: column;
}

.ct-login-brand-name {
    font-size: 24px;
    font-weight: 750;
    color: var(--ct-navy-900);
    letter-spacing: -0.4px;
}

    .ct-login-brand-name span {
        color: var(--ct-blue-500);
    }

.ct-login-brand-subtitle {
    margin-top: 2px;
    font-size: 12px;
    color: var(--ct-text-muted);
}

.ct-login-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 70px;
}

.ct-login-card {
    width: 100%;
    max-width: 520px;
    padding: 40px;
    border-radius: 22px;
    background: white;
    border: 1px solid var(--ct-border);
    box-shadow: 0 18px 50px rgba(11, 29, 63, 0.10);
}
}

    .ct-login-card h1 {
        margin-top: 0;
        margin-bottom: 26px;
        font-size: 30px;
        font-weight: 750;
        color: var(--ct-text);
    }

    .ct-login-card hr {
        margin: 28px 0;
        border-color: var(--ct-border-soft);
        opacity: 1;
    }

    .ct-login-card .btn {
        min-height: 44px;
    }

@media (max-width: 600px) {

    .ct-login-brand {
        padding: 20px 18px;
    }

    .ct-login-shell {
        align-items: flex-start;
        padding: 20px 14px 40px;
    }

    .ct-login-card {
        padding: 24px;
    }
}
/* ============================================================
   FORMULAIRE DE CONNEXION CALENTIME
   ============================================================ */

.ct-login-form {
    width: 100%;
}

    .ct-login-form .form-label {
        font-size: 15px;
        font-weight: 600;
        color: #50607a;
        margin-bottom: 8px;
    }

.ct-input {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    border: 1px solid #d8e0ee;
    background: #ffffff;
    padding: 12px 16px;
    font-size: 16px;
    box-shadow: none;
}

    .ct-input:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    }

.ct-btn-primary {
    min-height: 52px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

    .ct-btn-primary:hover {
        transform: translateY(-1px);
        color: white;
    }

.ct-btn-secondary {
    min-height: 52px;
    border-radius: 14px;
    border: 1px solid #d8e0ee;
    background: #f8fbff;
    color: #183153;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .ct-btn-secondary:hover {
        background: #eef5ff;
        border-color: #bfd3f7;
        color: #183153;
    }

.ct-login-card hr {
    margin: 26px 0;
}
/* ============================================================
   CONNEXION CALENTIME - FINITIONS
   ============================================================ */

.ct-login-card {
    width: 100%;
    max-width: 520px;
    padding: 42px;
}

.ct-login-form {
    width: 100%;
}

    .ct-login-form h1 {
        margin-bottom: 8px;
    }

.ct-login-intro {
    margin: 0 0 30px;
    color: var(--ct-text-muted);
    font-size: 14px;
}

.ct-login-form .form-label {
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 650;
    color: #53627a;
}

.ct-login-form .ct-input {
    width: 100%;
    min-height: 54px;
    padding: 12px 16px;
    border: 1px solid #d9e0eb;
    border-radius: 13px;
    background: #ffffff;
    font-size: 16px;
    box-sizing: border-box;
}

    .ct-login-form .ct-input:focus {
        border-color: var(--ct-blue-500);
        box-shadow: 0 0 0 4px rgba(45, 131, 255, 0.11);
    }

.ct-btn-primary {
    min-height: 54px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient( 135deg, #1f6df5, #3186ff );
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(31, 109, 245, 0.22);
}

    .ct-btn-primary:hover {
        color: #ffffff;
        transform: translateY(-1px);
    }

.ct-login-separator {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 27px 0;
}

    .ct-login-separator::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--ct-border);
    }

    .ct-login-separator span {
        position: relative;
        z-index: 1;
        padding: 0 14px;
        background: #ffffff;
        color: var(--ct-text-muted);
        font-size: 12px;
    }

.ct-btn-superadmin {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #cdd9ec;
    border-radius: 13px;
    background: linear-gradient( 180deg, #ffffff, #f7faff );
    color: var(--ct-navy-800);
    font-size: 15px;
    font-weight: 650;
    transition: all 0.18s ease;
}

    .ct-btn-superadmin:hover {
        border-color: #a9c3ef;
        background: #f1f7ff;
        color: var(--ct-blue-600);
        transform: translateY(-1px);
        box-shadow: 0 7px 18px rgba(31, 109, 245, 0.10);
    }

.ct-btn-superadmin-icon {
    font-size: 17px;
}

.ct-btn-secondary {
    min-height: 50px;
    border: 1px solid #d7deea;
    border-radius: 12px;
    background: #ffffff;
    color: var(--ct-text-soft);
    font-size: 14px;
    font-weight: 600;
}

.ct-btn-link {
    margin-top: 10px;
    border: 0;
    background: transparent;
    color: var(--ct-blue-600);
    font-size: 13px;
    font-weight: 600;
}

    .ct-btn-link:hover {
        color: #174fb6;
    }

.ct-login-back {
    margin-top: 26px;
}

.ct-code-info {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #eef7ff;
    color: #45617e;
    font-size: 13px;
    line-height: 1.5;
}

.ct-code-input {
    text-align: center;
    font-size: 24px !important;
    font-weight: 700;
    letter-spacing: 8px;
}
/* ============================================================
   CALENTIME - ADMINISTRATION SOCIETES
   ============================================================ */

.ct-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}

.ct-page-eyebrow {
    margin-bottom: 7px;
    color: var(--ct-blue-600);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.ct-page-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 750;
    letter-spacing: -0.6px;
}

.ct-page-description {
    margin: 7px 0 0;
    color: var(--ct-text-muted);
    font-size: 14px;
}

.ct-page-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient( 135deg, var(--ct-blue-600), var(--ct-blue-500) );
    color: white;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 7px 18px rgba(31, 109, 245, 0.18);
}

    .ct-page-action:hover {
        color: white;
        transform: translateY(-1px);
    }

.ct-page-action-plus {
    font-size: 18px;
    font-weight: 400;
}


/* ============================================================
   STATISTIQUES
   ============================================================ */

.ct-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.ct-stat-card {
    min-height: 120px;
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 21px;
    border: 1px solid var(--ct-border);
    border-radius: 17px;
    background: white;
    box-shadow: var(--ct-shadow-sm);
}

.ct-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 14px;
}

    .ct-stat-icon svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.ct-stat-icon-blue {
    color: #2563eb;
    background: #edf4ff;
}

.ct-stat-icon-cyan {
    color: #0d9dac;
    background: #eafafb;
}

.ct-stat-icon-purple {
    color: #7655dc;
    background: #f2edff;
}

.ct-stat-icon-green {
    color: #15946d;
    background: #eaf8f3;
}

.ct-stat-content {
    min-width: 0;
}

.ct-stat-label {
    margin-bottom: 3px;
    color: var(--ct-text-soft);
    font-size: 12px;
    font-weight: 600;
}

.ct-stat-value {
    color: var(--ct-text);
    font-size: 27px;
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.4px;
}

.ct-stat-caption {
    margin-top: 5px;
    color: var(--ct-text-muted);
    font-size: 11px;
}


/* ============================================================
   PANNEAU
   ============================================================ */

.ct-panel {
    overflow: hidden;
    border: 1px solid var(--ct-border);
    border-radius: 18px;
    background: white;
    box-shadow: var(--ct-shadow-sm);
}

.ct-panel-header {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 22px;
    border-bottom: 1px solid var(--ct-border-soft);
}

    .ct-panel-header h2 {
        margin: 0;
        font-size: 17px;
        font-weight: 700;
    }

    .ct-panel-header p {
        margin: 4px 0 0;
        color: var(--ct-text-muted);
        font-size: 12px;
    }

.ct-panel-count {
    padding: 7px 11px;
    border-radius: 999px;
    background: #f2f6fb;
    color: var(--ct-text-soft);
    font-size: 11px;
    font-weight: 700;
}


/* ============================================================
   TABLE ADMIN
   ============================================================ */

.ct-table-wrapper {
    overflow-x: auto;
}

.ct-admin-table {
    min-width: 900px;
}

    .ct-admin-table > :not(caption) > * > * {
        padding: 16px 15px;
    }

    .ct-admin-table thead th {
        padding-top: 13px;
        padding-bottom: 13px;
    }

.ct-company-code {
    color: var(--ct-text-soft);
    font-size: 13px;
    font-weight: 600;
}

.ct-company-name {
    color: var(--ct-text);
    font-weight: 700;
}

.ct-date-cell {
    color: var(--ct-text-soft);
}


/* ============================================================
   UTILISATION
   ============================================================ */

.ct-usage-cell {
    min-width: 125px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.ct-usage-bar {
    width: 70px;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf5;
}

.ct-usage-progress {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient( 90deg, var(--ct-blue-500), var(--ct-cyan-500) );
}

.ct-usage-cell span {
    min-width: 33px;
    color: var(--ct-text-soft);
    font-size: 11px;
    font-weight: 650;
}


/* ============================================================
   STATUT
   ============================================================ */

.ct-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.ct-status-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.ct-status-active {
    color: #168260;
    background: #e9f8f2;
}

    .ct-status-active .ct-status-badge-dot {
        background: #20b486;
    }

.ct-status-inactive {
    color: #68758a;
    background: #eef1f5;
}

    .ct-status-inactive .ct-status-badge-dot {
        background: #8c98a9;
    }


/* ============================================================
   VIDE / CHARGEMENT
   ============================================================ */

.ct-empty-state,
.ct-loading-card {
    padding: 45px;
    text-align: center;
    color: var(--ct-text-soft);
}

.ct-empty-title {
    margin-bottom: 5px;
    color: var(--ct-text);
    font-size: 17px;
    font-weight: 700;
}

.ct-empty-description {
    margin-bottom: 20px;
    color: var(--ct-text-muted);
    font-size: 13px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {

    .ct-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 700px) {

    .ct-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .ct-page-action {
        width: 100%;
    }

    .ct-stat-grid {
        grid-template-columns: 1fr;
    }

    .ct-panel-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 20px;
    }
}
/* ============================================================
   CALENTIME - TABLEAU DE BORD
   ============================================================ */

.ct-dashboard-header {
    align-items: flex-end;
}

.ct-dashboard-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ct-dashboard-secondary-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid #d7deea;
    border-radius: 11px;
    background: white;
    color: var(--ct-text-soft);
    font-size: 13px;
    font-weight: 650;
}

    .ct-dashboard-secondary-action:hover {
        background: #f7f9fc;
        color: var(--ct-text);
    }


/* CARTES CLIQUABLES */

.ct-stat-link {
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .ct-stat-link:hover {
        color: inherit;
        transform: translateY(-2px);
        box-shadow: var(--ct-shadow-md);
    }

.ct-stat-icon-red {
    color: #df5151;
    background: #fff0f0;
}


/* STRUCTURE */

.ct-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(280px, 0.8fr);
    gap: 22px;
    align-items: start;
    margin-bottom: 22px;
}

.ct-dashboard-main-panel {
    min-width: 0;
}

.ct-dashboard-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
}


/* LIEN HEADER */

.ct-panel-link {
    color: var(--ct-blue-600);
    font-size: 12px;
    font-weight: 700;
}

    .ct-panel-link:hover {
        color: #1556c7;
    }


/* TABLEAU */

.ct-dashboard-table {
    min-width: 850px;
}

    .ct-dashboard-table > :not(caption) > * > * {
        padding: 15px 14px;
    }

    .ct-dashboard-table tbody td {
        font-size: 13px;
    }

.ct-time-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 57px;
    padding: 6px 9px;
    border-radius: 9px;
    background: #edf5ff;
    color: var(--ct-blue-600);
    font-size: 12px;
    font-weight: 750;
}

.ct-prospect-link {
    color: var(--ct-text);
    font-weight: 700;
}

    .ct-prospect-link:hover {
        color: var(--ct-blue-600);
    }

.ct-table-secondary {
    margin-top: 3px;
    color: var(--ct-text-muted);
    font-size: 11px;
}

.ct-type-badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f5fa;
    color: var(--ct-text-soft);
    font-size: 11px;
    font-weight: 650;
}


/* PRIORITÉS */

.ct-priority-badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.ct-priority-low {
    color: #5d6a7e;
    background: #eef1f5;
}

.ct-priority-normal {
    color: #2764ae;
    background: #edf5ff;
}

.ct-priority-high {
    color: #b54141;
    background: #fff0f0;
}


/* BOUTON EFFECTUÉE */

.ct-done-button {
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: #e9f8f2;
    color: #14815f;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.15s ease;
}

    .ct-done-button:hover {
        background: #d9f3e9;
        transform: translateY(-1px);
    }


/* ÉTAT VIDE */

.ct-dashboard-empty {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 30px;
}

.ct-dashboard-empty-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #e9f8f2;
    color: #168260;
    font-size: 18px;
    font-weight: 800;
}

.ct-dashboard-empty-title {
    margin-bottom: 3px;
    color: var(--ct-text);
    font-size: 14px;
    font-weight: 700;
}

.ct-dashboard-empty-text {
    color: var(--ct-text-muted);
    font-size: 12px;
}


/* MA JOURNÉE */

.ct-day-summary {
    padding: 8px 18px 18px;
}

.ct-day-summary-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--ct-border-soft);
}

    .ct-day-summary-row:last-child {
        border-bottom: 0;
    }

.ct-day-summary-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
}

.ct-summary-red {
    background: #fff0f0;
    color: #dc5151;
}

.ct-summary-green {
    background: #e9f8f2;
    color: #168260;
}

.ct-summary-blue {
    background: #edf5ff;
    color: var(--ct-blue-600);
}

.ct-day-summary-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ct-text-soft);
    font-size: 12px;
}

    .ct-day-summary-content strong {
        color: var(--ct-text);
        font-size: 18px;
    }


/* ACCÈS RAPIDES */

.ct-quick-actions {
    padding: 10px 17px 17px;
}

.ct-quick-action {
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    margin-bottom: 7px;
    border-radius: 10px;
    color: var(--ct-text-soft);
    background: #f8fafc;
    font-size: 12px;
    font-weight: 650;
    transition: all 0.15s ease;
}

    .ct-quick-action:last-child {
        margin-bottom: 0;
    }

    .ct-quick-action:hover {
        color: var(--ct-blue-600);
        background: #eff6ff;
        transform: translateX(2px);
    }

    .ct-quick-action strong {
        color: var(--ct-blue-500);
    }


/* RETARDS */

.ct-overdue-panel {
    margin-top: 22px;
    border-color: #f0dada;
}

.ct-overdue-count {
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #b54141;
    background: #fff0f0;
    font-size: 11px;
    font-weight: 750;
}

.ct-overdue-date {
    color: #b54141;
    font-size: 12px;
    font-weight: 700;
}


/* RESPONSIVE */

@media (max-width: 1250px) {

    .ct-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .ct-dashboard-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 760px) {

    .ct-dashboard-header {
        align-items: stretch;
    }

    .ct-dashboard-actions {
        flex-direction: column;
    }

        .ct-dashboard-actions .btn {
            width: 100%;
        }

    .ct-dashboard-side {
        grid-template-columns: 1fr;
    }
}
/* ============================================================
   CALENTIME - FORMULAIRES ADMINISTRATION
   ============================================================ */

.ct-form-container {
    width: 100%;
    max-width: 980px;
}

.ct-form-panel {
    margin-bottom: 22px;
}

.ct-form-body {
    padding: 24px;
}

.ct-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 21px;
}

.ct-form-group {
    min-width: 0;
}

.ct-form-group-full {
    grid-column: 1 / -1;
}

.ct-form-group .form-control {
    width: 100%;
    min-height: 48px;
}

.ct-field-help {
    margin-top: 7px;
    color: var(--ct-text-muted);
    font-size: 11px;
    line-height: 1.4;
}

.ct-form-actions {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 5px;
}


@media (max-width: 700px) {

    .ct-form-grid {
        grid-template-columns: 1fr;
    }

    .ct-form-group-full {
        grid-column: auto;
    }

    .ct-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .ct-form-actions .btn {
            width: 100%;
        }
}