/* =========================================================
   INFRA DATA - GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100vh;

    margin: 0;
    padding: 0;
}

html {
    background-color: #eef2f8;
}

body {
    position: relative;
    isolation: isolate;

    margin: 0;

    min-height: 100vh;
    min-height: 100dvh;

    font-family: "Google Sans", Arial, Helvetica, sans-serif;

    color: #202c3d;

    background: transparent;
}

body::before {
    content: "";

    position: fixed;
    z-index: -1;

    inset: 0;

    width: 100%;
    height: 100vh;
    height: 100dvh;

    background-color: #eef2f8;
    background-image: url("../img/background.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    pointer-events: none;
}


/* =========================================================
   GLOBAL MENU
   ========================================================= */

.site-menu {
    position: fixed;
    z-index: 100;

    top: 0;
    left: 0;

    width: 100%;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    padding: 13px 30px 13px 30px;

    background: transparent;

    transition: background-color 0.25s ease;

    pointer-events: none;
}

.site-menu.scrolled {
    background: rgba(255, 255, 255, 0.9);
}

.site-menu-brand {
    display: block;

    margin: 0;

    color: #202c3d;

    font-family: "Google Sans", Arial, Helvetica, sans-serif;
    font-size: 51px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -4px;

    text-decoration: none;

    pointer-events: auto;
}

.site-menu-logo {
    display: block;
    width: 40px;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.site-menu-logo--airfrance {
    width: 110px;
}


.site-menu-button {
    width: 47px;
    height: 43px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    margin: 4px 0 0;
    padding: 3px 0;

    border: 0;

    background: transparent;

    cursor: pointer;

    pointer-events: auto;
}

.site-menu-button span {
    display: block;

    width: 100%;
    height: 5px;

    border-radius: 0;

    background: #202c3d;

    transform-origin: center;

    transition:
        transform 0.22s ease,
        opacity 0.18s ease;
}


.site-menu.menu-open {
    background: rgba(255, 255, 255, 0.9);
}

.site-menu.menu-open .site-menu-button span:nth-child(1) {
    transform: translateY(14px) rotate(45deg);
}

.site-menu.menu-open .site-menu-button span:nth-child(2) {
    opacity: 0;
}

.site-menu.menu-open .site-menu-button span:nth-child(3) {
    transform: translateY(-18px) rotate(-45deg);
}

.site-menu-panel {
    position: absolute;

    top: 100%;
    right: 30px;

    width: 220px;

    display: flex;
    flex-direction: column;

    padding: 8px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.94);

    box-shadow:
        0 9px 27px rgba(31, 43, 60, 0.15);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease;

    pointer-events: none;
}

.site-menu.menu-open .site-menu-panel {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
}

.site-menu-panel a {
    display: block;

    padding: 12px 14px;

    border-radius: 6px;

    color: #202c3d;

    font-size: 15px;
    line-height: 1.2;
    font-weight: 500;

    text-decoration: none;

    transition: background-color 0.18s ease;
}

.site-menu-panel a:hover {
    background: rgba(32, 44, 61, 0.08);
}

.site-menu-panel a:focus-visible {
    outline: 2px solid rgba(32, 44, 61, 0.25);
    outline-offset: -2px;
}


/* =========================================================
   HOME / INDEX
   ========================================================= */

.home-page {
    width: 100%;
    min-width: 100vw;
    min-height: 100vh;

    margin: 0;
    padding: 0;

    overflow-x: hidden;

}


/* Main
   --------------------------------------------------------- */

.home-main {
    min-height: 100vh;

    display: flex;
    justify-content: center;

    padding: 154px 24px 100px;
}

.home-content {
    width: 100%;
    max-width: 790px;
}


/* Title
   --------------------------------------------------------- */

.home-title-block {
    margin: 0 0 74px 2px;
}

.home-title-block h1 {
    margin: 0;

    font-size: 61px;
    line-height: 1.05;

    font-weight: 700;

    letter-spacing: -2.1px;

    color: #202c3d;
}

.home-title-line {
    width: 145px;
    height: 1px;

    margin-top: 25px;

    background: rgba(32, 44, 61, 0.32);
}


/* Entity grid
   --------------------------------------------------------- */

.entity-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 14px 17px;
}

.entity-card {
    position: relative;

    min-width: 0;

    aspect-ratio: 1 / 1;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 14px;

    background: rgba(248, 249, 252, 0.82);

    box-shadow:
        0 8px 25px rgba(31, 43, 60, 0.055);

    text-decoration: none;
}

.entity-card-link {
    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.entity-card-link:hover {
    transform: translateY(-3px);

    background: rgba(250, 251, 253, 0.94);

    box-shadow:
        0 12px 30px rgba(31, 43, 60, 0.11);
}

.entity-card-link:focus-visible {
    outline: 3px solid rgba(32, 44, 61, 0.25);
    outline-offset: 4px;
}


/* Entity logos
   --------------------------------------------------------- */

.entity-logo {
    display: block;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    user-select: none;

    -webkit-user-drag: none;
}

.entity-logo-airfrance {
    width: 48%;
    height: 48%;
}

.entity-logo-disney {
    width: 51%;
    height: 62%;
}

.entity-logo-travel {
    width: 60%;
    height: 60%;
}




/* =========================================================
   LOGIN
   ========================================================= */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    overflow-x: hidden;

}

.login-card {
    width: 100%;
    max-width: 358px;

    padding: 35px 39px 39px;

    background: rgba(248, 249, 252, 0.94);

    border-radius: 15px;

    box-shadow:
        0 9px 27px rgba(31, 43, 60, 0.15);
        margin-top: -50px;
}

.login-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin: 0;

    text-align: center;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-title-logo {
    display: block;
    width: 17px;
    height: auto;
}

.login-subtitle {
    margin: 8px 0 26px;
    text-align: center;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 400;
    color: #68717f;
}

