﻿--custom-dark: #080014 !important;
--custom-accent: #41009C !important;
--custom-accent-secondary: #FFF137 !important;
--H6: clamp(1.125rem, 1.125rem + 0vw, 1.125rem);
--H5: clamp(1.25rem, 1.25rem + 0vw, 1.25rem);
--H4: clamp(1.375rem, 1.3315rem + 0.2174vw, 1.5rem);
--H3: clamp(1.75rem, 1.663rem + 0.4348vw, 2rem);
--H2: clamp(2.125rem, 1.9946rem + 0.6522vw, 2.5rem);
--H1: clamp(2.5rem, 2.1957rem + 1.5217vw, 3.375rem);
}

html {
    /*background-color: #e2e2e2;*/
    /*background-image: url("../Images/AgiluxImg/01-background-30.jpg");
    background-size: 100%;
    background-position: center; 
    background-repeat: no-repeat;*/
    margin: 0 auto;
    padding: 0;
}

body {
    background-color: #F5F2FB;
    /*border-top: solid 10px #000;*/
    color: #333;
    font-size: .85em;
    font-family: 'HelveticaNeueMedium', Helvetica, Arial, Lucida, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    color: #333;
    outline: none;
    padding-left: 3px;
    padding-right: 3px;
    text-decoration: underline;
}

    a:link, a:visited,
    a:active, a:hover {
        color: #333;
    }

    a:hover {
        background-color: #c7d1d6;
    }

header, footer, hgroup,
nav, section {
    display: block;
}

mark {
    background-color: #a6dbed;
    padding-left: 5px;
    padding-right: 5px;
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.clear-fix:after {
    content: ".";
    clear: both;
    display: block;
    height: 0;
    visibility: hidden;
}

h1, h2, h3,
h4, h5, h6 {
    /* font-family: 'Varela Round', sans-serif;*/

    letter-spacing: -0.025em;
    margin-bottom: 0;
    padding-bottom: 0;
    color: #41009c;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 40px;
    line-height: 1.2em;
}

    h2.userAgilux {
        text-transform: capitalize;
    }

h3 {
    font-size: 1.2em;
}

h4 {
    font-size: 1.1em;
}

h5, h6 {
    font-size: 1em;
}

    h5 a:link, h5 a:visited, h5 a:active {
        padding: 0;
        text-decoration: none;
    }


/* main layout
----------------------------------------------------------*/
.content-wrapper {
    margin: 0 auto;
    max-width: 1600px;
    min-height: 20px;
}

#body {
    /*background-color: rgba(165,205,215,0.25);*/
    clear: both;
    padding-bottom: 35px;
}

.main-content {
    /*background: url("../Images/accent.png") no-repeat;*/
    padding-left: 10px;
    /*padding-top: 5px;*/
}

/*.featured + .main-content {
        background: url("../Images/heroAccent.png") no-repeat;
    }*/

/*header .content-wrapper {
    padding-top: 20px;
}*/

footer {
    clear: both;
    /*background-color: #e2e2e2;*/
    font-size: .8em;
    /*height: 100px;*/
}


/* site title
----------------------------------------------------------*/
.site-title {
    color: #c8c8c8;
    font-family: Rockwell, Consolas, "Courier New", Courier, monospace;
    font-size: 2.3em;
    margin: 0;
}

    .site-title a, .site-title a:hover, .site-title a:active {
        background: none;
        color: #c8c8c8;
        outline: none;
        text-decoration: none;
        background-image: url("../Images/agiluxlogo.png") no-repeat;
    }


/* login
----------------------------------------------------------*/
#login {
    display: block;
    font-size: .85em;
    margin: 0 0 10px;
    text-align: right;
}

    #login a {
        background-color: #d3dce0;
        margin-left: 10px;
        margin-right: 3px;
        padding: 2px 3px;
        text-decoration: none;
    }

        #login a.username {
            background: none;
            margin: 0;
            padding: 0;
            text-decoration: underline;
        }

    #login ul {
        margin: 0;
    }

    #login li {
        display: inline;
        list-style: none;
    }


/* menu
----------------------------------------------------------*/
ul#menu {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 5px;
    padding: 10px;
    text-align: right;
}

    ul#menu li {
        display: inline;
        list-style: none;
        padding-left: 15px;
    }

        ul#menu li a {
            background: none;
            color: white;
            text-decoration: none;
        }

            ul#menu li a:hover {
                text-decoration: none;
            }


