/* PLANICASA V1.05 - comptes clients */
.client-auth-box{
    margin:30px 0;
    padding:25px;
    border:1px solid #e5e7eb;
    border-radius:20px;
    background:#f8f8fc;
}
.auth-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:22px;
}
.auth-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:22px;
}
.client-form,
.auth-card form,
.date-form{
    display:flex;
    flex-direction:column;
    gap:12px;
}
.client-form input,
.auth-card input,
.date-form input{
    width:100%;
    box-sizing:border-box;
    padding:14px 16px;
    border:1px solid #dddfe7;
    border-radius:12px;
    font-size:16px;
}
.btn-main{
    display:inline-block;
    border:0;
    border-radius:12px;
    background:#4f1fd6;
    color:#fff;
    padding:14px 18px;
    font-weight:700;
    text-align:center;
    text-decoration:none;
    cursor:pointer;
}
.btn-secondary{
    display:inline-block;
    border:1px solid #d7d9e2;
    border-radius:12px;
    background:#fff;
    color:#11162f;
    padding:12px 16px;
    font-weight:700;
    cursor:pointer;
}
.btn-link{
    margin-top:10px;
}
.alert-error{
    background:#fdeaea;
    color:#b00000;
    padding:14px 16px;
    border-radius:12px;
    margin:10px 0;
}
.alert-info{
    background:#eef2ff;
    color:#1f2a55;
    padding:14px 16px;
    border-radius:12px;
    margin:18px 0;
}
.slots-grid{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}
.slot-btn{
    border:1px solid #dddfe7;
    border-radius:12px;
    background:#fff;
    padding:14px 18px;
    font-weight:700;
    cursor:pointer;
}
.page-card{
    max-width:900px;
    margin:30px auto;
    background:#fff;
    padding:35px;
    border-radius:24px;
}
.muted{
    color:#66708a;
}
.client-history-table{
    table-layout:auto;
}
.client-history-table td{
    vertical-align:top;
}
.client-history-year{
    margin:14px 0;
    border:1px solid #e5e7eb;
    border-radius:12px;
    background:#fff;
    overflow:hidden;
}
.client-history-year summary{
    cursor:pointer;
    padding:14px 16px;
    font-weight:700;
    background:#f8f8fc;
}
.client-history-year .client-history-table{
    margin:0;
    border:0;
}
.client-cancel-form{
    display:grid;
    gap:8px;
    margin:10px 0 0;
    width:min(420px, 100%);
    vertical-align:top;
}
.client-cancel-open{
    width:100%;
    text-align:center;
}
.client-cancel-open.is-disabled{
    opacity:1;
    cursor:not-allowed;
    color:#8a93a6;
    background:#fff;
    border:1px solid #d7dce8;
    box-shadow:none;
}
.client-cancel-panel{
    max-height:0;
    overflow:hidden;
    opacity:0;
    transition:max-height .65s ease, opacity .45s ease, margin-top .45s ease;
    margin-top:0;
}
.client-cancel-panel.is-open{
    max-height:260px;
    opacity:1;
    margin-top:8px;
}
.client-cancel-reason-label{
    display:flex;
    flex-direction:column;
    gap:4px;
    color:#66708a;
    font-size:12px;
    font-weight:700;
}
.client-cancel-reason-label textarea{
    width:100%;
    min-height:92px;
    box-sizing:border-box;
    border:1px solid #dddfe7;
    border-radius:8px;
    padding:10px 12px;
    resize:vertical;
    font:inherit;
    color:#11162f;
}
button.client-cancel-button,
.btn.secondary.client-cancel-button{
    border-color:var(--brand2)!important;
    color:#333!important;
    background:var(--brand2)!important;
    justify-self:start;
}
button.client-cancel-button:hover,
.btn.secondary.client-cancel-button:hover{
    border-color:var(--danger)!important;
    color:#fff!important;
    background:var(--danger)!important;
}
@media(max-width:760px){
    .auth-grid{
        grid-template-columns:1fr;
    }
    .client-history-table.table{
        display:block;
        overflow:visible;
        border-collapse:separate;
        background:transparent;
    }
    .client-history-table tbody,
    .client-history-table tr,
    .client-history-table td{
        display:block;
        width:100%;
        box-sizing:border-box;
    }
    .client-history-table tr:first-child{
        display:none;
    }
    .client-history-table tr:not(:first-child){
        margin:0 0 14px;
        padding:14px;
        border:1px solid #e5e7eb;
        border-radius:12px;
        background:#fff;
        box-shadow:0 8px 20px rgba(15,23,42,.05);
    }
    .client-history-table td{
        display:grid;
        grid-template-columns:112px minmax(0,1fr);
        gap:10px;
        align-items:start;
        padding:8px 0;
        border-bottom:1px solid #eef0f4;
        text-align:left;
        overflow-wrap:anywhere;
    }
    .client-history-table td:last-child{
        border-bottom:0;
        padding-bottom:0;
    }
    .client-history-table td::before{
        content:attr(data-label);
        color:#66708a;
        font-size:12px;
        font-weight:800;
        text-transform:uppercase;
    }
    .client-history-table td:nth-child(6)::before{
        content:"Prix";
    }
    .client-history-status-cell .pill{
        justify-self:start;
    }
    .client-cancel-form{
        grid-column:1 / -1;
        width:100%;
        margin:12px 0 0;
        padding:12px;
        border:1px solid #f3d1d1;
        border-radius:12px;
        background:#fffafa;
    }
    .client-cancel-panel.is-open{
        max-height:320px;
    }
    .client-cancel-reason-label textarea{
        width:100%;
        min-height:118px;
        font-size:15px;
    }
    .client-cancel-button{
        width:100%;
        justify-self:stretch;
    }
}