.login-form label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

.login-form input, .login-form select {
    display: block;
    width: 100%;
    height: 43px;
    margin: 0 0 19px;
    padding: 0 13px;
    border: 0;
    border-radius: 2px;
    outline: 0;
    background: rgba(236, 241, 250, 0.92);
    color: #202c3d;
    font-family: "Google Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;

    transition:
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.login-form select{
    cursor: pointer;
}

.login-form input:focus, .login-form select:focus {
    background: rgba(240, 244, 251, 1);
    box-shadow: 0 0 0 2px rgba(32, 44, 61, 0.12);
}

.login-form .history-checkbox-group {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 19px;
}

.login-form .history-checkbox-group input[type="checkbox"] {
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: #202c3d;
    cursor: pointer;
}

.login-form .history-checkbox-group label {
    display: block;
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
}

.login-form button {
    display: block;
    width: 100%;
    height: 43px;
    margin-top: 22px;
    padding: 0 16px;
    border: 0;
    border-radius: 5px;
    background: #202c3d;
    color: #ffffff;
    font-family: "Google Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 43px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;

    transition:
        background-color 0.18s ease,
        transform 0.18s ease;
}

.login-form button:hover {
    background: #172232;
}

.login-form button:active {
    transform: translateY(1px);
}

.login-page .error {
    margin: -8px 0 20px;
    padding: 10px 12px;
    border-radius: 5px;
    background: rgba(180, 35, 35, 0.08);
    color: #9f2424;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .home-content {
        max-width: 700px;
    }

    .home-title-block h1 {
        font-size: 54px;
    }
}


@media (max-width: 700px) {

    .site-menu {
        padding: 13px 20px 13px 20px;
    }

    .site-menu-brand {
        font-size: 43px;
        letter-spacing: -3.5px;
    }

    .site-menu-button {
        width: 40px;
        height: 37px;
    }

    .site-menu-button span {
        height: 4px;
    }


    .site-menu-panel {
        right: 20px;

        width: min(220px, calc(100vw - 40px));
    }

    .site-menu.menu-open .site-menu-button span:nth-child(1) {
        transform: translateY(12.5px) rotate(45deg);
    }

    .site-menu.menu-open .site-menu-button span:nth-child(3) {
        transform: translateY(-12.5px) rotate(-45deg);
    }

    .home-main {
        padding: 135px 22px 70px;
    }

    .home-title-block {
        margin-bottom: 50px;
    }

    .home-title-block h1 {
        font-size: 46px;
        letter-spacing: -1.6px;
    }

    .home-title-line {
        width: 120px;

        margin-top: 20px;
    }

    .entity-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 14px;
    }
}


@media (max-width: 430px) {

    .home-main {
        padding-top: 120px;
    }

    .home-title-block {
        margin-bottom: 38px;
    }

    .home-title-block h1 {
        font-size: 40px;
    }

    .entity-grid {
        gap: 12px;
    }

    .entity-card {
        border-radius: 12px;
    }
}


@media (max-width: 480px) {

    .login-page {
        padding: 20px;
    }

    .login-card {
        max-width: 358px;

        padding:
            32px
            30px
            34px;
    }
}

/* =========================================================
   AIR FRANCE
   ========================================================= */

.airfrance-page {
    width: 100%;
    min-width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.airfrance-main {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 148px 24px 100px;
}

.airfrance-content {
    width: 100%;
    max-width: 790px;
}

.airfrance-title-block {
    margin: 0 0 62px 2px;
}

.airfrance-logo {
    display: block;

    width: 310px;
    max-width: 100%;
    height: auto;

    user-select: none;
    -webkit-user-drag: none;
}


.airfrance-title-line {
    width: 145px;
    height: 1px;
    margin-top: 24px;
    background: rgba(32, 44, 61, 0.32);
}

.airfrance-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 17px;
}

.airfrance-card {
    min-width: 0;
    height: 205px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border-radius: 14px;
    background: rgba(248, 249, 252, 0.82);
    box-shadow: 0 8px 25px rgba(31, 43, 60, 0.055);
    color: #202c3d;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.airfrance-card:hover {
    transform: translateY(-3px);
    background: rgba(250, 251, 253, 0.94);
    box-shadow: 0 12px 30px rgba(31, 43, 60, 0.11);
}

.airfrance-card:focus-visible {
    outline: 3px solid rgba(32, 44, 61, 0.25);
    outline-offset: 4px;
}

.airfrance-card-statistics {
    grid-column: 1 / -1;
}

.airfrance-card-icon {
    display: block;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.airfrance-card-icon-add {
    width: 58px;
    height: 58px;
}

.airfrance-card-icon-search {
    width: 70px;
    height: 70px;
}

.airfrance-card-icon-stats {
    width: 88px;
    height: 58px;
}

.airfrance-card-label {
    margin-top: 30px;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 400;
    text-align: center;
}

.airfrance-card-statistics .airfrance-card-label {
    margin-top: 18px;
}

@media (max-width: 700px) {

    .airfrance-main {
        padding: 145px 20px 70px;
    }

    .airfrance-content {
        max-width: 100%;
    }

    .airfrance-title-block {
        margin: 0 0 38px 2px;
    }

    .airfrance-logo {
        width: 230px;
    }


    .airfrance-title-line {
        width: 120px;
        margin-top: 20px;
    }

    .airfrance-actions {
        gap: 10px;
    }

    .airfrance-card {
        height: 158px;
        padding: 18px;
        border-radius: 12px;
    }

    .airfrance-card-icon-add {
        width: 48px;
        height: 48px;
    }

    .airfrance-card-icon-search {
        width: 57px;
        height: 57px;
    }

    .airfrance-card-icon-stats {
        width: 72px;
        height: 48px;
    }

    .airfrance-card-label {
        display: none;
    }

    .airfrance-card-statistics {
        height: 158px;
    }
}

/* =========================================================
   SHARED PAGE COMPONENTS
   ========================================================= */

.page-title-block {
    margin: 0 0 30px;
}

.page-title {
    margin: 0;

    font-size: 46px;
    line-height: 1.05;
    font-weight: 700;

    letter-spacing: -1.5px;
}

.page-title-line {
    width: 145px;
    height: 1px;

    margin-top: 25px;

    background: rgba(32, 44, 61, 0.32);
}

.dark-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 5px;

    background: #202c3d;
    color: #ffffff;

    font-family: "Google Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        transform 0.18s ease;
}