/* page elements
----------------------------------------------------------*/
/* featured */
.featured {
    background-color: #fff;
}

    .featured .content-wrapper {
        background-color: #7ac0da;
        background-image: -ms-linear-gradient(left, #7ac0da 0%, #a4d4e6 100%);
        background-image: -o-linear-gradient(left, #7ac0da 0%, #a4d4e6 100%);
        background-image: -webkit-gradient(linear, left top, right top, color-stop(0, #7ac0da), color-stop(1, #a4d4e6));
        background-image: -webkit-linear-gradient(left, #7ac0da 0%, #a4d4e6 100%);
        background-image: linear-gradient(left, #7ac0da 0%, #a4d4e6 100%);
        color: #3e5667;
        padding: 20px 40px 30px 40px;
    }

    .featured hgroup.title h1, .featured hgroup.title h2 {
        color: #fff;
    }

    .featured p {
        font-size: 1.1em;
    }

/* page titles */
hgroup.title {
    margin-bottom: 10px;
}

    hgroup.title h1, hgroup.title h2 {
        display: inline;
    }

    hgroup.title h2 {
        font-weight: normal;
        margin-left: 3px;
    }

/* features */
section.feature {
    width: 300px;
    float: left;
    padding: 10px;
}

/* ordered list */
ol.round {
    list-style-type: none;
    padding-left: 0;
}

    ol.round li {
        margin: 25px 0;
        padding-left: 45px;
    }

        ol.round li.zero {
            background: url("../Images/orderedList0.png") no-repeat;
        }

        ol.round li.one {
            background: url("../Images/orderedList1.png") no-repeat;
        }

        ol.round li.two {
            background: url("../Images/orderedList2.png") no-repeat;
        }

        ol.round li.three {
            background: url("../Images/orderedList3.png") no-repeat;
        }

        ol.round li.four {
            background: url("../Images/orderedList4.png") no-repeat;
        }

        ol.round li.five {
            background: url("../Images/orderedList5.png") no-repeat;
        }

        ol.round li.six {
            background: url("../Images/orderedList6.png") no-repeat;
        }

        ol.round li.seven {
            background: url("../Images/orderedList7.png") no-repeat;
        }

        ol.round li.eight {
            background: url("../Images/orderedList8.png") no-repeat;
        }

        ol.round li.nine {
            background: url("../Images/orderedList9.png") no-repeat;
        }

/* content */
article {
    float: left;
    width: 70%;
}

aside {
    float: right;
    width: 25%;
}

    aside ul {
        list-style: none;
        padding: 0;
    }

        aside ul li {
            background: url("../Images/bullet.png") no-repeat 0 50%;
            padding: 2px 0 2px 20px;
        }

.label {
    font-weight: 700;
}

/* login page */
#loginForm {
    border-right: solid 2px #c8c8c8;
    float: left;
    width: 55%;
}

    #loginForm .validation-error {
        display: block;
        margin-left: 15px;
    }

    #loginForm .validation-summary-errors ul {
        margin: 0;
        padding: 0;
    }

    #loginForm .validation-summary-errors li {
        display: inline;
        list-style: none;
        margin: 0;
    }

    #loginForm input {
        width: 250px;
    }

        #loginForm input[type="checkbox"],
        #loginForm input[type="submit"],
        #loginForm input[type="button"],
        #loginForm button {
            width: auto;
        }

#socialLoginForm {
    margin-left: 40px;
    float: left;
    width: 40%;
}

    #socialLoginForm h2 {
        margin-bottom: 5px;
    }

#socialLoginList button {
    margin-bottom: 12px;
}

#logoutForm {
    display: inline;
}

/* contact */
.contact h3 {
    font-size: 1.2em;
}

.contact p {
    margin: 5px 0 0 10px;
}

.contact iframe {
    border: 1px solid #333;
    margin: 5px 0 0 10px;
}

/* forms */
fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

    fieldset legend {
        display: none;
    }

    fieldset ol {
        padding: 0;
        list-style: none;
    }

        fieldset ol li {
            padding-bottom: 5px;
        }

label {
    display: block;
    font-size: 16px;
    color: #222 !important;
    font-family: 'HelveticaNeueMedium', Helvetica, Arial, Lucida, sans-serif;
    font-weight: normal;
    color: #41009C !important;
}

    label.checkbox {
        display: inline;
    }

input, textarea {
    border: 1px solid #e2e2e2;
    background: #fff;
    color: #333;
    font-size: 1.2em;
    margin: 5px 0 6px 0;
    padding: 5px;
    width: 300px;
    border: 1px solid #e5e5e5;
    box-shadow: none;
    min-height: 30px;
    font-weight: normal;
}

textarea {
    font-family: inherit;
    width: 500px;
}

    input:focus, textarea:focus {
        border: 1px solid #7ac0da;
    }

input[type="checkbox"] {
    background: transparent;
    border: inherit;
    width: auto;
}

input[type="submit"],
input[type="button"],
button {
    /*min-width: 125px;
    cursor: pointer;
    outline: 1px solid transparent;*/

    font-family: 'HelveticaNeueMedium', Helvetica, Arial, Lucida, sans-serif;
    font-weight: normal;
    font-size: 16px;
    color: #fff !important;
    background: #41009c !important;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: none;
    border: none;
    z-index: 30;
    position: relative;
    /*background-color: #fff;
        border: 1px solid #787878;
        cursor: pointer;
        font-size: 1.2em;
        font-weight: 600;
        padding: 7px;
        margin-right: 8px;
        width: auto;*/
}

    button:hover {
        background: #B885FF !important;
    }

/*td input[type="submit"],
td input[type="button"],
td button {
    font-size: 1em;
    padding: 4px;
    margin-right: 4px;
}*/

.ImageLogin {
    margin-top: 50px;
}
/* info and errors */
.message-info {
    border: 1px solid;
    clear: both;
    padding: 10px 20px;
}

.message-error {
    clear: both;
    color: #e80c4d;
    font-size: 1.1em;
    font-weight: bold;
    margin: 20px 0 10px 0;
}

.message-success {
    color: #7ac0da;
    font-size: 1.3em;
    font-weight: bold;
    margin: 20px 0 10px 0;
}

.error {
    color: #e80c4d;
}

/* styles for validation helpers */
.field-validation-error {
    color: #e80c4d;
    font-weight: bold;
}

.field-validation-valid {
    display: none;
}

input.input-validation-error {
    border: 1px solid #e80c4d;
}

input[type="checkbox"].input-validation-error {
    border: 0 none;
}

.validation-summary-errors {
    color: #e80c4d;
    font-weight: bold;
    font-size: 1.1em;
}

.validation-summary-valid {
    display: none;
}


/* tables
----------------------------------------------------------*/
table {
    border-collapse: collapse;
    border-spacing: 0;
    margin-top: 0.75em;
    border: 0 none;
}

th {
    font-size: 1.2em;
    text-align: left;
    border: none 0px;
    padding-left: 0;
}

    th a {
        display: block;
        position: relative;
    }

        th a:link, th a:visited, th a:active, th a:hover {
            color: #333;
            font-weight: 600;
            text-decoration: none;
            padding: 0;
        }

        th a:hover {
            color: #000;
        }

    th.asc a, th.desc a {
        margin-right: .75em;
    }

        th.asc a:after, th.desc a:after {
            display: block;
            position: absolute;
            right: 0em;
            top: 0;
            font-size: 0.75em;
        }

        th.asc a:after {
            content: '▲';
        }

        th.desc a:after {
            content: '▼';
        }

td {
    padding: 0.25em 2em 0.25em 0em;
    border: 0 none;
}

tr.pager td {
    padding: 0 0.25em 0 0;
}

.boss {
    text-align: center;
}

    .boss a {
        margin-left: 50px;
        margin-right: 50px;
        /*background-color: rgba(255,255,255,0.3);*/
        border: 0;
    }



/********************
*   Mobile Styles   *
********************/
@media only screen and (max-width: 850px) {

    /* header
    ----------------------------------------------------------*/
    header .float-left,
    header .float-right {
        float: none;
    }

    /* logo */
    header .site-title {
        margin: 10px;
        text-align: center;
    }

    /* login */
    #login {
        font-size: .85em;
        margin: 0 0 12px;
        text-align: center;
    }

        #login ul {
            margin: 5px 0;
            padding: 0;
        }

        #login li {
            display: inline;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        #login a {
            background: none;
            color: #999;
            font-weight: 600;
            margin: 2px;
            padding: 0;
        }

            #login a:hover {
                color: #333;
            }

    /* menu */
    nav {
        margin-bottom: 5px;
    }

    ul#menu {
        margin: 0;
        padding: 0;
        text-align: center;
    }

        ul#menu li {
            margin: 0;
            padding: 0;
        }


    /* main layout
    ----------------------------------------------------------*/
    .main-content,
    .featured + .main-content {
        background-position: 10px 0;
    }

    .content-wrapper {
        padding-right: 10px;
        padding-left: 10px;
    }

    .featured .content-wrapper {
        padding: 10px;
    }

    /* page content */
    article, aside {
        float: none;
        width: 100%;
    }

    /* ordered list */
    ol.round {
        list-style-type: none;
        padding-left: 0;
    }

        ol.round li {
            padding-left: 10px;
            margin: 25px 0;
        }

            ol.round li.zero,
            ol.round li.one,
            ol.round li.two,
            ol.round li.three,
            ol.round li.four,
            ol.round li.five,
            ol.round li.six,
            ol.round li.seven,
            ol.round li.eight,
            ol.round li.nine {
                background: none;
            }

    /* features */
    section.feature {
        float: none;
        padding: 10px;
        width: auto;
    }

        section.feature img {
            color: #999;
            content: attr(alt);
            font-size: 1.5em;
            font-weight: 600;
        }

    /* forms */
    input {
        width: 90%;
    }

    /* login page */
    #loginForm {
        border-right: none;
        float: none;
        width: auto;
    }

        #loginForm .validation-error {
            display: block;
            margin-left: 15px;
        }

    #socialLoginForm {
        margin-left: 0;
        float: none;
        width: auto;
    }


    /* footer
    ----------------------------------------------------------*/
    footer .float-left,
    footer .float-right {
        float: none;
    }

    footer {
        text-align: center;
        height: auto;
        padding: 10px 0;
    }

        footer p {
            margin: 0;
        }
}
/***** Custom ****/