.dark-button:hover {
    background: #172232;
}

.dark-button:active {
    transform: translateY(1px);
}


/* =========================================================
   WORKDAYS
   ========================================================= */

.workdays-page {
    width: 100%;
    min-height: 100vh;

    overflow-x: hidden;
}

.workdays-main {
    min-height: 100vh;

    display: flex;
    justify-content: center;

    padding: 116px 24px 80px;
}

.workdays-content {
    width: 100%;
    max-width: 790px;
}

.workdays-filters {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        auto;
    align-items: end;

    gap: 18px;

    margin-bottom: 54px;
    padding: 18px 26px 22px;

    border-radius: 14px;

    background: rgba(248, 249, 252, 0.88);

    box-shadow:
        0 9px 27px rgba(31, 43, 60, 0.12);
}

.workdays-filter-group {
    min-width: 0;
}

.workdays-filter-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
}

.workdays-filter-group select {
    width: 100%;
    height: 38px;

    padding: 0 13px;

    border: 0;
    border-radius: 3px;

    outline: 0;

    background: rgba(236, 241, 250, 0.92);
    color: #68717f;

    font-family: "Google Sans", Arial, Helvetica, sans-serif;
    font-size: 13px;

    cursor: pointer;
}

.workdays-filter-group select:focus {
    box-shadow:
        0 0 0 2px rgba(32, 44, 61, 0.12);
}

.workdays-search-button {
    height: 38px;

    padding: 0 27px;
}