#resume, #prestations, #resumeOver, #planning, #prestasByDay {
    margin-top: -5px;
    margin-left: -13px;
    margin-right: -13px;
    margin-bottom: -5px;
}

    #resume th, #resumeOver th {
        border: none;
        border-bottom: 1px solid;
    }

    #resume td, #resumeOver td {
        border: none;
    }

.clientsList {
    display: none;
}

.prestatairesList {
    display: none;
}

.login {
    text-align: center;
}

    .login table {
        margin-left: auto;
        margin-right: auto;
    }

.k-scheduler-timecolumn {
    display: none;
}

.k-grid table {
    border-collapse: collapse !important;
    border-width: 3px !important;
}

    .k-grid table tr {
        border: solid 1px #41009C;
    }

        .k-grid table tr td {
            background-color: white !important;
        }

.k-grid td {
    border-color: #41009C !important;
}

.k-grid-header th.k-header:first-child, .k-grid tbody td:first-child, .k-grid tfoot td:first-child, .k-filter-row > th:first-child {
    border-left-width: 0;
}

.k-grid table tr td {
    background-color: white !important;
}

/*.k-block, .k-widget, .k-input, .k-textbox, .k-group, .k-content, .k-header, .k-filter-row > th, .k-editable-area, .k-separator, .k-colorpicker .k-i-arrow-s, .k-textbox > input, .k-autocomplete, .k-dropdown-wrap, .k-toolbar, .k-group-footer td, .k-grid-footer, .k-footer-template td, .k-state-default, .k-state-default .k-select, .k-state-disabled, .k-grid-header, .k-grid-header-wrap, .k-grid-header-locked, .k-grid-footer-locked, .k-grid-content-locked, .k-grid td, .k-grid td.k-state-selected, .k-grid-footer-wrap, .k-pager-wrap, .k-pager-wrap .k-link, .k-pager-refresh, .k-grouping-header, .k-grouping-header .k-group-indicator, .k-panelbar > .k-item > .k-link, .k-panel > .k-item > .k-link, .k-panelbar .k-panel, .k-panelbar .k-content, .k-treemap-tile, .k-calendar th, .k-slider-track, .k-splitbar, .k-dropzone-active, .k-tiles, .k-toolbar, .k-tooltip, .k-button-group .k-tool, .k-upload-files {
    border-color: red;
}*/

.k-alt, .k-reset {
    background-color: white !important;
}

.k-header {
    border-color: #41009C !important;
}

.k-grid {
    border: none !important;
}

.k-grid-toolbar:first-child {
    border-width: 0px !important;
    background-color: white !important;
}

.k-grid-header th.k-header, .k-pager-wrap, .k-grid-pager, .k-widget, .k-floatwrap, .k-pager-sizes, .k-label, .k-pager-nav, .k-link, .k-input {
    background-color: white !important;
}

.k-grouping-row {
    border: solid 2px #41009C !important;
}
/*
.k-icon {
    color: white !important;
}
.k-link {
    color: white !important;
}*/
/*.k-alt.support {
        color: #0086fd54 !important;
    }*/
.support {
    color: #0086fd !important;
}

.k-today {
    background-color: lightyellow !important;
}

.k-scheduler-content {
    overflow-y: hidden !important;
}

.k-scheduler-monthview .k-scheduler-table td, .k-scheduler-monthview .k-hidden {
    height: 150px !important;
}

tr.k-state-selected {
    background-color: #1984c8 !important;
    color: #41009C !important;
}

.k-calendar .k-content .k-link {
    color: #41009C !important;
}

.k-pager-numbers .k-state-selected {
    background-color: #41009C !important;
    border-color: #41009C !important;
}

/********************************************
*   Cards, badges & toolbars (encodage UI)  *
********************************************/

/* alert card - jours incomplets */
.alert-card {
    border-radius: 14px;
    padding: 18px 22px;
    margin: 10px 0 20px 0;
    box-shadow: 0 2px 10px rgba(8, 0, 20, 0.06);
}

.alert-card-warning {
    background-color: #FFF7E0;
    border: 1px solid #FCE29B;
}

.alert-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.alert-card-icon {
    font-size: 1.1em;
}

.alert-card-title {
    font-weight: 700;
    color: #41009C;
    font-size: 1.05em;
}

.alert-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alert-card-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 8px 12px;
    color: #333;
}

.alert-card-date {
    font-weight: 600;
    min-width: 100px;
}

.alert-card-sep {
    color: #777;
}

.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 2px 12px;
    font-size: 0.9em;
    font-weight: 600;
}

.badge-warning {
    background-color: #F5A623;
    color: #ffffff;
}

/* toolbar for date navigation + hint banner */
.encodage-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background-color: #FAFAFC;
    border: 1px solid #ECE6F7;
    border-radius: 14px;
    padding: 14px 18px;
    margin: 10px 0 18px 0;
}

.date-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-nav-btn.k-button {
    border-radius: 8px !important;
    min-width: 36px;
    font-weight: 700;
}

.hint-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 0.92em;
}

.hint-banner-icon {
    font-size: 1em;
}

.hint-banner kbd {
    background-color: #EFEAFB;
    color: #41009C;
    border-radius: 5px;
    padding: 1px 7px;
    font-size: 0.9em;
    font-weight: 600;
    border: 1px solid #DCD0F5;
}

/* grid wrapped in an airy card */
.grid-card {
    background-color: #ffffff;
    border-radius: 14px;
    border: 1px solid #ECECEC;
    box-shadow: 0 2px 10px rgba(8, 0, 20, 0.05);
    padding: 6px;
    margin-bottom: 20px;
}

.grid-save-bar {
    display: flex;
    gap: 10px;
}

/* récap "temps passé" par presta, au-dessus de la grille */
.summary-card {
    padding: 10px 14px;
    width: 250px;
}

/* totaux + tableau croisé client/presta, côte à côte sous la grille */
.totals-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.totals-card {
    padding: 10px 14px;
    width: 280px;
    max-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.pivot-card {
    padding: 10px 14px;
    flex: 1 1 300px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

    .pivot-card .summary-table {
        white-space: nowrap;
    }

        /* toutes les colonnes "presta" (donc pas juste la dernière) doivent être alignées à droite */
        .pivot-card .summary-table td:not(:first-child),
        .pivot-card .summary-table th:not(:first-child) {
            text-align: right;
        }

        /* la colonne Client reste visible pendant qu'on fait défiler les prestas horizontalement */
        .pivot-card .summary-table th:first-child,
        .pivot-card .summary-table td:first-child {
            position: sticky;
            left: 0;
            background-color: #ffffff;
            box-shadow: 2px 0 4px rgba(8, 0, 20, 0.06);
        }

.summary-table {
    width: 100%;
    border-collapse: collapse;
}

    .summary-table th {
        text-align: left;
        font-weight: 700;
        font-size: 0.82em;
        color: #4A4A57;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        padding: 6px 10px;
        border-bottom: 2px solid #ECE6F7;
    }

    .summary-table td {
        padding: 6px 10px;
        border-bottom: 1px solid #F3F1F8;
    }

    .summary-table td:last-child,
    .summary-table th:last-child {
        text-align: right;
    }

    .summary-table tr:last-child td {
        border-bottom: none;
    }

.grid-card .k-grid {
    border-radius: 10px !important;
    overflow: hidden;
}

.grid-card .k-grid-header th.k-header {
    font-weight: 700;
    font-size: 0.82em;
    color: #4A4A57;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-top: 10px;
    padding-bottom: 10px;
}

.grid-card .k-grid td {
    padding-top: 8px;
    padding-bottom: 8px;
}

.grid-card .k-grid-toolbar {
    padding: 12px 10px !important;
    display: flex;
    gap: 10px;
}

.grid-card .k-grid-toolbar .k-button {
    border-radius: 8px !important;
    font-weight: 600;
    padding: 8px 18px !important;
    border: none !important;
    box-shadow: none !important;
    transition: transform 0.08s ease, box-shadow 0.15s ease;
}

    .grid-card .k-grid-toolbar .k-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(8, 0, 20, 0.15) !important;
    }

.grid-card .k-grid-toolbar .k-grid-add,
.grid-card .k-grid-toolbar .k-grid-save-changes {
    background-color: #41009C !important;
    color: #ffffff !important;
}

    .grid-card .k-grid-toolbar .k-grid-add:hover,
    .grid-card .k-grid-toolbar .k-grid-save-changes:hover {
        background-color: #5A1FC4 !important;
    }

.grid-card .k-grid-toolbar .k-grid-cancel-changes {
    background-color: #F0EDF5 !important;
    color: #41009C !important;
    margin-left: auto !important;
}

    .grid-card .k-grid-toolbar .k-grid-cancel-changes:hover {
        background-color: #E3DCF2 !important;
    }

.grid-card .k-grid-toolbar .k-grid-duplicate {
    background-color: #ffffff !important;
    color: #41009C !important;
    border: 1.5px solid #41009C !important;
}

    .grid-card .k-grid-toolbar .k-grid-duplicate:hover {
        background-color: #F0EDF5 !important;
    }

/* delete command button on each row */
.delete-cell {
    text-align: center;
}

.grid-card .k-grid-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #FDECEC !important;
    color: #C0392B !important;
    border: none !important;
    border-radius: 999px !important;
    font-weight: 600;
    font-size: 0.85em;
    padding: 6px 14px !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

    .grid-card .k-grid-delete .k-icon {
        display: none;
    }

    .grid-card .k-grid-delete::before {
        content: "\1F5D1";
        font-size: 0.95em;
        line-height: 1;
    }

    .grid-card .k-grid-delete:hover {
        background-color: #C0392B !important;
        color: #ffffff !important;
        box-shadow: 0 3px 8px rgba(192, 57, 43, 0.25) !important;
        transform: translateY(-1px);
    }

/* row hover + pager polish */
.grid-card .k-grid tbody tr:hover td {
    background-color: #FAF7FF !important;
}

.grid-card .k-pager-wrap {
    border-radius: 0 0 10px 10px;
    padding: 8px 10px !important;
}

/********************************************
*   Page header & summary badge             *
********************************************/

.page-header {
    margin-bottom: 14px;
}

.page-header .userAgilux {
    margin-bottom: 2px;
}

.page-subtitle {
    color: #8A8A97;
    font-size: 0.95em;
    margin: 0;
    padding: 0;
}

.summary-badge:empty {
    display: none;
}

.summary-badge {
    display: inline-block;
    background-color: #F0EDF5;
    color: #41009C;
    font-weight: 700;
    border-radius: 999px;
    padding: 8px 18px;
    margin: 4px 0 16px 0;
}

    .summary-badge::before {
        content: "\23F1";
        margin-right: 8px;
    }

    #creditRestant.summary-badge {
        background-color: #EAF7EE;
        color: #1E8A4C;
    }

        #creditRestant.summary-badge::before {
            content: "\1F4B0";
        }