.workdays-reset-button {
    grid-column: 1 / -1;
    justify-self: end;

    padding: 9px 15px;

    border-radius: 5px;

    background: rgba(32, 44, 61, 0.10);
    color: #202c3d;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}

.workdays-reset-button:hover {
    background: rgba(32, 44, 61, 0.16);
}

.workdays-section-title {
    margin: 0 0 12px;

    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
}

.workdays-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.workdays-card {
    min-height: 100px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    padding: 17px 18px;

    border-radius: 14px;

    background: rgba(248, 249, 252, 0.88);

    box-shadow:
        0 7px 22px rgba(31, 43, 60, 0.10);
}

.workdays-card-info {
    min-width: 0;
}

.workdays-card-date {
    margin-bottom: 3px;

    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
}

.workdays-card-hours {
    margin-bottom: 5px;

    color: #68717f;

    font-size: 16px;
    line-height: 1.2;
}

.workdays-card-total {
    color: #68717f;

    font-size: 12px;
    line-height: 1.2;
}

.workdays-card-total.wait-lower {
    color: #4f7a60;
}

.workdays-card-total.wait-higher {
    color: #96352f;
}

.workdays-card-total.wait-equal {
    color: #6f7785;
}

.workdays-open-button {
    flex: 0 0 auto;

    min-width: 74px;

    padding: 10px 15px;
}

.workdays-empty {
    padding: 28px;

    border-radius: 14px;

    background: rgba(248, 249, 252, 0.88);

    box-shadow:
        0 7px 22px rgba(31, 43, 60, 0.10);

    color: #68717f;

    font-size: 14px;
    line-height: 1.4;

    text-align: center;
}


/* Workdays responsive
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .page-title {
        font-size: 38px;

        letter-spacing: -1.2px;
    }

    .page-title-line {
        width: 120px;

        margin-top: 20px;
    }

    .workdays-main {
        padding: 110px 20px 60px;
    }

    .workdays-filters {
        grid-template-columns: 1fr 1fr;

        gap: 14px 10px;

        margin-bottom: 42px;
        padding: 18px;
    }

    .workdays-search-button,
    .workdays-reset-button {
        grid-column: 1 / -1;

        width: 100%;
    }

    .workdays-reset-button {
        text-align: center;
    }
}

@media (max-width: 480px) {

    .page-title {
        font-size: 34px;
    }

    .workdays-main {
        padding: 105px 16px 50px;
    }

    .workdays-filters {
        grid-template-columns: 1fr;

        padding: 16px;
    }

    .workdays-search-button,
    .workdays-reset-button {
        grid-column: auto;
    }

    .workdays-card {
        min-height: 92px;

        gap: 14px;

        padding: 15px;
    }

    .workdays-card-date,
    .workdays-card-hours {
        font-size: 15px;
    }

    .workdays-open-button {
        min-width: 68px;

        padding: 9px 12px;

        font-size: 13px;
    }
}


/* =========================================================
   WORKDAY
   ========================================================= */
.workday-page { width:100%; min-height:100vh; overflow-x:hidden; }
.workday-main { min-height:100vh; display:flex; justify-content:center; padding:116px 24px 80px; }
.workday-content { width:100%; max-width:790px; }
.workday-hours { margin-top:-12px; color:#68717f; font-size:16px; line-height:1.3; }
.workday-summary { display:flex; flex-wrap:wrap; gap:10px 24px; margin-top:22px; padding:17px 18px; border-radius:14px; background:rgba(248,249,252,.88); box-shadow:0 7px 22px rgba(31,43,60,.10); }
.workday-summary-item { color:#68717f; font-size:13px; line-height:1.3; }
.workday-summary-item strong { color:#202c3d; }

/* Parkday summary statistics */
.parkday-summary {
    position: relative;
    align-items: center;
}
.parkday-summary-default {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}
.parkday-summary-default[hidden],
.parkday-stats-heading[hidden],
.parkday-stats[hidden] {
    display: none;
}
.parkday-stats-heading {
    flex: 1 1 auto;
    color: #202c3d;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
}
.parkday-stats-toggle {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 5px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}
.parkday-stats-toggle:hover {
    background: rgba(32,44,61,.08);
}
.parkday-stats-toggle:active {
    transform: translateY(1px);
}
.parkday-stats-toggle:focus-visible {
    outline: 2px solid rgba(32,44,61,.25);
    outline-offset: 2px;
}
.parkday-stats-icon {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}
.parkday-stats {
    flex: 1 1 100%;
    min-width: 0;
}
.parkday-stats-section {
    
}
.parkday-stats-section + .parkday-stats-section {
    margin-top: 18px;
    border-top: 1px solid rgba(32,44,61,.12);
}
.parkday-stats-section h3 {
    padding-top: 18px;
    margin: 0 0 14px;
    color: #202c3d;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
}
.parkday-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 28px;
}
.parkday-stat-extreme span {
    display: block;
    margin-top: 3px;
    color: #68717f;
    font-size: 12px;
}
.parkday-stats-types {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    margin: 0;
    padding: 0;
    border-top: 0;
}

.parkday-stats-types .statistics-list-row {
    width: 100%;
}

.section-header { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:46px 0 14px; }
.section-header h2 { margin:0; font-size:18px; line-height:1.25; font-weight:700; }
.workday-add-button { flex:0 0 auto; padding:10px 15px; }
.task-card { margin-bottom:10px; overflow:hidden; border-radius:14px; background:rgba(248,249,252,.88); box-shadow:0 7px 22px rgba(31,43,60,.10); }
.task-header { display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:100px; padding:17px 18px; }
.task-budget .task-header { min-height: 0px; }
.task-budget { margin-top: 10px; }
.task-main { flex:1; min-width:0; }
.task-title { font-size:16px; line-height:1.25; font-weight:700; }
.task-summary { color:#68717f; font-size:14px; line-height:1.3; }
.task-meta { margin-top:6px; color:#68717f; font-size:12px; line-height:1.3; }
.workday-toggle { flex:0 0 auto; min-width:78px; padding:10px 15px; }
.task-details { display:none; padding:1px 18px 20px; border-top:1px solid rgba(32,44,61,.10); }
.task-details.open { display:block; }
.detail-section { margin-top:20px; }
.detail-section h3 { margin:0 0 12px; font-size:16px; line-height:1.25; font-weight:700; }
.detail-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.detail-box,.payment,.compensation,.empowerment,.comment { padding:12px; border-radius:7px; background:rgba(236,241,250,.82); }
.payment,.compensation,.empowerment { margin-bottom:8px; }
.comment { margin:8px 0; white-space:pre-wrap; }
.detail-label { margin-bottom:4px; color:#68717f; font-size:12px; line-height:1.3; }
.detail-value { overflow-wrap:anywhere; font-size:14px; line-height:1.3; font-weight:700; }
.delete-task { margin-top:24px; padding-top:18px; border-top:1px solid rgba(32,44,61,.10); }
.workday-delete-button { display:inline-flex; align-items:center; justify-content:center; padding:10px 15px; border:0; border-radius:5px; background:#ede3e5; color:#9f2424; font-family:"Google Sans",Arial,Helvetica,sans-serif; font-size:13px; font-weight:700; cursor:pointer; transition:background-color .18s ease,transform .18s ease; }
.workday-delete-button:hover { background:#e7d4d7; }
.workday-delete-button:active { transform:translateY(1px); }
@media (max-width:700px) { .workday-main{padding:110px 20px 60px;} .workday-hours{margin-top:-8px;} .detail-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:480px) { .workday-main{padding:105px 16px 50px;} .section-header{align-items:stretch;margin-top:38px;} .section-header h2{align-self:center;} .workday-add-button{padding:9px 12px;font-size:13px;} .task-header{min-height:92px;gap:14px;padding:15px;} .task-title{font-size:15px;} .task-summary{font-size:13px;} .workday-toggle{min-width:68px;padding:9px 12px;font-size:13px;} .task-details{padding:1px 15px 18px;} .workday-summary{gap:8px 18px;padding:15px;} }

.workday-detail-footer,
.workday-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.workday-detail-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(32, 44, 61, 0.10);
}

.workday-detail-footer .delete-task,
.workday-footer .delete-task {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.workday-footer {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(32, 44, 61, 0.10);
}

.workday-id {
    flex: 0 0 auto;
    color: #8b95a4;
    font-size: 11px;
    line-height: 1;
    font-weight: 400;
    white-space: nowrap;
}

/* =========================================================
   NEW TASK
   ========================================================= */

.new-task-page {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

.new-task-main {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 116px 24px 80px;
}

.new-task-content {
    width: 100%;
    max-width: 790px;
}

.new-task-page .workday-info {
    margin: -12px 0 24px;
    color: #68717f;
    font-size: 15px;
    line-height: 1.35;
}

.new-task-page .error {
    margin-bottom: 18px;
    padding: 12px 15px;
    border-radius: 7px;
    background: rgba(159, 36, 36, 0.10);
    color: #9f2424;
    font-size: 13px;
    line-height: 1.4;
}

.new-task-page .card {
    margin-bottom: 20px;
    padding: 24px;
    border-radius: 14px;
    background: rgba(248, 249, 252, 0.88);
    box-shadow: 0 9px 27px rgba(31, 43, 60, 0.12);
}

.new-task-page .form-grid,
.new-task-page .two-columns,
.new-task-page .three-columns,
.new-task-page .four-columns {
    display: grid;
    gap: 18px;
}

.new-task-page .form-grid,
.new-task-page .two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.new-task-page .three-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.new-task-page .four-columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.new-task-page .form-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.new-task-page .form-group.full {
    grid-column: 1 / -1;
}

.new-task-page .form-group > label,
.new-task-page .checkbox-group > label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

.new-task-page input[type="text"],
.new-task-page input[type="number"],
.new-task-page input[type="time"],
.new-task-page input[type="datetime-local"],
.new-task-page select,
.new-task-page textarea {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 13px;
    border: 0;
    border-radius: 3px;
    outline: 0;
    background: rgba(236, 241, 250, 0.92);
    color: #202c3d;
    font-family: "Google Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    transition: box-shadow 0.18s ease, background-color 0.18s ease;
}

.new-task-page input[type="text"],
.new-task-page input[type="number"],
.new-task-page input[type="time"],
.new-task-page input[type="datetime-local"],
.new-task-page select {
    height: 40px;
}

.new-task-page input[type="time"],
.new-task-page input[type="datetime-local"] {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.new-task-page select {
    cursor: pointer;
}

.new-task-page textarea {
    min-height: 100px;
    padding-top: 12px;
    padding-bottom: 12px;
    resize: vertical;
}

.new-task-page input:focus,
.new-task-page select:focus,
.new-task-page textarea:focus {
    background: rgba(240, 244, 251, 1);
    box-shadow: 0 0 0 2px rgba(32, 44, 61, 0.12);
}

.new-task-page .section {
    display: none;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(32, 44, 61, 0.10);
}

.new-task-page .section.active {
    display: block;
}

.new-task-page .section h2 {
    margin: 0 0 20px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.new-task-page .checkbox-group {
    align-items: center;
    justify-content: flex-end;
}

.new-task-page .checkbox-group > label {
    width: 100%;
    text-align: center;
}

.new-task-page input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 7px 0 5px;
    accent-color: #202c3d;
    cursor: pointer;
}

.new-task-page .dynamic-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 12px;
}

.new-task-page .button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 0;
    border-radius: 5px;
    background: #202c3d;
    color: #ffffff;
    font-family: "Google Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.new-task-page .button:hover {
    background: #172232;
}

.new-task-page .button:active {
    transform: translateY(1px);
}

.new-task-page .button.secondary {
    background: rgba(32, 44, 61, 0.10);
    color: #202c3d;
}

.new-task-page .button.secondary:hover {
    background: rgba(32, 44, 61, 0.16);
}

.new-task-page .button.danger {
    background: #ede3e5;
    color: #9f2424;
}

.new-task-page .button.danger:hover {
    background: #e7d4d7;
}

.new-task-page .actions {
    display: flex;
    gap: 10px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(32, 44, 61, 0.10);
}

.new-task-page br + .two-columns,
.new-task-page br + .three-columns,
.new-task-page br + .four-columns {
    margin-top: 2px;
}

@media (max-width: 700px) {
    .new-task-main {
        padding: 110px 20px 60px;
    }

    .new-task-page .page-title {
        font-size: 38px;
        letter-spacing: -1.2px;
    }

    .new-task-page .page-title-line {
        width: 120px;
        margin-top: 20px;
    }

    .new-task-page .card {
        padding: 18px;
    }

    .new-task-page .form-grid,
    .new-task-page .two-columns,
    .new-task-page .three-columns,
    .new-task-page .four-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .new-task-page .dynamic-row {
        grid-template-columns: 1fr;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(32, 44, 61, 0.08);
    }

    .new-task-page .checkbox-group {
        align-items: flex-start;
    }

    .new-task-page .checkbox-group > label {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .new-task-main {
        padding: 105px 16px 50px;
    }

    .new-task-page .page-title {
        font-size: 34px;
    }

    .new-task-page .card {
        padding: 16px;
        border-radius: 12px;
    }

    .new-task-page .actions {
        flex-direction: column;
    }

    .new-task-page .actions .button {
        width: 100%;
    }
}

/* =========================================================
   STATISTICS
   ========================================================= */

.statistics-page {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

.statistics-main {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 116px 24px 80px;
}

.statistics-content {
    width: 100%;
    max-width: 790px;
}

.statistics-period {
    margin: -12px 0 30px;
    color: #68717f;
    font-size: 15px;
    line-height: 1.35;
}

.statistics-navigation {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.statistics-navigation-card {
    min-width: 0;
    min-height: 205px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    border-radius: 14px;
    background: rgba(248, 249, 252, 0.88);
    box-shadow: 0 7px 22px rgba(31, 43, 60, 0.10);
    color: #202c3d;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.statistics-navigation-card:hover {
    transform: translateY(-3px);
    background: rgba(250, 251, 253, 0.94);
    box-shadow: 0 12px 30px rgba(31, 43, 60, 0.11);
}

.statistics-navigation-card:focus-visible {
    outline: 3px solid rgba(32, 44, 61, 0.25);
    outline-offset: 4px;
}

.statistics-navigation-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.statistics-navigation-card p {
    margin: 0;
    color: #68717f;
    font-size: 14px;
    line-height: 1.45;
}

.statistics-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
    margin-bottom: 46px;
    padding: 18px 26px 22px;
    border-radius: 14px;
    background: rgba(248, 249, 252, 0.88);
    box-shadow: 0 9px 27px rgba(31, 43, 60, 0.12);
}

.statistics-filter-group {
    min-width: 0;
}

.statistics-filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
}

.statistics-filter-group select {
    width: 100%;
    height: 38px;
    padding: 0 13px;
    border: 0;
    border-radius: 3px;
    outline: 0;
    background: rgba(236, 241, 250, 0.92);
    color: #68717f;
    font-family: "Google Sans", Arial, Helvetica, sans-serif;
    font-size: 13px;
    cursor: pointer;
}

.statistics-filter-group select:focus {
    box-shadow: 0 0 0 2px rgba(32, 44, 61, 0.12);
}

.statistics-filter-button {
    height: 38px;
    padding: 0 27px;
}

.statistics-section {
    margin-bottom: 36px;
}

.statistics-section-title {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.statistics-card,
.statistics-box,
.statistics-empty {
    border-radius: 14px;
    background: rgba(248, 249, 252, 0.88);
    box-shadow: 0 7px 22px rgba(31, 43, 60, 0.10);
}

.statistics-card {
    min-width: 0;
    padding: 17px 18px;
}

.statistics-label {
    margin-bottom: 6px;
    color: #68717f;
    font-size: 12px;
    line-height: 1.3;
}

.statistics-value {
    overflow-wrap: anywhere;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
}

.statistics-two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.statistics-box {
    min-width: 0;
    padding: 18px;
}

.statistics-box h3 {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
}

.statistics-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(32, 44, 61, 0.10);
}

.statistics-list-row:last-child {
    border-bottom: 0;
}

.statistics-list-label {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.statistics-list-subtitle {
    margin-top: 4px;
    color: #68717f;
    font-size: 12px;
    line-height: 1.35;
}

.statistics-list-value {
    text-align: right;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.statistics-bar {
    height: 7px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(32, 44, 61, 0.10);
}

.statistics-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: #202c3d;
}

.statistics-table-wrap {
    overflow-x: auto;
}

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

.statistics-table th,
.statistics-table td {
    padding: 11px 10px;
    border-bottom: 1px solid rgba(32, 44, 61, 0.10);
    text-align: left;
    white-space: nowrap;
}

.statistics-table tr:last-child td {
    border-bottom: 0;
}

.statistics-table th {
    color: #68717f;
    font-size: 12px;
    font-weight: 700;
}

.statistics-table td {
    font-size: 13px;
}

.statistics-table .number {
    text-align: right;
}

.statistics-monthly-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(32, 44, 61, 0.10);
}

.statistics-monthly-row:last-child {
    border-bottom: 0;
}

.statistics-monthly-label {
    font-size: 14px;
    font-weight: 700;
}

.statistics-monthly-values {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.statistics-monthly-value {
    color: #68717f;
    font-size: 12px;
    line-height: 1.3;
}

.statistics-monthly-value strong {
    display: block;
    margin-top: 3px;
    color: #202c3d;
    font-size: 14px;
}

.statistics-empty {
    padding: 28px;
    color: #68717f;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 700px) {
    .statistics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .statistics-two-columns {
        grid-template-columns: 1fr;
    }

    .statistics-monthly-row {
        grid-template-columns: 1fr;
    }

    .statistics-monthly-values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .statistics-main {
        padding: 110px 20px 60px;
    }

    .statistics-navigation {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .statistics-navigation-card {
        min-height: 130px;
        padding: 20px;
        border-radius: 12px;
    }

    .statistics-filters {
        grid-template-columns: 1fr 1fr;
        gap: 14px 10px;
        margin-bottom: 40px;
        padding: 18px;
    }

    .statistics-filter-group:last-child {
        grid-column: 1 / -1;
    }

    .statistics-filter-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .statistics-main {
        padding: 105px 16px 50px;
    }

    .statistics-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 10px;
        padding: 16px;
    }

    .statistics-filter-button {
        width: 100%;
    }

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

    .statistics-monthly-values {
        grid-template-columns: 1fr;
    }

    .statistics-card,
    .statistics-box {
        border-radius: 12px;
    }
}

/* =========================================================
   PARKDAY - LIVE
   ========================================================= */

.workday-page .detail-box select,
.workday-page .detail-box input {
    display: block;

    width: 100%;
    height: 43px;

    margin-top: 8px;
    padding: 0 13px;

    border: 0;
    border-radius: 3px;
    outline: 0;

    background: rgba(236, 241, 250, 0.92);
    color: #202c3d;

    font-family: "Google Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;

    transition:
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.workday-page .detail-box select {
    cursor: pointer;
}

.workday-page .detail-box select:focus,
.workday-page .detail-box input:focus {
    background: rgba(240, 244, 251, 1);

    box-shadow:
        0 0 0 2px rgba(32, 44, 61, 0.12);
}

/* =========================================================
   PARKS & RIDES — INFORMATIONS DU TOUR
   ========================================================= */

.workday-page .ride-info-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.workday-page .ride-info-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.workday-page .ride-info-form .form-group label {
    font-size: 16px;
    font-weight: 700;
    color: #222b3c;
}

.workday-page .ride-info-form .form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    border: 0;
    border-radius: 8px;
    background: rgba(238, 242, 250, 0.95);
    color: #222b3c;
    font: inherit;
    font-size: 16px;
    outline: none;
}

.workday-page .ride-info-form .form-group input:focus {
    outline: 2px solid rgba(34, 43, 60, 0.15);
}

.workday-page .ride-info-form .actions {
    margin-top: 20px;
}

.workday-page .ride-info-form .button {
    appearance: none;
    border: 0;
    border-radius: 8px;
    padding: 14px 24px;
    background: #222b3c;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 700px) {

    .workday-page .ride-info-form .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width:480px) {
    .parkday-summary-default { gap:8px 18px; }
    .parkday-stats-grid,
    .parkday-stats-types { grid-template-columns:1fr; gap:10px; }
    .parkday-stats-toggle { width:32px; height:32px; padding:5px; }
    .parkday-stats-icon { width:23px; height:23px; }
}


/* =========================================================
   WORKDAY / PARKDAY - COMPACT ACTION ICONS
   ========================================================= */

.workday-toggle-icon,
.workday-delete-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    font-family: "Google Sans", Arial, Helvetica, sans-serif;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}

.workday-toggle-icon {
    color: #202c3d;
    font-size: 27px;
    font-weight: 400;
}

.workday-toggle-icon:hover {
    background: rgba(32,44,61,.08);
}

.workday-delete-icon {
    color: #9f2424;
    font-size: 27px;
    font-weight: 400;
}

.workday-delete-icon:hover {
    background: #ede3e5;
}

.workday-toggle-icon:active,
.workday-delete-icon:active {
    transform: translateY(1px);
}

.workday-toggle-icon:focus-visible {
    outline: 2px solid rgba(32,44,61,.25);
    outline-offset: 2px;
}

.workday-delete-icon:focus-visible {
    outline: 2px solid rgba(159,36,36,.25);
    outline-offset: 2px;
}

@media (max-width:480px) {
    .workday-toggle-icon,
    .workday-delete-icon {
        width: 32px;
        height: 32px;
    }

    .workday-toggle-icon,
    .workday-delete-icon {
        font-size: 25px;
    }
}

/* =========================================================
   PARKDAY — LOGO DU PARC
   ========================================================= */

.parkday-park-logo {
    display: block;
    width: auto;
    max-width: min(100%, 390px);
    height: auto;
    max-height: 74px;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 700px) {
    .parkday-park-logo {
        max-width: min(100%, 300px);
        max-height: 62px;
    }
}

/* =========================================================
   STATISTICS GENERAL - DOUGHNUT CHARTS
   ========================================================= */

.statistics-overview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 1fr);
    gap: 10px;
    align-items: stretch;
}

.statistics-overview-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.statistics-grid-overview,
.statistics-grid-schedule,
.statistics-grid-task-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.statistics-grid-schedule {
    margin-top: 0;
}

.statistics-chart-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.statistics-chart-wrap {
    position: relative;
    width: 100%;
}
.statistics-chart-wrap-tasks.statistics-boarding-chart {
    height: 330px;
    min-height: 330px;
    max-height: 330px;
    margin: 0 auto;
}

/* Vue générale : graphique à droite, hauteur calée sur les 8 cartes. */
.statistics-chart-box-overview {
    min-height: 0;
    height: 100%;
    align-self: stretch;
}

.statistics-chart-wrap-overview {
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin: auto;
}

/* Tâches : bar chart à gauche, 12 cartes à droite sur desktop. */
.statistics-tasks-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

.statistics-chart-box-tasks {
    min-height: 0;
    height: 100%;
    align-self: stretch;
}

.statistics-chart-wrap-tasks {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 500px;
    margin: auto;
}

.statistics-grid-task-kpis {
    align-content: stretch;
}

.statistics-value-inline {
    white-space: nowrap;
    overflow-wrap: normal;
}

.statistics-task-id {
    font-size: 0.50em;
    font-weight: 400;
    color: #68717f;
}

.statistics-card-empty {
    min-height: 0;
}

.statistics-label-detail {
    display: block;
    margin-top: 2px;
    color: #8a93a0;
    font-size: 11px;
    line-height: 1.2;
}

@media (max-width: 700px) {

    /* Vue générale : cartes d'abord, doughnut ensuite. */
    .statistics-overview-layout {
        grid-template-columns: 1fr;
    }

    .statistics-overview-cards {
        gap: 10px;
    }

    .statistics-grid-overview,
    .statistics-grid-schedule,
    .statistics-grid-task-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .statistics-chart-box-overview {
        height: auto;
        min-height: 330px;
    }

    .statistics-chart-wrap-overview {
        max-width: 290px;
        height: 290px;
        margin: auto;
    }

    /* Tâches : cartes d'abord, bar chart ensuite sur mobile/tablette. */
    .statistics-tasks-layout {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .statistics-grid-task-kpis {
        order: 1;
    }

    .statistics-chart-box-tasks {
        order: 2;
        height: auto;
        min-height: 0;
    }

    .statistics-chart-wrap-tasks {
        width: 100%;
        max-width: none;
        height: 500px;
        min-height: 500px;
        margin: auto;
    }
}

@media (max-width: 480px) {

    .statistics-grid-overview,
    .statistics-grid-schedule,
    .statistics-grid-task-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .statistics-chart-box-overview {
        min-height: 310px;
    }

    .statistics-chart-wrap-overview {
        max-width: 270px;
        height: 270px;
        margin: auto;
    }

    .statistics-chart-box-tasks {
        min-height: 0;
    }

    .statistics-chart-wrap-tasks {
        max-width: none;
        height: 500px;
        min-height: 500px;
        margin: auto;
    }

    .statistics-value-inline {
        font-size: 19px;
    }
}


/* Boarding : sélecteur de gate (même rendu que les filtres statistiques) */
.statistics-gate-select {
    display: block;
    width: 100%;
    height: 40px;
    min-width: 0;
    padding: 0 13px;
    border: 0;
    border-radius: 3px;
    background: rgba(236, 241, 250, 0.92);
    color: #202c3d;
    font: 400 14px "Google Sans", Arial, Helvetica, sans-serif;
}

/* =========================================================
   FLIGHTS - NEW FLIGHT
   ========================================================= */
.flight-new-page [hidden] { display:none !important; }
.flight-new-page .flight-choice { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; }
.flight-mode-card { min-height:205px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:20px; border:0; border-radius:14px; background:rgba(248,249,252,.88); box-shadow:0 8px 25px rgba(31,43,60,.055); color:#202c3d; font:400 20px 'Google Sans',Arial,sans-serif; cursor:pointer; }
.flight-mode-card:hover { transform:translateY(-3px); box-shadow:0 12px 30px rgba(31,43,60,.11); }
.flight-mode-card img { width:64px; height:64px; object-fit:contain; }
.flight-new-page .card h2 { margin:0 0 20px; font-size:20px; }
.flight-new-page .flight-back { border:0; background:transparent; color:#202c3d; margin:0 0 20px; padding:8px 0; cursor:pointer; font:600 14px 'Google Sans',Arial,sans-serif; }
.flight-new-page .flight-submit { min-height:43px; padding:0 22px; margin:8px 0 26px; }
.flight-new-page .flight-notice { background:rgba(248,249,252,.9); padding:14px 18px; margin-bottom:18px; border-radius:8px; }
.flight-new-page input[type=file] { padding:9px; max-width:100%; }
@media(max-width:700px) { .flight-mode-card { min-height:158px; } .flight-mode-card span { display:none; } }
@media(max-width:480px) { .flight-new-page .flight-choice { gap:10px; } }

/* =========================================================
   FLIGHTS — WORLD MAP & LIST (reuse shared colors/font/menu)
   ========================================================= */
.flights-list-page [hidden] { display:none !important; }
.flights-list-main { max-width:1480px; margin:0 auto; padding:116px 24px 80px; color:#202c3d; }
.flights-map-card,.flights-summary,.flights-stat-card,.flights-table-card { background:rgba(248,249,252,.88); border-radius:14px; box-shadow:0 8px 25px rgba(31,43,60,.055); }
.flights-map-card { position:relative; padding:8px; margin-bottom:16px; overflow:hidden; }
#flights-map { height:390px; border-radius:10px; background:#dce9f6; z-index:0; }
.flights-map-legend { position:absolute; z-index:400; left:23px; bottom:22px; padding:12px 15px; border-radius:9px; background:rgba(248,249,252,.93); font-size:12px; line-height:1.9; }
.flights-map-legend i { display:inline-block; width:28px; border-top:3px solid #d92c35; vertical-align:middle; margin-right:8px; }
.flights-map-legend .flights-legend-dash { border-top-style:dashed; }
.flights-summary { display:grid; grid-template-columns:1.2fr repeat(4,1fr); align-items:center; margin-bottom:16px; overflow:hidden; }
.flights-summary-lead { display:flex; align-items:center; gap:20px; background:#202c3d; color:white; padding:24px; min-height:110px; }
.flights-summary-lead>span { font-size:38px; }
.flights-summary-lead strong { display:block; font-size:34px; }
.flights-summary-item { padding:18px 22px; border-right:1px solid #d1d9e5; }
.flights-summary-item:last-child { border-right:0; }
.flights-summary-item strong { display:block; font-size:23px; white-space:nowrap; }
.flights-summary-item span { display:block; font-size:12px; color:#68717f; margin-top:5px; }
.flights-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.flights-stat-card { display:grid; grid-template-columns:96px minmax(0,1fr); column-gap:14px; padding:18px; align-items:center; }
.flights-stat-card h2 { grid-column:1/-1; font-size:16px; margin:0 0 16px; }
.flights-donut { width:94px; height:94px; border-radius:50%; background:conic-gradient(#3b81c6 calc(var(--fraction)*1%),#b8d2ec 0); display:grid; place-items:center; position:relative; }
.flights-donut:before { content:""; position:absolute; inset:13px; border-radius:50%; background:#f8f9fc; }
.flights-donut strong { position:relative; font-size:21px; }
.flights-stat-lines { min-width:0; }
.flights-stat-line { display:flex; justify-content:space-between; gap:8px; font-size:12px; line-height:1.8; }
.flights-stat-line strong { font-weight:700; }
.flights-table-card { padding:20px 22px; }
.flights-table-head { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:16px; }
.flights-table-head h2 { margin:0; font-size:22px; }
.flights-table-head small { font-size:14px; font-weight:400; }
#flights-search { min-width:0; width:265px; border:1px solid #bdcde2; border-radius:7px; padding:11px 13px; background:transparent; color:inherit; font:inherit; font-size:13px; }
.flights-table-labels,.flights-row { display:grid; grid-template-columns:1fr 1.5fr 1fr 1fr 1.25fr 18px; align-items:center; gap:12px; }
.flights-table-labels { padding:10px 15px; background:#dbe6f4; border-radius:7px; font-size:12px; font-weight:700; }
.flights-row { padding:16px 15px; border-bottom:1px solid #dbe4f0; color:inherit; text-decoration:none; font-size:14px; }
.flights-row:hover { background:rgba(220,232,248,.45); }
.flights-route { display:flex; align-items:center; gap:13px; white-space:nowrap; }
.flights-route>span { font-size:18px; }
.flights-chevron { font-size:24px; }
.flights-empty { padding:18px 12px; color:#68717f; }
@media(max-width:1050px) {
 .flights-summary { grid-template-columns:repeat(4,1fr); }
 .flights-summary-lead { grid-column:1/-1; min-height:85px; }
 .flights-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
 .flights-list-main { padding:102px 15px 55px; }
 #flights-map { height:290px; }
 .flights-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .flights-summary-item { padding:17px; }
 .flights-summary-item strong { font-size:20px; }
 .flights-stats { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:8px; }
 .flights-stat-card { flex:0 0 85%; scroll-snap-align:start; }
 .flights-table-card { padding:18px 14px; }
 .flights-table-head h2 { font-size:18px; }
 .flights-table-head small { font-size:12px; }
 #flights-search { width:130px; }
 .flights-table-labels { display:none; }
 .flights-row { grid-template-columns:1fr auto 16px; gap:5px 12px; }
 .flights-row>strong { grid-column:1; grid-row:1; }
 .flights-row .flights-route { grid-column:1; grid-row:2; }
 .flights-row>span:nth-child(3) { grid-column:2; grid-row:1; }
 .flights-row>span:nth-child(4) { grid-column:2; grid-row:2; }
 .flights-row>span:nth-child(5) { display:none; }
 .flights-chevron { grid-column:3; grid-row:1/3; }
}
.flight-new-page .flight-mode-card[data-mode="import"] {
    background-color: #1f2937;
    color: #ffffff;
}