/********************************************
*   TabStrip                                *
********************************************/

#tabstrip.k-tabstrip {
    border: none;
    background: transparent;
}

    #tabstrip.k-tabstrip > .k-tabstrip-items {
        border: none;
        border-bottom: 2px solid #ECECEC;
        background: transparent;
        padding-left: 2px;
    }

        #tabstrip.k-tabstrip > .k-tabstrip-items .k-item {
            border: none !important;
            background: transparent !important;
            margin-bottom: -2px;
            margin-right: 4px;
        }

            #tabstrip.k-tabstrip > .k-tabstrip-items .k-item .k-link {
                color: #8A8A97;
                font-weight: 600;
                padding: 10px 16px;
                border-bottom: 2px solid transparent;
                transition: color 0.15s ease, border-color 0.15s ease;
            }

            #tabstrip.k-tabstrip > .k-tabstrip-items .k-item:hover .k-link {
                color: #41009C;
            }

            #tabstrip.k-tabstrip > .k-tabstrip-items .k-item.k-state-active .k-link {
                color: #41009C;
                border-bottom-color: #41009C;
            }

    #tabstrip.k-tabstrip > .k-content {
        border: none;
        background: transparent;
        padding: 16px 2px;
    }

/********************************************
*   Boss client/prestataire pickers         *
********************************************/

.clientsList .k-combobox,
.prestatairesList .k-dropdown-wrap {
    border-radius: 8px !important;
    overflow: hidden;
}

.clientsList .k-combobox .k-input,
.prestatairesList .k-dropdown-wrap .k-input {
    padding: 6px 10px !important;
}

.clientsList .k-combobox.k-state-focused,
.prestatairesList .k-dropdown-wrap.k-state-focused {
    border-color: #41009C !important;
    box-shadow: 0 0 0 2px rgba(65, 0, 156, 0.12) !important;
}

/********************************************
*   Encodage grid - "chip" cell style       *
********************************************/

/* every cell becomes its own rounded, bordered chip, separated by gutters */
.grid-card .k-grid table tr {
    border: none !important;
}

.grid-card .k-grid-header table,
.grid-card .k-grid-content table {
    border-collapse: separate !important;
    border-spacing: 6px 6px;
}

.grid-card .k-grid td {
    border: 1px solid #E4DFF2 !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
    padding: 8px 12px !important;
}

.grid-card .k-grid-header th.k-header {
    border: none !important;
    padding: 6px 12px !important;
}

/* editors (combobox / dropdown / textbox) blend into their chip instead of
   drawing their own nested border */
.grid-card .k-grid td .k-dropdown-wrap,
.grid-card .k-grid td .k-combobox .k-dropdown-wrap,
.grid-card .k-grid td .k-numeric-wrap,
.grid-card .k-grid td .k-picker-wrap,
.grid-card .k-grid td .k-textbox {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* zebra striping */
.grid-card .k-grid tr.k-alt td {
    background-color: #FAFAFC !important;
}

/* validation grid row colors — must beat k-alt and hover rules */
.k-grid tr.row-check td,
.k-grid tr.row-check:hover td,
.k-grid tr.row-check.k-alt td { background-color: #90EE90 !important; }

.k-grid tr.row-agilux td,
.k-grid tr.row-agilux:hover td,
.k-grid tr.row-agilux.k-alt td { background-color: #F2F2F2 !important; }

.k-grid tr.row-support td,
.k-grid tr.row-support:hover td,
.k-grid tr.row-support.k-alt td { background-color: #FFE6E6 !important; }

.k-grid tr.row-no-coeff td,
.k-grid tr.row-no-coeff:hover td,
.k-grid tr.row-no-coeff.k-alt td { background-color: #ADD8E6 !important; }

/* selected row */
.grid-card .k-grid tr.k-state-selected td {
    background-color: #EFEAFB !important;
    color: #2A0066 !important;
}

/* group header row ("Prestations validées" / "En attente de validation") */
.grid-card .k-grouping-row {
    border: none !important;
}

    .grid-card .k-grouping-row td {
        background-color: #F5F2FB !important;
        color: #41009C !important;
        font-weight: 700;
        padding: 8px 12px !important;
        border: none !important;
    }

/* cell being edited in-cell: highlight the chip's own border instead of
   layering a separate focus ring on top of it */
.grid-card .k-grid td.k-state-focused {
    border-color: rgba(65, 0, 156, 0.45) !important;
    box-shadow: none !important;
}

.grid-card .k-grid td.k-edit-cell {
    background-color: #FBFAFF !important;
    border-color: #41009C !important;
    box-shadow: none !important;
    padding: 6px 10px !important;
}

    .grid-card .k-grid td.k-edit-cell input,
    .grid-card .k-grid td.k-edit-cell .k-input {
        border: none !important;
    }

.grid-card .k-grid-toolbar input.k-textbox {
    border-radius: 8px !important;
    padding: 6px 10px !important;
}

.grid-card .k-grid-toolbar label {
    display: inline-block;
    color: #41009C !important;
    font-weight: 600;
    margin-right: 4px;
}

/********************************************
*   Filter toolbar (Historique, etc.)       *
********************************************/

.filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 18px;
    background-color: #FAFAFC;
    border: 1px solid #ECE6F7;
    border-radius: 14px;
    padding: 14px 18px;
    margin: 10px 0 18px 0;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-label {
    color: #8A8A97 !important;
    font-size: 0.8em !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 !important;
    padding: 0 !important;
}

.filter-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-weight: 600;
}

/* align the height of every Kendo input-like widget in the filter toolbar
   (ComboBox / DropDownList use .k-dropdown-wrap, NumericTextBox uses .k-numeric-wrap;
   both share the .k-state-default wrapper class, which is what we target here) */
.filter-toolbar .k-state-default {
    border-radius: 8px !important;
    height: 34px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    width:100%;
}

.filter-toolbar .k-input {
    box-sizing: border-box !important;
    height: 32px !important;
    line-height: 32px !important;
    padding: 0 10px !important;
}

.filter-toolbar .k-select {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
}

    .filter-toolbar .k-select .k-link {
        flex: 1 1 50%;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

.summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

    .summary-row .summary-badge {
        margin: 0;
    }

/********************************************
*   Header responsive padding               *
********************************************/
.header {
    padding-left: 100px;
    padding-right: 100px;
}

@media only screen and (max-width: 992px) {
    .header {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media only screen and (max-width: 600px) {
    .header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header .imageHeader {
        width: 120px;
        height: auto;
    }

    ul#menu li {
        float: none !important;
    }
}

/********************************************
*   Responsive tweaks - onglet Presta       *
********************************************/
@media only screen and (max-width: 768px) {
    .encodage-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .date-nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hint-banner {
        text-align: center;
        justify-content: center;
    }

    .grid-card {
        padding: 4px;
        border-radius: 8px;
        margin-left: -4px;
        margin-right: -4px;
    }

    .grid-save-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Grille Presta : affichage "carte" au lieu d'un tableau large.
       On garde exactement le même DOM/markup Kendo (donc l'édition InCell
       continue de fonctionner normalement) - seule la présentation change. */
    #gridValidationPresta .k-grid-header {
        display: none;
    }

    #gridValidationPresta .k-grid-content {
        overflow: visible;
    }

    #gridValidationPresta table,
    #gridValidationPresta tbody,
    #gridValidationPresta tr,
    #gridValidationPresta td {
        display: block;
        width: 100% !important;
        /* tr porte padding+border ci-dessous : sans border-box, ils s'ajoutent aux 100% de
           largeur et débordent hors de .k-grid (overflow:hidden), ce qui tronque le contenu
           à droite de chaque carte. */
        box-sizing: border-box !important;
    }

    #gridValidationPresta tr {
        background-color: #ffffff;
        border: 1px solid #ECECEC;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(8, 0, 20, 0.05);
        padding: 10px 14px;
        margin-bottom: 12px;
    }

    #gridValidationPresta td {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 4px 10px;
        padding: 7px 4px 7px 0 !important;
        border: none !important;
        border-bottom: 1px solid #F3F1F8 !important;
        text-align: right;
        /* Kendo applique par défaut white-space:nowrap / text-overflow:ellipsis / overflow:hidden
           sur .k-grid td (pour l'affichage tableau desktop) - il faut l'annuler ici, sinon la
           valeur (à droite dans la carte mobile) reste tronquée malgré le display:flex. */
        white-space: normal !important;
        text-overflow: clip !important;
        overflow: visible !important;
        border-radius: 0 !important;
    }

    #gridValidationPresta td > div {
        min-width: 0;
        max-width: 100%;
        flex: 1 1 auto;
        word-break: break-word;
        white-space: normal !important;
    }

        #gridValidationPresta td:last-child {
            border-bottom: none !important;
        }

        #gridValidationPresta td[data-label]::before {
            content: attr(data-label);
            font-weight: 700;
            color: #41009C;
            font-size: 0.72em;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            flex-shrink: 0;
            text-align: left;
        }

        /* la colonne technique (dl_id) reste cachée malgré le display:block ci-dessus */
        #gridValidationPresta td.k-hidden {
            display: none !important;
        }

    .grid-save-bar .k-button {
        flex: 1 1 auto;
    }

    /* Tableau croisé client/presta : même traitement "carte" que la grille -
       toutes les valeurs restent visibles à l'écran, sans scroll horizontal. */
    .pivot-card {
        overflow-x: visible;
    }

    .pivot-card .summary-table {
        white-space: normal;
    }

    #pivotClientUser thead {
        display: none;
    }

    #pivotClientUser,
    #pivotClientUser tbody,
    #pivotClientUser tr,
    #pivotClientUser td {
        display: block;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #pivotClientUser tr {
        background-color: #ffffff;
        border: 1px solid #ECECEC;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(8, 0, 20, 0.05);
        padding: 10px 14px;
        margin-bottom: 12px;
    }

    #pivotClientUser td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 7px 0 !important;
        border: none !important;
        border-bottom: 1px solid #F3F1F8 !important;
        text-align: right !important;
        position: static !important;
        box-shadow: none !important;
        background-color: transparent !important;
    }

        #pivotClientUser td:last-child {
            border-bottom: none !important;
        }

        #pivotClientUser td[data-label]::before {
            content: attr(data-label);
            font-weight: 700;
            color: #41009C;
            font-size: 0.72em;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            flex-shrink: 0;
            text-align: left;
        }

        /* le nom du client sert de titre de carte plutôt que d'être répété en label */
        #pivotClientUser td[data-label="Client"] {
            font-weight: 700;
            color: #41009C;
            font-size: 1em;
            border-bottom: 1px solid #ECE6F7 !important;
            margin-bottom: 4px;
        }

            #pivotClientUser td[data-label="Client"]::before {
                content: none;
            }
}

/********************************************
*   Onglet Congés - toolbar année            *
********************************************/
.conges-year-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 24px 0 14px;
}

.conges-year-title {
    margin: 0;
    flex: 0 0 auto;
}

.conges-year-toolbar .k-datepicker {
    width: 110px;
    max-width: 100%;
}

/********************************************
*   Responsive tweaks - onglet Congés       *
********************************************/
@media only screen and (max-width: 768px) {
    .conges-year-toolbar {
        justify-content: center;
    }

    /* Scheduler : la vue Mois reste affichée sur mobile (cellules réduites) plutôt que
       de basculer sur une autre vue par défaut. */
    #conges.k-scheduler {
        font-size: 0.78em;
    }

    /* .k-scheduler-monthview .k-scheduler-table td (règle globale, non media-gated) fixe
       150px de haut - trop grand sur téléphone. #conges rend ce sélecteur plus spécifique
       donc il l'emporte malgré le !important des deux côtés.
       NB: Kendo calcule le nombre d'événements affichés par cellule via JS (mesure de
       clientHeight/offsetHeight), pas via un simple overflow CSS - une cellule trop basse
       déclenche donc plus souvent le lien "+n de plus". On garde une hauteur raisonnable
       ici pour limiter ça ; le lien "+n de plus" (popup native listant tous les événements
       du jour) reste la solution pour voir un jour chargé en entier. */
    #conges .k-scheduler-monthview .k-scheduler-table td,
    #conges .k-scheduler-monthview .k-hidden {
        height: 100px !important;
    }

    /* le lien "+n de plus" doit rester une cible tactile confortable */
    #conges .k-more-events {
        display: inline-block;
        padding: 4px 2px;
    }

    #conges .k-scheduler-content {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Toolbar du scheduler : la navigation (< Mois Année >) est flottante et le sélecteur
       de vues (Mois/Agenda/Jour) est positionné en absolute en haut à droite avec une
       largeur fixe de 18em (CSS Kendo) - ça déborde/chevauche sur petit écran. On repasse
       tout en flux normal, empilé verticalement. */
    #conges .k-scheduler-toolbar {
        height: auto !important;
        padding: 6px !important;
    }

    #conges .k-scheduler-navigation {
        float: none;
        display: block;
        width: 100%;
        margin-bottom: 6px;
    }

    #conges .k-scheduler-views {
        position: static !important;
        width: 100% !important;
        display: flex;
        flex-wrap: wrap;
    }

        #conges .k-scheduler-views li {
            flex: 1 1 auto;
            text-align: center;
        }

    /* Grille récap congés : laissée telle quelle (mode tableau normal), comme avant. */
}
